[issue9077] argparse does not handle arguments correctly after --

2010-06-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: No, this is not intentional. Look at the docs for these attributes: parser.largs the current list of leftover arguments, ie. arguments that have been consumed but are neither options nor option arguments. Feel free to modify parser.largs,

[issue4925] Improve error message of subprocess when cannot open

2010-06-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: in PC/_subprocess.c, it should be enough to use PyErr_SetFromWindowsErrWithFilename() instead of PyErr_SetFromWindowsErr() -- keywords: +easy nosy: +amaury.forgeotdarc ___ Python tracker

[issue9112] argparse missing documentation for error() method

2010-06-29 Thread Mark Summerfield
New submission from Mark Summerfield m...@qtrac.eu: The argparse module's ArgumentParser class has an error() method that appears to have the same behavior as the optparse error() method, but this method is not mentioned in the documentation. -- assignee: d...@python components:

[issue5180] 3.1 cannot unpickle 2.7-created pickle

2010-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, this is not so obviously wrong as you make it sound. If you look closer at object_new(), you will see that in sane situations it reduces to type-tp_alloc(type, 0) call. Today, yes. But tomorrow it may entail additional operations. If

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This should be taken to the Sphinx tracker, as the feature needs to be implemented first. -- nosy: +georg.brandl status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8799] Hang in lib/test/test_threading.py

2010-06-29 Thread Zsolt Cserna
Changes by Zsolt Cserna zsolt.cse...@morganstanley.com: -- nosy: +csernazs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8799 ___ ___

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-29 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: http://bitbucket.org/birkenfeld/sphinx/issue/460/strip-section-numbers-from-toc-menu -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9106

[issue9113] Tools/msi still uses string exceptions

2010-06-29 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: string exceptions still used in a couple of places: Tools/msi/msi.py:354 Tools/msi/msi.py:368 Tools/msi/msilib.py:238 -- components: Demos and Tools messages: 108900 nosy: doko priority: normal severity: normal status: open title:

[issue3823] ssl.wrap_socket() is incompatible with servers that drop privileges, due to keyfile requirement

2010-06-29 Thread Matt Joiner
Matt Joiner anacro...@gmail.com added the comment: I take it this is out for 2.7, will it be in 3.2? -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3823 ___

[issue9114] br string literals don't appear to be documented

2010-06-29 Thread Mark Summerfield
New submission from Mark Summerfield m...@qtrac.eu: It appears that br (raw bytes) isn't documented, at least not along with string and bytes literals: http://docs.python.org/py3k/reference/lexical_analysis.html#literals Yet they are supported:

[issue9114] br string literals don't appear to be documented

2010-06-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9114 ___ ___ Python-bugs-list

[issue9113] Tools/msi still uses string exceptions

2010-06-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9113 ___ ___ Python-bugs-list

[issue2504] Add gettext.pgettext() and variants support

2010-06-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - accepted stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2504 ___

[issue1288056] pygettext: provide comments to help translators

2010-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It appears that I had mistaken comments in the source and comments in the pot/po files: /* TRANSLATORS: The placeholder indicates etc. */ printf (_(Something.\n)); These will be extracted by ‘xgettext’, leading to a .pot file that

[issue1288056] pygettext: extract translators comments

2010-06-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: pygettext: provide comments to help translators - pygettext: extract translators comments ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1288056

[issue3428] httplib.HTTPMessage undocumented

2010-06-29 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: On Mon, Jun 28, 2010 at 08:51:58PM +, ThomasH wrote: But the urllib.rst documentation is still flawed: Fixed now in the r82363. Did a find and grep on all instances of HTTPMessage and verified that it is only at proper places now.

[issue9112] argparse missing documentation for error() method

2010-06-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9112 ___ ___ Python-bugs-list

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: If the change is confined to the left menu bar only, I'd be happy to have the numbers go away entirely. But only putting in partial numbers strikes me as an invitation to confusion. If other people prefer your scheme that's fine with

[issue9110] contextlib.ContextDecorator

2010-06-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Looks pretty good to me, but you may want to doublecheck some of your test criteria. Firstly, the two *_with_exception checks don't look quite right to me. I would have expected to see something like the following for both of them:

[issue9110] contextlib.ContextDecorator

2010-06-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Hey Nick, The tests are pretty much just copied from the previous version, so they aren't all appropriate. In fact I think that the first two tests (and even the typo tests) can just go as they really just test Python semantics and not

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 for removing numbers. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9106 ___

[issue9103] API keyword

2010-06-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9103 ___ ___

[issue9095] patchcheck should handle extraneous whitespace in .rst files

