473,804 Members | 2,243 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.
3
3,383
thread by: Batista, Facundo | last post Jul 18 '05 by: Asun Friere
Can't find it. I mean something like: >> m1 = Money(decimal=2) >> m2 = Money(decimal=2) >> m1.value = 3.20 >> m2.value = 2.15 >> print m1 + m2 5.35
1
1,824
thread by: Matthew Barnes | last post Jul 18 '05 by: Raymond Hettinger
This may be a naive question, but since Python 2.3 added a handy little DictMixin class to its UserDict module it seems to me like UserList.ListMixin and maybe even UserString.StringMixin should have followed (although I'm not sure how useful a StringMixin class would really be). I'm just curious. Is there a reason these classes weren't...
2
2,134
thread by: Ellinghaus, Lance | last post Jul 18 '05 by: Aahz
Has anyone created a module to generate the XML formatted files for OpenOffice? Lance Lance Ellinghaus EDS - TWAI Operations Phone: 214-922-5454 Cell: 940-597-4755
5
9,884
thread by: Maxime Biais | last post Jul 18 '05 by: martin z
Hello, I'm looking for a graphic debugger for python on linux like DDD or GVD. I tried pdb and pdb-mode for emacs, but I would use a more gvd-like debugger. -- Maxime Biais
4
3,127
thread by: ulysses | last post Jul 18 '05 by: ulysses
Hi, I use PyQt 3.8 non-commercial version in win32. I get a big question. I Can't show PY variable in QT filedialog as initially parameter. Code sample is following: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fileName="test.avi" def saveSomething(aString):
0
1,223
thread by: lebo | last post Jul 18 '05 by: lebo
Hi List I want to effectively 'tail' the NT event log - i.e. when a new event arrives in the log, parse it and decide whether to take an action. The track I've gone down is to create an event, and use event notify change; code snippet..... win32event.CreateEvent(.....) win32evtlog.NotfiyChangeEventLog(...)
7
1,507
thread by: Mark Hahn | last post Jul 18 '05 by: Mark Hahn
(I apologize in advance if this is not an appropriate posting) I have written a simple windows shareware app, EzPicMailer, in Python 2.3, wxPython 2.4.1, and PIL 1.1.4 that lets computer novices find photo files, edit them, and mail them, all in one simple app. Everyone is encouraged to check out my beta version at http://EzPicMailer.com....
0
998
thread by: Alberto Vera | last post Jul 18 '05 by: Alberto Vera
Hello: Do you have any example about how access to a database using ODBC or native driver? Regards
2
1,644
thread by: Anthony_Barker | last post Jul 18 '05 by: David Boddie
Is it possible to import modules/files that have something other than the .py extension?
0
954
thread by: Bill | last post Jul 18 '05 by: Bill
This is a test
3
1,531
thread by: Øystein Johansen | last post Jul 18 '05 by: Øystein Johansen
Hi, I'm trying to build a new web site for the GNU Backgammon project, and I want a cgi program to fetch the file faq.texi from the projects cvs and then display it on web page formatted with html. I get the file with urllib2. No problem. But how can I parse it and display it? I see there is a file in the Python23/Tools/Scripts/...
4
3,060
thread by: John Hunter | last post Jul 18 '05 by: Chris Liechti
I am using distutils to build a python extension module on win32. I initialize the Extension class with a list of libraries with Extension("_gd", , include_dirs=incdirs, library_dirs=libdirs, libraries=libs, define_macros=macros)], and am using VC6++ where libs is a list . Distutils produces a link command with the required libraries as
0
1,327
thread by: Dan Nawara | last post Jul 18 '05 by: Dan Nawara
when installing gnome-python I get the following error.... *** 'pkg-config --modversion gtk+-2.0' returned 2.2.4, but GTK+ (2.2.1) *** was found! If pkg-config was correct, then it is best *** to remove the old version of GTK+. You may also be able to fix the error *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing...
0
1,055
thread by: Tobiah | last post Jul 18 '05 by: Tobiah
I gather that a "new style" class inherits from object. Is this to be considered the way to make all classes from now on? If not, when will I know to inherit from object? I noticed that it clutters up pydoc output. Thanks, Tobiah
4
7,358
thread by: Fortepianissimo | last post Jul 18 '05 by: Peter Otten
I know I can do things like s=Set(range(1,11)) s=Set(filter(lambda x:x%2==0,s)) But this seems a bit slow since filter returns a list which then must be converted back to a set. Any tips? Thanks!
0
2,192
thread by: python | last post Jul 18 '05 by: python
Hi- I'm getting a "DeprecationWarning: integer argument expected, got float" warning with mx.DateTime and I can't figure out why. Can anyone help me out? This code: import mx.DateTime
10
7,055
thread by: Ivan Voras | last post Jul 18 '05 by: Donn Cave
Are there any performance/size differences between using tuples and using lists? -- -- Every sufficiently advanced magic is indistinguishable from technology - Arthur C Anticlarke
8
2,631
thread by: Ian McMeans | last post Jul 18 '05 by: Jacek Generowicz
I was bitten by a bug today that depended on how lambda works. It took me quite a while to realize what was going on. First, I made multiple lambda functions inside a loop, each of which depended on the current loop variable. >>> a = >>> for index in range(5): a.append(lambda: index)
1
2,717
thread by: Gabby | last post Jul 18 '05 by: Jeremy Hylton
I am attempting to compile python 2.1 from the source on a RedHat 9.0 system. The problem is that a openssl header file (kssl.h) requires krb5.h which isn't in the usual place (/usr/include). Instead krb5.h gets installed at usr/kerberos/include. The openssl version is 0.9.7a-2. When I build python, the ./configure works fine but the...
11
2,922
thread by: M-a-S | last post Jul 18 '05 by: Terry Reedy
Why is there the pass statement? I think, the expression statement would be enough: class C: None while True: None
5
6,894
thread by: Xu, C.S. | last post Jul 18 '05 by: John J. Lee
How can I make 2 visits to a website session related with python's urllib? For example, I want my first visit to login ebay.com, next visit to obtain my listed items info on ebay. How can I make it? Most web servers use session management (most use cookies), but how can I tackle session communications at client side? Appreciate any helps.
1
3,866
thread by: Rob Hunter | last post Jul 18 '05 by: Jacek Generowicz
Is there an equivalent to Scheme's LET in Python? LET creates a new binding in the current environment. For example, here's some Scheme code: (let ((x 3)) (let ((f (lambda (arg) (* arg x)))) (let ((x 4)) (f 5))))
22
3,949
thread by: achrist | last post Jul 18 '05 by: Jacek Generowicz
The yield statement looks to be a big step toward some kind of lightweight concurrency-oriented programming in python. Is there any similarly nice way to do the opposite of yield, just sit around (perhaps in the middle of a loop) and wait until some other routine (unknown to the waiting module) hurls a value in? If this is not implemented...
1
1,635
thread by: ads | last post Jul 18 '05 by: David M. Cook
I use PYGTK 2.0.0 for python 2.3 and GTK Runtime 2.2.4 under windows98 --------------- Replied message -------------- The Bat! mailer ver 1.53d ---------------------------------------------- Date : Wednesday, September 17, 2003 From : David M. Cook <davecook@nowhere.net> To : python-list@python.org <python-list@python.org>...
0
1,442
thread by: Niall Dalton | last post Jul 18 '05 by: Niall Dalton
Hello, Has anyone already wrapped libevent for use in Python? Regards, niall

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.