python-fedex 1.0 Released

2009-09-25 Thread Greg Taylor
python-fedex 1.0 has been released. This GPLv3 module is a very light wrapper around the excellent suds SOAP module and FedEx's Web Services WSDLs. The purpose of this module is to prepare the WSDL objects for the user to populate and manipulate as needed, as well as handling sending and light

PyPy Sprint Announcement, Duesseldorf 6 Nov- 13 Nov

2009-09-25 Thread Carl Friedrich
Düsseldorf PyPy sprint November 6 - November 13 2009 = The next PyPy sprint will be held in the Computer Science department of Heinrich-Heine Universität Düsseldorf from the 6th to the 13th of November 2009. This is a fully public sprint,

New mds-utils release (1.1.0)

2009-09-25 Thread Michele De Stefano
I'm proud to announce a new release of mds-utils (http://code.google.com/p/mds-utils/). New release features: 1) flush support added to FILE* devices. 2) added a new python namespace. Contains an object derived from boost::python::object that helps in using python file objects within python

ANN: Albow 2.1

2009-09-25 Thread Greg Ewing
ALBOW - A Little Bit of Widgetry for PyGame Version 2.1 is now available. http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/ Highlights of this version: * OpenGL faciliites * Music facilities * Drop-down menus and menu bars What is Albow? Albow is a library for creating GUIs

Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
Hi! I write small games in Python/PyGame. I want to find a way to make a downloadable package/installer/script to put on my webpage, especially for Ubuntu users. I've skimmed a couple of tutorials on how to generate .deb-files, but, wow, it's a whole new skill set to do that! Does anyone have

Re: Poll: Do you use csv.Sniffer?

2009-09-25 Thread John Machin
On Sep 25, 2:00 pm, Alex_Gaynor alex.gay...@gmail.com wrote: On Sep 24, 10:26 pm, s...@pobox.com wrote: If you are a csv module user, I have a question for you:  Do you use the csv.Sniffer class? I just used it yesterday :)  Not having it would mean I'd need to add another dependency to my

Crypto and export laws

2009-09-25 Thread Austin Bingham
I'm trying to get a handle on how python intersects with crypto-related export control laws in the US and elsewhere. My current understanding, per the PSF's wiki, is that any crypto related and potentially export-sensitive code is in the ssl wrapper, and that, in fact, this only links to the

Re: Most active coroutine library project?

