Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread John O'Hagan
Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to replace some some top-level functions aimed at doing such things with a class. So far it's got a test for emptiness, a non-consuming peek-ahead method, and an extended next() which can r

Re: file locking...

2009-03-01 Thread MRAB
bruce wrote: Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is going to access a number of files in a dir. Each process accesses a unique group o

Re: Static Map

2009-03-01 Thread KMCB
Andrew, You are correct, that article was very beneficial. It helped me understand the stack, much better. Thanks, kmcb -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to grab hidden code in ClientForm?

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 12:23:20 -0200, Muddy Coder escribió: Nowadays some websites let users to fill in some so-called verification code, and the tricky thing is that the CODE is delivered from server with an image. For example:   Refresh Image When click Refresh Image, the CODE on the imag

Re: Performance of Python 3

2009-03-01 Thread Stefan Behnel
Paul Rubin wrote: > Steve Holden writes: >> I'm not sure what you think the speed of Ruby has to do with Python. > > In the real world, people care about the relative speed of programs. Fine, but the Shootout on Alioth isn't a particularly pythonic one. It deals almost exclusively with computati

Is it possible to grab hidden code in ClientForm?

2009-03-01 Thread rdmurray
Muddy Coder wrote: > Nowadays some websites let users to fill in some so-called > verification code, and the tricky thing is that the CODE is delivered > from server with an image. For example: > > >  Refresh Image > > When click Refresh Image, the CODE on the image changes. I wonder: > does th

Re: Performance of Python 3

2009-03-01 Thread Isaac Gouy
On Mar 1, 8:10 am, Stefan Behnel wrote: > Paul Rubin wrote: > > Steve Holden writes: > >> I'm not sure what you think the speed of Ruby has to do with Python. > > > In the real world, people care about the relative speed of programs. > > Fine, but theShootoutonAliothisn't a particularly pythonic

Multiple separate py2exe executables and library.zip

2009-03-01 Thread The Dude
Hello, Each invocation of py2exe creates an executable along with a number of other files which need to be distributed with it, including library.zip. I noticed that compiling different scripts creates different, and incompatible library.zip-s. Suppose I need a directory that contains the resu

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Mark Tolonen
"John O'Hagan" wrote in message news:200903011520.29405.resea...@johnohagan.com... Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to replace some some top-level functions aimed at doing such things with a class. So far it's got a te

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 13:20:28 -0200, John O'Hagan escribió: Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to replace some some top-level functions aimed at doing such things with a class. So far it's got a test for emptiness, a no

Re: Creating Zip file like java jar file

2009-03-01 Thread zaheer . agadi
On Mar 1, 7:53 pm, zaheer.ag...@gmail.com wrote: > On Mar 1, 7:40 pm, zaheer.ag...@gmail.com wrote: > > > > > On Mar 1, 6:53 pm, "Gabriel Genellina" wrote: > > > > En Sun, 01 Mar 2009 03:16:53 -0200, escribió: > > > > >> >> >>> I want to create zip file equivalent to java jar file,I created > >

RE: file locking...

2009-03-01 Thread bruce
hi mrab.. to your question... no file is acquired by multiple processes. and yeah, i've thought of copying the files to a separate dir for each child/client process to work with.. and in all honesty, this is as fast as i can envision at this time... -Original Message- From: python-list-

Re: Creating Zip file like java jar file

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 12:53:30 -0200, escribió: On Mar 1, 7:40 pm, zaheer.ag...@gmail.com wrote: On Mar 1, 6:53 pm, "Gabriel Genellina" wrote: > En Sun, 01 Mar 2009 03:16:53 -0200, escribió: > >> >> >>> I want to create zip file equivalent to java jar file,I created a > >> >> zip > >> >> >>

Re: Multiple separate py2exe executables and library.zip

2009-03-01 Thread Patrick Mullen
On Sun, Mar 1, 2009 at 8:35 AM, The Dude wrote: >   Hello, > >   Each invocation of py2exe creates an executable along with a number of > other files which need to be distributed with it, including library.zip. I > noticed that compiling different scripts creates different, and incompatible > libr

RE: file locking...

