Elisa Media Center 0.5.33 Release

2009-03-24 Thread Olivier Tilloy
Dear Python users, The Elisa team is happy to announce the release of Elisa Media Center 0.5.33, code-named Surrounded. Elisa is a cross-platform and open-source Media Center written in Python. It uses GStreamer [1] for media playback and pigment [2] to create an appealing and intuitive user

Wing IDE 3.1.8 released

2009-03-24 Thread Wingware
Hi, Wingware has released version 3.1.8 of Wing IDE, a bug-fix release for all three product levels of Wing IDE. *Release Highlights* This release includes the following: * Fixed problems seen with Subversion 1.4+ * Properly ignore settrace exception on x64 systems * Fixed perforce submit for

ETS 3.2.0 Released

2009-03-24 Thread Dave Peterson
Hello, I'm pleased to announce that Enthought Tool Suite (ETS) version 3.2.0 has been tagged and released! Source distributions (.tar.gz) have been uploaded to PyPi, and Windows binaries will be follow shortly. A full install of ETS can be done using Setuptools via a command like:

[ANN]: circuits 1.1.1 - a Lightweight, Event driven Framework with a strong Component Architecture.

2009-03-24 Thread James Mills
Hi, I'm pleased to announce the 1.1.1 release of circuits: http://trac.softcircuit.com.au/circuits/ This is a minor bug fix release. == Links == Home Page:: http://trac.softcircuit.com.au/circuits/ Mailing list:: http://groups.google.com.au/group/circuits-users/ Download::

User athentication in Python/wxpython

2009-03-24 Thread jai_python
Hi friends, I need to do one client side application which is for uploading files to remote server with ude ftp. only authenticated users are permitted to access it, how can i pass the ftp connection in different py files? Help would be thankful --

Re: What's the difference between generating a value and returning a value?

2009-03-24 Thread alex23
On Mar 24, 3:10 pm, John Yeung gallium.arsen...@gmail.com wrote: In my opinion, it's especially poor form to use the term generate in that context when the language you are using to explain these concepts has very specific things called generators. In its defense, I'm pretty sure 'How to Think

Re: Does Python have certificate?

2009-03-24 Thread Kay Schluehr
On 24 Mrz., 05:30, Steve Holden st...@holdenweb.com wrote: No, there is no certification for Python. Maybe in the future... O'Reilly School of Technology have plans to offer a Python certification. But I have to write the courses first :) If you're done with it I'd additionally suggest the

Re: Query regarding Python sybase module

2009-03-24 Thread Kushal Kumaran
On Tue, 24 Mar 2009 09:53:02 +0530 (IST) srinivasan srinivas sri_anna...@yahoo.co.in wrote: Hi, Does Sybase Python driver module implement multiple result sets from a single command? Could anyone guide e in finding answer for this? The site http://python-sybase.sourceforge.net/sybase/

Re: how to convert from Decimal('1.23456789') to Decimal('1.234')

2009-03-24 Thread Steven D'Aprano
On Mon, 23 Mar 2009 17:19:48 -0700, Mensanator wrote: And it also gives different results to my function: my function rounds to places decimal places, yours to i digits. Very different things. Yeah, I know all about that. I work in Environmental Remediation. That's real science, where

Re: file.read() doesn't read the whole file

2009-03-24 Thread Sreejith K
On Mar 24, 7:15 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Mon, 23 Mar 2009 21:37:14 -0300, R. David Murray   rdmur...@bitdance.com escribió: Steve Holden st...@holdenweb.com wrote: Sreejith K wrote: Try and write an example that shows the problem in fifteen lines or

Re: Does Python have certificate?

2009-03-24 Thread Hendrik van Rooyen
Kay Schluehr ka..@gmx.net wrote: On 24 Mrz., 05:30, Steve Holden st...@holdenweb.com wrote: O'Reilly School of Technology have plans to offer a Python certification. But I have to write the courses first :) If you're done with it I'd additionally suggest the honory title of a VIPP:

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread CinnamonDonkey
Thanx Max - your explanation sorted it :-), and a big thank you to everyone else also! From the various posts, Python considers any directory containing the __init__.py file to be a package. The top level package is the highest directory (closest to root) with a __init__.py file. Inter-package

Re: file.read() doesn't read the whole file

