Re: Why do Pythoneers reinvent the wheel?

2005-09-09 Thread djw
Stefano Masini wrote: > I don't know what's the ultimate problem, but I think there are 3 main > reasons: > 1) poor communication inside the community (mhm... arguable) > 2) lack of a rich standard library (I heard this more than once) > 3) python is such an easy language that the "I'll do it mys

Re: Create new instance of Python class in C

2005-09-09 Thread djw
Sybren Stuvel wrote: > Hi people, > > I'm creating a program that can solve and create Sudoku puzzles. My > creation function needs to make a lot of copies of a puzzle. Until > now, I used copy.deepcopy(), but that's too slow. I want to implement > such a copying function in C and use that instead

Re: Printer List from CUPS

2005-09-08 Thread djw
Mike Tammerman wrote: > Hi, > > I want to get the printer list from CUPS. I found some ways using > > lpstat -p and > http://localhost:631/printers > > but, these ways require some parsing and I am not sure, if the parsing > works all the time. A pythonic way would be very helpful. > > Thanks,

Re: pyvm -- faster python

2005-05-09 Thread djw
Paul Rubin wrote: > Stelios Xanthakis <[EMAIL PROTECTED]> writes: > >>- The demo is an x86/linux binary only. You shouldn't trust binaries, >> run it in a chrooted environment not as root! > > > Are you going to release the source? If not, it's a lot less interesting. From the website: "..

Re: Calling a python function from C++

2005-05-09 Thread djw
[EMAIL PROTECTED] wrote: > Let's say I have a python function do some math like the following: > > def doMath(self): >self.val = self.val + 1 > > > How can I call this python function from C++? Assuming I have some sort > of Python wrapper around my C++ codes. > Elmer? http://elmer.source

Re: Comparision of GUI framworks

2005-05-02 Thread djw
Florian Lindner wrote: > Hello, > I've read the chapter in the Python documentation, but I'm interested in a a > more in-depth comparision. Especially regarding how pythonic it is and how > well it performs and looks under Windows. > I've some C++ experiences with Qt, so I'm very interested to have

Re: Which IDE is recommended?

2005-04-27 Thread djw
monkey wrote: Read through python site for programming tool, really plenty of choices :-) (For c++, I just can't breath with very very limited choices) Tried Spe, it come with wxGlade built-in very nice(is Spe still actively develop?). But seem that Boa Constructor and PyDev(the plug-in for Eclipse

Re: Regular Expressions - Python vs Perl

2005-04-21 Thread djw
Thomas Bartkus wrote: "codecraig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Well so far from what I have found, Perl is faster than Python for RegEx, although perl is harder to read. Yawn How about Python being easier to *write*? It never ceases to amaze me. It takes days, week

Re: Refactoring in Python.

2005-04-19 Thread djw
Skip Montanaro wrote: Peter> I am trying to write Master Thesis on refactoring Python code. Peter> Where should I look for information? I'm not sure, but one piece of code to check out would probably be Bicycle Repair Man, a early-stage prototype refactoring tool for Python. I don't recall

Re: Python's use in RAD

2005-04-15 Thread djw
Ross Cowie wrote: Hi, I am currenly a second year university student and was wondering if you could help me ut. As part of a project i have decided to write about python, i am not having very much luck with regards to finding infrmation on pythons use in Rapid Application Development, and was w

PyZeroConf Question

2005-03-17 Thread djw
AMK, thanks for your work on PyZeroConf! Using PyZeroConf 0.12. I'm seeing an issue with the Browser.py code. I am scanning for printers using: type = "_pdl-datastream._tcp.local." The list of printers is returned, but every call to getServiceInfo() in the Listener objectresults in a timeout and

Exception handling code (try/except/finally)

2005-03-07 Thread djw
c.l.p- I am having trouble understanding how one is supposed to correctly utilize try:...except:...finally: in real code. If I have a block of code like: def foo(): try: ... some code that can raise an exception ... finally: ... do some cleanup ...

Re: Like overloading __init__(), but how?

2005-02-23 Thread djw
This was discussed only days ago: http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/41a6c0e1e260cd72/fc1c924746532316?q=multiple+constructors+python&_done=%2Fgroups%3Fq%3Dmultiple+constructors+python%26&_doneTitle=Back+to+Search&&d#fc1c924746532316 -Don John M. Gabriele wrot

Re: PyQt documentation

2005-02-11 Thread djw
Eric Jardim wrote: Hi, Is there any site that gather all the documentation about PyQt? The docs of the Riverbank site is poor, and I have found separate tutorials on the net. I know that the Kompany have made a "Qtdoc"-like to PyQt. But it is not free doc. Does anybody know anything about any proje

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread djw
I found the discussion of unicode, in any python book I have, insufficient. Thomas +1 Don -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python good for graphics?

2004-12-16 Thread djw
Esmail Bonakdarian wrote: First of all, I *really* like Python ;-) I need some help with the graphical side of things. I would like to do some basic graphics with Python, but I am not sure what the best/most effective way for me to do what I want. Basically, I would like to be able to create some b