ANN: PyGUI 2.3.2

2010-12-16 Thread Greg Ewing
PyGUI 2.3.2 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version fixes a problem in Cocoa whereby the coordinate system for drawing in a Pixmap was upside down, and corrects a slight mistake in the Canvas documentation. What is PyGUI? -- PyGUI is a

ANN: Shed Skin 0.7

2010-12-16 Thread Mark Dufour
Hi all, I have just released Shed Skin 0.7, an optimizing (restricted-)Python-to-C++ compiler. It comes with lots of minor fixes and some optimizations, a new Windows package (which includes GCC 4.5), and two nice new examples, for a total of 52 examples at around 14,000 lines (sloccount). Please

Re: Dealing with pywin32 on Linux

2010-12-16 Thread Benedict Verheyen
On 15/12/2010 16:54, Stefan Sonnenberg-Carstens wrote: snip Just change to LDAP as authentication method. Even Active Directory offers LDAP (w/o SSL), and there are modules to interact with LDAP using python. And, it is platform indipendent. See here: http://www.python-ldap.org/ I've

Re: O'Reilly Python Certification

2010-12-16 Thread Nitin Pawar
Can someone provide any links or any starting points on how to apply and what are the prerequisites Thanks, Nitin On Thu, Dec 16, 2010 at 12:18 PM, Steve Holden st...@holdenweb.com wrote: On 12/15/2010 4:21 PM, Stefan Sonnenberg-Carstens wrote: Am 15.12.2010 22:11, schrieb Steve Holden: On

Re: Added Python, WSGI to XAMPP

2010-12-16 Thread Octavian Rasnita
From: Ian Kelly ian.g.ke...@gmail.com On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno gr...@verizon.net wrote: The VIEW is the bits that stream out of the webserver back to the users browser. Why only to the user's browser? A web app could also offer the results in formats that can be accessed

Re: while True or while 1

2010-12-16 Thread BartC
Steve Holden st...@holdenweb.com wrote in message news:mailman.462.1292214062.2649.python-l...@python.org... On 12/12/2010 2:32 PM, Christian Heimes wrote: Am 12.12.2010 19:31, schrieb Steve Holden: $ python -m timeit -n20 -- i = 0 while 1: i+=1 if i == 100: break 20 loops, best of

string identity and comparison

2010-12-16 Thread Jean-Michel Pichavant
Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content. id('foo') 3082385472L id('foo') 3082385472L Anyone has that kind of code

Re: string identity and comparison

2010-12-16 Thread André
On Thursday, December 16, 2010 7:55:20 AM UTC-4, jeanmichel wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content.

Re: string identity and comparison

2010-12-16 Thread bruno.desthuilli...@gmail.com
On 16 déc, 12:55, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content.

Re: Calling function from another module

2010-12-16 Thread Peter Otten
craf wrote: Hi. The query code is as follows: -- import Tkinter import tkMessageBox class App: def __init__(self, master): master.protocol(WM_DELETE_WINDOW,quit) def quit(): if

Re: while True or while 1

2010-12-16 Thread Steve Holden
On 12/16/2010 5:44 AM, BartC wrote: On 12/12/2010 2:32 PM, Christian Heimes wrote: Am 12.12.2010 19:31, schrieb Steve Holden: $ python -m timeit -n20 -- i = 0 while 1: i+=1 if i == 100: break 20 loops, best of 3: 89.7 msec per loop $ python -m timeit -n20 -- i = 0 while True:

Re: string identity and comparison

2010-12-16 Thread Steve Holden
On 12/16/2010 6:55 AM, Jean-Michel Pichavant wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content. id('foo')

[Fwd: Re: Calling function from another module]

2010-12-16 Thread craf
- Mensaje reenviado De: Peter Otten __pete...@web.de Para: python-list@python.org Asunto: Re: Calling function from another module Fecha: Thu, 16 Dec 2010 13:16:30 +0100 Grupos de noticias: comp.lang.python craf wrote: Hi. The query code is as follows:

ANN: Shed Skin 0.7