2009-03-24 Thread Ant
On Mar 24, 7:59 am, Sreejith K sreejith...@gmail.com wrote: ... data is the whole file, but 'less' gives only the two lines... From this statement (that you are using less), it appears that you are redirecting sys.stdout to a file or similar - if that is the case, you may need to flush or close

Re: udp package header

2009-03-24 Thread Nick Craig-Wood
mete metebilgi...@gmail.com wrote: I got a problem. İ want to send udp package and get this package (server and clinet ). it's easy to python but i want to look the udp header how can i do ? There is pretty much nothing in a UDP packet header except from_address, to_address, from_port and

Re: file.read() doesn't read the whole file

2009-03-24 Thread Sreejith K
On Mar 24, 2:12 pm, Ant ant...@gmail.com wrote: On Mar 24, 7:59 am, Sreejith K sreejith...@gmail.com wrote: ... data is the whole file, but 'less' gives only the two lines... From this statement (that you are using less), it appears that you are redirecting sys.stdout to a file or similar

importing modules from alternate path

2009-03-24 Thread Alexandru Moșoi
I'm trying with no succes to load modules from an alternate path. When installing to default location (no --home specifed) everything works as expected. $ python setup.py install --home=~ running install running build running build_ext running install_lib running install_egg_info Removing

Re: Does Python have certificate?

2009-03-24 Thread Paddy3118
On Mar 24, 1:50 am, Johannes Bauer dfnsonfsdu...@gmx.de wrote: Sebastian Bassi schrieb: No, there is no certification for Python. Maybe in the future... I'll hand out the Johannes Bauer Python Certificate of Total Awesomeness for anyone who can write a hello world in python and hands me

user site-packages, --prefix, --home and friends

2009-03-24 Thread Carl
I am very confused by PEP-370 per-user site-packages. It is not mentioned at all in the document about installing Python modules : http://docs.python.org/3.0/install/index.html. It seems that --home or --prefix already provide per-user site- packages capability. Can someone explain what are the

Re: Does Python have certificate?

2009-03-24 Thread Johannes Bauer
Sebastian Bassi schrieb: No, there is no certification for Python. Maybe in the future... I'll hand out the Johannes Bauer Python Certificate of Total Awesomeness for anyone who can write a hello world in python and hands me $25000 in cash. This whole certified foobar programmer is complete

What's the difference between generating a value and returning a value?

2009-03-24 Thread grocery_stocker
Taken from the url http://openbookproject.net/thinkCSpy/ch05.xhtml#index15 The built-in functions we have used, such as abs, pow, and max, have produced results. Calling each of these functions generates a value, which we usually assign to a variable or use as part of an expression.

how to get the summarized text from a given URL?

2009-03-24 Thread Rama Vadakattu
Is there any python library to solve the below problem? FOr the below URL : -- http://tinyurl.com/dzcwbg Summarized text is : --- By Roy Mark With sales plummeting and its smart phones failing to woo new customers, Sony Ericsson follows its warning

Re: What's the difference between generating a value and returning a value?

2009-03-24 Thread Daniel Dalton
On Mon, Mar 23, 2009 at 03:12:19PM -0700, grocery_stocker wrote: So what's the difference between generating a value and returning a value? Well when you return, you would use the return keyword, I would imagine... I guess generating could mean many things, you can generate a value by operating

importing modules from alternate path

2009-03-24 Thread R. David Murray
=?UTF-8?Q?Alexandru__Mo=C8=99oi?= brtz...@gmail.com wrote: I'm trying with no succes to load modules from an alternate path. When installing to default location (no --home specifed) everything works as expected. $ python setup.py install --home=~ running install running build running

Re: file.read() doesn't read the whole file

2009-03-24 Thread R. David Murray
Sreejith K sreejith...@gmail.com wrote: On Mar 24, 2:12 pm, Ant ant...@gmail.com wrote: On Mar 24, 7:59 am, Sreejith K sreejith...@gmail.com wrote: ... data is the whole file, but 'less' gives only the two lines... From this statement (that you are using less), it appears that you

Re: What's the difference between generating a value and returning a value?

2009-03-24 Thread Dave Angel
Clearly, there's no difference, from the wording you quoted. He uses three words more or less interchangeably, produced, generated and returned. The distinction he's making is not between these words, but between the built-in functions, which are already returning values, and the ones that