2009-09-25 Thread Hendrik van Rooyen
On Thursday, 24 September 2009 15:42:36 Antoine Pitrou wrote: Grant Edwards invalid at invalid.invalid writes: Back when I worked on one of the first hand-held cellular mobile phones, it used co-routines where the number of coroutines was fixed at 2 (one for each register set in a Z80

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Javier Collado
Hello, I recommend you to check this: https://wiki.ubuntu.com/PackagingGuide/Complete The best way to release the software to Ubuntu users is by means of a PPA (https://help.launchpad.net/Packaging/PPA) so that people can track your application updates automatically. Before the PPA is created

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Donn
On Friday 25 September 2009 08:15:18 Olof Bjarnason wrote: Does anyone have any hint on a more economic way of creating single-file distribution packages You could use distutils (setup.py) and include a readme that explains what apt-get commands to use to install pygame, etc. Generally it's

Re: DBHandler class for logging?

2009-09-25 Thread Nebur
With a similar requirement, I made a small logging tool (usable as handler) which logs into nearly every DB (including Postgres - thanks to the SQLAlchemy library.) It has BSD license. You may use it (or parts of the code): http://www.reifenberg.de/rrlog/ (It does some more things you may not

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Jean Daniel
Maybe the distutils list is more adapted for this question: The Zope community uses zc.sourcerelease to build rpm http://www.mail-archive.com/distutils-...@python.org/msg06599.html Buildout is said to have undocumented features to build packages. Tarek Ziade is working debian package with

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Jean Daniel jeandaniel.bro...@gmail.com: Maybe the distutils list is more adapted for this question: Yes The Zope community uses zc.sourcerelease to build rpm http://www.mail-archive.com/distutils-...@python.org/msg06599.html Buildout is said to have undocumented features to

Re: Read header and data from a binary file [LONG]

2009-09-25 Thread Gabriel Genellina
En Tue, 22 Sep 2009 18:18:16 -0300, Jose Rafael Pacheco jose_rafael_pach...@yahoo.es escribió: Hello, I want to read from a binary file called myaudio.dat Then I've tried the next code: import struct name = myaudio.dat f = open(name,'rb') f.seek(0) chain = 4s 4s I 4s I 20s I I i 4s I 67s s

Re: Poll: Do you use csv.Sniffer?

2009-09-25 Thread Tim Chase
Why do you need the sniffer? If your client can't do save as the same way twice, just read the spreadsheets directly! If I only had one contact and one client, it would be this easy...If you can get multiple points of contact at multiple client sites to reliably competently agree on a

Python und Referenzen auf Variablen?

2009-09-25 Thread Torsten Mohr
Hallo, ich möchte im Speicher eine verschachtelte Struktur aufbauen in der dict()s und list()s verwendet werden und tief ineinander verschachtelt sind. D.h. mehrere lists und dicts können jeweils wieder lists und dicts enthalten. Ich möchte als Einträge hauptsächlich int, float und string

Re: Python und Referenzen auf Variablen?

2009-09-25 Thread Martin
Hi, this list is english only. I won't translate for you as I think you wouldn't be happy with it - as you can't read the recommendations - if you don't speak english. In that case you might want to try python...@python.net) (die Liste ist eigentlich nur english, ich übersetze das mal nicht, da

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Ben Finney
Olof Bjarnason olof.bjarna...@gmail.com writes: I write small games in Python/PyGame. I want to find a way to make a downloadable package/installer/script to put on my webpage, especially for Ubuntu users. As a program developer, you should be less concerned with the specifics of any

lxml and xmlsec

2009-09-25 Thread Roland Hedberg
Hi! Anyone know if it is possible to use xmlsec together with lxml ? -- Roland -- http://mail.python.org/mailman/listinfo/python-list

Re: Crypto and export laws

2009-09-25 Thread M.-A. Lemburg
Austin Bingham wrote: I'm trying to get a handle on how python intersects with crypto-related export control laws in the US and elsewhere. My current understanding, per the PSF's wiki, is that any crypto related and potentially export-sensitive code is in the ssl wrapper, and that, in fact,

Re: iterate over list while changing it

2009-09-25 Thread Warpcat
iterate over a copy of the list: for i, x in enumerate(a[:]): Always worked for me ;) -- http://mail.python.org/mailman/listinfo/python-list

can i use the browser to show the result of python

2009-09-25 Thread Hacken
I have write some python script i want to use browser(IE or FF) to call it, an show the returns! how to? -- http://mail.python.org/mailman/listinfo/python-list

Re: Poll: Do you use csv.Sniffer?

2009-09-25 Thread John Machin
On 25/09/2009 7:04 PM, Tim Chase wrote: Why do you need the sniffer? If your client can't do save as the same way twice, just read the spreadsheets directly! If I only had one contact and one client, it would be this easy...If you can get multiple points of contact at multiple client sites to

Re: Date using input

2009-09-25 Thread Dave Angel
flebber.c...@gmail.com wrote: I don't think I am using re.compile properly, but thought as this would make my output an object it would be better for later, is that correct? #Obtain date def ObtainDate(date): date = raw_input(Type Date dd/mm/year: ) re.split('[/]+', date) date year = date[-1]

Re: Finding application data after install - a solution?

2009-09-25 Thread Wolodja Wentland
On Fri, Sep 25, 2009 at 02:24 -0300, Gabriel Genellina wrote: En Thu, 24 Sep 2009 08:21:59 -0300, Wolodja Wentland How do *you* deal with application data in your programs? Is there a way that works on as many platforms as possible? On linux, using a configuration file like

Re: PExpect on Windows System Using Cygwin

2009-09-25 Thread Dave Angel
Sean DiZazzo wrote: On Sep 24, 4:37 pm, Dave Angel da...@ieee.org wrote: snip Why not just use the subprocess module? It's built into the Windows distribution, and doesn't need cygwin. DaveA Can subprocess pass things like passwords to running processes like pexpect can?

Re: can i use the browser to show the result of python

2009-09-25 Thread Dave Angel
Hacken wrote: I have write some python script i want to use browser(IE or FF) to call it, an show the returns! how to? You don't say much about your environment, nor the nature of your script. So my response will be very generic. If your script writes a valid html/xml/xhtml format to

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Paul Boddie
On 25 Sep, 08:15, Olof Bjarnason olof.bjarna...@gmail.com wrote: Hi! I write small games in Python/PyGame. I want to find a way to make a downloadable package/installer/script to put on my webpage, especially for Ubuntu users. I've skimmed a couple of tutorials on how to generate

