hachoir-regex 1.0 released

2007-06-29 Thread haypo
hachoir-regex is a Python library for regular expression (regex or regexp) manupulation. You can use a|b (or) and a+b (and) operators. Expressions are optimized during the construction: merge ranges, simplify repetitions, etc. It also contains a class for pattern matching allowing to search

bbfreeze 0.94.1

2007-06-29 Thread Ralf Schmitt
Hi all, I've just uploaded bbfreeze 0.94.1 to python's cheeseshop. bbfreeze creates standalone executables from python scripts. It's similar in functionality to py2exe or cx_Freeze. This version fixes a problem with the setup.py script and now installs the patched modulegraph. It offers the

Shed Skin 0.0.22 - Build extension modules

2007-06-29 Thread Mark Dufour
Hi all, It's been a few months since the previous release, but here goes Shed Skin 0.0.22. The main focus of this release has been to add basic support for building extension modules. To build an extension module, simply use 'ss -e .. make'. A more complete changelog: -support for generating

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Michele Simionato
On Jun 29, 6:44 am, Douglas Alan [EMAIL PROTECTED] wrote: I've written plenty of Python code that relied on destructors to deallocate resources, and the code always worked. You have been lucky: $ cat deallocating.py import logging class C(object): def __init__(self):

Re: Looking for an interpreter that does not request internet access

2007-06-29 Thread casevh
On Jun 25, 6:07 pm, James Alan Farrell [EMAIL PROTECTED] wrote: Hello, I recently installed new anti-virus software and was surprised the next time I brought up IDLE, that it was accessing the internet. I dislike software accessing the internet without telling me about it, especially because

Re: Threads Dying?

2007-06-29 Thread felix seltzer
are you using pygtk as well? how are you using your threads, (just out of curiosity into the issue) -felix On 6/28/07, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 28 Jun 2007 15:12:53 -0300, Robert Rawlins - Think Blue [EMAIL PROTECTED] escribió: I've got an application that seems to

Re: Help Needed in WxPython

2007-06-29 Thread felix seltzer
If you use pygtk, the notebook object could do that in a few lines of code but im not sure about wxPython. note that if your using *nix of some sort, gtk should work fine, but under windows some people report issues. -felix On 6/28/07, senthil arasu [EMAIL PROTECTED] wrote: Hi, Currently

RE: Vista 64 + Python2.5 + wxpython 28 issue