Re: how to get the summarized text from a given URL?

2009-03-24 Thread Peter Otten
Rama Vadakattu wrote: Is there any python library to solve the below problem? FOr the below URL : -- http://tinyurl.com/dzcwbg Summarized text is : --- By Roy Mark With sales plummeting and its smart phones failing to woo new customers,

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread Maxim Khitrov
On Tue, Mar 24, 2009 at 5:05 AM, CinnamonDonkey cinnamondon...@googlemail.com wrote: Thanx Max - your explanation sorted it :-), and a big thank you to everyone else also! From the various posts, Python considers any directory containing the __init__.py file to be a package. The top level

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread R. David Murray
Top posting corrected for clarity. CinnamonDonkey cinnamondon...@googlemail.com wrote: On 23 Mar, 18:57, bearophileh...@lycos.com wrote: CinnamonDonkey: what makes something a package? If you don't know what a package is, then maybe you don't need packages. In your project is it

install pyPgSQL on Windows for python 2.5

2009-03-24 Thread someone
Hi, does anyone know how to install pyPgSQL on Windows? There is no package for Python 2.5 on Homepage: http://sourceforge.net/project/showfiles.php?group_id=16528package_id=20458release_id=423036 I've tried to install running: python setup.py install But getting errors python setup.py install

Unit testing frameworks

2009-03-24 Thread grkuntzmd
I am looking for a unit testing framework for Python. I am aware of nose, but was wondering if there are any others that will automatically find and run all tests under a directory hierarchy. Thanks, Ralph -- http://mail.python.org/mailman/listinfo/python-list

Re: file.read() doesn't read the whole file

2009-03-24 Thread Sreejith K
On Mar 24, 4:45 pm, R. David Murray rdmur...@bitdance.com wrote: Sreejith K sreejith...@gmail.com wrote: On Mar 24, 2:12 pm, Ant ant...@gmail.com wrote: On Mar 24, 7:59 am, Sreejith K sreejith...@gmail.com wrote: ... data is the whole file, but 'less' gives only the two lines...

user site-packages, --prefix, --home and friends

2009-03-24 Thread R. David Murray
Carl tg2.u...@gmail.com wrote: I am very confused by PEP-370 per-user site-packages. It is not mentioned at all in the document about installing Python modules : http://docs.python.org/3.0/install/index.html. It seems that --home or --prefix already provide per-user site- packages

Re: file.read() doesn't read the whole file

2009-03-24 Thread Sreejith K
It's not a redirect to a file.  Fuse calls the 'read' function on the class, the read function does a 'return' of the data, and fuse passes the data up through the OS layer to be the result of the 'read' call made by less. By redirection I meant reading the snapshot file instead of the

Re: Does Python have certificate?

2009-03-24 Thread ajaksu
Hendrik van Rooyen wrote: I like the idea, but I would suggest that the award be limited to the first 100 participants and that the title be: Very Important Python Early Responder I'd pay good money for that if the 'I' could be customized to stand for Ignorant :) Daniel --

Bash-like brace expansion

2009-03-24 Thread Peter Waller
Okay, I got fed up with there not being any (obvious) good examples of how to do bash-like brace expansion in Python, so I wrote it myself. Here it is for all to enjoy! If anyone has any better solutions or any other examples of how to do this, I'd be glad to hear from them. #~ BraceExpand.py -

Re: Bash-like brace expansion

2009-03-24 Thread Peter Waller
Okay, yuck. I didn't realise that posting would mangle the code so badly. Is there any better way to attach code? I'm using google groups. On Mar 24, 12:28 pm, Peter Waller peter.wal...@gmail.com wrote: Okay, I got fed up with there not being any (obvious) good examples of how to do bash-like

iPython 0.9.1 install under XP -- R6034

2009-03-24 Thread Esmail
Hello all, I am having problems trying installing iPython under XP. It works great under Linux and it would be great if I could also use it when I have to be in Windows. XP Professional SP2 + SP3 (tried different systems), iPython-0.9.1, Python 2.6.1 During Please wait while running

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread bearophileHUGS
CinnamonDonkey: It is neither constructive nor educational. It's a bit like saying If you don't know what a function is, then maybe you don't need it. ... have you tried having a single block of code? The point of people coming to these forums is to LEARN and share knowledge. Perhaps it's

