ANN: pyparsing-1.3.3 released

2005-09-13 Thread Paul McGuire
Pyparsing 1.3.3 contains mostly bugfixes and minor enhancements over previous releases, including some improvement in Unicode support. Here are the change notes: Version 1.3.3 - September 12, 2005 -- - Improved support for Unicode strings that would be returned

ANN: MayaVi-1.5 released

2005-09-13 Thread prabhu_r
Hi, This is to announce the availability of the MayaVi Data Visualizer version 1.5. MayaVi is a free, easy to use, scientific data visualizer. It is written in Python, uses the Visualization Toolkit (VTK) for the graphics and provides a GUI written using Tkinter. MayaVi is distributed under a

BayPIGgies: DATE CHANGE September 15, 7:30pm (Google)

2005-09-13 Thread Aahz
The next meeting of BayPIGgies will be Thurs, September 15 at 7:30pm at Google, Bldg 40, room Temp Tech Talk. You need to go to the lobby of Bldg 43 first to get a badge. Ben Bangert will do SQLObject FormEncode, A Practical Introduction - Using SQLObject to integrity check legacy databases -

Re: Premature wakeup of time.sleep()

2005-09-13 Thread Nick Craig-Wood
Erich Schreiber [EMAIL PROTECTED] wrote: In the Python Library Reference the explanation of the time.sleep() function reads amongst others: The actual suspension time may be less than that requested because any caught signal will terminate the sleep() following execution of that

Re: How to protect Python source from modification

2005-09-13 Thread Robert Kern
Frank Millman wrote: Steven D'Aprano wrote: On Mon, 12 Sep 2005 08:33:10 -0700, Frank Millman wrote: My problem is that, if someone has access to the network and to a Python interpreter, they can get hold of a copy of my program and use it to knock up their own client program that makes a

Re: How to protect Python source from modification

2005-09-13 Thread Bryan Olson
Steve M wrote: [...] 1. Based on your description, don't trust the client. Therefore, security, whatever that amounts to, basically has to happen on the server. That's the right answer. Trying to enforce security within your software running the client machine does not work. Forget the

Re: which is more 'pythonic' / 'better' ?

2005-09-13 Thread gabor
Terry Reedy wrote: Will McGugan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You may be right. I always use plural nouns for collections. ditto To me 'line' would suggest there was just one of them, so I assumed it was string. I did too. i'm sorry ;) it was a list

Re: OCR librarys

2005-09-13 Thread Josef Meile
Hi Timothy i'm looking for ocr librarys with reasonably free licensing and the ablity to use python with them. c library's that i can call from python are acceptable. This thread may give you an start: http://groups.google.ch/group/comp.lang.python/browse_frm/thread/362ac64a3c3aece2/ It

Get Mac OSX Version

2005-09-13 Thread rbt
Is there a similar function to sys.getwindowsversion() for Macs? Many thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Fuzzyman
Mark Dufour wrote: In general it's considered quite pythonic to catch exceptions :-) It's a particularly useful way of implementing duck typing for example. I'm not sure if I've got *any* code that doesn't use exceptions somewhere Hehe. Okay. It will probably always be the case that you

Re: read stdout/stderr without blocking

2005-09-13 Thread Jacek Popławski
Grant Edwards wrote: On 2005-09-12, Jacek Pop?awski [EMAIL PROTECTED] wrote: ready = select.select(tocheck, [], [], 0.25) ##continues after 0.25s for file in ready[0]: try: text = os.read(file, 1024) How do you know here, that you should read 1024

Re: read stdout/stderr without blocking

2005-09-13 Thread Jacek Popławski
Only solution which works for now is to redirect stderr to stdout, and read stdout on thread. Code without thread or with read() or read(n) (when n1) can block. Code with select() and read(1) works, but it is very slow. -- http://mail.python.org/mailman/listinfo/python-list

Re: Get Mac OSX Version