2010-06-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Feel free to assign patchcheck bugs to me. I’ll write a patch and then assign to you for review. -- nosy: +merwok resolution: - accepted ___ Python tracker rep...@bugs.python.org

[issue9115] test_site: support for systems without unsetenv

2010-06-29 Thread Zsolt Cserna
New submission from Zsolt Cserna zsolt.cse...@morganstanley.com: On systems where there's no unsetenv function (for example solaris 8), test_site fails because the PYTHONUSERBASE environment variable remains set to xoxo (set in the previous tests). This results a failed test_s_option test.

[issue9110] contextlib.ContextDecorator

2010-06-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: On Wed, Jun 30, 2010 at 12:13 AM, Michael Foord rep...@bugs.python.org wrote: Michael Foord mich...@voidspace.org.uk added the comment: Hey Nick, The tests are pretty much just copied from the previous version, so they aren't all

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: At least part of the problem has nothing to do with subclassing from int and instead is related to pickling objects with circular references. I am attaching a patch that demonstrates the problem. In

[issue9114] br string literals don't appear to be documented

2010-06-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r82373. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9114

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-06-29 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: Debug and Release builds of py3k both throw up a Visual Studio debugger prompt when running this test on Windows. I don't have much time at the moment to investigate, but I find it odd that this isn't occurring on the two Windows py3k

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-06-29 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I should also note that this doesn't appear to happen on release31-maint or trunk. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9116 ___

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17800/issue1581183-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1581183 ___

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Added file: http://bugs.python.org/file17801/issue1581183-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1581183 ___

[issue9114] br string literals don't appear to be documented

2010-06-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9114 ___ ___

[issue3823] ssl.wrap_socket() is incompatible with servers that drop privileges, due to keyfile requirement

2010-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I take it this is out for 2.7, will it be in 3.2? The patch for issue8550 has been committed. The SSLContext API should solve this issue: http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLContext.wrap_socket If it doesn't, please explain

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Looking at: http://docs.python.org/dev/py3k/reference/compound_stmts.html#class-definitions I see: classdef::= [decorators] class classname [inheritance] : suite inheritance ::= ( [expression_list] ) classname ::= identifier

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Am working on a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9117 ___ ___

[issue1581183] pickle protocol 2 failure on int subclass

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Upon further investigation, I conclude that the problem is in the user code. I am attaching int_subclass_pickle_problem_fixed.py which fixes the user code as follows: def __getnewargs__(self): -return

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I believe that *args and **kwargs are now also syntactically accepted in a class definition. Indeed: class a: pass class b: pass bases = (a, b) class c(*bases): pass kwds = {'metaclass':type} class c(*bases,

[issue8998] add crypto routines to stdlib

2010-06-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Apart from the question of API, please also include a section on the legal implications this move would have on Python in the PEP. We currently only include OpenSSL in the Windows installers and (for some reason) don't pay much attention

[issue6827] deepcopy erroneously doesn't call __setstate__ if __getstate__ returns empty dict

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I see the following under http://docs.python.org/dev/py3k/library/pickle.html#pickling-class-instances: Note If __getstate__() returns a false value, the __setstate__() method will not be called. That was added in

[issue8998] add crypto routines to stdlib

2010-06-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If we are to require OpenSSL or some other crypto lib, We already depend on OpenSSL for both hashlib and ssl, this proposal wouldn't change anything in this regard. -- ___ Python tracker

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It looks like fixing the production list is the easy part (see attached patch): as far as I can tell, the *syntax* for class definitions is pretty much identical to that for function calls. (The semantics are different, of course.) It

[issue9095] patchcheck should handle extraneous whitespace in .rst files

2010-06-29 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Knock yourself out! -- assignee: - merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9095 ___

[issue8998] add crypto routines to stdlib

2010-06-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: If we are to require OpenSSL or some other crypto lib, We already depend on OpenSSL for both hashlib and ssl, this proposal wouldn't change anything in this

[issue9071] TarFile doesn't support member files with a leading ./

2010-06-29 Thread Gustavo Niemeyer
Gustavo Niemeyer gust...@niemeyer.net added the comment: Indeed, nice use of the time machine! :-) Thanks Lars! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9071 ___

[issue9118] help() on a property descriptor launches interactive help