Re: Bash-like brace expansion

2009-03-24 Thread bearophileHUGS
Peter Waller: Is there any better way to attach code? This is a widely used place (but read the contract/disclaimer first): http://code.activestate.com/recipes/langs/python/ Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: Bash-like brace expansion

2009-03-24 Thread Peter Waller
2009/3/24 Tino Wildenhain t...@living-examples.com The simple {foo} expansion you mention should be quite easily handled with re.sub and a function as argument. So not much more then a few lines of code. Could this approach be made to handle recursive expansion? From the example with the

Re: Bash-like brace expansion

2009-03-24 Thread Peter Waller
What one really wants is a re option capable of handling recursive structures, something along the lines of what PHP has: http://uk2.php.net/manual/en/regexp.reference.php Under the 'Recursive Patterns' heading. As far as I am aware, no such thing exists for Python (yet?). 2009/3/24 Peter

Re: Query regarding Python sybase module

2009-03-24 Thread skip
Srini Does Sybase Python driver module implement multiple result sets Srini from a single command? I've used it to get multiple result sets from stored procedures, so I guess the answer would be yes. Something like this: params = curs.callproc('stored_procedure', params) while

Re: Bash-like brace expansion

2009-03-24 Thread Tino Wildenhain
Peter Waller wrote: Okay, I got fed up with there not being any (obvious) good examples of how to do bash-like brace expansion in Python, so I wrote it myself. Here it is for all to enjoy! If anyone has any better solutions or any other examples of how to do this, I'd be glad to hear from them.

Re: Bash-like brace expansion

2009-03-24 Thread Ben Finney
Peter Waller peter.wal...@gmail.com writes: Okay, yuck. I didn't realise that posting would mangle the code so badly. Is there any better way to attach code? Yes: Use a news client other than Google Groups. I'm using google groups. Fix that, first. -- \ “Are you pondering what I'm

Wiki syntax available when publishing on pypi

2009-03-24 Thread Luca
A non python, but pypi only related question: Where I can find a reference guide about all what I can do with the text infos about a pypi egg published? Looking at others guys code I lear how to make links, bold text, italic, lists... For example one time I found how to insert an image in the

Re: Wiki syntax available when publishing on pypi

