Re: is this whiff/wsgi claim true?

2009-09-25 Thread Michele Simionato
On Sep 25, 4:26 pm, Aaron Watters 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 build WHIFF

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 -- http://mai

Re: IDE for python similar to visual basic

2009-09-25 Thread Dave Angel
Threader Slash wrote: -- Forwarded message -- From: J Sisson To: Nobody 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 wrote: On Fri, 11 Sep 2009 05:27:59 -0700, r wrote:

Re: Most "active" coroutine library project?

2009-09-25 Thread Piet van Oostrum
> [email protected] (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

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 follo

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 independent

Re: Most "active" coroutine library project?

2009-09-25 Thread Michele Simionato
On Sep 23, 11:53 pm, [email protected] 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 understa

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, us

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 Ubu

Re: Most "active" coroutine library project?

2009-09-25 Thread Grant Edwards
On 2009-09-25, Piet van Oostrum wrote: >> [email protected] (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.

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 o

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Olof Bjarnason
2009/9/25 Daniel S. Braz : > 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" too? > >

Re: Crypto and export laws

2009-09-25 Thread M.-A. Lemburg
Piet van Oostrum wrote: >> "M.-A. Lemburg" (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>

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 PYTH

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 -- b

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 : > 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 hurriedly

Re: Most "active" coroutine library project?

2009-09-25 Thread Simon Forman
On Fri, Sep 25, 2009 at 11:42 AM, Grant Edwards wrote: > On 2009-09-25, Piet van Oostrum wrote: >>> [email protected] (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 ne

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

Re: Most "active" coroutine library project?

2009-09-25 Thread Grant Edwards
On 2009-09-25, Simon Forman wrote: > On Fri, Sep 25, 2009 at 11:42 AM, 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 >> w

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, ... B

Re: importing with .m instead of .py

2009-09-25 Thread Wanderer
On Sep 25, 12:15 pm, Ishwor Gurung 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 then in the list

Re: Poll: Do you use csv.Sniffer?

2009-09-25 Thread r
On Sep 24, 9:26 pm, [email protected] 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 pyt

<    1   2