[issue17159] Remove explicit type check from inspect.Signature.from_function()

2013-02-16 Thread Stefan Behnel
Stefan Behnel added the comment: Updated patch to also fix a little typo in the docstring (lower case "python"). -- Added file: http://bugs.python.org/file29096/inspect_sig_3.patch ___ Python tracker __

[issue16954] Add docstrings for ElementTree module

2013-02-16 Thread David Lam
David Lam added the comment: Here's a patch which converts all the Doxygen comments in ElementTree.py to docstrings! Something I noticed was that the from _elementtree import * ...at the bottom of ElementTree.py sort of overwrites the docstrings of the Python module. So if you did... `f

[issue15767] add ModuleNotFoundError

2013-02-16 Thread Eric Snow
Eric Snow added the comment: +1 on just getting it done with ModuleNotFoundError. FWIW, I'd be glad to do it. I'm taking a self-imposed break from the nearly finished C-OrderedDict! -- ___ Python tracker ___

[issue12633] sys.modules doc entry should reflect restrictions

2013-02-16 Thread Eric Snow
Eric Snow added the comment: One proposal would lead to the sys module growing descriptors: http://mail.python.org/pipermail/python-ideas/2013-January/019075.html In that case, sys.modules could update the underlying interp->modules. -- ___ Python t

[issue16251] pickle special methods are looked up on the instance rather than the type

2013-02-16 Thread Eric Snow
Eric Snow added the comment: I've posted to python-dev about this: http://mail.python.org/pipermail/python-dev/2013-February/124114.html At the very least the pickle docs deserve some mention of the behavior. That way people won't need to spend as much time trying to figure out why things ar

[issue13124] Add "Running a Build Slave" page to the devguide

2013-02-16 Thread Eric Snow
Eric Snow added the comment: Looking this over, it seems like there were outstanding objections to adding this to the devguide and to the content. I still think the devguide is the right place and that something like my second patch would be appropriate. Before I take any time to update the p

[issue16042] smtplib: unlimited readline() from connection

2013-02-16 Thread R. David Murray
R. David Murray added the comment: I doubt that 2048 is safer than 1024 for any meaningful value of safer. Either the sever respects the rfc limits or it does not. If it does not, it is likely to send very long text lines if the sending mua generates them, which I suspect happens. However,

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: OTOH, the scan time should be short relative to the time needed to read the manifest in the first place - an appropriate microbenchmark may also be adequate to address my concerns. -- ___ Python tracker

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: How common are such broken zip files? Like Serhiy, I'm concerned about the possible negative impact on the interpreter startup time as we try to second guess the contents of the zip file manifest. It seems better to be explicit that we consider such zipfiles bro

[issue15004] add weakref support to types.SimpleNamespace

2013-02-16 Thread Eric Snow
Eric Snow added the comment: I've yanked the __weakref__ attr--apparently builtins don't have them. I've also update the test. Is the updated test sufficient? I expect that if weakref.ref(ns) works, the rest of the weakref functionality works as well. -- Added file: http://bugs.pyth

[issue15022] types.SimpleNamespace needs to be picklable

2013-02-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e4c065b2db49 by Eric Snow in branch 'default': Issue #15022: Ensure all pickle protocols are supported. http://hg.python.org/cpython/rev/e4c065b2db49 -- ___ Python tracker

[issue17218] support title and description in argparse add_mutually_exclusive_group

2013-02-16 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to add to argparse's add_mutually_exclusive_group() method support for passing a title and description. From the argparse docs: "Note that currently mutually exclusive argument groups do not support the title and description arguments of add_a

[issue17170] string method lookup is too slow

2013-02-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e985a96a612 by Antoine Pitrou in branch 'default': Issue #17170: speed up PyArg_ParseTuple[AndKeywords] a bit. http://hg.python.org/cpython/rev/4e985a96a612 -- nosy: +python-dev ___ Python tracker

[issue15022] types.SimpleNamespace needs to be picklable

2013-02-16 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.4 -Python 3.3 ___ Python tracker ___

[issue15022] types.SimpleNamespace needs to be picklable

2013-02-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b93ab8c9c20 by Eric Snow in branch 'default': Issue #15022: Add pickle and comparison support to types.SimpleNamespace. http://hg.python.org/cpython/rev/3b93ab8c9c20 -- nosy: +python-dev ___ Python track

[issue17217] Fix test discovery for test_format.py on Windows

2013-02-16 Thread Zachary Ware
New submission from Zachary Ware: test_format is an interesting case in the ongoing test discovery conversion. It already uses unittest.main(), but still has test_main(), and discovery seems to work fine on Linux. On Windows, however, test_format and test_non_ascii both fail with a UnicodeEn

[issue17203] add long option names to unittest discovery docs