2009-03-24 Thread andrew cooke
it's some form of restructured text, which is described at http://docutils.sourceforge.net/rst.html however, there seem to be various implementations; i don't know if pypi exactly follows what is described there (i know i had a small problem with some detail being inconsistent with that

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread CinnamonDonkey
Top responses guys! This has all helped increadibly. Bearophile, My applogies if I have offended you, but: 1. I can't know much about you from the start - Is kind of my point. Perhaps it would be better to avoid jumping to conclusions and pre- judging someones abilities simply because they are

Re: PEP 3143: Standard daemon process library

2009-03-24 Thread Jean-Paul Calderone
On Tue, 24 Mar 2009 15:42:46 +1100, Ben Finney bignose+hates-s...@benfinney.id.au wrote: Jean-Paul Calderone exar...@divmod.com writes: [snip] An additional feature which would be useful for the library to provide, however, would be the setting of euid and egid instead of uid and gid. This

Re: Unit testing frameworks

2009-03-24 Thread Jean-Paul Calderone
On Tue, 24 Mar 2009 05:06:47 -0700 (PDT), grkunt...@gmail.com wrote: I am looking for a unit testing framework for Python. I am aware of nose, but was wondering if there are any others that will automatically find and run all tests under a directory hierarchy. One such tool is trial,

Re: Unit testing frameworks

2009-03-24 Thread andrew cooke
grkunt...@gmail.com wrote: I am looking for a unit testing framework for Python. I am aware of nose, but was wondering if there are any others that will automatically find and run all tests under a directory hierarchy. not exactly a framework, but useful while working on small projects - you

Re: Another of those is issues.

2009-03-24 Thread J. Cliff Dyer
On Fri, 2009-03-20 at 11:20 -0700, Emanuele D'Arrigo wrote: Hi everybody, I was unit testing some code today and I eventually stumbled on one of those is issues quickly solved replacing the is with ==. Still, I don't quite see the sense of why these two cases are different: def

Re: Bash-like brace expansion

2009-03-24 Thread Nick Craig-Wood
Peter Waller peter.wal...@gmail.com wrote: Okay, I got fed up with there not being any (obvious) good examples of how to do bash-like brace expansion in Python, so I wrote it myself. Here it is for all to enjoy! Interesting! Might I suggest some unit tests? You can then test all the

Re: Does Python have certificate?

2009-03-24 Thread MRAB
Johannes Bauer wrote: Sebastian Bassi schrieb: No, there is no certification for Python. Maybe in the future... I'll hand out the Johannes Bauer Python Certificate of Total Awesomeness for anyone who can write a hello world in python and hands me $25000 in cash. This whole certified foobar

Re: Unit testing frameworks

2009-03-24 Thread Maxim Khitrov
On Tue, Mar 24, 2009 at 8:06 AM, grkunt...@gmail.com wrote: I am looking for a unit testing framework for Python. I am aware of nose, but was wondering if there are any others that will automatically find and run all tests under a directory hierarchy. Have you already looked at the unittest

Re: iPython 0.9.1 install under XP -- R6034

2009-03-24 Thread David Cournapeau
On Tue, Mar 24, 2009 at 9:36 PM, Esmail ebo...@hotmail.com wrote: Hello all, I am having problems trying installing iPython under XP. It works great under Linux and it would be great if I could also use it when I have to be in Windows. XP Professional SP2 + SP3 (tried different systems),

Re: PEP 3143: Standard daemon process library

2009-03-24 Thread Floris Bruynooghe
On Mar 21, 11:06 pm, Ben Finney ben+pyt...@benfinney.id.au wrote: Floris Bruynooghe floris.bruynoo...@gmail.com writes: Had a quick look at the PEP and it looks very nice IMHO. Thank you. I hope you can try the implementation and report feedback on that too. One of the things that might

Transition from urllibs to browser and keep session alive

2009-03-24 Thread JReed
Hello, I currently have a script that uses httplib2 to navigate through a website and collect some cookies manually along the way. It is an https that requires a logon, then i navigate through a few pages and the end result is to dump some info into a javascript and i display the returned html in

Appending to sys.path

2009-03-24 Thread mhearne808[insert-at-sign-here]gmail[insert-dot-here]com
I have an application where I would like to append to the python path dynamically. Below is a test script I wrote. Here's what I thought would happen: 1) I run this script in a folder that is NOT already in PYTHONPATH 2) The script creates a subfolder called foo. 3) The script creates a file

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread Istvan Albert
On Mar 23, 10:16 am, CinnamonDonkey cinnamondon...@googlemail.com wrote: I'm fairly new to Python so I still have a lot to learn. But I'd like to know how to correectly use relative imports. Relative imports are *fundamentally* broken in python. You will soon see that code using relative

Re: install pyPgSQL on Windows for python 2.5

2009-03-24 Thread Dietmar Schwertberger
someone wrote: Hi, does anyone know how to install pyPgSQL on Windows? There is no package for Python 2.5 on Homepage: I've installed newest Visual C++ Studio 2008 from Microsoft, but still no luck Hello Pet, you need Visual Studio 2003 to compile extensions for Python 2.5 If you want, I

Re: Appending to sys.path

2009-03-24 Thread Peter Otten
mhearne808[insert-at-sign-here]gmail[insert-dot-here]com wrote: I have an application where I would like to append to the python path dynamically. Below is a test script I wrote. Here's what I thought would happen: 1) I run this script in a folder that is NOT already in PYTHONPATH 2) The

Re: Translating unicode data

2009-03-24 Thread CaptainMcCrank
On Mar 23, 4:16 pm, Peter Otten __pete...@web.de wrote: CaptainMcCrank wrote: I'm struggling with a problem analyzing large amounts of unicode data in an http wireshark capture. I've solved the problem with the interpreter, but I'm not sure how to do this in an automated fashion. I'd

Re: parsing tab separated data efficiently into numpy/pylab arrays

2009-03-24 Thread mapb81
You could take a look/use the very handy csv2rec function in matplotlib.mlab, which creates numpy struct arrays. Marco On Mar 13, 10:19 pm, per perfr...@gmail.com wrote: hi all, what's the most efficient / preferred python way ofparsingtab separated data intoarrays? for example if i have a

minor revision encoded in SONAME in libpython.so

2009-03-24 Thread szager
I'm wondering why the SONAME in libpython.so has a minor revision encoded in it; for example (on Linux): $ readelf -d libpython2.6.so | grep SONAME 0x000e (SONAME) Library soname: [libpython2.6.so.1.0] Because of this, if I compile an app against this library (with '-L/

Re: install pyPgSQL on Windows for python 2.5

2009-03-24 Thread someon
On Mar 24, 4:57 pm, Dietmar Schwertberger n...@schwertberger.de wrote: someone wrote: Hi, does anyone know how to install pyPgSQL on Windows? There is no package for Python 2.5 on Homepage: I've installed newest Visual C++ Studio 2008 from Microsoft, but still no luck Hello Pet,

Re: Async serial communication/threads sharing data

2009-03-24 Thread John Nagle
Hendrik van Rooyen wrote: Nick Craig-Wood ni...g-wood.com wrote: I wrote a serial port to TCP proxy (with logging) with twisted. The problem I had was that twisted serial ports didn't seem to have any back pressure. Not sure if this is Twisted's fault - do python sockets have automatic

Re: Unit testing frameworks

2009-03-24 Thread pruebauno
On Mar 24, 8:06 am, grkunt...@gmail.com wrote: I am looking for a unit testing framework for Python. I am aware of nose, but was wondering if there are any others that will automatically find and run all tests under a directory hierarchy. Thanks, Ralph *Nose *Trial *py.test --

Re: Does Python have certificate?

2009-03-24 Thread Steve Holden
Johannes Bauer wrote: Sebastian Bassi schrieb: No, there is no certification for Python. Maybe in the future... I'll hand out the Johannes Bauer Python Certificate of Total Awesomeness for anyone who can write a hello world in python and hands me $25000 in cash. This whole certified

Re: Bash-like brace expansion

2009-03-24 Thread Peter Waller
Heh, thanks :) Unit tests did cross my mind. I was kicking myself for not starting out with them, there were several regressions during development, and there could well still be lurking corner cases ;) I've since heard that a 'better way' would be to use pyparsing. Also, I saw that python has