problems trying to build python 2.6 as a shared library

2009-09-25 Thread Chris Withers
Hi All, I'm trying to build Python 2.6 as a shared library, so I did: ./configure --enable-shared make make altinstall No obvious signs of failure, but when I try and use the resulting python, I get: python2.6: error while loading shared libraries: libpython2.6.so.1.0: cannot open

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Paul Boddie p...@boddie.org.uk: On 25 Sep, 08:15, Olof Bjarnason olof.bjarna...@gmail.com wrote: Hi! I write small games in Python/PyGame. I want to find a way to make a downloadable package/installer/script to put on my webpage, especially for Ubuntu users. I've skimmed a couple

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Paul Boddie
On 25 Sep, 09:26, Donn donn.in...@gmail.com wrote: You could use distutils (setup.py) and include a readme that explains what apt-get commands to use to install pygame, etc. Generally it's better to *not* include the kitchen-sink with your apps; rather expect the user to have those libraries

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Paul Boddie p...@boddie.org.uk: On 25 Sep, 09:26, Donn donn.in...@gmail.com wrote: You could use distutils (setup.py) and include a readme that explains what apt-get commands to use to install pygame, etc. Generally it's better to *not* include the kitchen-sink with your apps;

Re: problems trying to build python 2.6 as a shared library

2009-09-25 Thread Marco Nawijn
On Sep 25, 1:08 pm, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I'm trying to build Python 2.6 as a shared library, so I did:    ./configure --enable-shared    make    make altinstall No obvious signs of failure, but when I try and use the resulting python, I get: python2.6:

Re: problems trying to build python 2.6 as a shared library

2009-09-25 Thread Christian Heimes
Marco Nawijn wrote: The dynamic loader cannot find the python shared library. There are at least 2 options: 1. Add path that contains the shared library to the LD_LIBRARY_PATH environment variable. In a bash shell this can be accomplished by: export

Re: Evaluate coding and style

2009-09-25 Thread Jean-Michel Pichavant
Rhodri James wrote: On Thu, 24 Sep 2009 21:11:36 +0100, Brown, Rodrick rodrick.br...@citi.com wrote: I recently started playing with Python about 3 days now (Ex Perl guy) and wanted some input on style and structure of what I'm doing before I really start picking up some bad habits here is

Re: Crypto and export laws