2010-06-29 Thread Jack Diederich
New submission from Jack Diederich jackd...@gmail.com: ython 2.7b2+ (trunk:81337, May 19 2010, 12:16:22) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. class X(object): ... @property ... def foo(self): pass ... help(X.foo.fset) Welcome to Python

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-06-29 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg m...@egenix.com: This needs to be done to protect our users (importing crypto code or using it may be illegal in their home country, see http://rechten.uvt.nl/koops/cryptolaw/ for a survey) and to satisfy an attribution requirement in the OpenSSL license

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-06-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: See the OpenSSL license for details on the notice requirement: http://www.openssl.org/source/license.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9119

[issue8998] add crypto routines to stdlib

2010-06-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Marc-Andre Lemburg wrote: We currently only include OpenSSL in the Windows installers and (for some reason) don't pay much attention to the implications this has (the fact is not mentioned on the download page and the Windows installer

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-06-29 Thread geremy condra
Changes by geremy condra debat...@gmail.com: -- nosy: +debatem1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9119 ___ ___ Python-bugs-list

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The production looks right to me, but I think it should be broken in two or more lines. Since it is rendered pre-formatted, long line results in a horizontal scroll bar unless the browser window is extremely wide.

[issue7673] audioop: check that length is a multiple of the size

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The patch looks fine to me. - Please could you add some tests, to exercise the 'not a whole number of frames' errors? - The patch obviously predates the grand reindenting, so its indentation needs fixing up PEP 7 nits: - Please don't

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2010-06-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It must be that the different key order only happens on the one platform because of the quirky nature of dictionary construction. That is, there is *something* on that platform that is changing where things get hashed when the

[issue8998] add crypto routines to stdlib

2010-06-29 Thread geremy condra
geremy condra debat...@gmail.com added the comment: On Tue, Jun 29, 2010 at 2:25 PM, Marc-Andre Lemburg rep...@bugs.python.org wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: If we are to require OpenSSL

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes, good plan. I'll do that. I'm also not sure about the 'comprehension' bit; it's true that a comprehension is syntactically valid here (e.g., class A(x for x in range(3))), but it's also entirely useless: it has to be the sole

[issue9120] Reduce pickle size for an empty set

2010-06-29 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: Empty sets are pickled as set([]). The pickle contains serialization of an empty list that is passed to set constructor during unpickling: dis(dumps(set())) 0: \x80 PROTO 3 2: cGLOBAL 'builtins

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Updated patch. I've reorganized that documentation section a bit, and added a link to PEP 3115. This isn't ideal, but it's better than nothing. -- Added file: http://bugs.python.org/file17805/issue9117_v2.patch

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: And the same patch, but this time *without* the irrelevant audioop changes. :) -- Added file: http://bugs.python.org/file17806/issue9117_v2.patch ___ Python tracker rep...@bugs.python.org

[issue9117] class syntax not fully documented in reference manual

2010-06-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file17805/issue9117_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9117 ___

[issue9120] Reduce pickle size for an empty set

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This seems a bit like premature (space) optimization to me. Is it really worth special-casing this? -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org

[issue9104] test_exceptions does not test pickling with pickle.py

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: An explicit dictionary to map the Python and C implementations may be a better approach. Do you mean a global optimized_module = {'pickle': '_pickle'} in test/support.py? I don't think I like this idea. Even with

[issue9079] Make gettimeofday available in time module

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: To keep things clean, would it be possible to separate this into two patches, one containing the refactoring and one for the newly exposed gettimeofday? -- ___ Python tracker

[issue6827] deepcopy erroneously doesn't call __setstate__ if __getstate__ returns empty dict

2010-06-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Given that the API is what is, then it looks like the needed doc improvements have been done. -- stage: - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: After discussions on IRC, I'm going to close this as rejected. Convergence of the float and Decimal APIs is a nice idea, but in this case it's not clear that it really works. In particular, for duck typing to be sensible, int and Fraction

[issue9120] Reduce pickle size for an empty set

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: It is both space and time optimization. Fred was a proponent of small pickle sizes in the past, so I am adding him to the nosy list. I am not too keen on this to happen, though. It just seemed more natural to me not to

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-29 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Doc patch committed in revisions r82379 through r82382. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1789 ___

[issue9079] Make gettimeofday available in time module

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The original patch, gettimeofday.diff was just refactoring. I unlinked it to keep the file list clean, but it is still available: http://bugs.python.org/file17766/gettimeofday.diff I decided to expose

[issue9113] Tools/msi still uses string exceptions

2010-06-29 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is not a problem. Tools/msi is being used with Python 2.5 only. -- nosy: +loewis resolution: - wont fix status: open - closed versions: -Python 3.1, Python 3.2 ___ Python tracker

[issue9121] Glossary entry for nested scope incorrect