Best GUI toolkit with Table support

2009-03-24 Thread deech
Hi all, I am making a cross-platform frontend to a sqlite3 database. Which python GUI toolkit has the best table support? Tkinter doesn't seem to support them (without additional package installation). The issue is that the application must run off a flash drive with a vanilla Python install on

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread Gabriel Genellina
En Tue, 24 Mar 2009 12:49:08 -0300, Istvan Albert istvan.alb...@gmail.com escribió: On Mar 23, 10:16 am, CinnamonDonkey cinnamondon...@googlemail.com wrote: I'm fairly new to Python so I still have a lot to learn. But I'd like to know how to correectly use relative imports. Relative imports

Re: Relative Imports, why the hell is it so hard?

2009-03-24 Thread Gabriel Genellina
En Tue, 24 Mar 2009 09:01:01 -0300, R. David Murray rdmur...@bitdance.com escribió: CinnamonDonkey cinnamondon...@googlemail.com wrote: On 23 Mar, 18:57, bearophileh...@lycos.com wrote: CinnamonDonkey: what makes something a package? If you don't know what a package is, then maybe you

Re: Unit testing frameworks

2009-03-24 Thread Gabriel Genellina
En Tue, 24 Mar 2009 09:06:47 -0300, grkunt...@gmail.com escribió: I am looking for a unit testing framework for Python. I am aware of nose, but was wondering if there are any others that will automatically find and run all tests under a directory hierarchy. All known testing tools (and some

Re: Best GUI toolkit with Table support

2009-03-24 Thread Stef Mientki
deech wrote: Hi all, I am making a cross-platform frontend to a sqlite3 database. Which python GUI toolkit has the best table support? Tkinter doesn't seem to support them (without additional package installation). The issue is that the application must run off a flash drive with a vanilla

Re: Bash-like brace expansion

2009-03-24 Thread Paul McGuire
On Mar 24, 12:39 pm, Peter Waller peter.wal...@gmail.com wrote: Maybe I might re-implement this with pyparsing and some unit tests. In your pyparsing efforts, you might draw some insights from this regex inverter (that is, given an re such as [AB]\d, returns A0 through B9) on the pyparsing

setting directory mod date

2009-03-24 Thread jyoung79
I've got some Python code (2.5.1) that's compressing folders on a Windows machine. When the directories get compressed, their modification date changes. Is it possible to grab the modification date of the folder before it's compressed, and then set it's modification date back to it's

debuglevel for a HTTP request

2009-03-24 Thread Carbon Man
#Python 2.5 # from Dive Into Python 11.5 import httplib httplib.HTTPConnection.debuglevel = 1 import urllib2 request = urllib2.Request('http://localhost/test/atom.xml') opener = urllib2.build_opener() feeddata = opener.open(request).read() It doesn't show the debug output, any ideas? --

autocomplete and printing

2009-03-24 Thread vikram moule
Q1. I want to access a database and just by pressing the first alphabet will showup a dropdown list of all the words starting from that alphabet how can I do that ? ( I know how to access the database but the further problem is unsolved hence) Q2. How can I print a document for example bill or

Re: autocomplete and printing

2009-03-24 Thread Gabriel Genellina
En Tue, 24 Mar 2009 17:56:26 -0300, vikram moule shivic...@gmail.com escribió: Q1. I want to access a database and just by pressing the first alphabet will showup a dropdown list of all the words starting from that alphabet how can I do that ? ( I know how to access the database but the

Re: minor revision encoded in SONAME in libpython.so

2009-03-24 Thread Martin v. Löwis
So, for example, if I upgrade to libpython2.6.so.1.1 How do you do that? There won't ever be such a library. They will always be called libpython2.6.so.1.0. So no, no minor revision gets encoded into the SONAME. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

file open fails.

2009-03-24 Thread Atul.
Hi I am using IDLE on Windows Vista and I have a small code. title = 'C:\Thesis\refined_title.txt' file = open(title) I get the following error from Python. file = open(title) IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Thesis \refined_title.txt' Now, I can not understand the

Re: PEP 3143: Standard daemon process library

2009-03-24 Thread Ben Finney
Jean-Paul Calderone exar...@divmod.com writes: On Tue, 24 Mar 2009 15:42:46 +1100, Ben Finney bignose+hates-s...@benfinney.id.au wrote: That sounds rather more specific than is needed for the generic library being proposed here. I'm wary of adding features to an API that is already quite

Re: file open fails.

2009-03-24 Thread Scott David Daniels
Atul. wrote: title = 'C:\Thesis\refined_title.txt' file = open(title) I get the following error from Python. file = open(title) IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Thesis \refined_title.txt' Now, I can not understand the problem here ... Repesat to yourself 1e4 tmes:

Re: setting directory mod date

2009-03-24 Thread MRAB
jyoun...@kc.rr.com wrote: I've got some Python code (2.5.1) that's compressing folders on a Windows machine. When the directories get compressed, their modification date changes. Is it possible to grab the modification date of the folder before it's compressed, and then set it's

Re: file open fails.

2009-03-24 Thread MRAB
Atul. wrote: Hi I am using IDLE on Windows Vista and I have a small code. title = 'C:\Thesis\refined_title.txt' file = open(title) I get the following error from Python. file = open(title) IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Thesis \refined_title.txt' Now, I can not

[ANN] mlabwrap-1.0.1 released

2009-03-24 Thread Alexander Schmolck
Mlabwrap allows pythonistas to interface to Matlab(tm) in a very straightforward fashion: from mlabwrap import mlab mlab.eig([[0,1],[1,1]]) array([[-0.61803399], [ 1.61803399]]) More at http://mlabwrap.sourceforge.net. Mlabwrap 1.0.1 is just a maintenance release that

Re: file open fails.

2009-03-24 Thread Wes James
On Tue, Mar 24, 2009 at 4:04 PM, Scott David Daniels scott.dani...@acm.org wrote: Atul. wrote: snip In your case, '\r' is a return (a single character), not two characters long. I think its sad that 'C:\Thesis' doesn't cause an error because there is no such character as '\T', but I am

Re: debuglevel for a HTTP request

2009-03-24 Thread cgoldberg
It doesn't show the debug output, any ideas? I think like this: opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=1)) -- http://mail.python.org/mailman/listinfo/python-list

Re: file open fails.

2009-03-24 Thread Wes James
On Tue, Mar 24, 2009 at 4:32 PM, Wes James compte...@gmail.com wrote: On Tue, Mar 24, 2009 at 4:04 PM, Scott David Daniels scott.dani...@acm.org wrote: Atul. wrote: snip In your case, '\r' is a return (a single character), not two characters long. I think its sad that 'C:\Thesis' doesn't

Re: Style question - defining immutable class data members

2009-03-24 Thread Aahz
In article mailman.1847.1237048379.11746.python-l...@python.org, Maxim Khitrov mkhit...@gmail.com wrote: Very simple question on the preferred coding style. I frequently write classes that have some data members initialized to immutable values. For example: class Test(object): def

Python 3 consistency proposal

2009-03-24 Thread gert
Rename all built in classes with a capital letter example Str() Int() Object() Make () optional for a function definition class Test: pass def test: pass Any chance Guido would approve this :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3 consistency proposal

2009-03-24 Thread Daniel Fetchinson
Rename all built in classes with a capital letter example Str() Int() Object() Why? Make () optional for a function definition class Test: pass def test: pass Why? Any chance Guido would approve this :-) In my estimation, the chance that Guido would approve this is less than

Re: Best GUI toolkit with Table support

2009-03-24 Thread Todd Whiteman
deech wrote: Hi all, I am making a cross-platform frontend to a sqlite3 database. Which python GUI toolkit has the best table support? Tkinter doesn't seem to support them (without additional package installation). The issue is that the application must run off a flash drive with a vanilla

Re: iPython 0.9.1 install under XP -- R6034

2009-03-24 Thread Esmail
Hello David, David Cournapeau wrote: If you need ipython quickly, I would simply try building the installer myself from sources - as ipython does not have dependency and is pure python, it should be straightfoward to do a python setup.py bdist_wininst, Thanks for the suggestion, it

Re: Problem Python 2.6.1 vs 2.6 pyWin32

2009-03-24 Thread John Machin
Martin v. Löwis martin at v.loewis.de writes: Sorry for not being explicit. With installer I meant the binary Windows installer you create with command python setup.py bdist_wininst. In the past we've been able to use package-version.win32.exe files created with Python 2.5 on older

Re: setting directory mod date

2009-03-24 Thread Gabriel Genellina
En Tue, 24 Mar 2009 19:10:50 -0300, MRAB goo...@mrabarnett.plus.com escribió: jyoun...@kc.rr.com wrote: I've got some Python code (2.5.1) that's compressing folders on a Windows machine. When the directories get compressed, their modification date changes. Is it possible to grab the

Re: Python 3 consistency proposal

2009-03-24 Thread Steven D'Aprano
On Tue, 24 Mar 2009 16:45:26 -0700, gert wrote: Rename all built in classes with a capital letter example Str() Int() Object() Make () optional for a function definition class Test: pass def test: pass Any chance Guido would approve this :-) Unless you're volunteering to

Re: setting directory mod date

2009-03-24 Thread MRAB
Gabriel Genellina wrote: En Tue, 24 Mar 2009 19:10:50 -0300, MRAB goo...@mrabarnett.plus.com escribió: jyoun...@kc.rr.com wrote: I've got some Python code (2.5.1) that's compressing folders on a Windows machine. When the directories get compressed, their modification date changes. Is it

Re: file open fails.

2009-03-24 Thread Steven D'Aprano
On Tue, 24 Mar 2009 16:48:30 -0600, Wes James wrote: On Tue, Mar 24, 2009 at 4:32 PM, Wes James compte...@gmail.com wrote: On Tue, Mar 24, 2009 at 4:04 PM, Scott David Daniels scott.dani...@acm.org wrote: Atul. wrote: snip In your case, '\r' is a return (a single character), not two

Re: file open fails.

2009-03-24 Thread Rhodri James
On Tue, 24 Mar 2009 22:48:30 -, Wes James compte...@gmail.com wrote: On Tue, Mar 24, 2009 at 4:32 PM, Wes James compte...@gmail.com wrote: \T might mean the same thing as \t (tab), but I thought it would be different... I guess not:

  1   2   3   >