[issue1185124] pydoc doesn't find all module doc strings

2013-09-25 Thread Manuel Pégourié-Gonnard
Changes by Manuel Pégourié-Gonnard m...@elzevir.fr: -- nosy: -mpg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1185124 ___ ___ Python-bugs-list

try/except KeyError vs if name in ...

2012-10-06 Thread Manuel Pégourié-Gonnard
here? Thanks in advance for your comments. -- Manuel Pégourié-Gonnard - http://people.math.jussieu.fr/~mpg/ -- http://mail.python.org/mailman/listinfo/python-list

Re: try/except KeyError vs if name in ...

2012-10-06 Thread Manuel Pégourié-Gonnard
Günther Dietrich scripsit : Somewhere I read a text regarding 'try:' versus 'if'. If you take the probabitility into consideration, how many times the test will fail or succeed, there are two possibilities: [...] Ok, thanks for the details! -- Manuel Pégourié-Gonnard - http

Re: try/except KeyError vs if name in ...

2012-10-06 Thread Manuel Pégourié-Gonnard
people may be creative :) But in principle, yes, it is a race condition and yes it is a (small) concern. Since it is so easy to avoid even this tiny risk, why not use the try...except version and avoid it completely? Ok. Thanks for your explanations. -- Manuel Pégourié-Gonnard - http

Re: How can I hide my stack frames in a TestCase subclass?

2012-10-05 Thread Manuel Pégourié-Gonnard
method? Move MyTestCase in a separate module and define a global variable __unittest = True Hum, is it documented somewhere? I can't find it in the doc. Also, I'm curious to know what kind of magic it's using. -- Manuel Pégourié-Gonnard - http://people.math.jussieu.fr/~mpg/ -- http

Re: How can I hide my stack frames in a TestCase subclass?

2012-10-05 Thread Manuel Pégourié-Gonnard
Peter Otten scripsit : Manuel Pégourié-Gonnard wrote: Peter Otten scripsit : __unittest = True Hum, is it documented somewhere? I can't find it in the doc. Also, I'm curious to know what kind of magic it's using. I took advantage of the fact that Python is open source and had a look

[issue16144] misleading sentence in reference/import

2012-10-05 Thread Manuel Pégourié-Gonnard
New submission from Manuel Pégourié-Gonnard: I find the following sentences, from import.rst, section Finders and loaders, misleading: Python includes a number of default finders and importers. One knows how to locate frozen modules, and another knows how to locate built-in modules

Re: Combinations of lists

2012-10-03 Thread Manuel Pégourié-Gonnard
[i][k] for all i and j != k.) -- Manuel Pégourié-Gonnard - http://people.math.jussieu.fr/~mpg/ -- http://mail.python.org/mailman/listinfo/python-list

[issue1185124] pydoc doesn't find all module doc strings

2012-10-01 Thread Manuel Pégourié-Gonnard
Changes by Manuel Pégourié-Gonnard m...@elzevir.fr: -- nosy: +mpg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1185124 ___ ___ Python-bugs-list

Re: Should one always add super().__init__() to the __init__?

2012-09-30 Thread Manuel Pégourié-Gonnard
). -- Manuel Pégourié-Gonnard - http://people.math.jussieu.fr/~mpg/ -- http://mail.python.org/mailman/listinfo/python-list

[issue16080] test_decimal causes other tests to fail with LC_ALL=fr_FR

2012-09-28 Thread Manuel Pégourié-Gonnard
New submission from Manuel Pégourié-Gonnard: Some tests, namely test_email, test_locale and test_mailbox, normally pass, but fail if both of the following conditions are met: - the local is fr_FR (or probably any other non-C locale) - test_decimal is run before them Steps to repoduce

[issue7484] smtplib: verify breaks with Postfix servers

2009-12-11 Thread Manuel Pégourié-Gonnard
New submission from Manuel Pégourié-Gonnard m...@elzevir.fr: Hi, The verify method of SMTP objects created with smtplib doesn't work properly with servers running Postfix, due to quoting problems: the address is enclosed in pointed brackets by the method, which changes the way it is interpreted