2013-02-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks, one patch should be fine, though the change should be applied to all branches. -- ___ Python tracker ___ __

[issue17203] add long option names to unittest discovery docs

2013-02-16 Thread Gennadiy Zlobin
Gennadiy Zlobin added the comment: Hi, here's the patch. Should I provide patches for other branches? -- keywords: +patch nosy: +gennad Added file: http://bugs.python.org/file29092/17203.patch ___ Python tracker __

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can significant slowdown zipimport. I think we shouldn't support such broken zip files in zipimport. -- nosy: +serhiy.storchaka ___ Python tracker _

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2013-02-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon, ncoghlan versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4972] context management support in imaplib, smtplib, ftplib

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an updated patch. Updated documentation, added checks that logout executed after a with statement, now logout() can be called inside a with statement. -- Added file: http://bugs.python.org/file29091/imaplib_with_3.patch _

[issue9669] regexp: zero-width matches in MIN_UNTIL

2013-02-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue9669] regexp: zero-width matches in MIN_UNTIL

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed with a test. Thank you, Matthew. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue17216] sparc linux build fails with "could not import runpy module"

2013-02-16 Thread Ned Deily
Ned Deily added the comment: For some reason in your build, the first bootstrap use of the compiler (to generate the sysconfig data) is failing because the runpy module can't be found. Python should be able to find it in the source directory; the "Could not find platform dependent libraries "

[issue8745] zipimport is a bit slow

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for contribution. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue15003] make PyNamespace_New() public

2013-02-16 Thread Eric Snow
Eric Snow added the comment: At present, I don't see a need to make the C API public. -- status: open -> closed ___ Python tracker ___ ___

[issue16276] OrderedDict constructor do not keep items order

2013-02-16 Thread Eric Snow
Eric Snow added the comment: FWIW, I'm working toward making **kwargs an OrderedDict. First step: issue #16991 -- nosy: +eric.snow ___ Python tracker ___ __

[issue10965] dev task of documenting undocumented APIs

2013-02-16 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > { path: [string, bytes, int] => path_converter => path_t }, > *, > { dir_fd: [int, None] = None => OS_STAT_DIR_FD_CONVERTER => int }, > { follow_symlinks: bool = True => "p" => int } Why not just: path: path_t * dir_fd: dir_fd_t = None => DEFAULT_

[issue9669] regexp: zero-width matches in MIN_UNTIL

2013-02-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc8a11c16021 by Serhiy Storchaka in branch '2.7': Issue #9669: Protect re against infinite loops on zero-width matching in http://hg.python.org/cpython/rev/dc8a11c16021 New changeset d40afd489b6a by Serhiy Storchaka in branch '3.2': Issue #9669: Pro

[issue16038] ftplib: unlimited readline() from connection

2013-02-16 Thread Michał Jastrzębski
Michał Jastrzębski added the comment: Thank you Giampaolo, I'm attaching patch changed according to your suggestion. -- Added file: http://bugs.python.org/file29090/ftplib_maxline.patch ___ Python tracker

[issue16038] ftplib: unlimited readline() from connection