2009-03-01 Thread bruce
hi nigel... using any kind of file locking process requires that i essentially have a gatekeeper, allowing a single process to enter, access the files at a time... i can easily setup a file read/write lock process where a client app gets/locks a file, and then copies/moves the required files from

Re: Multiple separate py2exe executables and library.zip

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 14:35:01 -0200, The Dude escribió: Each invocation of py2exe creates an executable along with a number of other files which need to be distributed with it, including library.zip. I noticed that compiling different scripts creates different, and incompatible library.

Re: file locking...

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 15:39:56 -0200, bruce escribió: the issue that i'm looking at is analogous to a FIFO, where i have lots of files being shoved in a dir from different processes.. on the other end, i want to allow mutiple client processes to access unique groups of these files as fast a

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Chris Rebert
On Sun, Mar 1, 2009 at 8:54 AM, Gabriel Genellina wrote: > En Sun, 01 Mar 2009 13:20:28 -0200, John O'Hagan > escribió: > >> Inspired by some recent threads here about using classes to extend the >> behaviour of iterators, I'm trying to replace some some top-level >> functions >> aimed at doing s

RE: file locking...

2009-03-01 Thread bruce
Hi Gabriel. Except in my situation.. the client has no knowledge of the filenaming situation, and i might have 1000s of files... think of the FIFO, first in, first out.. so i'm loking for a fast solution that would allow me to create groups of say, 500 files, that get batched and processed by the

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 15:51:07 -0200, Chris Rebert escribió: On Sun, Mar 1, 2009 at 8:54 AM, Gabriel Genellina wrote: En Sun, 01 Mar 2009 13:20:28 -0200, John O'Hagan escribió: Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to repl

Re: file locking...

2009-03-01 Thread Nigel Rantor
Hi Bruce, Excuse me if I'm a little blunt below. I'm ill grumpy... bruce wrote: hi nigel... using any kind of file locking process requires that i essentially have a gatekeeper, allowing a single process to enter, access the files at a time... I don't beleive this is a necessary condition.

Re: Email Program

2009-03-01 Thread Tino Wildenhain
J wrote: Is it possible to make a GUI email program in Python that stores emails, composes, ect? Yes this is possible. Regards Tino smime.p7s Description: S/MIME Cryptographic Signature -- http://mail.python.org/mailman/listinfo/python-list

Re: file locking...

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 16:11:41 -0200, Nigel Rantor escribió: bruce wrote: i can easily setup a file read/write lock process where a client app gets/locks a file, and then copies/moves the required files from the initial dir to a tmp dir. after the move/copy, the lock is released, and the c

Re: Performance of Python 3

2009-03-01 Thread Thorsten Kampe
* Isaac Gouy (Sun, 1 Mar 2009 08:27:05 -0800 (PST)) > On Mar 1, 8:10 am, Stefan Behnel wrote: > > Paul Rubin wrote: > > > Steve Holden writes: > > >> I'm not sure what you think the speed of Ruby has to do with Python. > > > > > In the real world, people care about the relative speed of programs.

Re: OTish: convince the team to drop VBScript

2009-03-01 Thread Thorsten Kampe
* Carl Banks (Sat, 28 Feb 2009 20:09:03 -0800 (PST)) > On Feb 28, 7:10 pm, Shane Geiger wrote: > > >> The company does use Python on rare occasions. It all comes down to > > >> the prejudices and habits of one of the programmers. His only argument > > >> I can't counter -because I don't see the pr

Re: Performance of Python 3

2009-03-01 Thread Stefan Behnel
Isaac Gouy wrote: > On Mar 1, 8:10 am, Stefan Behnel wrote: >> As long as that gives you improvements of >> 100-1000 times almost for free, I wouldn't bother too much with changing >> the platform just because someone shows me benchmark results of some code >> that I absolutely don't need in my dai

Re: TypeErrors

