473,785 Members | 2,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
7
2,992
thread by: Simon Burton | last post Jul 18 '05 by: Donn Cave
This was so easy :) Simon Burton. #!/usr/bin/env python import sys from time import sleep from poplib import *
1
1,513
thread by: Aahz | last post Jul 18 '05 by: Michael Geary
There seems to be some kind of problem with Starship's DNS. Until it's fixed, please use the direct IP of 217.160.219.194 -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ "It is easier to optimize correct code than to correct optimized code." --Bill Harlan
0
1,271
thread by: logistix at cathoderaymission.net | last post Jul 18 '05 by: logistix at cathoderaymission.net
Writing pop3 filters in python seems to be a pretty popular activity today. ;) So far it looks like the actual executable attachment isn't mutating like subject lines, from and to fields are. I wrote some code that scans message bodies for content-types that shouldn't be executable (such as midis and wavs) and also scans content-types that...
2
3,562
thread by: Baltor | last post Jul 18 '05 by: Michael Peuser
How do I enter weapondescription with a space before it at the end of line 3. I tried this, but it is not working: self.text.insert(3.0, END, " ", weapondescription) Anyone? Thanks.
1
2,818
thread by: Eugene Druker | last post Jul 18 '05 by: John J. Lee
Hi all, I need eigen values and vectors for symmetric matrices (like VCV). Solving with numarray and testing the results, I've got strange results - input and output matrices of some sizes are very different. That's an example of differencies: Size MaxDif(E.Val) MaxDif(E.Vect) 2 0 1.110223e-016 3 1.776357e-015 ...
4
10,187
thread by: Yun Mao | last post Jul 18 '05 by: Thomas Bellman
Hi, How to make changes to os.environ and os.path.chdir still effective after I run the script? Currently, the changes are only good within my script. I would like the shell who called python myprog.py also gets the change.. Thank you! Yun
8
2,866
thread by: Pete Jereb | last post Jul 18 '05 by: Peter Hansen
Python 2.3 (#46, Jul 29 2003, 18:54:32) on win32 >>> s = 'chg bonn_fee' >>> print s chg bonn_fee >>> print s.lstrip('chg ') bonn_fee >>> s = 'chg conn_fee'
2
2,506
thread by: Marc Petitmermet | last post Jul 18 '05 by: Patrick Useldinger
I can do the following replacement: r"kr\xdf6;ger".replace('\\','&#') -> 'kr&#xdf6;ger' But how can I do this using a variable which contains the above string? Obviously, the following code returns not the string with replacement but the name of the variable itself: name = "kr\xdf6;ger"
2
1,287
thread by: nvm1980_in | last post Jul 18 '05 by: Bob Gailer
I am writting an error hander module which should log Calling Subroutine/Function which caused Subroutine or raised an error. I would aso like to store Error Source, Description and Number. can any one help me for this. -- Posted via http://dbforums.com
37
10,448
thread by: Ubaidullah Nubar | last post Jul 18 '05 by: Christian Reis
Hi, How well is Python suited for developing database based applications? I am new to Python so please bear with me if some of the questions are too simple. I specifically have the following questions: 1. Is there an example of a simple data-entry application written in Python using a GUI interface? Something like a simple address book...
13
18,802
thread by: Fazer | last post Jul 18 '05 by: Fazer
Hello, Can anyone point me to a way on how to send a SMS message using Python? Thanks,
5
51,950
thread by: RR | last post Jul 18 '05 by: Hung Jung Lu
Is there an easy way in python to remove whitespace from a string?
19
3,183
thread by: Patrick Useldinger | last post Jul 18 '05 by: A.M. Kuchling
Hi all, after my unsuccessful try to run Apache 2 with mod_python and Python 2.3, I am looking for an alternative approach. My aim is to write a small web-based application: Python - the solution must be based / usable on Python 2.3 Portability Targeted plaforms are
4
2,056
thread by: John Abel | last post Jul 18 '05 by: John Abel
I'm having a bit of hassle, trying to compile Python in 64bit mode on Solaris8, using GCC 3.1/3.3 (tried both). I've set the relevant settings ( export CC="gcc -mcpu=v9 -m64 -D_LARGEFILE64_SOURCE=1" - hopefully) before ./configure, which seems to work OK. The problem happens halfway through the make. It produces the following output: c++...
1
1,406
thread by: Fernando Armenta | last post Jul 18 '05 by: wes weston
Hello, I need some help matching a file to a path. This is my code: # I open an expect script to log into a linux system and get the version (6.5)
3
1,552
thread by: JZ | last post Jul 18 '05 by: JZ
How much memory WebKit should normally take??? As I can see, every WebKit daemon takes over 40MB (sic!) of RAM. WebKit lauches 10 daemons during startup, so I need over 400MB for WebKit alone! Is it normal or I have something wrong configured? -- JZ ICQ:6712522
2
2,897
thread by: satish | last post Jul 18 '05 by: satish
Hello all, I have a shared object executable viz. *cable* which I execute as follows : $ ansyscust71 -custom cable -p ANSYSRF **ansyscust71 is a shell script and is a part of a software called ANSYS** Now, I have generated a python module using a *fortran-python interface
0
1,300
thread by: Ivan Letal | last post Jul 18 '05 by: Ivan Letal
I want to make a python script which connects to a server to start getting data and interacts with user in the same time ala chat. I want it to run in a terminal/console. After I connect a socket, how to ensure that it is writing text from the server if there is any waiting for possible user input in the same time? Thanks
0
1,256
thread by: adfgvx | last post Jul 18 '05 by: adfgvx
I am looking for a Compiled version of the Sick extension for Python (Windows XP and Python 2.2). Does anyone have one and send it to me ? Thanking you by advance, Bruno
9
10,957
thread by: Bill | last post Jul 18 '05 by: Rudy Schockaert
I am trying to have the capability to email attachments. Specifically I want to be able to email a specific attachment that I name that may be a PDF document, text doc, etc. I already have a working piece of code that emails jpg attachments but does not work with any other types of attachments. Could someone tell me how to modify this code to...
6
2,913
thread by: Jacob H | last post Jul 18 '05 by: Bengt Richter
Hello all, I'm close to being a novice programmer and I never was good at math. So I'm curious to know ways in which this following code can be made more efficient, more elegant. The code just calculates and displays elapsed wall clock seconds since initialization. class ExampleTimer: def __init__(self): self.start = time.clock()
2
1,324
thread by: Indigo Moon Man | last post Jul 18 '05 by: Indigo Moon Man
What has happened to the py2exe web site? I'm getting a 'Cannot find server' error when I try to go there. It was working just the other day I'm pretty sure. This is the address I have for it... http://starship.python.net/crew/theller/py2exe/ Do I have the wrong somehow? Thanks! --
2
1,577
thread by: Frnak Sealmbcrd Eggs Lomax | last post Jul 18 '05 by: L. Sommerer
I hvae jsut fhiseind rniedag a Shdlaost atrlcie from Mnoday, Sbepemetr 15th, aobut an ingtriniug sdtuy from Cgbdirmae Uinevtrsiy, dciinesrbg how wodrs with thier itienrors selmrbacd can siltl be rdbaleae. Bcaeuse of the tioeznme that I lvie in, an initettrment dfceet in my clbae medom, and the lneiignrg atfer-ecfefts of my lsat "mohsroum...
3
2,268
thread by: RR | last post Jul 18 '05 by: David M. Cook
Hello, where is nice site that would have python API documentation? In particular I am trying to find documentation on the function string.find -RR
1
1,983
thread by: Fred Lionetti | last post Jul 18 '05 by: John Roth
Hi all, I'm just wondering if anyone can tell me how to change an environment variable from python. I know you can view variables through os.environ, but changing the dictionary doesn't seem to change the systmem variable. Thanks for the help! -Fred

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.