2013-02-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch looks ok. Just add the new exception class to all_errors list. -- ___ Python tracker ___ __

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2013-02-16 Thread Stefan Krah
Stefan Krah added the comment: OK, I'll have a go at the PEP then. In addition to the proposed syntax in my previous mail, I'm going to suggest this alternative: /*[preprocessor] # Declaration os.stat [PyOs_Stat] ( { path: [string, bytes, int] => path_converter => path_t }, *, { dir_fd: [i

[issue15438] document that math.pow is inappropriate for integers

2013-02-16 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. (Maybe build the doc and double check that all the links are correct before committing.) -- stage: needs patch -> commit review ___ Python tracker

[issue15730] Silence unused value warnings under Mac OS X 10.8/clang

2013-02-16 Thread Ed Campbell
Changes by Ed Campbell : -- nosy: +esc24 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue17216] Could not find platform dependent libraries

2013-02-16 Thread uservorname usernachname
New submission from uservorname usernachname: Greetings, make fails at: ar rc libpython3.3m.a Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/

[issue17016] _sre: avoid relying on pointer overflow

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nickolai, are you want to update your patch with fixes for other possible pointer overflows? Note, that the maximal repetition number has been increased now. -- assignee: -> serhiy.storchaka ___ Python tracker <

[issue8745] zipimport is a bit slow

2013-02-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 088a14031998 by Serhiy Storchaka in branch 'default': Issue #8745: Small speed up zipimport on Windows. Patch by Catalin Iacob. http://hg.python.org/cpython/rev/088a14031998 -- nosy: +python-dev ___ Pytho

[issue17193] Use binary prefixes

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you, Ezio, for your comments. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue17193] Use binary prefixes

2013-02-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c1f846a99c85 by Serhiy Storchaka in branch '3.3': Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. http://hg.python.org/cpython/rev/c1f846a99c85 New changeset 73a16d3c066a by Serhiy Storchaka in branch 'default': Issue #17193: Use

[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-16 Thread Ramchandra Apte
Ramchandra Apte added the comment: I forget about that. Attached is a patch with tests. -- Added file: http://bugs.python.org/file29088/issue.patch ___ Python tracker ___ ___

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have committed simplified patches. They don't change an exception type from OverflowError to re.error (but an error message now is more helpful) and don't made the code clever enough to not raise an exception when a repetition number is exceeded sys.maxsiz

[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-16 Thread Ezio Melotti
Ezio Melotti added the comment: Patch needs tests. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2013-02-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c1b3d25882ca by Serhiy Storchaka in branch '2.7': Issue #13169: The maximal repetition number in a regular expression has been http://hg.python.org/cpython/rev/c1b3d25882ca New changeset 472a7c652cbd by Serhiy Storchaka in branch '3.2': Issue #13169

[issue17211] pkgutil.iter_modules and walk_packages should return a namedtuple

2013-02-16 Thread Ramchandra Apte
Ramchandra Apte added the comment: Attached is a patch. -- keywords: +patch Added file: http://bugs.python.org/file29087/issue.patch ___ Python tracker ___ __

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2013-02-16 Thread Stefan Behnel
Changes by Stefan Behnel : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17215] documentation misprints

2013-02-16 Thread Ramchandra Apte
Ramchandra Apte added the comment: LGTM. -- nosy: +Ramchandra.Apte ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2013-02-16 Thread Nick Coghlan
Nick Coghlan added the comment: Stefan, that proposal definitely looks like it is worth writing up as a PEP to me. One thing that I particularly like about it is that it should be possible to pluck out the first element of the {} entries fairly easily in order to get the ordinary Python signat

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2013-02-16 Thread Stefan Krah
Stefan Krah added the comment: I would be willing to write an (alternative) PEP, but I'm not quite satisfied with my own proposal yet. Also, I'd need to understand the positional-only part better, but the _cursesmodule.c example does not seem to compile here. :) So, *disregarding* the positional

[issue17215] documentation misprints

2013-02-16 Thread July Tikhonov
New submission from July Tikhonov: library/io.rst io.open() signature lacks 'opener' argument. library/importlib.rst concreate -> concrete -- assignee: docs@python components: Documentation files: docs-misprint.diff keywords: patch messages: 182219 nosy: docs@python, july priority: norm

[issue17214] http.client.HTTPConnection.putrequest encode error

2013-02-16 Thread Mi Zou
Mi Zou added the comment: while urllib following the redirection(302): http.client.HTTPConnection.putrequest raise an error: #-- ... File "D:\Program Files\Python32\lib\http\client.py", line 1004, in _send_request self.putrequest(meth

[issue17214] http.client.HTTPConnection.putrequest encode error

2013-02-16 Thread Mi Zou
Changes by Mi Zou : -- title: urllib.client.HTTPConnection.putrequest encode error -> http.client.HTTPConnection.putrequest encode error ___ Python tracker ___ ___

[issue17214] urllib.client.HTTPConnection.putrequest encode error

2013-02-16 Thread Mi Zou
Changes by Mi Zou : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue17214] urllib.client.HTTPConnection.putrequest encode error

2013-02-16 Thread Mi Zou
Changes by Mi Zou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue16525] wave file module does not support 32bit float format

2013-02-16 Thread Sebastian Kraft
Sebastian Kraft added the comment: Thanks for the hint Harvey! I have updated my patch to include your changes, but only applied the second hunk for the following reasons: Wave_read should not assume any wave format, as it is expected to open a file during initialization. So actually the only

[issue16525] wave file module does not support 32bit float format

2013-02-16 Thread Sebastian Kraft
Changes by Sebastian Kraft : Removed file: http://bugs.python.org/file28122/wave_float_issue16525.patch ___ Python tracker ___ ___ Python-bugs

[issue17214] urllib.client.HTTPConnection.putrequest encode error

2013-02-16 Thread Mi Zou
New submission from Mi Zou: while urllib following the redirection(302): urllib.client.HTTPConnection.putrequest raise an error: #-- File "D:\Program Files\Python32\lib\http\client.py", line 1004, in _send_request self.putrequest(meth

[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-16 Thread Guido Reina
Guido Reina added the comment: I am attaching a .tgz file with the tests I have performed. The .tgz file contains also a README.txt file with more detailed information. I have done the following test: The script loads the HTML file 'search.html' in 'rawdata' and searches '>' in a loop from the