2009-03-01 Thread Benjamin Kaplan
On Sun, Mar 1, 2009 at 1:50 PM, Sean Novick wrote: > Here is the bit of code my error was refering to: > class phonedb: > > some definitons... > > def lookup(self, string): > list = [] > for key in self.shelve.keys(): > e = self.shelve[key] > if cmp(e, stri

Script in /usr/bin doesn't see my packages

2009-03-01 Thread Filip Gruszczyński
I have used distutils to install a python package and a script, that runs a program. Everything seemed ok, when I run interpreter I can import stuff, that I have just installed. But when I run script that was installed into /usr/bin it can't import anything. This happens also with my test scripts:

Re: file locking...

2009-03-01 Thread zugnush
You could do something like this so that every process will know if the file "belongs" to it without prior coordination, it means a lot of redundant hashing though. In [36]: import md5 In [37]: pool = 11 In [38]: process = 5 In [39]: [f for f in glob.glob('*') if int(md5.md5(f).hexdigest(),16

Re: TypeErrors

2009-03-01 Thread Christian Heimes
Benjamin Kaplan wrote: > cmp(e, string) is actually just a shortcut for e.__cmp__(string). FYI, cmp(e, string) does a lot more than just calling e.__cmp__(string). Check out Objects/object.c:do_cmp() Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: file locking...

2009-03-01 Thread Nigel Rantor
zugnush wrote: You could do something like this so that every process will know if the file "belongs" to it without prior coordination, it means a lot of redundant hashing though. In [36]: import md5 In [37]: pool = 11 In [38]: process = 5 In [39]: [f for f in glob.glob('*') if int(md5.md5(

Re: urllib2 httplib.BadStatusLine exception while opening a page on an Oracle HTTP Server

2009-03-01 Thread ak
which website have you tested it on ? My tests were basically on https://www.orange.sk and http://www.orange.sk (the first fails, and not the second one, which led me to think there's a bug in python's SSL implementation for this particular web server) (Oracle) with python 2.5 On Feb 19, 1:57 pm

Re: Characters aren't displayed correctly

2009-03-01 Thread J. Clifford Dyer
On Sun, 2009-03-01 at 09:51 -0500, Philip Semanchuk wrote: > On Mar 1, 2009, at 8:31 AM, Hussein B wrote: > > > Hey, > > I'm retrieving records from MySQL database that contains non english > > characters. > > Then I create a String that contains HTML markup and column values > > from the previous

Re: PIL's thumbnail function returns NoneType

2009-03-01 Thread Terry Reedy
Hrvoje Niksic wrote: Mirat Can Bayrak writes: Can you try it? it is about me or it is a bug? Neither. im.thumbnail() modifies the existing image object by converting it to a thumbnail. In Python such methods by convention return None. The documentation explicitly mentions that: Also

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread Terry Reedy
John O'Hagan wrote: Inspired by some recent threads here about using classes to extend the behaviour of iterators, I'm trying to replace some some top-level functions aimed at doing such things with a class. So far it's got a test for emptiness, a non-consuming peek-ahead method, and an exten

Re: TypeErrors

2009-03-01 Thread Scott David Daniels
Dennis Lee Bieber wrote: ... Even this looks strange, since all list will contain is a copy of string for each occurrence of string in the values of shelve! Furthermore, the only use for the key is to obtain the value -- the key is never returned for later use... so... def lookup(self,

Re: Performance of Python 3

2009-03-01 Thread Isaac Gouy
On Mar 1, 11:15 am, Thorsten Kampe wrote: > * Isaac Gouy (Sun, 1 Mar 2009 08:27:05 -0800 (PST)) > > > On Mar 1, 8:10 am, Stefan Behnel wrote: > > > Paul Rubin wrote: > > > > Steve Holden writes: > > > >> I'm not sure what you think the speed of Ruby has to do with Python. > > > > > In the real w

Re: Performance of Python 3

2009-03-01 Thread Isaac Gouy
On Mar 1, 11:24 am, Stefan Behnel wrote: > Isaac Gouy wrote: > > On Mar 1, 8:10 am, Stefan Behnel wrote: > >> As long as that gives you improvements of > >> 100-1000 times almost for free, I wouldn't bother too much with changing > >> the platform just because someone shows me benchmark results of

Reason why co_filename is no longer interned?

2009-03-01 Thread David Christian
In 2005, when the ast branch was merged to head, compile.c when setting the filename for the code object, PyString_InternFromString was replaced with PyString_FromString. http://svn.python.org/view?view=rev&revision=39758 This means that where before, you could rely that .func_code.co_filename =

Re: Reason why co_filename is no longer interned?

2009-03-01 Thread Benjamin Peterson
David Christian gmail.com> writes: > This means that where before, you could rely that > .func_code.co_filename == .func_code.co_filename Regardless of the change's intentionality, you should never rely on that behavior! Interned strings are an implementation detail even at the C level. -- ht

Re: Reason why co_filename is no longer interned?

2009-03-01 Thread Chris Rebert
On Sun, Mar 1, 2009 at 5:03 PM, David Christian wrote: > In 2005, when the ast branch was merged to head, compile.c > > when setting the filename for the code object, > PyString_InternFromString was replaced with PyString_FromString. > > http://svn.python.org/view?view=rev&revision=39758 > > This

Re: Reason why co_filename is no longer interned?

2009-03-01 Thread Benjamin Peterson
2009/3/1 David Christian : > On Sun, Mar 1, 2009 at 8:15 PM, Benjamin Peterson wrote: >> David Christian gmail.com> writes: >>> This means that where before, you could rely that >>> .func_code.co_filename == .func_code.co_filename >> >> Regardless of the change's intentionality, you should never

Re: Iterator class to allow self-restarting generator expressions?

2009-03-01 Thread John O'Hagan
On Sun, 1 Mar 2009, Mark Tolonen wrote: > "John O'Hagan" wrote in message > news:200903011520.29405.resea...@johnohagan.com... > > > Inspired by some recent threads here about using classes to extend the > > behaviour of iterators, I'm trying to replace some some top-level > > functions > > aimed

imaplib fetch message flags

2009-03-01 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi List, I'm using an example of an imap client I found with google as a framework for a more fullfeatured imap client. They use the line: f = self.M.fetch(num, '(BODY[HEADER.FIELDS (SUBJECT FROM)])') To retrieve the Subject: and From: fields from

Re: Python won't run

2009-03-01 Thread dkiekow
On Feb 23, 5:01 pm, Ned Deily wrote: > [Again, please reply-all to the list, don't send private email!] > > On Feb 23, 2009, at 14:03 , kevin hayes wrote: > > > > > Ned, system log didn't do anything when I tried to open IDLE. However, this > > is what's in the console.log. does this tell you anyt

Re: imaplib fetch message flags

2009-03-01 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rich Healey wrote: > Hi List, > > I'm using an example of an imap client I found with google as a > framework for a more fullfeatured imap client. > > They use the line: > > f = self.M.fetch(num, '(BODY[HEADER.FIELDS (SUBJECT FROM)])') > > To retr

Re: imaplib fetch message flags

2009-03-01 Thread Gabriel Genellina
En Mon, 02 Mar 2009 01:53:00 -0200, Rich Healey escribió: I'm using an example of an imap client I found with google as a framework for a more fullfeatured imap client. They use the line: f = self.M.fetch(num, '(BODY[HEADER.FIELDS (SUBJECT FROM)])') To retrieve the Subject: and From: fiel

Re: Python won't run

2009-03-01 Thread Benjamin Kaplan
On Sun, Mar 1, 2009 at 10:52 PM, wrote: > On Feb 23, 5:01 pm, Ned Deily wrote: > > [Again, please reply-all to the list, don't send private email!] > > > > On Feb 23, 2009, at 14:03 , kevin hayes wrote: > > > > > > > > > Ned, system log didn't do anything when I tried to open IDLE. However, > th

Can CleintForm work with webbrowser?

2009-03-01 Thread Muddy Coder
Hi Folks, ClientForm is cool at grabbing and parsing stuff from server, I like it. After the stuff parsed, and even filled values for the Controls, I popped up an idea of displaying what I had done with webbrowser. Look at the code: import ClientForm import urllib2 import webbrowser request = ur

Re: Can CleintForm work with webbrowser?

2009-03-01 Thread Chris Rebert
On Sun, Mar 1, 2009 at 9:36 PM, Muddy Coder wrote: > Hi Folks, > > ClientForm is cool at grabbing and parsing stuff from server, I like > it. After the stuff parsed, and even filled values for the Controls, I > popped up an idea of displaying what I had done with webbrowser. Look > at the code: >

Re: Python won't run

2009-03-01 Thread Ned Deily
In article , dkie...@gmail.com wrote: > On Feb 23, 5:01 pm, Ned Deily wrote: > > On Feb 23, 2009, at 14:03 , kevin hayes wrote: > > > Ned, system log didn't do anything when I tried to open IDLE. However, > > > this > > > is what's in the console.log. does this tell you anything? > > > > > Unha

Re: Email Program

2009-03-01 Thread Ralf Schoenian
J wrote: Is it possible to make a GUI email program in Python that stores emails, composes, ect? Hi, yes, it is possible. There are modules in the standard library like email, smtplib and poplib. A gui can be written in wxPython, pyQT, pyGTK or tkinter. There are many more toolkits but these

unziping a file in python..

2009-03-01 Thread David Lyon
It might seem a simple question.. but how does one programmaticaly unzip a file in python? In version 2.6 and above.. the zipfile module has an extractall method. But it isn't available in 2.5 or below. Any cross version, cross-platform answers welcome. Any answers specific to win32 also welcom

Re: Email Program

2009-03-01 Thread Paul McGuire
On Feb 28, 7:56 pm, J wrote: > Is it possible to make a GUI email program in Python that stores > emails, composes, ect? Also, could I create my own programming > language in Python? What are Pythons limits, or is this just a waste > of my time to learn it. This "waste of my time" phrase is a tel

Re: Email Program

2009-03-01 Thread Paul Rubin
Paul McGuire writes: > As to your question of whether Python can be used to write an e-mail > client, or to create a programming language, I assure you both are > possible. But also, given your unfamiliarity with Python, both are > well beyond your skills for some time yet, and you are nowhere ne

Re: unziping a file in python..

2009-03-01 Thread Steven D'Aprano
On Mon, 02 Mar 2009 01:00:54 -0500, David Lyon wrote: > It might seem a simple question.. but how does one programmaticaly unzip > a file in python? A quick and dirty solution would be something like this: zf = zipfile.ZipFile('Archive.zip') for name in zf.namelist(): open(name, 'w').write(

Re: Can CleintForm work with webbrowser?

2009-03-01 Thread Diez B. Roggisch
Muddy Coder schrieb: Hi Folks, ClientForm is cool at grabbing and parsing stuff from server, I like it. After the stuff parsed, and even filled values for the Controls, I popped up an idea of displaying what I had done with webbrowser. Look at the code: import ClientForm import urllib2 import w

cannot execute binary file (Python 3.0.1)

2009-03-01 Thread cf29
Greetings, On Mac OS 10.5.6, I updated Python to version 3.0.1. When I want to run a py file, I get an error: xxx:~ xxx$ cd '/Users/xxx/Documents/programmingPractice/' && '/usr/ local/bin/python' '/Users/xxx/Documents/programmingPractice/ python_file.py' && echo Exit status: $? && exit 1 -bash: /

Re: cannot execute binary file (Python 3.0.1)

2009-03-01 Thread Chris Rebert
On Sun, Mar 1, 2009 at 12:04 AM, cf29 wrote: > Greetings, > On Mac OS 10.5.6, I updated Python to version 3.0.1. > When I want to run a py file, I get an error: > xxx:~ xxx$ cd '/Users/xxx/Documents/programmingPractice/' && '/usr/ > local/bin/python'  '/Users/xxx/Documents/programmingPractice/ > p

Re: ANN: updates to Python-by-example

2009-03-01 Thread Banibrata Dutta
very useful for an off-and-on, foo-bar programmer! i'm sure it'd have something of value to more experienced programmers as well. On Fri, Feb 27, 2009 at 7:27 PM, Rainy wrote: > Python-by-example http://pbe.lightbird.net/index.html";>http:// > pbe.lightbird.net has some new modules added: pickle

Re: cannot execute binary file (Python 3.0.1)

2009-03-01 Thread cf29
On Mar 1, 11:14 am, Chris Rebert wrote: > Detailing exactly how you upgraded Python would help immensely. > > Cheers, > Chris Thanks for your answer. I installed the package in python-3.0.1-macosx2009-02-14.dmg (downloaded from http://www.python.org/download/releases/3.0.1/) and runed the Update

Re: file locking...

2009-03-01 Thread Nigel Rantor
bruce wrote: Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is going to access a number of files in a dir. Each process accesses a unique group o

Re: file locking...

2009-03-01 Thread koranthala
On Mar 1, 2:28 pm, Nigel Rantor wrote: > bruce wrote: > > Hi. > > > Got a bit of a question/issue that I'm trying to resolve. I'm asking > > this of a few groups so bear with me. > > > I'm considering a situation where I have multiple processes running, > > and each process is going to access a nu

Re: cannot execute binary file (Python 3.0.1)

2009-03-01 Thread Ned Deily
In article , cf29 wrote: > On Mac OS 10.5.6, I updated Python to version 3.0.1. > When I want to run a py file, I get an error: > xxx:~ xxx$ cd '/Users/xxx/Documents/programmingPractice/' && '/usr/ > local/bin/python' '/Users/xxx/Documents/programmingPractice/ > python_file.py' && echo Exit st

Re: file locking...

2009-03-01 Thread Nigel Rantor
koranthala wrote: On Mar 1, 2:28 pm, Nigel Rantor wrote: bruce wrote: Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is going to access a number

Re: cannot execute binary file (Python 3.0.1)

2009-03-01 Thread cf29
On Mar 1, 12:52 pm, Ned Deily wrote: > It appears you are trying to run a python script by double-clicking on > it and that Python Launcher.app is the default application associated > with .py files.  The default setting in Python Launcher is to use the > python linked to /use/local/bin/pythonw.  

Re: PIL's thumbnail function returns NoneType

2009-03-01 Thread Hrvoje Niksic
Mirat Can Bayrak writes: > Can you try it? it is about me or it is a bug? Neither. im.thumbnail() modifies the existing image object by converting it to a thumbnail. In Python such methods by convention return None. The documentation explicitly mentions that: Also note that this function

PIL's thumbnail function returns NoneType

2009-03-01 Thread Mirat Can Bayrak
Can you try it? it is about me or it is a bug? In [1]: import Image In [2]: im = Image.open("r.png") In [3]: type(im) Out[3]: In [4]: thm = im.thumbnail((200,200)) In [5]: type(thm) Out[5]: -- Mirat Can Bayrak -- http://mail.python.org/mailman/listinfo/python-list

Performance of Python 3

2009-03-01 Thread Kless
Does anybody has seen the performance of Python 3? Respect to speed it's the last language together to Ruby 1.8, but Ruby 1.9 has a lot of better performance. :( http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=all -- http://mail.python.org/mailman/listinfo/python-list

Re: Performance of Python 3

2009-03-01 Thread Akira Kitada
Is this what you are looking for? http://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=python3&lang2=yarv&box=1 On Sun, Mar 1, 2009 at 10:04 PM, Kless wrote: > Does anybody has seen the performance of Python 3? > Respect to speed it's the last language together to Ruby 1.8, but Rub

Re: Performance of Python 3

2009-03-01 Thread Christian Heimes
Kless schrieb: > Does anybody has seen the performance of Python 3? > Respect to speed it's the last language together to Ruby 1.8, but Ruby > 1.9 has a lot of better performance. :( Python 3.0 is slower than Python 2.5 and 2.6. Lot's of code was added or modified -- code that hasn't been optimize

Re: Creating Zip file like java jar file

2009-03-01 Thread Steve Holden
zaheer.ag...@gmail.com wrote: > On Mar 1, 1:32 am, "Gabriel Genellina" wrote: >> En Sat, 28 Feb 2009 16:51:04 -0200, escribió: >> >> >> >>> On Feb 28, 11:33 pm, Lie Ryan wrote: zaheer.ag...@gmail.com wrote: > On Feb 28, 11:15 pm, "Gabriel Genellina" > wrote: >> En Sat, 28 Feb 2

Characters aren't displayed correctly

2009-03-01 Thread Hussein B
Hey, I'm retrieving records from MySQL database that contains non english characters. Then I create a String that contains HTML markup and column values from the previous result set. + markup = u'''.''' for row in rows: markup = markup + '' + row['id'] markup = markup + ' + Then I'

Re: Bug report: ClientForm

2009-03-01 Thread Steve Holden
MRAB wrote: > Muddy Coder wrote: >> Hi Folks, >> >> As directed, I got ClientForm and played with it. It is cool! However, >> I also found a bug: >> >> When it parses a form, if the VALUE of a field has not space, it works >> very well. For example, if a dropdown list, there many options, such >> a

Re: Creating Zip file like java jar file

2009-03-01 Thread Gabriel Genellina
En Sun, 01 Mar 2009 03:16:53 -0200, escribió: >> >>> I want to create zip file equivalent to java jar file,I created a >> zip >> >>> file of my sources and added some __main__.py >> >>> it says __Main__.py not found in Copyproject.zip..? I can get to work but is it is not able to locate the pa

Re: Performance of Python 3

2009-03-01 Thread Steve Holden
Kless wrote: > Does anybody has seen the performance of Python 3? > Respect to speed it's the last language together to Ruby 1.8, but Ruby > 1.9 has a lot of better performance. :( > I'm not sure what you think the speed of Ruby has to do with Python. Unless, of course, you are simply trying to fo

Is it possible to grab hidden code in ClientForm?

2009-03-01 Thread Muddy Coder
Hi Folks, Nowadays some websites let users to fill in some so-called verification code, and the tricky thing is that the CODE is delivered from server with an image. For example:   Refresh Image When click Refresh Image, the CODE on the image changes. I wonder: does the server really send a new

RE: Email Program

2009-03-01 Thread Thomas Raef
I totally agree. No sarcasm here. > -Original Message- > From: python-list-bounces+traef=ebasedsecurity@python.org > [mailto:python-list-bounces+traef=ebasedsecurity@python.org] On > Behalf Of Christian Heimes > Sent: Saturday, February 28, 2009 8:24 PM > To: python-list@python.org

Re: Creating Zip file like java jar file

2009-03-01 Thread zaheer . agadi
On Mar 1, 6:53 pm, "Gabriel Genellina" wrote: > En Sun, 01 Mar 2009 03:16:53 -0200, escribió: > > > > >> >> >>> I want to create zip file equivalent to java jar file,I created a > >> >> zip > >> >> >>> file of my sources and added some __main__.py > >> >> >>> it says __Main__.py not found in Copy

Re: Characters aren't displayed correctly

2009-03-01 Thread Philip Semanchuk
On Mar 1, 2009, at 8:31 AM, Hussein B wrote: Hey, I'm retrieving records from MySQL database that contains non english characters. Then I create a String that contains HTML markup and column values from the previous result set. + markup = u'''.''' for row in rows: markup = markup +

Re: Creating Zip file like java jar file

2009-03-01 Thread zaheer . agadi
On Mar 1, 7:40 pm, zaheer.ag...@gmail.com wrote: > On Mar 1, 6:53 pm, "Gabriel Genellina" wrote: > > > > > En Sun, 01 Mar 2009 03:16:53 -0200, escribió: > > > >> >> >>> I want to create zip file equivalent to java jar file,I created a > > >> >> zip > > >> >> >>> file of my sources and added some

Re: Performance of Python 3

2009-03-01 Thread Paul Rubin
Steve Holden writes: > I'm not sure what you think the speed of Ruby has to do with Python. In the real world, people care about the relative speed of programs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposed implementation for an Ordered Dictionary

2009-03-01 Thread Colin J. Williams
Michele Simionato wrote: On Mar 1, 1:43 am, Paul Rubin wrote: "Colin J. Williams" writes: # print [mydict[x] for x in sorted(mydict.keys)] Instance object is not iterable It was a typo. Use: print [mydict[x] for x in sorted(mydict.keys())] Even bet