2010-12-16 Thread Mark Dufour
Hi all, I have just released Shed Skin 0.7, an optimizing (restricted-)Python-to-C++ compiler. It comes with lots of minor fixes and some optimizations, a new Windows package (which includes GCC 4.5), and two nice new examples, for a total of 52 examples at around 14,000 lines (sloccount). Please

Re: string identity and comparison

2010-12-16 Thread Peter Otten
Steve Holden wrote: On 12/16/2010 6:55 AM, Jean-Michel Pichavant wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content.

Re: string identity and comparison

2010-12-16 Thread Peter Otten
Peter Otten wrote: Steve Holden wrote: On 12/16/2010 6:55 AM, Jean-Michel Pichavant wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for

Re: Extending Thunderbird mail client with Python

2010-12-16 Thread Anssi Saari
John Bond li...@asd-group.com writes: Anyone have any experience with this, ideally using Python 3? I don't but there is a great need to have a working SyncML client for Thunderbird. Funambol used to have one available, but it has crashing problems with Thunderbird 3 for some people. The

Re: string identity and comparison

2010-12-16 Thread Mel
Jean-Michel Pichavant wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content. id('foo') 3082385472L id('foo')

Re: string identity and comparison

2010-12-16 Thread Jean-Michel Pichavant
Jean-Michel Pichavant wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content. id('foo') 3082385472L id('foo')

Re: ANN: Shed Skin 0.7

2010-12-16 Thread python
Mark, Congratulations on your latest release! How well do python extension modules created with ShedSkin work with applications that expose a GUI, eg. Tkinter or wxPython apps? Can ShedSkin code be run in a thread and communicate with the main interpreter thread through a Queue or Lock? (Or

Re: string identity and comparison

2010-12-16 Thread Jean-Michel Pichavant
bruno.desthuilli...@gmail.com wrote: On 16 déc, 12:55, Jean-Michel Pichavant jeanmic...@sequans.com wrote: id('foo') 3082385472L id('foo') 3082385472L Anyone has that kind of code ? 2 points: 1- an id is only valid for the lifetime of a given object - when the object has been

Re: string identity and comparison

2010-12-16 Thread Jean-Michel Pichavant
Mel wrote: Jean-Michel Pichavant wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content. id('foo') 3082385472L

Re: How to pop the interpreter's stack?

2010-12-16 Thread Ethan Furman
Tim Arnold wrote: Ethan Furman et...@stoneleaf.us wrote in message news:mailman.4.1292379995.6505.python-l...@python.org... kj wrote: The one thing I don't like about this strategy is that the tracebacks of exceptions raised during the execution of __pre_spam include one unwanted stack level

Re: while True or while 1

2010-12-16 Thread Ethan Furman
BartC wrote: Steve Holden st...@holdenweb.com wrote in message news:mailman.462.1292214062.2649.python-l...@python.org... On 12/12/2010 2:32 PM, Christian Heimes wrote: Am 12.12.2010 19:31, schrieb Steve Holden: $ python -m timeit -n20 -- i = 0 while 1: i+=1 if i == 100: break 20

Re: O'Reilly Python Certification

2010-12-16 Thread Ethan Furman
Please don't top-post. :) Nitin Pawar wrote: Can someone provide any links or any starting points on how to apply and what are the prerequisites http://www.oreillyschool.com/certificates/python-programming.php No prerequisites that I could see, and currently they are running a 25%

Re: string identity and comparison

2010-12-16 Thread bruno.desthuilli...@gmail.com
On 16 déc, 15:52, Jean-Michel Pichavant jeanmic...@sequans.com wrote: bruno.desthuilli...@gmail.com wrote: On 16 d c, 12:55, Jean-Michel Pichavant jeanmic...@sequans.com wrote: id('foo') 3082385472L id('foo') 3082385472L Anyone has that kind of code ? 2 points: 1- an id is

Re: string identity and comparison

2010-12-16 Thread bruno.desthuilli...@gmail.com
On 16 déc, 15:53, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Mel wrote: Jean-Michel Pichavant wrote: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2

Re: How to pop the interpreter's stack?

2010-12-16 Thread Steven D'Aprano
On Thu, 16 Dec 2010 07:29:25 -0800, Ethan Furman wrote: Tim Arnold wrote: Ethan Furman et...@stoneleaf.us wrote in message news:mailman.4.1292379995.6505.python-l...@python.org... kj wrote: The one thing I don't like about this strategy is that the tracebacks of exceptions raised during the

Re: How to pop the interpreter's stack?

2010-12-16 Thread Robert Kern
On 12/16/10 10:23 AM, Steven D'Aprano wrote: On Thu, 16 Dec 2010 07:29:25 -0800, Ethan Furman wrote: Tim Arnold wrote: Ethan Furmanet...@stoneleaf.us wrote in message news:mailman.4.1292379995.6505.python-l...@python.org... kj wrote: The one thing I don't like about this strategy is that

ANN: PyGUI 2.3.2

2010-12-16 Thread Greg Ewing
PyGUI 2.3.2 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version fixes a problem in Cocoa whereby the coordinate system for drawing in a Pixmap was upside down, and corrects a slight mistake in the Canvas documentation. What is PyGUI? -- PyGUI is a

Re: Extending Thunderbird mail client with Python

2010-12-16 Thread mixedpuppy
On Nov 11, 11:48 pm, John Bond li...@asd-group.com wrote: Anyone have any experience with this, ideally using Python 3? I'd like to sync my Thunderbird contacts with various things including my mobile phone. Of course, I want to do it with Python! I've seen some stuff around, eg. an XPI that

Re: O'Reilly Python Certification

2010-12-16 Thread Matty Sarro
So how exactly does the class work? Is it like an elementary CS class where you have a teacher, assignments, etc. Or is it more like a guided tour through the O'Reilly Python book/cookbook? On Thu, Dec 16, 2010 at 10:40 AM, Ethan Furman et...@stoneleaf.us wrote: Please don't top-post.  :)