2007-06-29 Thread Simon Roses Femerling
Hello Martin, Thanks for your reply. There was no need for me to use 64 so I have switched back to 32 and works fine. Python is not ready for the 64 world yet ;) Sincerely, SRF -Original Message- From: Martin v. Löwis [mailto:[EMAIL PROTECTED] Sent: jueves, 28 de junio de 2007 23:25

Re: Subprocess with and without shell

2007-06-29 Thread James T. Dennis
George Sakkis [EMAIL PROTECTED] wrote: On May 15, 5:30 am, Nick Craig-Wood [EMAIL PROTECTED] wrote: George Sakkis [EMAIL PROTECTED] wrote: I'm trying to figure out why Popen captures the stderr of a specific command when it runs through the shell but not without it. IOW: cmd = [my_exe,

Re: Writing TGA image files?

2007-06-29 Thread Ben Finney
Adam Pletcher [EMAIL PROTECTED] writes: Does anyone have Python code for writing Targa (TGA) image files? Please post your question as a new message, instead of a reply to an existing thread that has nothing to do with the question you're asking. Otherwise your message will be obscured among

Python MySQL problem with input to table..!

2007-06-29 Thread hiroc13
import MySQLdb db = MySQLdb.connect (host = localhost, user = root, passwd = pass, db = base1) c = db.cursor () c.execute( INSERT INTO table1 (prvo, drugo) VALUES ('test', '1') ) c.execute(SELECT * FROM table1) res = c.fetchall () print res When I start this code I get ((15L, 'test',

Re: Python MySQL problem with input to table..!

2007-06-29 Thread Justin Ezequiel
On Jun 29, 4:26 pm, hiroc13 [EMAIL PROTECTED] wrote: import MySQLdb db = MySQLdb.connect (host = localhost, user = root, passwd = pass, db = base1) c = db.cursor () c.execute( INSERT INTO table1 (prvo, drugo) VALUES ('test', '1') ) c.execute(SELECT * FROM table1) res = c.fetchall ()

Re: Getting some element from sets.Set

2007-06-29 Thread Raymond Hettinger
$ python -m timeit -s s = set('abcdef') x = iter(s).next() 100 loops, best of 3: 0.399 usec per loop $ python -m timeit -s s = set('abcdef') x = s.pop(); s.add(x) 100 loops, best of 3: 0.339 usec per loop So it looks like it's more efficient to use s.pop() +

Re: Writing TGA image files?

2007-06-29 Thread Campbell Barton
Ben Finney wrote: Adam Pletcher [EMAIL PROTECTED] writes: Does anyone have Python code for writing Targa (TGA) image files? Please post your question as a new message, instead of a reply to an existing thread that has nothing to do with the question you're asking. Otherwise your message

Re: Collections of non-arbitrary objects ?

2007-06-29 Thread Bruno Desthuilliers
walterbyrd a écrit : Did you try to sort a tuple ? (1, aaa).sort() Traceback (most recent call last): File stdin, line 1, in ? AttributeError: 'tuple' object has no attribute 'sort' I can do this: x = (3,2,1) x = tuple(sorted(list(x))) Which, although senseless, effectively

Re: socket on cygwin python

2007-06-29 Thread bacon . chao
On Jun 26, 12:49 am, Jason Tishler [EMAIL PROTECTED] wrote: On Mon, Jun 25, 2007 at 01:53:18PM +0100, Michael Hoffman wrote: [EMAIL PROTECTED] wrote: I've installed cygwin with latest python 2.5.1, but it seems that the socket lib file do NOT support IPv6(cygwin\lib\python2.5\lib-dynload

if - Jython - Windows

2007-06-29 Thread wannaknow
Hi all, I am using an open source testing framework called Marathon that uses Jython and i am trying to create a test that will: - click a menu item - select Login from the list - a new window will popup - insert username and password - click OK -*-*- at this point if the login was successful

Re: Python MySQL problem with input to table..!

2007-06-29 Thread hiroc13
Thanks It is working! -- http://mail.python.org/mailman/listinfo/python-list

XML Parsing Help,

2007-06-29 Thread Robert Rawlins - Think Blue
Hello Chaps, I'm looking for some help with XML parsing, I've been playing around with this over the past few days and the only solution I can come up with seems to be a little slow and also leaves what I think is a memory leak in my application, which causes all kinds of problems. I have

Hooking __import__ when embedding the interpreter

2007-06-29 Thread Stefan Bellon
Hi all, I am embedding the Python interpreter using the C API and extending it using modules generated by SWIG. In order to guarantee consistency about importing those modules, I would like to hook into the Python's import statement and __import__ function and do some checks there. I have

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-06-29 Thread Mark Dufour
Hi all, I have just released version 0.0.22 of Shed Skin, an experimental Python-to-C++ compiler. Among other things, it has the exciting new feature of being able to generate (simple, for now) extension modules, so it's much easier to compile parts of a program and use them (by just importing

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Hrvoje Niksic
Douglas Alan [EMAIL PROTECTED] writes: I think you overstate your case. Lispers understand iteration interfaces perfectly well, but tend to prefer mapping fuctions to iteration because mapping functions are both easier to code (they are basically equivalent to coding generators) and

Re: Looking for an interpreter that does not request internet access

2007-06-29 Thread Hrvoje Niksic
James Alan Farrell [EMAIL PROTECTED] writes: Hello, I recently installed new anti-virus software and was surprised the next time I brought up IDLE, that it was accessing the internet. I dislike software accessing the internet without telling me about it, especially because of my slow dial

RE: Writing TGA image files?

2007-06-29 Thread Adam Pletcher
Sorry, I was replying via the email list and didn't realize it would thread that way. - Adam From: [EMAIL PROTECTED] on behalf of Ben Finney Sent: Fri 6/29/2007 2:55 AM To: python-list@python.org Subject: Re: Writing TGA image files? Adam Pletcher [EMAIL

Re: equality comparison by default (was Re: Too many 'self' in python.That's a big flaw in this language.)

2007-06-29 Thread A.T.Hofkamp
On 2007-06-29, Steve Holden [EMAIL PROTECTED] wrote: Just the same there are sound reasons for it, so I'd prefer to see you using counterintuitive or difficult to fathom rather than broken and wrong. You are quite correct, in the heat of typing an answer, my wording was too strong, I am

It is not possible to create a recursive function over a pyGTK treeStore

2007-06-29 Thread sebastien . abeille
Hello, I would like to create a minimalist file browser using pyGTK. Having read lot of tutorials, it seems to me that that in my case, the best solution is to have a gtk.TreeStore containing all the files and folders so that it would map the file system hierarchy. I wrote a recursive function

Re: equality comparison by default (was Re: Too many 'self' in python.That's a big flaw in this language.)

2007-06-29 Thread A.T.Hofkamp
On 2007-06-28, Roy Smith [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], A.T.Hofkamp [EMAIL PROTECTED] wrote: In object oriented programming, objects are representations of values, and the system shouldn't care about how many instances there are of some value, just like numbers in

Re: equality comparison by default (was Re: Too many 'self' in python.That's a big flaw in this language.)

2007-06-29 Thread Steve Holden
A.T.Hofkamp wrote: On 2007-06-29, Steve Holden [EMAIL PROTECTED] wrote: Just the same there are sound reasons for it, so I'd prefer to see you using counterintuitive or difficult to fathom rather than broken and wrong. You are quite correct, in the heat of typing an answer, my wording was

Re: Help Needed in WxPython

2007-06-29 Thread Steve Holden
senthil arasu wrote: Hi, Currently Iam integrating GUI Framework in Python. As per design design,I need to use tab buttons to launch different HTML pages in same frame(without launching seperate window ). I have already tried with webbrowser class WxPython GUI kit. Iam unable to get the

Re: It is not possible to create a recursive function over a pyGTK treeStore

2007-06-29 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Hello, I would like to create a minimalist file browser using pyGTK. Having read lot of tutorials, it seems to me that that in my case, the best solution is to have a gtk.TreeStore containing all the files and folders so that it would map the file system

What happens to a thread with an unhandled exception?

2007-06-29 Thread Frank Millman
Hi all I am doing something which works, but I have a gut feel that it cannot be relied upon. Can someone confirm this one way or the other. I have a multi-threaded server, which responds to client logins and sets up a thread for each active session. A thread can stay active for a long time. I

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Chris Mellon
On 6/28/07, Douglas Alan [EMAIL PROTECTED] wrote: Chris Mellon [EMAIL PROTECTED] writes: Obviously. But theres nothing about the with statement that's different than using smart pointers in this regard. Sure there is -- smart pointers handle many sorts of situations, while with only

Re: equality comparison by default

2007-06-29 Thread A.T.Hofkamp
On 2007-06-29, Gabriel Genellina [EMAIL PROTECTED] wrote: En Thu, 28 Jun 2007 11:38:56 -0300, A.T.Hofkamp [EMAIL PROTECTED] escribió: The point I intended to make was that having a default __hash__ method on objects give weird results that not everybody may be aware of. In addition, to get

Re: Help Needed in WxPython

2007-06-29 Thread kyosohma
On Jun 29, 7:50 am, Steve Holden [EMAIL PROTECTED] wrote: senthil arasu wrote: Hi, Currently Iam integrating GUI Framework in Python. As per design design,I need to use tab buttons to launch different HTML pages in same frame(without launching seperate window ). I have already tried

Re: It is not possible to create a recursive function over a pyGTK treeStore

2007-06-29 Thread sebastien . abeille
A little update : I finally found an example of a file browser using gtkTreestore that parse the file system recursively : http://www.koders.com/python/fidDB37D29C69F526E5EEA9A7D8B4FC5B87E92A78CC.aspx?s=filter_out_extensions#L113 I still need to check how it works, but I am sure that it will

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-29 Thread Joel J. Adamson
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: I find Windows and its tools as frustrating as you seem to find Unix, but I strongly suspect that being shown the ropes by someone who understands and likes the system would help a lot. shrug I feel the same way about Windows being frustrating,

How to close a program I execute with subprocess.Popen?

2007-06-29 Thread revenant81
I'm writing a program which has to execute a command, get its output and show it on a treeview. This command runs for a very long time. I want to end the execution of the command when the user closes my application. Right now I'm using an object my_child of type subprocess.Popen to execute the

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Michele Simionato [EMAIL PROTECTED] writes: I've written plenty of Python code that relied on destructors to deallocate resources, and the code always worked. You have been lucky: No I haven't been lucky -- I just know what I'm doing. $ cat deallocating.py import logging class

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Dennis Lee Bieber [EMAIL PROTECTED] writes: LISP and FORTH are cousins... Not really. Their only real similarity (other than the similarities shared by most programming languages) is that they both use a form of Polish notation. |oug --

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Hrvoje Niksic [EMAIL PROTECTED] writes: Douglas Alan [EMAIL PROTECTED] writes: I think you overstate your case. Lispers understand iteration interfaces perfectly well, but tend to prefer mapping fuctions to iteration because mapping functions are both easier to code (they are basically

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Chris Mellon
On 6/29/07, Douglas Alan [EMAIL PROTECTED] wrote: Chris Mellon [EMAIL PROTECTED] writes: You're arguing against explicit resource management with the argument that you don't need to manage resources. Can you not see how ridiculously circular this is? No. It is insane to leave files

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Chris Mellon [EMAIL PROTECTED] writes: You're arguing against explicit resource management with the argument that you don't need to manage resources. Can you not see how ridiculously circular this is? No. It is insane to leave files unclosed in Java (unless you know for sure that your

Re: Rappresenting infinite

2007-06-29 Thread Robert Kern
[EMAIL PROTECTED] wrote: On Thu, 28 Jun 2007 23:20:30 -0500 Robert Kern [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Does it differ from the built-in inf? What built-in inf? $ python Python 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on

Re: What happens to a thread with an unhandled exception?

2007-06-29 Thread Frank Millman
On Jun 29, 2:51 pm, Frank Millman [EMAIL PROTECTED] wrote: Hi all I am doing something which works, but I have a gut feel that it cannot be relied upon. Can someone confirm this one way or the other. [...] My worry is that the thread with the unhandled exception may eventually get

Re: Set builtin lookups

2007-06-29 Thread Alex Martelli
Steve Holden [EMAIL PROTECTED] wrote: Marc 'BlackJack' Rintsch wrote: In [EMAIL PROTECTED], Evan Klitzke wrote: I have a question about the internal representation of sets in Python. If I write some code like if x in some_list: do_something() the lookup for the in

Application Crashing

2007-06-29 Thread Robert Rawlins - Think Blue
Hello Guys, I find my application is freezing/crashing every now and then and it becoming a bit of a frustration, so this morning I sat down to try and locate the problem. After doing some debugging I think I've found the line of code that causes my problem. Print 'Read Results' New =

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Jean-Paul Calderone
On Fri, 29 Jun 2007 09:56:14 -0400, Douglas Alan [EMAIL PROTECTED] wrote: Chris Mellon [EMAIL PROTECTED] writes: You're arguing against explicit resource management with the argument that you don't need to manage resources. Can you not see how ridiculously circular this is? No. It is insane

Re: How to close a program I execute with subprocess.Popen?

2007-06-29 Thread A.T.Hofkamp
On 2007-06-29, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I want to end the execution of the command when the user closes my application. Right now I'm using an object my_child of type subprocess.Popen to execute the command, inside a thread with an infinite loop where we constantly ask for

Voluntary Abstract Base Classes

2007-06-29 Thread Daniel Nogradi
Hi list, Well, the short question is: what are they? I've read Guido's python 3000 status report on http://www.artima.com/weblogs/viewpost.jsp?thread=208549 where he mentions ABC's but don't quite understand what the whole story is about. Anyone has good use cases? Daniel --

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-06-29 Thread felix seltzer
does this project include support for pygtk type GUI's? On 6/29/07, Mark Dufour [EMAIL PROTECTED] wrote: Hi all, I have just released version 0.0.22 of Shed Skin, an experimental Python-to-C++ compiler. Among other things, it has the exciting new feature of being able to generate (simple, for

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-29 Thread Paul Rubin
Bruno Desthuilliers [EMAIL PROTECTED] writes: Nope, he just asserted something wrong. Static typing is for compiler optimization. Type checking is at most a side effect, and in some languages (at least C, C++ and Java) can be totally defeated (usually using typecasting). Definitions of type

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Chris Mellon [EMAIL PROTECTED] writes: On the other hand, in Python, you can be 100% sure that your files will be closed in a timely manner without explicitly closing them, as long as you are safe in making certain assumptions about how your code will be used. Such assumptions are called

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Hrvoje Niksic
Douglas Alan [EMAIL PROTECTED] writes: The downside is that they are not quite as flexible as iterators (which can be hard to code) and generators, which are slow. Why do you think generators are any slower than hand-coded iterators? Generators aren't slower than hand-coded iterators in

Re: Looking for an interpreter that does not request internet access

2007-06-29 Thread Thorsten Kampe
* Hrvoje Niksic (Fri, 29 Jun 2007 13:07:01 +0200) James Alan Farrell [EMAIL PROTECTED] writes: Hello, I recently installed new anti-virus software and was surprised the next time I brought up IDLE, that it was accessing the internet. I dislike software accessing the internet without

Re: 16bit hash

2007-06-29 Thread Paul Rubin
Robin Becker [EMAIL PROTECTED] writes: whether it's any better than using the lowest bits I have no real idea. I suppose (sha being flavour of the month) I should really use I think if you have more than a few fonts you really have to assign the id's uniquely instead of using hashes, to avoid

Re: Looking for an interpreter that does not request internet access

2007-06-29 Thread Thorsten Kampe
* James Alan Farrell (Tue, 26 Jun 2007 01:07:46 GMT) I recently installed new anti-virus software and was surprised the next time I brought up IDLE, that it was accessing the internet. I dislike software accessing the internet without telling me about it, especially because of my slow dial

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Jean-Paul Calderone [EMAIL PROTECTED] writes: On the other hand, in Python, you can be 100% sure that your files will be closed in a timely manner without explicitly closing them, as long as you are safe in making certain assumptions about how your code will be used. Such assumptions are called

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Steve Holden
Douglas Alan wrote: Michele Simionato [EMAIL PROTECTED] writes: I've written plenty of Python code that relied on destructors to deallocate resources, and the code always worked. You have been lucky: No I haven't been lucky -- I just know what I'm doing. $ cat deallocating.py import

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Duncan Booth
Douglas Alan [EMAIL PROTECTED] wrote: Is one of your preconditions that no one will ever handle an exception raised by your code or by their own code when it is invoked by yours? A precondition of much of my Python code is that callers won't squirrel away large numbers of tracebacks for

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Hrvoje Niksic [EMAIL PROTECTED] writes: Generators aren't slower than hand-coded iterators in *Python*, but that's because Python is a slow language. But then it should be slow for both generators and iterators. Python *is* slow for both generators and iterators. It's slow for *everything*,

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Steve Holden [EMAIL PROTECTED] writes: Python doesn't *have* any refcounting semantics. I'm not convinced that Python has *any* semantics at all outside of specific implementations. It has never been standardized to the rigor of your typical barely-readable language standards document. If

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Duncan Booth [EMAIL PROTECTED] writes: A precondition of much of my Python code is that callers won't squirrel away large numbers of tracebacks for long periods of time. I can live with that. Another precondition of much of my code is that the caller doesn't assume that it is thread-safe.

Re: Voluntary Abstract Base Classes

2007-06-29 Thread James Stroud
Daniel Nogradi wrote: Hi list, Well, the short question is: what are they? I've read Guido's python 3000 status report on http://www.artima.com/weblogs/viewpost.jsp?thread=208549 where he mentions ABC's but don't quite understand what the whole story is about. Anyone has good use cases?

Help needed in PyGTk

2007-06-29 Thread senthil arasu
Hi, I am trying to render HTML in PyGTK widget but iam not getting the expected result. I would like to know whether PyGTK supports HTML rendering feature or not. Please help me to solve this issue. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Voluntary Abstract Base Classes

2007-06-29 Thread Eduardo \EdCrypt\ O. Padoan
On 6/29/07, Daniel Nogradi [EMAIL PROTECTED] wrote: Hi list, Well, the short question is: what are they? I've read Guido's python 3000 status report on http://www.artima.com/weblogs/viewpost.jsp?thread=208549 where he mentions ABC's but don't quite understand what the whole story is about.

Pydev 1.3.6 Released

2007-06-29 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.6 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions:

Re: Voluntary Abstract Base Classes

2007-06-29 Thread Daniel Nogradi
Well, the short question is: what are they? I've read Guido's python 3000 status report on http://www.artima.com/weblogs/viewpost.jsp?thread=208549 where he mentions ABC's but don't quite understand what the whole story is about. The story is at PEP 3119:

Re: Edit Audio Using Python?

2007-06-29 Thread Ultrus
Thanks to Aaron, I was able to read and write audio data using Python's wave module. Trying to better understand the data I'm looking at, what does each element of the frame represent, and how do I convert a sample ranging from -32,768 to 32,768 back to a frame set like below? When using a 16 bit

Re: Rappresenting infinite

2007-06-29 Thread John Nagle
Robert Kern wrote: [EMAIL PROTECTED] wrote: On Thu, 28 Jun 2007 23:20:30 -0500 Robert Kern [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Does it differ from the built-in inf? What built-in inf? $ python Python 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian

appending file

2007-06-29 Thread Kuo
Hi, I'm trying to read a file (fileA) and append to another file(fileB). However, I always get ^M at the end. Does anyone know why ? Here is my code ? os.system(../syn/pin_assign.pl customer_netlist.txt) shutil.copy(../fileB, fileB) ucf = open(fileB, a) pin = open(fileA, r)

Re: Rappresenting infinite

2007-06-29 Thread Terry Reedy
John Nagle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] |If Python numerics don't define | +INF, -INF, and NaN, along with the tests for them, that's a | flaw in the language. Are you volunteering to fix the 'flaw'? CPython floating point numerics are currently defined to be

ORM layer

2007-06-29 Thread David
I am looking for an ORM for Python that fulfills a few simple needs. - ability to support a number of backends (probably mysql and sqlite   at present, csv a bonus) - ability to be used easily from console python scripts, a bonus if I   can add a simple web GUI later using some framework - decent

Re: win32event.WaitForInputIdle() returns too soon

2007-06-29 Thread Hans
Gabriel Genellina [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] En Thu, 28 Jun 2007 19:15:40 -0300, Hans [EMAIL PROTECTED] escribió: I'm sending keyboard and mouse events to a seperate windows application. I use win32event.WaitForInputIdle() before calling e.g.

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-29 Thread Bruno Desthuilliers
Paul Rubin a écrit : Bruno Desthuilliers [EMAIL PROTECTED] writes: Nope, he just asserted something wrong. Static typing is for compiler optimization. Type checking is at most a side effect, and in some languages (at least C, C++ and Java) can be totally defeated (usually using typecasting).

HTML Render Support in PyGTK

2007-06-29 Thread senthil arasu
Hi, I am trying to render HTML in PyGTK widget but iam not getting the expected result. I would like to know whether PyGTK supports HTML rendering feature or not. Please help me to solve this issue. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-29 Thread Bruno Desthuilliers
John Nagle a écrit : (snip) It looks like a compromise between the no declarations position and the make the language strongly typed position. (snip) The main advantage of strongly typed systems is that more errors are detected at compile time. (snip) s/strongly/statically/ 1/ strong

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-06-29 Thread Bruno Desthuilliers
Eduardo EdCrypt O. Padoan a écrit : On 6/22/07, John Nagle [EMAIL PROTECTED] wrote: Remember that pure CPython has no different compile time and runtiime. Oh yes ? So what's the compiler doing, and what are those .pyc files ? (hint: read the doc) --

Re: win32event.WaitForInputIdle() returns too soon

2007-06-29 Thread kyosohma
On Jun 29, 3:03 pm, Hans [EMAIL PROTECTED] wrote: Gabriel Genellina [EMAIL PROTECTED] schreef in berichtnews:[EMAIL PROTECTED] En Thu, 28 Jun 2007 19:15:40 -0300, Hans [EMAIL PROTECTED] escribió: I'm sending keyboard and mouse events to a seperate windows application. I use

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Lenard Lindstrom
Douglas Alan wrote: [I]n Python, you can be 100% sure that your files will be closed in a timely manner without explicitly closing them, as long as you are safe in making certain assumptions about how your code will be used. Such assumptions are called preconditions, which are an

Re: appending file

2007-06-29 Thread Bruno Desthuilliers
Kuo a écrit : Hi, I'm trying to read a file (fileA) and append to another file(fileB). However, I always get ^M at the end. Does anyone know why ? Here is my code ? os.system(../syn/pin_assign.pl customer_netlist.txt) shutil.copy(../fileB, fileB) ucf = open(fileB, a) pin = open(fileA,

Re: appending file

2007-06-29 Thread Thomas Jollans
On Friday 29 June 2007, Kuo wrote: Hi, I'm trying to read a file (fileA) and append to another file(fileB). However, I always get ^M at the end. Does anyone know why ? Here is my code ? I can't help you on your problem, but ucf.close; pin.close; these statements don't do anything. You'll

Re: HTML Render Support in PyGTK

2007-06-29 Thread Thomas Jollans
There was no need to re-ask so soon. On Friday 29 June 2007, senthil arasu wrote: Hi, I am trying to render HTML in PyGTK widget but iam not getting the expected ^^ What have you tried so far ? result. I would like to know whether PyGTK supports HTML rendering feature or not. I

ANNOUNCE: Exscript 0.9 (Initial Release)

2007-06-29 Thread Samuel
Introduction - Exscript is a scripting language for automating Telnet or SSH sessions. It supports a wide range of features, such as parallelization, AAA authentication methods, TACACS, and a very simple template language. Exscript itself is written in Python, and it should run on

Re: Hooking __import__ when embedding the interpreter

2007-06-29 Thread Stefan Bellon
I think I solved all my three questions for myself now ... On Fri, 29 Jun, Stefan Bellon wrote: 1) The above code seems to work ok when using the import statement, but it does not when using the dynamic __import__ function. If using it that way, I get: sys=__import__(sys) Traceback

Re: ORM layer

2007-06-29 Thread Bruno Desthuilliers
David a écrit : I am looking for an ORM for Python that fulfills a few simple needs. - ability to support a number of backends (probably mysql and sqlite at present, csv a bonus) I didn't knew csv was a relational database. - ability to be used easily from console python scripts, a bonus

Re: appending file

2007-06-29 Thread Falcolas
On Jun 29, 1:04 pm, Kuo [EMAIL PROTECTED] wrote: # FPGA CLOCK^M NET SYSCLK_A loc = N16 | TNM_NET = SYSCLK_A;^M NET SYSCLK_AN loc = M16 | TNM_NET = SYSCLK_A;^M I see those bloody ^M's anytime I have to deal with a DOS file (since it's the carrage return \r character). Is 'pin' a DOS

How do I remotely access Scheduled Tasks from Windows XP to Windows Server 2003?

2007-06-29 Thread kj7ny
How can I access and manipulate Scheduled Tasks in Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to control the windows services on multiple Windows 2003 servers. It works great. However, I also need to remotely collect the settings for

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Douglas Alan
Lenard Lindstrom [EMAIL PROTECTED] writes: Douglas Alan wrote: [I]n Python, you can be 100% sure that your files will be closed in a timely manner without explicitly closing them, as long as you are safe in making certain assumptions about how your code will be used. Such assumptions are

Re: Vista 64 + Python2.5 + wxpython 28 issue

2007-06-29 Thread Martin v. Löwis
There was no need for me to use 64 so I have switched back to 32 and works fine. Python is not ready for the 64 world yet ;) It's a matter of standpoint. 64 bit is not ready for the world, yet. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Building a Python app with Mozilla

2007-06-29 Thread Thorsten Kampe
Hi, I've already sent this to the Komodo mailing list (which seemed to me the more appropriate place) but unfortunately I got no response. I'd like to build a Python GUI app. Neither Tkinter nor Wxpython nor PyQT are actually what I want (because the lack of GUI builders and they don't really

Re: Rappresenting infinite

2007-06-29 Thread Facundo Batista
[EMAIL PROTECTED] wrote: No. You can make one that fits your requirements, though. I am struggling to oversee the implications of design choices for inf behaviour - especially if it comes to comparison with float type inf. The type in my application contains a gmpy.mpq and a float that is

overriding base class

2007-06-29 Thread alf
Hi, I want to develop a following lib: lib space user space A - B - | - user_class however A and B are abstrac enough to have following: user_super_base_class - | - A - B - | - user_class user space lib space user spaca Any idea how to do that? -- alfz1 --

Python/C API sig - New Mailing List

2007-06-29 Thread Campbell Barton
Hi, a new mailing list has been started to discuss and get help with using the Python/C api. All the other lists were either about programming with Python or developing the core of Python. If your working on a project that uses Pythons C/API you may be interested in joining this list.

Re: Help needed in PyGTk

2007-06-29 Thread felix seltzer
try the pygtk mailing list, pygtk [EMAIL PROTECTED] they will probobly be able to help you more. On 6/29/07, senthil arasu [EMAIL PROTECTED] wrote: Hi, I am trying to render HTML in PyGTK widget but iam not getting the expected result. I would like to know whether PyGTK supports HTML rendering

Re: HTML Render Support in PyGTK

2007-06-29 Thread felix seltzer
http://directory.fsf.org/webauth/htmlpreproc/gtkhtml.html might help. just like thomas though... more info on what your doing/have done would help us help you On 6/29/07, Thomas Jollans [EMAIL PROTECTED] wrote: There was no need to re-ask so soon. On Friday 29 June 2007, senthil arasu wrote:

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Lenard Lindstrom
Douglas Alan wrote: Lenard Lindstrom [EMAIL PROTECTED] writes: Douglas Alan wrote: [I]n Python, you can be 100% sure that your files will be closed in a timely manner without explicitly closing them, as long as you are safe in making certain assumptions about how your code will be used.

Re: Python's only one way to do it philosophy isn't good?

2007-06-29 Thread Paul Rubin
Douglas Alan [EMAIL PROTECTED] writes: But that's a library issue, not a language issue. The technology exists completely within Lisp to accomplish these things, and most Lisp programmers even know how to do this, as application frameworks in Lisp often do this kind. The problem is getting

Re: Vista 64 + Python2.5 + wxpython 28 issue

2007-06-29 Thread William Heymann
On Friday 29 June 2007, Martin v. Löwis wrote: There was no need for me to use 64 so I have switched back to 32 and works fine. Python is not ready for the 64 world yet ;) It's a matter of standpoint. 64 bit is not ready for the world, yet. Regards, Martin I think you mean 64bit

Re: overriding base class

2007-06-29 Thread Carl Banks
On Jun 29, 7:36 pm, alf [EMAIL PROTECTED] wrote: Hi, I want to develop a following lib: lib space user space A - B - | - user_class however A and B are abstrac enough to have following: user_super_base_class - | - A - B - | - user_class user space lib space

Re: ORM layer

2007-06-29 Thread EuGeNe Van den Bulke
David wrote: I am looking for an ORM for Python that fulfills a few simple needs. * SQLObject * SQLAlchemy (+Elixir) * DejaVu There are probably others but these are the most commonly used AFAIK. EuGeNe -- http://www.3kwa.com -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >