473,748 Members | 2,793 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.
2
2,560
thread by: Roy Smith | last post Jul 18 '05 by: anton muhin
I want to build up a long string piece by piece without the quadratic behavior of string concatenation. I'm looking at the {c,}StringIO modules as a way around this, but I don't see anything in the docs which talks about how they work. If I do s = StringIO.StringIO() while whatever: s.write (stringFragment) return s.getvalue()
2
7,188
thread by: David Carroll | last post Jul 18 '05 by: Peter Otten
I'm at my wits end with this silly thing. I'm new to python, so please excuse my impending ignorance ;). I am trying to execute a command, and get the output back into a string variable. Here's what I think should work from the docs I've read. The system I need to get this working on is 2000 professional, I'm posting this from my linux box,...
0
1,449
thread by: Timo Virkkala | last post Jul 18 '05 by: Timo Virkkala
Hello. I'm having some trouble with getting the pyPgSQL module to work. I installed it and the mxDateTime module into my local directory (I'm doing this on my university's server and I don't have access to /usr). When I try to import it I get the following error: >>> from pyPgSql import libpq Traceback (most recent call last): File...
30
4,516
thread by: David Mertz | last post Jul 18 '05 by: Chris Kassopulo
Pythonistas, My loyal fans :-) will remember that I did a Python IDE roundup for _Charming Python_ a couple years back. Now I have another such roundup lined up... not the very next article, but it's there on the list. In the intervening years, I've hardly touched anything one might call an IDE. I've looked at screenshots from time to...
1
10,279
thread by: reinhard | last post Jul 18 '05 by: Warren Postma
Our project was developed with Python 2.0 and includes some Tk 8.3 extension widgets as well as python extensions using the CXX interface. After moving to Python 2.3 and TclTk 8.4 our program hangs with the following message: Fatal Python error: PyEval_RestoreThread: NULL tstate The strange thing is that this happens in a not very...
0
1,318
thread by: Ron Stephens | last post Jul 18 '05 by: Ron Stephens
Thanks, Tony, we long term newbies need to stick together ;-)) I just updated a few PythonCard versions of three of the modules from askMerlin, and posted them in a link right below the askMerlin100.py command line program. The PythonCard version of election.py in particular is very easy and illustrates what these programs do. You will have...
0
1,280
thread by: Eric S. Johansson | last post Jul 18 '05 by: Eric S. Johansson
I'm writing an authentication module for the albatross Web development system. I am taking the easy way out and implementing an authentication system designed by people who are hopefully more skilled with authentication systems than I. In the process of development, I discovered that pwd.getpwnam() is not fully functional in that I cannot...
0
1,165
thread by: Ted Holden | last post Jul 18 '05 by: Ted Holden
This is the little warning to stdout which notes: ** (app1:989): WARNING **: could not find handler `on_...... I'd be grateful if anybody could tell me how to shut those off.
0
1,426
thread by: Gordon Airport | last post Jul 18 '05 by: Gordon Airport
I was surprised that I couldn't find enough information out there to get this to work. Just enough to make a mess ;-). The code below just starts spitting out what I guess is postscript code, seperated by line feeds but not carrage returns, so they run right off the page. Certainly nothing graphical. .... printerName =...
3
1,501
thread by: Corey Coughlin | last post Jul 18 '05 by: Corey Coughlin
Hi, here's a silly question. I'm wrote some code a while back that looks like this: import types class Named(object): def __init__(self,nm=''): self.iname = '' self.setnm(nm) def setnm (self,nm):
4
1,960
thread by: Preston H | last post Jul 18 '05 by: Preston H
Hello, someone may have tackled this problem before but I have searched the google newsgroups up and down and I can't find anything on this. I am trying to write an embedded python program in C++ that will go out and execute python language in a script. I am using Visual C++ .NET, and I do have Multithreaded DLL(/MD) turned on for the...
5
3,182
thread by: Marc | last post Jul 18 '05 by: T. Panbru
Hi all, I've been using the canvas quite a bit lately, and I am wondering if I am just missing a quick trick somewhere. With most canvas objects you can bind then to mouse functions and quickly determine if you are selecting them. However, the rectangle (and I'm sure all other objects that aren't solid) only register if you actually hit...
2
1,530
thread by: Fernando | last post Jul 18 '05 by: Peter Scott
Hi, How can I send a usenet posting from a python app? Thanks O:-)
13
35,559
thread by: Allison Bailey | last post Jul 18 '05 by: Bob Gailer
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet and extract information from specific worksheets and cells. I'm not really sure how to get started with this process. I ran the COM Makepy...
2
13,760
thread by: Fearless Freep | last post Jul 18 '05 by: Fearless Freep
I know there's a PIL mailing list but I thought I would try the question here as well. I'm using PIL on Python 1.5.2 (stop laughing, it's what the ISP has for CGI and I don't have a choice) Anyway. I have a basic image and I need to overlay an image on top of it and let some of the basic image show through. Just as an aside the...
0
1,393
thread by: Kali K E | last post Jul 18 '05 by: Kali K E
Hi, I am new to Python and excuse me if this problem is very trivial. The problem is like this. There is a directory (dirA) that contains files like mypacakge-2.2.5-15.rpm, mypacakge-2.2.5-90.rpm, anotherpackage-3.4.25.rpm etc.. As can be seen, some of the files are new versions of same rpm (mypacakge-2.2.5-15.rpm, mypacakge-2.2.5-90.rpm in...
0
1,511
thread by: Tom | last post Jul 18 '05 by: Tom
Hi folks, I need to read information from a file. That is not the problem, BUT another programm (I have no control about that programm) constantly writes more information into that specific file. How can I get the new information that has bee added to that file and that I have not yet read? I don't want to re-read the entire file, because...
3
1,583
thread by: John Abel | last post Jul 18 '05 by: Sean Ross
I have a problem, in that the following code is sometimes failing. I am stat'ing a list of files, but, sometimes, one of the files may be moved by an external process, after the os.path.exists and before the lstat, causing the script to fail. My question, is there anything I can do to speed it up, or put in a trap, to stop the stat from...
0
1,014
thread by: Peter Hansen | last post Jul 18 '05 by: Peter Hansen
The next meeting of PyGTA will be held at the usual location and time, on Tuesday September 23. Site: 519 Church St. Community Centre Room no: 31 (signs will be posted) Address: 519 Church St., near Wellesley Date: Tuesday, September 23 Time: 8-10 PM A later announcement will provide details of any presentation which might
4
1,625
thread by: Ville Vainio | last post Jul 18 '05 by: Ville Vainio
I am thinking of implementing a nice little source code generation program with empy. I'm planning on having one directory with arbitrary number of templates. Templates can contain a significator as follows: @%promptuser ('classname',"the name of the class",'string'),('i',"some number",'int') After choosing a template from the list, the...
6
11,270
thread by: Gary Richardson | last post Jul 18 '05 by: Jeff Epler
Is there a simple way of causing the size of a canvas to change as the window is resized when using the Grid geometry manager? Setting sticky='NESW', as in the following code, doesn't work though the documentation for Grid seems to imply that it should: "sticky If a slave's cell is larger than its requested dimensions, this option may be...
0
1,370
thread by: Alexander Eisenhuth | last post Jul 18 '05 by: Alexander Eisenhuth
Hallo, somehow Installer won't work, even on the simplest python file: test.py: --------- import time print 'time is', time.time()
5
8,451
thread by: Graham Nicholls | last post Jul 18 '05 by: Graham Nicholls
Hi. Sorry if this is really dim, but I'm trying to do something like: main (args): fhand=open(args,"r+") and get an error that open is expecting a string not a list. I _have_ looked at the docs online, and in the books, but to no avail, so thanks for looking!
0
1,267
thread by: Jozsa Boti | last post Jul 18 '05 by: Jozsa Boti
Hi! I have a strange problem: I wrote a program in python, and I get an error: ImportError: dynamic module does not define init function (initESSClientAPI) but only if I run the program in certain folders. The same program runs without any error from other folders. Any ideas? Thanks
0
1,606
thread by: Jean-Baptiste Richet | last post Jul 18 '05 by: Jean-Baptiste Richet
Hello, weave could be highly usefull to me, but I can't have it work correctly on my PC, and I can't understand the error message. Could you help me ? I installed the latest zip package by "python setup.py install", on a python 2.3 installation (OS = Windows ME), and here is a result when trying it : ========================= IDLE 1.0...

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.