Re: O'Reilly Python Certification

2010-12-16 Thread Steve Holden
Each lesson required you to complete a practical assignment. You submit these assignments for evaluation, and do not proceed to the next lesson until your assignment reaches a satisfactory standard. Thus, less experienced students will tend to have more interaction with their tutors. A class will

Re: Python creates locked temp dir

2010-12-16 Thread utabintarbo
FWIW, I got around the issue with some samba mount options. They still show as 0700, but I, or anybody elsefor that matter, can still access them. Computers are weird. :P Thanks to all who responded. :) On Dec 10, 2:57 pm, Alex Willmer a...@moreati.org.uk wrote: On Dec 8, 6:26 pm, Christian

Is text processing with dicts a good use case for Python cross-compilers like Cython/Pyrex or ShedSkin?

2010-12-16 Thread python
Is text processing with dicts a good use case for Python cross-compilers like Cython/Pyrex or ShedSkin? (I've read the cross compiler claims about massive increases in pure numeric performance). I have 3 use cases I'm considering for Python-to-C++ cross-compilers for generating 32-bit Python

Re: while True or while 1

2010-12-16 Thread Arnaud Delobelle
Ethan Furman et...@stoneleaf.us writes: ...I timed exec vs function, and found the function style to be about 200% faster... So it finished before it started? -- Arnaud -- http://mail.python.org/mailman/listinfo/python-list

Re: while True or while 1

2010-12-16 Thread Terry Reedy
On 12/16/2010 7:23 AM, Steve Holden wrote: On 12/16/2010 5:44 AM, BartC wrote: One these is 30% faster than the other. That's an appreciable difference, which you can't really just dismiss. And you can't tell what the overall effect on a program will be: perhaps the loop will be in a library

Re: Added Python, WSGI to XAMPP

2010-12-16 Thread Gerry Reno
On 12/16/2010 04:36 AM, Octavian Rasnita wrote: From: Ian Kelly ian.g.ke...@gmail.com On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno gr...@verizon.net wrote: The VIEW is the bits that stream out of the webserver back to the users browser. Why only to the user's browser? A web app

Re: while True or while 1

2010-12-16 Thread Ethan Furman
Arnaud Delobelle wrote: Ethan Furman et...@stoneleaf.us writes: ...I timed exec vs function, and found the function style to be about 200% faster... So it finished before it started? Hmmm Let me check my calculator... . . . Ah! Okay, that was 200x faster. :) I think -- it was a