2005-09-13 Thread Robert Kern
rbt wrote: Is there a similar function to sys.getwindowsversion() for Macs? platform.mac_ver() (And while we're at it: platform.win32_ver() might be prefered to sys.getwindowsversion()) -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of

Re: Simplifying imports?

2005-09-13 Thread Reinhold Birkenfeld
Terry Hancock wrote: On Monday 12 September 2005 10:09 pm, [EMAIL PROTECTED] wrote: I like to keep my classes each in a separate file with the same name of the class. The problem with that is that I end up with multiple imports in the beginning of each file, like this: from foo.Bar import

Re: improvements for the logging package

2005-09-13 Thread Thomas Heller
Vinay Sajip [EMAIL PROTECTED] writes: OK, it's not right at the top of the docs, but the example at http://docs.python.org/lib/minimal-example.html has been there for a while, and if you think it can be made clearer, please suggest how. Maybe I'm missing something, but the code from the

Re: Simplifying imports?

2005-09-13 Thread bruno modulix
[EMAIL PROTECTED] wrote: I like to keep my classes each in a separate file with the same name of the class. Let me guess: you have a C++ or Java background ?-) -- bruno desthuilliers python -c print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])

Re: PyGTK or wXPython?

2005-09-13 Thread Alessandro Bottoni
Rod W wrote: I'm just starting out on Python but my primary goal is to provide applications with some user interface (GUI). Can someone point me to a good comparison of whether I should use wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)? I'd prefer open source (not

Re: improvements for the logging package

2005-09-13 Thread Peter Otten
Thomas Heller wrote: OK, it's not right at the top of the docs, but the example at http://docs.python.org/lib/minimal-example.html has been there for a while, and if you think it can be made clearer, please suggest how. Maybe I'm missing something, but the code from the example doesn't

Re: How to protect Python source from modification

2005-09-13 Thread Frank Millman
Dennis Lee Bieber wrote: On 12 Sep 2005 08:33:10 -0700, Frank Millman [EMAIL PROTECTED] declaimed the following in comp.lang.python: My problem is that, if someone has access to the network and to a Python interpreter, they can get hold of a copy of my program and use it to knock up

TKinter, Entry objects and dynamic naming

2005-09-13 Thread Ian Vincent
I am hoping someone may be able to help. I am using Python and TKinter to create a GUI program that will eventually create an XML file for a project I am working on. Now, the XML file contents changes depending on the type of file it represents - so I am dynamically creating the TK Entry

Re: How to protect Python source from modification

2005-09-13 Thread Frank Millman
Bugs wrote: As a side question Frank, how was your experiences using wxPython for your GUI? Any regrets choosing wxPyton over another toolkit? Was it very buggy? How was it to work with in general? Any other real-world wxPython feedback you have is appreciated. Frank Millman wrote: I am

Re: How to protect Python source from modification

2005-09-13 Thread Frank Millman
Steve M wrote: This is a heck of a can of worms. I've been thinking about these sorts of things for awhile now. I can't write out a broad, well-structured advice at the moment, but here are some things that come to mind. [snip lots of interesting stuff] Thanks for the reply, Steve. My

Re: Using Python with COM to communicate with proprietary Windows software

2005-09-13 Thread Thomas Heller
Andrew MacIntyre [EMAIL PROTECTED] writes: On Fri, 09 Sep 2005 08:36:00 +0200, Thomas Heller [EMAIL PROTECTED] wrote: {...} (I have released and announced this 3 weeks ago, but haven't got a single feedback. So it seems the need to access custom interfaces is very low.) I have downloaded

Re: Using Python with COM to communicate with proprietary Windows software

2005-09-13 Thread Thomas Heller
Joakim Persson [EMAIL PROTECTED] writes: On Fri, 09 Sep 2005 08:36:00 +0200, Thomas Heller [EMAIL PROTECTED] wrote: Sounds like a perfect job for comtypes, which is a COM library implemented in pure Python, based on ctypes. comtypes should make it easy to access custom (non-dispatch derived)

Checked tree in wxpython (windows)

2005-09-13 Thread geire
I'm trying to make a checked tree based on TreeCtrl. I've subclassed the control such that checkmarks appear in the left hand side of the treeitems. So far so good. The challenge appears when I programmaly want to check the tree items since I don't know the hitem id which I should send an update

Re: py2app without a mac?

2005-09-13 Thread Tony Meyer
I don't want to require the users to have python installed so I don't think distutils would work here. Recent versions of OS X include Python - there's a pretty good chance that the users have Python already, so you could possibly use distutils after all. =Tony.Meyer --

Re: Need help with C extension module

2005-09-13 Thread Ken Seehart
chris wrote: This is my first attempt at undertaking a C extension module. I want to wrap an existing C library so I can call the functions from Python. There are only two functions I'm interested in calling. I did mess with Pyrex a bit and Swig, to no avail, so I turned to doing it by

Python for ARM7?

2005-09-13 Thread Ken Seehart
Hello. Where might I find python binaries for ARM7 (Linux 2.4)? I don't have an ARM7 compiler, and I probably don't have enough disk space (about 3MB of flash available) for the complete build anyway. My plan is to just copy the files I need. This approach seems to work on Windows XP, where I

Re: improvements for the logging package

2005-09-13 Thread Thomas Heller
Peter Otten [EMAIL PROTECTED] writes: Thomas Heller wrote: OK, it's not right at the top of the docs, but the example at http://docs.python.org/lib/minimal-example.html has been there for a while, and if you think it can be made clearer, please suggest how. Maybe I'm missing something,

Using Shed Skin under Windows or OSX

2005-09-13 Thread Mark Dufour
Hello all, My apologies to everyone who has tried Shed Skin under Windows or OSX, and could not get it to run. I have to stress that it really is experimental software, and certainly not ready for production use at this point. However, that is not an excuse for a vague and/or too difficult

Re: TKinter, Entry objects and dynamic naming

2005-09-13 Thread Eric Brunel
On 13 Sep 2005 08:51:47 +0100, Ian Vincent [EMAIL PROTECTED] wrote: I am hoping someone may be able to help. I am using Python and TKinter to create a GUI program that will eventually create an XML file for a project I am working on. Now, the XML file contents changes depending on the type

First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Mark Dufour
Hehe. Okay. It will probably always be the case that you have to lose some Python features if you want the code to run really fast. I suppose PyPy's restricted Python subset doesn't support duck typing either. Luckily not all code is performance critical, or you could just try and optimize

Re: PyGTK or wXPython?

2005-09-13 Thread Wolfgang Keller
(I do not use/program/own any McOS system, so I cannot tell you anything about the Apple Platform). WxPython _can_ give you a native Mac look and feel, if you are willing to take into account certain issues (such as e.g. menu bars not tied to windows, no MDI, no multi-pane etc.). It is afaik

Re: TKinter, Entry objects and dynamic naming

2005-09-13 Thread Ian Vincent
Ian Vincent [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: I have looked at using a dictionary but I cannot get my head around how to do that either. I have tried this now but the Entry field just does not seem to work: def add_variable(self, root, varname): Label(root,

Re: Python for ARM7?

2005-09-13 Thread Sybren Stuvel
Ken Seehart enlightened us with: Hello. Where might I find python binaries for ARM7 (Linux 2.4)? Check http://www.vanille.de/projects/python.spy If I absolutely have to build my own python, I would probably use a cygwin (or maybe linux) cross-compiler for ARM7, but that seems like a

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Brian Quinlan
Mark Dufour wrote: You're right, I don't feel safe about that. It's a bad example. I just prefer error codes, because the code usually becomes cleaner (at least to me). I would really like it if I could do something like this: f = file(name) if not f: print 'error opening file %s:

Re: ZPT and incompatible version None error :(

2005-09-13 Thread Jaroslaw Zabiello
Dnia Mon, 12 Sep 2005 16:51:48 +0200, Jaroslaw Zabiello napisał(a): Another ZPT file try to fill one slot: div metal:use-macro=context/base div metal:fill-slot=goraSearch|Read|Compare|History/div /div When I try to open it, I get the error mentioned above. Any idea? Solution was

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Mark Dufour
You forgot to check for an error when: o when you wrote f.error [attribute error might not exist e.g. f is None] o you called str(f.error) [might contain unicode characters that can't be converted to a string using the default

Re: Checked tree in wxpython (windows)

2005-09-13 Thread Franz Steinhaeusler
On 13 Sep 2005 01:16:52 -0700, geire [EMAIL PROTECTED] wrote: I'm trying to make a checked tree based on TreeCtrl. [...] Not directly an answer, but: there exists already such a CheckTreeCtrl. I have uploaded it at: http://mitglied.lycos.de/drpython/CheckTreeCtrl.tar HTH I've subclassed the

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Robert Kern
Mark Dufour wrote: [Brian Quinlan wrote:] You forgot to check for an error when: o when you wrote f.error [attribute error might not exist e.g. f is None] o you called str(f.error) [might contain unicode characters that can't be converted to

Re: ZPT and incompatible version None error :(

2005-09-13 Thread bruno modulix
Jaroslaw Zabiello wrote: Dnia Mon, 12 Sep 2005 16:51:48 +0200, Jaroslaw Zabiello napisał(a): Another ZPT file try to fill one slot: div metal:use-macro=context/base div metal:fill-slot=goraSearch|Read|Compare|History/div /div When I try to open it, I get the error mentioned above. Any

Re: improvements for the logging package

2005-09-13 Thread skip
Vinay Well, it seems a little too late now, for unittest, threading, logging Vinay and probably a few more. Correct, as I indicated. I realize I'm playing the devil's advocate here Still, a dual naming scheme with the non-PEP-8 names deprecated should be possible.

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-13 Thread Steve Holden
Mark Dufour wrote: You forgot to check for an error when: o when you wrote f.error [attribute error might not exist e.g. f is None] o you called str(f.error) [might contain unicode characters that can't be converted to a string using the

Re: popen in thread on QNX

2005-09-13 Thread Jacek Popławski
Laszlo, I can't reply your mails, your address doesn't work, please try jacekpoplawski-at-gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Zope, ZPT and slots

2005-09-13 Thread Jaroslaw Zabiello
I would like to lauch macro from another zpt file. It is easy, of course, but the problem is I would like the macro could has access to title_or_id attribute of its caller. I read API, tried template/id, context/id and container/id but without results. span tal:content=template/id/ displays only

Re: read stdout/stderr without blocking

2005-09-13 Thread Peter Hansen
Jacek Popławski wrote: Grant Edwards wrote: On 2005-09-12, Jacek Pop?awski [EMAIL PROTECTED] wrote: ready = select.select(tocheck, [], [], 0.25) ##continues after 0.25s for file in ready[0]: try: text = os.read(file, 1024) How do you know here,

Re: Python for ARM7?

2005-09-13 Thread Ken Seehart
Sybren Stuvel wrote: Ken Seehart enlightened us with: Hello. Where might I find python binaries for ARM7 (Linux 2.4)? Check http://www.vanille.de/projects/python.spy If I absolutely have to build my own python, I would probably use a cygwin (or maybe linux) cross-compiler for ARM7,

using filedescriptors in SIGINT signal handler

2005-09-13 Thread Bram Stolk
Hello, I catch SIGINT signals with a handler. In the handler, I use fd's to write some data to a child process. Is this valid? Because the data never arrives, and I wonder what I'm doing wrong. Can filedescriptors still be used when you're in the signal handling of SIGINT? Thanks, Bram --

Re: Checked tree in wxpython (windows)

2005-09-13 Thread geire
Fits perfectly to my needs! Thanks. :-) Geir Arne -- http://mail.python.org/mailman/listinfo/python-list

ANN: pyparsing-1.3.3 released

2005-09-13 Thread Paul McGuire
Pyparsing 1.3.3 contains mostly bugfixes and minor enhancements over previous releases, including some improvement in Unicode support. Here are the change notes: Version 1.3.3 - September 12, 2005 -- - Improved support for Unicode strings that would be returned

Re: using filedescriptors in SIGINT signal handler

2005-09-13 Thread jepler
If you're talking about a Python function registered as a handler by signal.signal, then there should not be any restrictions on what you do in that function. Here's a small program I wrote: # import os, signal, time def

round() wrong in Python 2.4?

2005-09-13 Thread Nils Grimsmo
Why did round() change in Python 2.4? $ python2.3 Python 2.3.5 (#2, Jun 19 2005, 13:28:00) [GCC 3.3.6 (Debian 1:3.3.6-6)] on linux2 round(0.0225, 3) 0.023 %.3f % round(0.0225, 3) '0.023' $ python2.4 Python 2.4.1 (#2, Jul 12 2005, 09:22:25) [GCC 4.0.1 (Debian 4.0.1-1)] on linux2 round(0.0225,

Re: round() wrong in Python 2.4?

2005-09-13 Thread Jeremy Sanders
Nils Grimsmo wrote: Why did round() change in Python 2.4? It the usual floating point representation problem. 0.0225 cannot be represented exactly: xpc20:~ python Python 2.3.4 (#1, Mar 14 2005, 16:47:22) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2 Type help, copyright, credits or

Re: Python for ARM7?

2005-09-13 Thread Sybren Stuvel
Ken Seehart enlightened us with: 1. How do I know whether to use sharprom or modern? If it works, use it. 2. What do I do with ipk files? I surfed around and found that in one example, the command is ipkg install foo.ipk, but ipkg doesn't seem to exist on my hardware. ipkg doesn't have

Re: using filedescriptors in SIGINT signal handler

2005-09-13 Thread Bram Stolk
[EMAIL PROTECTED] wrote: If you're talking about a Python function registered as a handler by signal.signal, then there should not be any restrictions on what you do in that function. Here's a small program I wrote: #

Re: PyGTK or wXPython?

2005-09-13 Thread TPJ
Beside this, wxPython (and wxWidgets) is often told to be more complete, better documented and better supported than GTK/PyGTK. Is wxPython often told to be more documented? By who? Several months ago I wanted to choose a nice GUI for Python (Tkinter was out of question). I choosed PyGTK for

Re: Python for ARM7?

2005-09-13 Thread garabik-news-2005-05
Ken Seehart [EMAIL PROTECTED] wrote: 2. What do I do with ipk files? I surfed around and found that in one example, the command is ipkg install foo.ipk, but ipkg doesn't seem to exist on my hardware. ipk files are basically in two flavours, one of them is a plain tar.gz file, use tar xvzj

Re: read stdout/stderr without blocking

2005-09-13 Thread Grant Edwards
On 2005-09-13, Jacek Pop³awski [EMAIL PROTECTED] wrote: ready = select.select(tocheck, [], [], 0.25) ##continues after 0.25s for file in ready[0]: try: text = os.read(file, 1024) How do you know here, that you should read 1024 characters? What will

python/SSL/Certificate.

2005-09-13 Thread Vanessa PARISSE
In my website, the user connect in HTTPS whith a client certificate. I would like to get the email in the certificate. I'm trying to get the client certificate presented to the server. -- http://mail.python.org/mailman/listinfo/python-list

Re: read stdout/stderr without blocking

2005-09-13 Thread Jacek Popławski
Grant Edwards wrote: You're right. I must have been remembering the behavior of a network socket. Apparently, you're supposed to read a single byte and then call select() again. That seems pretty lame. I created another thread with single read(), it works, as long as I have only one PIPE

Re: How to upgrade to 2.4.1 on Mac OS X tiger

2005-09-13 Thread dario
Hi Dennis, unfortunately I can only use SER class and not 'serial' class. This because my emebedded phyton version don't show any import possibility to this class. It run on the Trizium modem. Serial I attached above, was coming from the 'simulator' code installed on my PC. How I can simulate your

Re: Redundant code in multiple methods

2005-09-13 Thread Rob Conner
Genius! Thanks guys that was exactly the help I was looking for. I'll be implementing this later today. I don't forsee any problems, so if I don't post anything else, thank you so much for the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: read stdout/stderr without blocking

2005-09-13 Thread Grant Edwards
On 2005-09-13, Jacek Pop?awski [EMAIL PROTECTED] wrote: Grant Edwards wrote: You're right. I must have been remembering the behavior of a network socket. Apparently, you're supposed to read a single byte and then call select() again. That seems pretty lame. I created another thread with

appended crontab entries with py script

2005-09-13 Thread rbt
How can I safely append a crontab entry to a crontab file progammatically with Python? I need to handle crontabs that currently have entries and crontabs that are empty. Also, I'd like this to work across Linux and BSD systems. Any pointers? --

Re: round() wrong in Python 2.4?

2005-09-13 Thread Robert Kern
Jeremy Sanders wrote: Nils Grimsmo wrote: Why did round() change in Python 2.4? It the usual floating point representation problem. 0.0225 cannot be represented exactly: That's not what he's asking about. He's asking why his Python 2.3 rounds 0.0225 *up* to 0.023 while his Python 2.4

help in simplification of code [string manipulation]

2005-09-13 Thread John
How could I simplify the code to get libs out of LDFLAGS or vice versa automatically in the following python/scons code? if sys.platform[:5] == 'linux': env.Append (CPPFLAGS = '-D__LINUX') env.Append (LDFLAGS = '-lglut -lGLU -lGL -lm') env.Append(CPPPATH=['include',

Re: help in simplification of code [string manipulation]

2005-09-13 Thread Kent Johnson
John wrote: How could I simplify the code to get libs out of LDFLAGS or vice versa automatically in the following python/scons code? if sys.platform[:5] == 'linux': env.Append (CPPFLAGS = '-D__LINUX') env.Append (LDFLAGS = '-lglut -lGLU -lGL -lm')

Re: PyGTK or wXPython?

2005-09-13 Thread Peter Decker
On 9/13/05, Rod W [EMAIL PROTECTED] wrote: I'm just starting out on Python but my primary goal is to provide applications with some user interface (GUI). Can someone point me to a good comparison of whether I should use wxPython (with wxGlade I assume) or PyGTK (with Glade I assume)? I'd

Re: help in simplification of code [string manipulation]

2005-09-13 Thread Christophe
John a écrit : How could I simplify the code to get libs out of LDFLAGS or vice versa automatically in the following python/scons code? if sys.platform[:5] == 'linux': env.Append (CPPFLAGS = '-D__LINUX') env.Append (LDFLAGS = '-lglut -lGLU -lGL -lm')

Re: py2app without a mac?

2005-09-13 Thread Gregory Piñero
That's an interesting idea, Tony. My program uses things like wxPython, PythonCard, etc, so would distutils know to package that stuff? Do you know what distutils commands I would use? If not, I'll look it up later today. Thanks, Greg Recent versions of OS X include Python - there's a pretty

Re: [OT] Zope, ZPT and slots

2005-09-13 Thread bruno modulix
Jaroslaw Zabiello wrote: I would like to lauch macro from another zpt file. (snip - tech answer in private) Please stop posting Zope and ZPT related questions here. There are mailing-lists dedicated to Zope. That's where you'll get the good answers. -- bruno desthuilliers ruby -e print

Re: PyGTK or wXPython?

2005-09-13 Thread Christophe
Peter Decker a écrit : On 9/13/05, Rod W [EMAIL PROTECTED] wrote: I'm just starting out on Python but my primary goal is to provide applications with some user interface (GUI). Can someone point me to a good comparison of whether I should use wxPython (with wxGlade I assume) or PyGTK (with

Re: Redundant code in multiple methods

2005-09-13 Thread bruno modulix
Rob Conner wrote: Genius! Nope. Just common Python idioms... Thanks guys that was exactly the help I was looking for. I'll be implementing this later today. I don't forsee any problems, so if I don't post anything else, thank you so much for the help. You're welcome. -- bruno

Re: round() wrong in Python 2.4?

2005-09-13 Thread Sion Arrowsmith
Nils Grimsmo [EMAIL PROTECTED] wrote: Why did round() change in Python 2.4? $ python2.3 Python 2.3.5 (#2, Jun 19 2005, 13:28:00) [GCC 3.3.6 (Debian 1:3.3.6-6)] on linux2 round(0.0225, 3) 0.023 %.3f % round(0.0225, 3) '0.023' $ python2.4 Python 2.4.1 (#2, Jul 12 2005, 09:22:25) [GCC 4.0.1

Re: PyGTK or wXPython?

2005-09-13 Thread Grant Edwards
On 2005-09-13, Peter Decker [EMAIL PROTECTED] wrote: [regarding wxGTK vs wxPython] I looked at both, and preferred wxPython's look. I hated its C-like feeling, with some very un-Pythonic code that failed to hide its C roots very well, but I used it because the results were so good. Since

Re: improvements for the logging package

2005-09-13 Thread Mike C. Fletcher
[EMAIL PROTECTED] wrote: Vinay Well, it seems a little too late now, for unittest, threading, logging Vinay and probably a few more. Correct, as I indicated. ... Vinay What would you suggest for threading, unittest etc. in terms of Vinay binding more unix_like_names and

Re: py2app without a mac?

2005-09-13 Thread Robert Kern
Gregory Piñero wrote: That's an interesting idea, Tony. My program uses things like wxPython, PythonCard, etc, so would distutils know to package that stuff? Do you know what distutils commands I would use? If not, I'll look it up later today. Sure. bdist_mpkg, which is provided with

FTP Error: Windows AS/400

2005-09-13 Thread Tim G.
I am trying to use Win Python to ftp files from an AS/400 IFS directory down to my Windows machine. I seem to get stuck when I am trying to send a command to the AS/400 to switch file systems from native to IFS and then to issue a cd to my folder. I get the error below. If anyone has had

http://www.paysatwarning.com

2005-09-13 Thread bayvision
http://www.paysatwarning.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Simplifying imports?

2005-09-13 Thread chapolim-colorado
bruno modulix wrote: Let me guess: you have a C++ or Java background ? You're right, I come from Java :). I'm still learning the Pythonic approach. Thank you guys Chapolim -- http://mail.python.org/mailman/listinfo/python-list

Sorting Unix mailboxes

2005-09-13 Thread [EMAIL PROTECTED]
I'm writing a program in python to sort the mail in standard Unix email boxes. In my prof of concept example I am coping a letter to a second mailbox if the letter was send from a particular email address. When I read the destination mailbox with cat, I can see that something is getting copied to

Re: make sure entire string was parsed

2005-09-13 Thread Steven Bethard
Paul McGuire wrote: I still don't know the BNF you are working from Just to satisfy any curiosity you might have, it's the Penn TreeBank format: http://www.cis.upenn.edu/~treebank/ (Except that the actual Penn Treebank data unfortunately differs from the format spec in a few ways.) 1. I'm

FTP Windows AS/400

2005-09-13 Thread Tim G.
I am trying to execute a win python script that connects to an AS/400; changes from the native lib to the IFS file system; then, changes to a directory in IFS; gets a file. Any help would be greatly appreciated. I cannot get the script to switch from native to IFS. I get the following error:

Re: FTP Windows AS/400

2005-09-13 Thread Brendan Bispham
Hi Tim, On Tuesday 13 September 2005 17:31, Tim G. wrote: I cannot get the script to switch from native to IFS. Yes you can... Traceback (most recent call last): File C:\Python24\Tools\scripts\ftp400.py, line 9, in ? ftp.cwd(path) It's the cwd which is having a problem here is the

Re: How to protect Python source from modification

2005-09-13 Thread Bugs
Thanks Frank, I appreciate the feedback. -- http://mail.python.org/mailman/listinfo/python-list

time.strptime intolerant on weekday string length?

2005-09-13 Thread Robert
A certain DAV server reports a time stamp as Tues, 30 Aug 2005 20:48:31 ( but not Tue, ... as usual) This produces the error below. time.strptime(Tue, 30 Aug 2005 20:48:31,%a, %d %b %Y %H:%M:%S) (2005, 8, 30, 20, 48, 31, 1, 242, -1) time.strptime(Tues, 30 Aug 2005 20:48:31,%a, %d %b %Y

Re: How to protect Python source from modification

2005-09-13 Thread Magnus Lycka
Frank Millman wrote: Hi all I am writing a multi-user accounting/business system. Good! The client program contains all the authentication and business logic. Not good. You lose...if it's *only* in the client. Of course, there is no such thing as a safe system, and you need a pragmatic

Re: Launching Python programs from Linux shell script

2005-09-13 Thread Magnus Lycka
Ernesto wrote: Thanks! How do you add Python in Linux to the path? This works out of the box in most modern Linux distributions. If you're open to suggestions, I'd suggest that you have a look at Ubuntu. It's a user friendly Linux distribution with rather close ties to the Python community.

Re: FTP Error: Windows AS/400

2005-09-13 Thread Peter A.Schott
I've used DOS FTP to hit AS/400 systems before and usually have to completely qualify the file name or ensure that I'm in the correct directory. When you use command-line FTP to get the file, do these commands mimic your commands? What version of python are you using? If you issue PWD on the

What XML lib to use?

2005-09-13 Thread Kalle Anke
I'm confused, I want to read/write XML files but I don't really understand what library to use. I've used DOM-based libraries in other languages, is PyXML the library to use? -- http://mail.python.org/mailman/listinfo/python-list

Re: Ctypes Install in Linux

2005-09-13 Thread Ernesto
THANKS !!! -- http://mail.python.org/mailman/listinfo/python-list

Re: Simplifying imports?

2005-09-13 Thread George Sakkis
Terry Hancock [EMAIL PROTECTED] wrote: On Monday 12 September 2005 10:09 pm, [EMAIL PROTECTED] wrote: I like to keep my classes each in a separate file with the same name of the class. The problem with that is that I end up with multiple imports in the beginning of each file, like this:

wxPython StyledTextCtrl and tabs?

2005-09-13 Thread Lonnie Princehouse
Does anyone know of a way to make the wxPython StyledTextCtrl expand tabs into spaces? (yes, I'm trying to use it to edit Python code :P) -- http://mail.python.org/mailman/listinfo/python-list

Re: which is more 'pythonic' / 'better' ?

2005-09-13 Thread Terry Reedy
gabor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i'm sorry ;) it was a list of strings... the code was something like: for line in open('x.y'): line = line.split('\t') a better naming would be better it seems :) Like 'fields', for a list of fields ;-? Or your question

Re: time.strptime intolerant on weekday string length?

2005-09-13 Thread Fredrik Lundh
Robert wrote: A certain DAV server reports a time stamp as Tues, 30 Aug 2005 20:48:31 ( but not Tue, ... as usual) I also don't see how to alter the pattern for strptime to be tolerante for more long weekday strings? Any ideas? why bother parsing the day name at all? (just split the

Re: Unfortunate newbie questions!

2005-09-13 Thread Chris Lasher
I would have to say that never having done any OO programming before in my life, I found _Learning_Python_ by Lutz Ascher had a great couple of chapters on it. The diagrams about inheritance and subclassing really helped a lot and they describe the purpose of using OOP quite well. I see you

Re: Simplifying imports?

2005-09-13 Thread Steven D'Aprano
On Mon, 12 Sep 2005 20:09:31 -0700, chapolim-colorado wrote: I like to keep my classes each in a separate file with the same name of the class. The problem with that is that I end up with multiple imports in the beginning of each file, like this: from foo.Bar import Bar from foo.Blah

Re: Python and file locking - NFS or MySQL?

2005-09-13 Thread Christopher DeMarco
Fredrik Lundh wrote: os.link(tempfile, lockfile) # atomic! Fredrik, thanks for replying - I monitored python-list but didn't see anything. Gotta get a proper Usenet feed... Are you sure os.link() will be atomic over NFS? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and file locking - NFS or MySQL?

2005-09-13 Thread Christopher DeMarco
Thanks for the reply; I somehow missed this entire thread in python-list. I'm going to give it a whirl, after digging a bit into the status quo of Linux' NFSv3 implementation. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simplifying imports?

2005-09-13 Thread Terry Hancock
On Tuesday 13 September 2005 12:46 pm, George Sakkis wrote: Terry Hancock [EMAIL PROTECTED] wrote: On Monday 12 September 2005 10:09 pm, [EMAIL PROTECTED] wrote: I like to keep my classes each in a separate file with the same name of the class. Apparently foo is already a package

  1   2   >