2009-09-25 Thread Piet van Oostrum
M.-A. Lemburg m...@egenix.com (M-L) wrote: M-L Depending on how close a country follows the Wassenaar M-L Arrangement (http://www.wassenaar.org/) OpenSSL, Python M-L and all other open-source software falls under the M-L GENERAL SOFTWARE NOTE part 2.: M-L M-L The Lists do not control software

Re: PExpect on Windows System Using Cygwin

2009-09-25 Thread Kevin Holleran
On Fri, Sep 25, 2009 at 6:09 AM, Dave Angel da...@ieee.org wrote: Sean DiZazzo wrote: On Sep 24, 4:37 pm, Dave Angel da...@ieee.org wrote: snip Why not just use the subprocess module? It's built into the Windows distribution, and doesn't need cygwin. DaveA Can subprocess pass

Format string with single quotes in it

2009-09-25 Thread Bahadir
Hi there, My question is simple, but I've been spending some hours over the web and still struggling to get this right: How do I format a string that contains single quotes in it? I am reading a file with lines of the form: CONT%d_VIRTMEM_REGIONS 'Container %d number of virtual regions' and

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Ben Finney
Olof Bjarnason olof.bjarna...@gmail.com writes: - any geeks visiting my blog that are non-Ubuntu (i'll just provide the source code and tell them to apt-get python-pygame) Note that for several years now the recommended command-line tool for package installation is not ‘apt-get’, but

Re: Crypto and export laws

2009-09-25 Thread Mel
Piet van Oostrum wrote: M.-A. Lemburg m...@egenix.com (M-L) wrote: [ ... ] M-L M-L The Lists do not control software which is either: M-L 1. ... M-L 2. In the public domain. M-L [ ... ] But Python is not in the public domain. Open source != public domain. Public domain means there is no

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Ben Finney ben+pyt...@benfinney.id.au: Olof Bjarnason olof.bjarna...@gmail.com writes:   - any geeks visiting my blog that are non-Ubuntu (i'll just provide the source code and tell them to apt-get python-pygame) Note that for several years now the recommended command-line tool for

Re: Format string with single quotes in it

2009-09-25 Thread Xavier Ho
On Fri, Sep 25, 2009 at 10:42 PM, Bahadir bilgehan.bal...@gmail.com wrote: Hi there, My question is simple, but I've been spending some hours over the web and still struggling to get this right: How do I format a string that contains single quotes in it? I don't know what you're doing

Re: Format string with single quotes in it

2009-09-25 Thread Mark Tolonen
Bahadir bilgehan.bal...@gmail.com wrote in message news:65b6ce03-62c7-4e56-a746-d85ce87ad...@l31g2000vbp.googlegroups.com... Hi there, My question is simple, but I've been spending some hours over the web and still struggling to get this right: How do I format a string that contains single

IDE for python similar to visual basic

2009-09-25 Thread Threader Slash
-- Forwarded message -- From: J Sisson sisso...@gmail.com To: Nobody nob...@nowhere.com Date: Thu, 24 Sep 2009 19:18:03 -0500 Subject: Re: IDE for python similar to visual basic On Sun, Sep 13, 2009 at 6:25 AM, Nobody nob...@nowhere.com wrote: On Fri, 11 Sep 2009 05:27:59

Re: Format string with single quotes in it

2009-09-25 Thread Jon Clements
On 25 Sep, 13:42, Bahadir bilgehan.bal...@gmail.com wrote: Hi there, My question is simple, but I've been spending some hours over the web and still struggling to get this right: How do I format a string that contains single quotes in it? I am reading a file with lines of the form:

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Ben Finney
Olof Bjarnason olof.bjarna...@gmail.com writes: Most tutorials on the web still (I've read mostly Ubuntu-related forums) mention apt-get; seems like an error? Not quite an error (since ‘apt-get’ continues to work), just habit of old-timers, and cargo-cult administration by newcomers. -- \

Re: Poll: Do you use csv.Sniffer?

2009-09-25 Thread nn
On Sep 24, 10:26 pm, s...@pobox.com wrote: If you are a csv module user, I have a question for you:  Do you use the csv.Sniffer class?     o Yes, frequently     o Yes, on occasion     o I tried it a few times but don't use it now     o No, I don't need it     o No, never heard of it     o

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Paul Rudin
Ben Finney ben+pyt...@benfinney.id.au writes: Olof Bjarnason olof.bjarna...@gmail.com writes: Most tutorials on the web still (I've read mostly Ubuntu-related forums) mention apt-get; seems like an error? Not quite an error (since ‘apt-get’ continues to work), just habit of old-timers, and

Re: Intercepting binding?

2009-09-25 Thread Carl Banks
On Sep 24, 5:39 am, andrew cooke and...@acooke.org wrote: It's significant, depressing, and not at all surprising that every person who replied to this thread told me, in one way or another, that was I was asking was wrong or impossible or foolhardy. People on this list are volunteers, who

ANN: Albow 2.1

2009-09-25 Thread Greg Ewing
ALBOW - A Little Bit of Widgetry for PyGame Version 2.1 is now available. http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/ Highlights of this version: * OpenGL faciliites * Music facilities * Drop-down menus and menu bars What is Albow? Albow is a library for creating GUIs

Re: Crypto and export laws

2009-09-25 Thread Piet van Oostrum
Ben Finney ben+pyt...@benfinney.id.au (BF) wrote: BF Piet van Oostrum p...@cs.uu.nl writes: But Python is not in the public domain. Open source != public domain. BF One always needs to be aware of what bizarro-world definitions these BF legalese documents are using for terms we might normally

Re: Crypto and export laws

2009-09-25 Thread Ben Finney
Piet van Oostrum p...@cs.uu.nl writes: But Python is not in the public domain. Open source != public domain. One always needs to be aware of what bizarro-world definitions these legalese documents are using for terms we might normally understand. However, in this case it seems fairly sane and :

Twisted PB: returning result as soon as ready

2009-09-25 Thread jacopo
In the following chunk of code the CLIENT receives both the results from “compute” at the same time (i.e. when the second one has finished). This way it cannot start “elaborateResult” on the first result while the SERVER is still running the second “compute”. How could I get the first result as

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
On 2009-09-25, Hendrik van Rooyen hend...@microcorp.co.za wrote: On Thursday, 24 September 2009 15:42:36 Antoine Pitrou wrote: Grant Edwards invalid at invalid.invalid writes: Back when I worked on one of the first hand-held cellular mobile phones, it used co-routines where the number of

is this whiff/wsgi claim true?

2009-09-25 Thread Aaron Watters
Hi folks. I just modified the WHIFF concepts index page http://aaron.oirt.rutgers.edu/myapp/docs/W1000.concepts To include the following paragraph with a startling and arrogant claim in the final sentence :) Developers build WHIFF applications much like they build static web content, PHP

Re: is this whiff/wsgi claim true?

2009-09-25 Thread Michele Simionato
On Sep 25, 4:26 pm, Aaron Watters aaron.watt...@gmail.com wrote: Hi folks.  I just modified the WHIFF concepts index page    http://aaron.oirt.rutgers.edu/myapp/docs/W1000.concepts To include the following paragraph with a startling and arrogant claim in the final sentence :) Developers

importing with .m instead of .py

2009-09-25 Thread Wanderer
I would like to import Matlab/Octave files of the .m sort into Python that look like this. # comment y=[1,2,3,4,5\ ,6,7,8,9]; # comment The only problem is I have to change the extensions from .m to .py. Is there a way to get python to import files that don't end in .py? Thank you --

Re: IDE for python similar to visual basic

2009-09-25 Thread Dave Angel
Threader Slash wrote: -- Forwarded message -- From: J Sisson sisso...@gmail.com To: Nobody nob...@nowhere.com Date: Thu, 24 Sep 2009 19:18:03 -0500 Subject: Re: IDE for python similar to visual basic On Sun, Sep 13, 2009 at 6:25 AM, Nobody nob...@nowhere.com wrote: On

Re: Most active coroutine library project?

2009-09-25 Thread Piet van Oostrum
exar...@twistedmatrix.com (e) wrote: e I specifically left out all yield statements in my version, since that's e exactly the point here. :) With real coroutines, they're not necessary - e coroutine calls look just like any other call. With Python's enhanced e generators, they are. The first

Re: [Python-Dev] surprised to ++ and --

2009-09-25 Thread Gary Herron
(Moving this to python-list where it should have been in the first place).) As pointed out, var++ and var-- are syntax errors, however several similar expressions are legal. These, however, are not interpreted as the C++ increment and decrement operators, but rather as a binary operator

ANNOUNCE libmsgque 3.5, ANNOUNCE (P)rogramming (L)anguage (M)icro(K)ernel 1.0

2009-09-25 Thread Andreas Otto
Dear Users; this is the ANNOUNCEMENT of: libmsgque 3.5 and the *first* public ANNOUNCEMENT of the: (P)rogramming (L)anguage (M)icro(K)ernel 1.0 libmsgque 3.5 = LibMsgque is an OS independent, programming language independent, and hardware

Re: Most active coroutine library project?

2009-09-25 Thread Michele Simionato
On Sep 23, 11:53 pm, exar...@twistedmatrix.com wrote: I specifically left out all yield statements in my version, since that's exactly the point here. :)  With real coroutines, they're not necessary - coroutine calls look just like any other call. Personally, I like the yield. I understand

Re: importing with .m instead of .py

2009-09-25 Thread Cesar Koers
Wanderer wrote: I would like to import Matlab/Octave files of the .m sort into Python that look like this. # comment y=[1,2,3,4,5\ ,6,7,8,9]; # comment The only problem is I have to change the extensions from .m to .py. Is there a way to get python to import files that don't end in .py? Thank

New books: Learning Python, Python Pocket Reference 4th Eds

2009-09-25 Thread Mark Lutz
I'm happy to announce new, 4th editions of the O'Reilly books Learning Python and Python Pocket Reference. These new editions have been thoroughly updated and expanded to cover both Python 3.1 and 2.6, and fully present features that appear in each Python line. Whether you're using Python 2.X,

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Daniel S. Braz
Hi, To create a .deb file you may use checkinstall, it's very simple and work very well. Em 25/09/2009, às 03:15, Olof Bjarnason escreveu: Hi! I write small games in Python/PyGame. I want to find a way to make a downloadable package/installer/script to put on my webpage, especially for

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
On 2009-09-25, Piet van Oostrum p...@cs.uu.nl wrote: exar...@twistedmatrix.com (e) wrote: e I specifically left out all yield statements in my version, since that's e exactly the point here. :) With real coroutines, they're not necessary - e coroutine calls look just like any other call. With

Re: Pipelining tar create and tar extract the Python way...

2009-09-25 Thread Ray Van Dolson
On Wed, Sep 23, 2009 at 04:22:36PM -0700, Ray Van Dolson wrote: On Wed, Sep 23, 2009 at 03:52:11PM -0700, Ray Van Dolson wrote: Hi all; In the land'o'shell, I can do something like the following: tar cvf - SrcDir | (cd /dest ; tar xvf -) Bad form replying to my own post...

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Daniel S. Braz dsb...@gmail.com: Hi, To create a .deb file you may use checkinstall, it's very simple and work very well. Hi Daniel, From what I gather browsing the web abount checkinstall, it seems to be built with make install in mind. Does it work with python setup.py install

Re: Crypto and export laws

2009-09-25 Thread M.-A. Lemburg
Piet van Oostrum wrote: M.-A. Lemburg m...@egenix.com (M-L) wrote: M-L Depending on how close a country follows the Wassenaar M-L Arrangement (http://www.wassenaar.org/) OpenSSL, Python M-L and all other open-source software falls under the M-L GENERAL SOFTWARE NOTE part 2.: M-L M-L

Re: importing with .m instead of .py

2009-09-25 Thread Ishwor Gurung
Wanderer Hi Refer to http://docs.python.org/tutorial/modules.html#the-module-search-path. Particularly- When a module named spam is imported, the interpreter searches for a file named spam.py in the current directory, and then in the list of directories specified by the environment variable

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Daniel S. Braz
Yes, it work with any command that you can run on a shell. You could write a shell script to tell to checkinstall what to do with your program. I used to use it with java programs. I will send to your e-mail a simple sample script, so you will see how it's work. (sorry for my -- very --

ANN: agenda2pdf v1.0

2009-09-25 Thread Iñigo Serna
Hi, I'm proud to present you agenda2pdf. This is a simple script which generates a book agenda file in PDF format, ready to be printed or loaded on an ebook reader. You can choose among different sections. Each section have pdf links to other parts of the agenda. I've created it for using with

Re: New books: Learning Python, Python Pocket Reference 4th Eds

2009-09-25 Thread Ishwor Gurung
Thanks Mark. 2009/9/26 Mark Lutz l...@rmi.net: I'm happy to announce new, 4th editions of the O'Reilly books Learning Python and Python Pocket Reference. [] It was pleasant and such a fun going through LP(2nd ed for me). Python Cook book was a nice complement too. I miss those days when I

Re: Most active coroutine library project?

2009-09-25 Thread Simon Forman
On Fri, Sep 25, 2009 at 11:42 AM, Grant Edwards inva...@invalid.invalid wrote: On 2009-09-25, Piet van Oostrum p...@cs.uu.nl wrote: exar...@twistedmatrix.com (e) wrote: e I specifically left out all yield statements in my version, since that's e exactly the point here. :)  With real coroutines,

Re: Pipelining tar create and tar extract the Python way...

2009-09-25 Thread Ishwor Gurung
Ray. Hi   tar cvf - SrcDir | (cd /dest ; tar xvf -) Check this out Ray if you haven't done it already http://docs.python.org/library/tarfile.html The tarfile module makes it possible to __read__ and write tar archives, including those using gzip or bz2 compression. Try breaking it up the

Re: is this whiff/wsgi claim true?

2009-09-25 Thread Aaron Watters
regarding http://aaron.oirt.rutgers.edu/myapp/docs/W1000.concepts Michele Simionato writes: To me, it looks like the approach Quixote used long before the coming of WSGI (see http://www.quixote.ca/learn/1 How Quixote Works). This a fair comparison and you could also note similarities with to

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
On 2009-09-25, Simon Forman sajmik...@gmail.com wrote: On Fri, Sep 25, 2009 at 11:42 AM, Grant Edwards inva...@invalid.invalid wrote: You can't call a function that yields control back to the other coroutine(s). ?By jumping through some hoops you can get the same effect, but it's not very

nested structure with internal references

2009-09-25 Thread Torsten Mohr
Hi, sorry for posting in german before, that was a mistake. I'd like to use a nested structure in memory that consists of dict()s and list()s, list entries can be dict()s, other list()s, dict entries can be list()s or other dict()s. The lists and dicts can also contain int, float, string, ...

Re: importing with .m instead of .py

2009-09-25 Thread Wanderer
On Sep 25, 12:15 pm, Ishwor Gurung ishwor.gur...@gmail.com wrote: Wanderer Hi Refer tohttp://docs.python.org/tutorial/modules.html#the-module-search-path. Particularly- When a module named spam is imported, the interpreter searches for a file named spam.py in the current directory, and

Re: Poll: Do you use csv.Sniffer?

2009-09-25 Thread r
On Sep 24, 9:26 pm, s...@pobox.com wrote: If csv.Sniff was to be removed from a future version of Python, how difficult would it be to adapt? A good response would be... What are you adding to the stdlib that requires making space by removing csv.Sniff? Oh and, i never use the Sniffer ;-) --

problems compiling pyscopg2 on RHEL4

2009-09-25 Thread Chris Withers
Hi All, I installed the following rpms: postgresql-libs-7.4.19-1.el4_6.1 postgresql-devel-7.4.19-1.el4_6.1 postgresql-7.4.19-1.el4_6.1 And then installed psycopg2 as follows: wget http://initd.org/pub/software/psycopg/psycopg2-2.0.12.tar.gz tar xzf psycopg2-2.0.12.tar.gz cd psycopg2-2.0.12

Re: nested structure with internal references

2009-09-25 Thread akonsu
On Sep 25, 1:11 pm, Torsten Mohr tm...@s.netic.de wrote: Hi, sorry for posting in german before, that was a mistake. I'd like to use a nested structure in memory that consists of dict()s and list()s, list entries can be dict()s, other list()s, dict entries can be list()s or other dict()s.

Re: importing with .m instead of .py

2009-09-25 Thread Andrew Svetlov
On Sep 25, 1:16 pm, Wanderer wande...@dialup4less.com wrote: execfile(x) does what I'm looking for. Perhaps you are looking for Python import hook: http://www.python.org/dev/peps/pep-0302/ In you import hook you can do everything (and locate/import file with any extension :) --

Got undefined symbol: _PyUnicodeUCS2_AsDefaultEncodedString on OpenSuSE 11.1

2009-09-25 Thread Alejandro Valdez
Hello I sent this e-mail to the python-help list but I'm not sure if that list is active... so I post it again here: I'm trying to build Python 2.6.2 from the sources downloaded from the python official site on OpenSuSE 11.1 (32 bit). After installation the python command line interpreter seems

Re: Most active coroutine library project?

2009-09-25 Thread Jason Tackaberry
On Fri, 2009-09-25 at 15:42 +, Grant Edwards wrote: You can't call a function that yields control back to the other coroutine(s). By jumping through some hoops you can get the same effect, but it's not very intuitive and it sort of feels wrong that the main routine has to know ahead of

Re: nested structure with internal references

2009-09-25 Thread Carl Banks
On Sep 25, 10:11 am, Torsten Mohr tm...@s.netic.de wrote: Hi, sorry for posting in german before, that was a mistake. I'd like to use a nested structure in memory that consists of dict()s and list()s, list entries can be dict()s, other list()s, dict entries can be list()s or other dict()s.

Re: Most active coroutine library project?

2009-09-25 Thread Grant Edwards
On 2009-09-25, Jason Tackaberry t...@urandom.ca wrote: On Fri, 2009-09-25 at 15:42 +, Grant Edwards wrote: You can't call a function that yields control back to the other coroutine(s). By jumping through some hoops you can get the same effect, but it's not very intuitive and it sort of

Re: nested structure with internal references

2009-09-25 Thread akonsu
put a (name, value) pair in each list element instead of just value and reference them by name, you can use uuid to generate names konstantin -- http://mail.python.org/mailman/listinfo/python-list

Re: Got undefined symbol: _PyUnicodeUCS2_AsDefaultEncodedString on OpenSuSE 11.1

2009-09-25 Thread Mark Dickinson
On Sep 25, 7:05 pm, Alejandro Valdez alejandro.val...@gmail.com wrote: Hello I sent this e-mail to the python-help list but I'm not sure if that list is active... so I post it again here: I'm trying to build Python 2.6.2 from the sources downloaded from the python official site on OpenSuSE

flow control and nested loops

2009-09-25 Thread kj
In Perl, one can label loops for finer flow control. For example: X: for my $x (@X) { Y: for my $y (@Y) { for my $z (@Z) { next X if test1($x, $y, $z); next Y if test2($x, $y, $z); frobnicate($x, $y, $z); } glortz($x, $y); } splat($x); } What's considered

Re: nested structure with internal references

2009-09-25 Thread Kent Turbo
On Sep 25, 9:11 pm, Torsten Mohr tm...@s.netic.de wrote: I'd like to refer to another entry and not copy that entry, i need to know later that this is a reference to another entry, i need to find also access that entry then. The references only need to refer to entries in this structure. The

What does the list_folders() method of mailbox.Maildir actually do (if anything)?

2009-09-25 Thread tinnews
I can't get the list_folders() method of the mailbox.Maildir class to do anything remotely useful. It seems to do nothing at all. I have a directory which contains a number of maildir malboxes:- chris$ ls -l /home/chris/Mail/apex total 24 drwx-- 5 chris chris 4096 2009-04-30

Re: Most active coroutine library project?

2009-09-25 Thread Simon Forman
On Fri, Sep 25, 2009 at 2:07 PM, Jason Tackaberry t...@urandom.ca wrote: On Fri, 2009-09-25 at 15:42 +, Grant Edwards wrote: You can't call a function that yields control back to the other coroutine(s).  By jumping through some hoops you can get the same effect, but it's not very intuitive

Re: Most active coroutine library project?

2009-09-25 Thread Jason Tackaberry
On Fri, 2009-09-25 at 18:36 +, Grant Edwards wrote: That's not comletely transparently. The routine fetch_google() has to know a priori that s.connect() might want to yield and so has to invoke it with a yield statement. With my implementation, tasks that execute asynchronously (which may

Re: Most active coroutine library project?

2009-09-25 Thread Jason Tackaberry
On Fri, 2009-09-25 at 15:25 -0400, Simon Forman wrote: So Kaa is essentially implementing the trampoline function. Essentially, yeah. It doesn't require (or support, depending on your perspective) a coroutine to explicitly yield the next coroutine to be reentered, but otherwise I'd say it's the

Re: What does the list_folders() method of mailbox.Maildir actually do (if anything)?

2009-09-25 Thread Jeff McNeil
On Sep 25, 3:22 pm, tinn...@isbd.co.uk wrote: I can't get the list_folders() method of the mailbox.Maildir class to do anything remotely useful.  It seems to do nothing at all.  I have a directory which contains a number of maildir malboxes:-     chris$ ls -l /home/chris/Mail/apex     total

Re: importing with .m instead of .py

2009-09-25 Thread Wanderer
On Sep 25, 2:05 pm, Andrew Svetlov andrew.svet...@gmail.com wrote: On Sep 25, 1:16 pm, Wanderer wande...@dialup4less.com wrote: execfile(x) does what I'm looking for. Perhaps you are looking for Python import hook:http://www.python.org/dev/peps/pep-0302/ In you import hook you can do

Re: Got undefined symbol: _PyUnicodeUCS2_AsDefaultEncodedString on OpenSuSE 11.1

2009-09-25 Thread Mark Dickinson
On Sep 25, 7:56 pm, Mark Dickinson dicki...@gmail.com wrote: On Sep 25, 7:05 pm, Alejandro Valdez alejandro.val...@gmail.com wrote: Hello I sent this e-mail to the python-help list but I'm not sure if that list is active... so I post it again here: I'm trying to build Python 2.6.2 from

Re: flow control and nested loops

2009-09-25 Thread Simon Forman
On Fri, Sep 25, 2009 at 3:01 PM, kj no.em...@please.post wrote: In Perl, one can label loops for finer flow control.  For example: X: for my $x (@X) {  Y: for my $y (@Y) {    for my $z (@Z) {      next X if test1($x, $y, $z);      next Y if test2($x, $y, $z);      frobnicate($x, $y, $z);

Re: flow control and nested loops

2009-09-25 Thread Terry Reedy
kj wrote: In Perl, one can label loops for finer flow control. For example: X: for my $x (@X) { Y: for my $y (@Y) { for my $z (@Z) { next X if test1($x, $y, $z); next Y if test2($x, $y, $z); frobnicate($x, $y, $z); } glortz($x, $y); } splat($x); }

  1   2   >