473,556 Members | 2,558 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.
0
1,576
thread by: Heiko Köhler | last post Jul 18 '05 by: Heiko Köhler
This version is beta software. CUTE is a QT and Scintilla based code editor, scriptable with python. CUTE is completely configured with python scripts. The python API allows to define new commands, which can be mapped to a shortcut or added to a menu. There is a handbook for CUTE, but this is still work in progress. The CUTE/python API is...
0
1,597
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...
0
1,261
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,360
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()
0
1,004
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
0
1,503
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...
0
1,388
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,419
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 =...
0
1,158
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,274
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,308
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,441
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...
0
1,410
thread by: Ravi | last post Jul 18 '05 by: Ravi
Hi, I'm looking for a Postgres connection Python module that has good support for the BYTEA type. By good support I mean that -it should have a function to escape the raw binary data as appropriate. -it must not choke on some rather large 20-30MB files. -Retrieval using Select statements should be transparent (or pretty simple)
0
1,646
thread by: John Hunter | last post Jul 18 '05 by: John Hunter
When using gdmodule to draw text using true type fonts im.string_ttf(font, fontsize, angle, (x,y), s, color) the docs say 'draw string s at (x,y) using the TrueType font at the given pointsize and angle.' It is not clear to me how gd handles point size. A fontsize of 12 should be 12/72 = 1/6 inches tall but how does gd decide what an...
0
1,196
thread by: Laura Creighton | last post Jul 18 '05 by: Laura Creighton
I think it comes from Jeff Sutherland's Agile Programming Methodology, called Scrum http://jeffsutherland.com/scrum/index.html where work is planned into month long interations called Sprints. (Jeff must have terrific stamina if he thinks that the thing to call a month-long race is a Sprint :-) ) These days we do them shorter -- as in a 4...
0
1,121
thread by: Samir Patel | last post Jul 18 '05 by: Samir Patel
Python comes with huge number of build in libraries. Best way to start python is to understand this libraries and what it provides by running simple examples for each libraries. Does anybody know if this is done by anybody? If not, is test modules are best way to accomplish this? I am interested in doing something like this in wxPython. My...
0
3,304
thread by: python | last post Jul 18 '05 by: python
Hi- I have a lot of monthly time series data. I need to be able to compare two dates and get the number of months that they are apart. The datetime module is a daily-frequency data type. It has a timedelta object that returns the difference in days between two dates: >>> d1 = datetime.date(2002,1,1)
0
951
thread by: Invalid User | last post Jul 18 '05 by: Invalid User
How can I specify where the configuration files specfied in the 'data_files' section should go? For example, if I have: data_files=)] How can I have a configuration file placed anywhere else beside the default '/usr/config' directory?
0
1,300
thread by: Luca Calderano | last post Jul 18 '05 by: Luca Calderano
The Only way is using Com S.G.A S.p.A. Nucleo Sistemi Informativi Luca Calderano -----Messaggio originale----- Da: python-list-admin@python.org Per conto di JZ
0
1,761
thread by: Luca Calderano | last post Jul 18 '05 by: Luca Calderano
I MEAN YOU CAN ACCESS ADO TROUGHT COM AS EXPLAINED HERE: import win32com.client import locale from os import sys adCmdStoredProc = 4 # Evaluates CommandText as a stored procedure name.
0
1,701
thread by: Kathleen Kudzma | last post Jul 18 '05 by: Kathleen Kudzma
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added -packages encodings --force-imports encodings). This resolved the codec error. When I tried to create an exe with py2exe I still got the following...
0
1,841
thread by: Tim Rowe | last post Jul 18 '05 by: Tim Rowe
Has anybody written a good powerset function for that nice new set datatype we now have? I've found a powerset operator for Python lists on the net, but that depends on lists being indexable which sets aren't. I suppose one answer is to iterate the set into a list, use the powerset I've got, then iterate the answer back int a set...
0
1,227
thread by: Brett C. | last post Jul 18 '05 by: Brett C.
I have received a few requests since the 'Python Cookbook' was published to edit my code for a strptime() function in pure Python to run on Jython 2.1 . I have finally come about and made the necessary changes and put them online (thanks to Jon Franz for giving the final push). The code can be found at the Python Cookbook web site at...
0
1,316
thread by: Raymond Hettinger | last post Jul 18 '05 by: Raymond Hettinger
QOTW: "Of course it's still an ugly idiom. But there's a distinction between ugly-but-works and ugly-and-wrong." -- Michael Chermside commenting on one of the standard ways to simulate an if-then-else expression. "This is the nature of Usenet and threaded discussions, where one person makes several comments, some less on-topic that the...
0
1,155
thread by: Steve Williams | last post Jul 18 '05 by: Steve Williams
The following runs slow, as you might expect. I'm open to advice. .. . . def GetTotalPages(self): self.PPIPrinterWidth = 100 #whatever self.PPIPrinterHeight = 100 #whatever self.screenscale = 1.0 #whatever bitmap = wxEmptyBitmap( PrinterDefinition * self.PPIPrinterWidth ,PrinterDefinition * self.PPIPrinterHeight)

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.