2010-06-29 Thread Ethan Furman
New submission from Ethan Furman et...@stoneleaf.us: It currently states Note that nested scopes work only for reference and not for assignment which will always write to the innermost scope. This should be updated to read, e.g. Note that unless the new nonlocal keyword is used nested scopes

[issue9121] Glossary entry for nested scope incorrect

2010-06-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Already fixed. -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9121

[issue1749662] New byte packing format for the struct module

2010-06-29 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1749662 ___ ___

[issue9120] Reduce pickle size for an empty set

2010-06-29 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Will think about this one for a while. Initial reaction is that the case isn't common enough to care about, and that the 5 byte savings isn't worth the extra code path. By the same logic, allowing set() as an alternative

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-29 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: That just proves that side menu is not very useful. When I need to jump to a sibling paragraph I usually click the rightmost entry in top bar. It takes two clicks to get there and one page reload instead of one. Perhaps the ToC menu

[issue9122] Problems with multiprocessing, Python embedding and Windows

2010-06-29 Thread Alexander Myodov
New submission from Alexander Myodov amyo...@gmail.com: Hello, I am using Python 2.6.5 and Cython (to embed the Python interpreter) to create a simple launcher.exe launcher which then imports and uses the remaining logic from the other modules, conveniently stored in a single modules.zip file

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The case in msg76028 are probably not pointing to a bug. If subclass' __init__ passes its args to the base class __init__ (as it probably should), pickling works: class E(Exception): Extension with values, init

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2010-06-29 Thread Casey McGinty
Casey McGinty casey.mcgi...@gmail.com added the comment: I attached a simple script that reproduces the report issue. I hope it helps. -- Added file: http://bugs.python.org/file17807/smtp_test.py ___ Python tracker rep...@bugs.python.org

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, it just proves that I don't use the side menu. I use google and the 'find' function of my browser :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9106

[issue6477] Pickling of NoneType raises PicklingError

2010-06-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Ellipsis and NotImplemented are different from None because they are not pickleable themselves. The None situation is more similar to that of say module level functions: def f(): pass ... dumps(f) # works

[issue9120] Reduce pickle size for an empty set

2010-06-29 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Fred was a proponent of small pickle sizes in the past, so I am adding him to the nosy list. Thanks! I am a proponent of small pickle sizes, in cases where it matters. I'm not convinced this is such a case. The case for a small pickle

[issue9075] ssl module sets debug flag on SSL struct

2010-06-29 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9075 ___ ___ Python-bugs-list

[issue1643370] recursive urlparse

2010-06-29 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: This is already handled via namedtuple in the urlparse. All the parts of the url are available by parsing. -- resolution: - out of date stage: unit test needed - committed/rejected status: open - closed

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2010-06-29 Thread Eric Huss
Eric Huss e...@huss.org added the comment: Alexander, the use case I was involved with was an RPC system which allowed exceptions to propagate over the connection. In this case, you do not have absolute control over which exceptions may be raised, or who wrote the code that is raising the

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-06-29 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: PHP site have a very convenient feature that if you enter http://php.net/some_func - it automatically executes function lookup for you or shows corresponding doc page, i.e. http://php.net/sort --

[issue1643370] recursive urlparse

2010-06-29 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Senthil, please read the proposals more attentively. From the docs of urlparse at http://docs.python.org/library/urlparse.html The components are not broken up in smaller parts (for example, the network location is a single string), and

[issue9123] insecure os.urandom on VMS

2010-06-29 Thread Zooko O'Whielacronx
New submission from Zooko O'Whielacronx zo...@zooko.com: os.urandom() on VMS invokes OpenSSL's RAND_pseudo_bytes(). That is documented on: http://www.openssl.org/docs/crypto/RAND_bytes.html as being predictable and therefore unsuitable for many cryptographic purposes. This is inconsistent

[issue9123] insecure os.urandom on VMS

2010-06-29 Thread Zooko O'Whielacronx
Zooko O'Whielacronx zo...@zooko.com added the comment: HACK Zooko-Ofsimplegeos-MacBook-Pro:~/playground/python/release27-trunk$ svn diff Index: Modules/posixmodule.c === --- Modules/posixmodule.c (revision 82382) +++

[issue9123] insecure os.urandom on VMS

2010-06-29 Thread Zooko O'Whielacronx
Zooko O'Whielacronx zo...@zooko.com added the comment: This issue is a security vulnerability. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9123 ___

[issue9097] os.chdir(path) to return current dir

2010-06-29 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Even though I think that crossplatform language should normalize underlying platform behaviour, you've convinced me. Unneeded extra code execution decides. I also found that in another scenario it is better to return wrapper for target