Re: string identity and comparison

2010-12-16 Thread Arnaud Delobelle
Jean-Michel Pichavant jeanmic...@sequans.com writes: Fellows, I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content. id('foo')

pudb on windows (dependent upon unix only termios ?)

2010-12-16 Thread shearichard
Hi - I was just trying to install the Python debugger pudb (http:// pypi.python.org/pypi/pudb) and easy install fell over saying it couldn't find a module termios. It turns out termios is only for Unix (http://docs.python.org/library/ termios.html). Does anyone know of way around this ? Is there

Re: Is text processing with dicts a good use case for Python cross-compilers like Cython/Pyrex or ShedSkin?

2010-12-16 Thread Stefan Behnel
pyt...@bdurham.com, 16.12.2010 21:03: Is text processing with dicts a good use case for Python cross-compilers like Cython/Pyrex or ShedSkin? (I've read the cross compiler claims about massive increases in pure numeric performance). Cython is generally a good choice for string processing,

If/then style question

2010-12-16 Thread John Gordon
(This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be appreciated!) When I started learning Python, I wrote a lot of methods that looked like this: def myMethod(self, arg1, arg2): if some_good_condition:

Re: If/then style question

2010-12-16 Thread Ethan Furman
John Gordon wrote: (This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be appreciated!) When I started learning Python, I wrote a lot of methods that looked like this: def myMethod(self, arg1, arg2): if

Re: If/then style question

2010-12-16 Thread Tim Harig
On 2010-12-16, John Gordon gor...@panix.com wrote: I like this style more, mostly because it eliminates a lot of indentation. However I recall one of my college CS courses stating that one entry, one exit was a good way to write code, and this style has lots of exits. So, take the good

Re: If/then style question

2010-12-16 Thread Grant Edwards
On 2010-12-16, John Gordon gor...@panix.com wrote: (This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be appreciated!) When I started learning Python, I wrote a lot of methods that looked like this: def

Re: If/then style question

2010-12-16 Thread Stefan Sonnenberg-Carstens
Am 16.12.2010 22:49, schrieb John Gordon: (This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be appreciated!) When I started learning Python, I wrote a lot of methods that looked like this: def

Re: If/then style question

2010-12-16 Thread Ryan Kelly
On Thu, 2010-12-16 at 21:49 +, John Gordon wrote: (This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be appreciated!) When I started learning Python, I wrote a lot of methods that looked like this:

Re: If/then style question

2010-12-16 Thread Ian Kelly
On Thu, Dec 16, 2010 at 3:41 PM, Stefan Sonnenberg-Carstens stefan.sonnenb...@pythonmeister.com wrote: return [x for x,y in ((bad1,some_bad_condition),(bad2,some_other_bad_condition),(bad3,yet_another_bad_condition),(good1,do_some_useful_stuff() or True)) if x][0] This doesn't work.

Re: while True or while 1

2010-12-16 Thread BartC
Steve Holden st...@holdenweb.com wrote in message news:mailman.54.1292502247.6505.python-l...@python.org... On 12/16/2010 5:44 AM, BartC wrote: One these is 30% faster than the other. That's an appreciable difference, which you can't really just dismiss. shol...@lifeboy ~ $ python -m

Re: If/then style question

2010-12-16 Thread Steven D'Aprano
On Thu, 16 Dec 2010 21:49:07 +, John Gordon wrote: (This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be appreciated!) When I started learning Python, I wrote a lot of methods that looked like this:

Re: while True or while 1

2010-12-16 Thread Ian
On Dec 16, 4:34 pm, BartC b...@freeuk.com wrote: def p2(n):   p=1  whileTrue:     if n=p: return p     p=1   return 0 for i in xrange(100):   x=p2(i) p2() calculates the smallest power of 2 = it's operand. def p2(n): return 1 n.bit_length() --

Re: If/then style question

2010-12-16 Thread alex23
John Gordon gor...@panix.com wrote: But lately I've been preferring this style:   def myMethod(self, arg1, arg2):     if some_bad_condition:       return bad1     elif some_other_bad_condition:       return bad2     elif yet_another_bad_condition:       return bad3    

Re: How to pop the interpreter's stack?

2010-12-16 Thread Steven D'Aprano
On Thu, 16 Dec 2010 10:39:34 -0600, Robert Kern wrote: On 12/16/10 10:23 AM, Steven D'Aprano wrote: On Thu, 16 Dec 2010 07:29:25 -0800, Ethan Furman wrote: Tim Arnold wrote: Ethan Furmanet...@stoneleaf.us wrote in message news:mailman.4.1292379995.6505.python-l...@python.org... kj wrote:

Re: string identity and comparison

2010-12-16 Thread alex23
On Dec 16, 9:55 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: I'd like to illutrate the fact that comparing strings using identity is, most of the time, a bad idea. However I'm searching a short example of code that yields 2 differents object for the same string content. Anyone has

Re: while True or while 1

2010-12-16 Thread Steven D'Aprano
On Thu, 16 Dec 2010 23:34:21 +, BartC wrote: In terms of a more realistic function (admittedly still a little contrived, as the loop would be written differently), I tried this: def p2(n): p=1 while True: if n=p: return p p=1 return 0 for i in xrange(100):

Read / Write OpenOffice SpreadSheet ?

2010-12-16 Thread Torsten Mohr
Hi, i search for a possibility to access OpenOffoce SpreadSheets from Python with a reasonably new version of Python. Can anybody point me to a package that can do this? Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: Read / Write OpenOffice SpreadSheet ?

2010-12-16 Thread Emile van Sebille
On 12/16/2010 5:07 PM Torsten Mohr said... Hi, i search for a possibility to access OpenOffoce SpreadSheets from Python with a reasonably new version of Python. Can anybody point me to a package that can do this? If you're open to 'saving as xls' then xlrd/xlwt works well. Otherwise, when

Re: If/then style question

2010-12-16 Thread Joel Koltner
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote in message news:4d0aa5e7$0$29997$c3e8da3$54964...@news.astraweb.com... It doesn't look like you were learning Python. It looks like you were learning C with Python syntax :( True, although in many cases one has to interface to legacy C

Re: Read / Write OpenOffice SpreadSheet ?

2010-12-16 Thread Tim Harig
On 2010-12-17, Torsten Mohr tm...@s.netic.de wrote: i search for a possibility to access OpenOffoce SpreadSheets from Python with a reasonably new version of Python. Can anybody point me to a package that can do this? There is no package needed to read or write the new open document files.

Re: Read / Write OpenOffice SpreadSheet ?

2010-12-16 Thread Tim Chase
On 12/16/2010 07:53 PM, Tim Harig wrote: On 2010-12-17, Torsten Mohrtm...@s.netic.de wrote: i search for a possibility to access OpenOffoce SpreadSheets from Python with a reasonably new version of Python. Can anybody point me to a package that can do this? There is no package needed to

Re: Read / Write OpenOffice SpreadSheet ?

2010-12-16 Thread joymanchen
Torsten Mohr 写入消息 news:ieed6o$iq...@news.lf.net... Hi, i search for a possibility to access OpenOffoce SpreadSheets from Python with a reasonably new version of Python. Can anybody point me to a package that can do this? Best regards, Torsten. --- news://freenews.netfront.net/ -

Newbie question about importing modules.

2010-12-16 Thread cronoklee
Hi I'm starting my first python project but I'm having trouble getting off the ground. I've read all I can find about relative and absolute import paths but it's just not making sense to me... There seems to be around ten different ways to import a script. I need my project to be portable so I

Re: If/then style question

2010-12-16 Thread Carl Banks
On Dec 16, 2:56 pm, Ryan Kelly r...@rfk.id.au wrote: On Thu, 2010-12-16 at 21:49 +, John Gordon wrote: (This is mostly a style question, and perhaps one that has already been discussed elsewhere.  If so, a pointer to that discussion will be appreciated!) When I started learning

Re: Newbie question about importing modules.

2010-12-16 Thread Jony Zhu
Hi, cronoklee maybe you should check every module directory you want to import to see if there is a __init__.py in it? missing a __init__.py file would cause error when you try to import the directory as a module. 在 Fri, 17 Dec 2010 11:42:48 +0800,cronoklee cronok...@gmail.com 写道: Hi I'm

Re: If/then style question

2010-12-16 Thread Steve Holden
On 12/16/2010 11:32 PM, Carl Banks wrote: On Dec 16, 2:56 pm, Ryan Kelly r...@rfk.id.au wrote: On Thu, 2010-12-16 at 21:49 +, John Gordon wrote: (This is mostly a style question, and perhaps one that has already been discussed elsewhere. If so, a pointer to that discussion will be

Re: How to pop the interpreter's stack?

2010-12-16 Thread Carl Banks
On Dec 15, 2:16 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Tue, 14 Dec 2010 21:14:35 +, kj wrote: Consider this code: def spam(*args, **kwargs):     args, kwargs = __pre_spam(*args, **kwargs)     # args kwargs are OK: proceed     # ... def

Re: How to pop the interpreter's stack?

2010-12-16 Thread John Nagle
On 12/14/2010 6:31 PM, Ethan Furman wrote: kj wrote: The one thing I don't like about this strategy is that the tracebacks of exceptions raised during the execution of __pre_spam include one unwanted stack level (namely, the one corresponding to __pre_spam itself). __pre_spam should be

Re: How to pop the interpreter's stack?

2010-12-16 Thread Terry Reedy
On 12/16/2010 7:33 PM, Steven D'Aprano wrote: Python's exception system has to handle two different situations: buggy code, and bad data. It's not even clear whether there is a general distinction to be made between the two, but even if there's not a general distinction, there's certainly a

[issue10692] imap lib server compabilities

2010-12-16 Thread Yevgeniy
Yevgeniy shchemele...@gmail.com added the comment: I found than it is server configuration problem. When i add variable IMAP_COPABILITY to /etc/courier/imapd-ssl all troubles are gone. Variable did not exported from /etc/courier/imapd, but documentation sad that it imports automatically. Thank

[issue10711] Rip out HTTP 0.9 support

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: +1 removing HTTP 0.9, and falling back to HTTP 1.0 behavior where ever it was HTTP 0.9. Removing support for response without status (which was acceptable by 0.9) is fine. I reviewed the patch too and it seems good to go. --

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-12-16 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Georg, I believe this should go in 3.2. The alias capability is an essential part of what subparsers are all about and these absence of aliases would leave them partially crippled (i.e. unable to emulate the likes of svn

[issue10573] Consistency in unittest assert methods: order of actual, expected

2010-12-16 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: This should get fixed-up before the second beta. Try to confirm the most common argument ordering using Google's code search to ascertain actual practice in real code. FWIW, I also tend to use actual/expected and find the

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-12-16 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10515 ___

[issue9938] Documentation for argparse interactive use

2010-12-16 Thread Tan Zong Xuan
Tan Zong Xuan tzxru...@gmail.com added the comment: I am also trying to use argparse interactively, but in this case by combining it with the cmd module. So I'm doing something like below: class MyCmd(cmd.Cmd): parser = argparse.ArgumentParser(prog='addobject')

[issue10669] Document Deprecation Warnings and how to fix

2010-12-16 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: FWIW, whatsnew is not primary documentation -- it should not be the sole or central source of anything except a highlevel overview and examples for the author's choice of selected version differences to highlight. A howto

[issue10605] ElementTree documentation

2010-12-16 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - effbot nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10605 ___

[issue10592] pprint module doesn't work well with OrderedDicts

2010-12-16 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- Removed message: http://bugs.python.org/msg122983 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10592 ___

[issue10592] pprint module doesn't work well with OrderedDicts

2010-12-16 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10592 ___

[issue6454] Add example keyword argument to optparse constructor

2010-12-16 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The two principals on the two argument parsing modules both find this unnecessary. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10716] Modernize pydoc to use CSS

2010-12-16 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: This is a straight-forward project. Pydoc currently generated 1990's style html which mixes content and presentation, making it very difficult for users to customize the appearance of the output. It is full of html like:

[issue10715] uninformative error message

2010-12-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Normally the filename is part of the error message, as you can see below. It's possible that some operations omit it, though. Which function were you calling? open('foo') Traceback (most recent call last): File stdin, line 1, in

[issue10715] uninformative error message

2010-12-16 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Operating systems also return this errno for many, many things unrelated to files. So while we might be able to fix this in some specific cases, in general it's not possible to add file names to all errors. Once we know your specific case we

[issue10716] Modernize pydoc to use CSS

2010-12-16 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- assignee: - lukasz.langa nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10716 ___

[issue10566] gdb debugging support additions (Tools/gdb/libpython.py)

2010-12-16 Thread Mark Florisson
Mark Florisson markflorisso...@gmail.com added the comment: I forgot to remove a tempfile and reverted the Cython note at the top. A diff is provided (that should be applied upon the previously submitted patch). It's a diff because I don't have commit rights and svn does not support local

[issue10566] gdb debugging support additions (Tools/gdb/libpython.py)

2010-12-16 Thread Mark Florisson
Changes by Mark Florisson markflorisso...@gmail.com: Removed file: http://bugs.python.org/file19857/libpython_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10566 ___

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Well, ignore my comment on order of ip addresses. It definitely does not matter in this case for test_urllib2. However, readability does matter again as per my previous explanation, since http://localhost/ was being exercised in the

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2010-12-16 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: I guess http://bugs.python.org/issue1195 might be related -- nosy: +nvetoshkin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1633941

[issue10692] imap lib server compabilities

2010-12-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You are welcome. Glad you were able to solve it. -- resolution: - invalid stage: unit test needed - committed/rejected ___ Python tracker rep...@bugs.python.org

[issue6791] httplib read status memory usage

2010-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, removing 0.9 support doesn't make this obsolete, does it? -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6791

[issue9991] xmlrpc client ssl check faulty

2010-12-16 Thread Jesse Kaukonen
Jesse Kaukonen jesse.kauko...@gmail.com added the comment: I tested the latest release of Python (3.1.3) with Blender and everything worked beautifully. Renderfarm.fi thanks you for fixing this! -- ___ Python tracker rep...@bugs.python.org

[issue9938] Documentation for argparse interactive use

2010-12-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You can always catch SystemExit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9938 ___ ___

[issue10669] Document Deprecation Warnings and how to fix

2010-12-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: PEP 4 and PEP 290 are related to this subject, but not comprehensive, not on docs.python.org, and not tutorial-like. I think we could try Ezio’s idea. Sphinx can produce a document containing only version* directives (“make changes”). If such

[issue6791] httplib read status memory usage

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Thu, Dec 16, 2010 at 01:18:30PM +, Antoine Pitrou wrote: Well, removing 0.9 support doesn't make this obsolete, does it? It does. Doesn't it? Because I saw in your patch that you fall back on HTTP 1.0 behaviour when the server does

[issue6454] Add example keyword argument to optparse constructor

2010-12-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I understood Greg’s reply to mean that there was no need for an examples keyword if simple paragraph splitting was added. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6454

[issue10669] Document Deprecation Warnings and how to fix

2010-12-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: -2to3 (2.x to 3.0 conversion tool) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10669 ___

[issue6791] httplib read status memory usage

2010-12-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It does. Doesn't it? Because I saw in your patch that you fall back on HTTP 1.0 behaviour when the server does not return a status line and in which case a Exception will be raise and this issue won't be observed. I don't think you understood

[issue10717] Multiprocessing module Pickling unPickling issues

2010-12-16 Thread Dimitrios Pritsos
New submission from Dimitrios Pritsos dprit...@extremepro.gr: My name is Dimitrios and I am newbie in python. I am working on a Project (part of my PhD) that is called Synergeticprocessing module. Initially is imitating the multiprocessing built in module but the processes are distributed on a

[issue10717] Multiprocessing module Pickling unPickling issues

2010-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +asksol, jnoller versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10717 ___

[issue10718] brand new to programming. crashes at run

2010-12-16 Thread Jill
New submission from Jill jillcoste...@gmail.com: Hello and thanks in advance. I installed Python 2.7 from the python site onto my MAC with OS X 10.6.4. After entering my code (which makes me feel humbled and brilliant all at the same time) I am prompted to save, which I do and then when I

  1   2   >