[issue23500] Argument Clinic: multiple macro definition
Serhiy Storchaka added the comment: Oh, sorry. Here is a sample. Other sample see in issue23501. -- Added file: http://bugs.python.org/file38205/sample.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23152] fstat64 required on Windows
Steve Dower added the comment: Two posts ago: The caller to getfilesize is only using it to check whether it's small enough to load the file into memory all at once, so too big is an okay response (that function is in marshal.c and not used anywhere else). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23152 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23492] Argument Clinic: improve generated parser for 1-argument functions
Antoine Pitrou added the comment: Let's make Argument Clinic a fierce optimizer! (+1 on this) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23499] Minor grammar issue in mimetypes.rst
New submission from SilentGhost: Just a minor grammar issue: missing be in mimetypes.rst -- assignee: docs@python components: Documentation files: mimetypes.diff keywords: patch messages: 236402 nosy: SilentGhost, docs@python, eric.araujo, ezio.melotti, georg.brandl priority: normal severity: normal stage: patch review status: open title: Minor grammar issue in mimetypes.rst versions: Python 3.5 Added file: http://bugs.python.org/file38202/mimetypes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23499 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23500] Argument Clinic: multiple macro definition
Larry Hastings added the comment: Can you give me a test case? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.
Martin Panter added the comment: Posting RemoteDisconnected.v5.patch: * Rebased and fixed minor merge conflict * Change RemoteDisconnected base class from ConnectionError to ConnectionResetError * Minor tweaks to tests It seems that having a separate RemoteDisconnected exception (as in this patch) has at least two benefits: 1. It would allow the user to distinguish between a true ConnectionResetError (due to TCP reset or whatever) from a clean TCP shutdown 2. Backwards compatibility with user code that only handles BadStatusLine The only disadvantage seems to be the bloat of adding a new exception type. But if some other comitter agrees that merging them is better and dropping backwards compatibility is okay I am happy to adjust the patch to go along with that. -- Added file: http://bugs.python.org/file38203/RemoteDisconnected.v5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3566 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23501] Argument Clinic: generate code into separate files by default
New submission from Serhiy Storchaka: Proposed patch makes Argument Clinic to generate code into separate files by default. This will help maintaining in the case of enhancements of Argument Clinic generation (such as issue23492). See thread on http://comments.gmane.org/gmane.comp.python.devel/151585 . There is an issue with multiple macro definition in the posix module (see issue23500). -- components: Build, Demos and Tools files: clinic_file.patch keywords: patch messages: 236406 nosy: larry, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Argument Clinic: generate code into separate files by default type: enhancement versions: Python 3.5 Added file: http://bugs.python.org/file38204/clinic_file.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23501 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23501] Argument Clinic: generate code into separate files by default
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: +Argument Clinic: multiple macro definition ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23501 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23492] Argument Clinic: improve generated parser for 1-argument functions
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka dependencies: +Argument Clinic: generate code into separate files by default ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23500] Argument Clinic: multiple macro definition
New submission from Serhiy Storchaka: Argument Clinic generates multiple definitions in non-block mode for functions with alternating signature. See example file. If FOO is not defines, SPAM_METHODDEF is defined twice. First time in: #ifndef SPAM_METHODDEF #define SPAM_METHODDEF #endif /* !defined(SPAM_METHODDEF) */ Second time in: #if !defined(FOO) ... #define SPAM_METHODDEF\ -- components: Build, Demos and Tools messages: 236403 nosy: serhiy.storchaka priority: normal severity: normal status: open title: Argument Clinic: multiple macro definition type: behavior versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23500] Argument Clinic: multiple macro definition
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23500 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20482] smtplib.SMTP.sendmail: improve exception message
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20482 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6639] turtle: _tkinter.TclError: invalid command name .10170160
Roundup Robot added the comment: New changeset 15dd9d6cc632 by Serhiy Storchaka in branch '2.7': Issue #6639: Module-level turtle functions no longer raise TclError after https://hg.python.org/cpython/rev/15dd9d6cc632 New changeset 1628484c9408 by Serhiy Storchaka in branch '3.4': Issue #6639: Module-level turtle functions no longer raise TclError after https://hg.python.org/cpython/rev/1628484c9408 New changeset d8e494986caf by Serhiy Storchaka in branch 'default': Issue #6639: Module-level turtle functions no longer raise TclError after https://hg.python.org/cpython/rev/d8e494986caf -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6639 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6639] turtle: _tkinter.TclError: invalid command name .10170160
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6639 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23152] fstat64 required on Windows
Roundup Robot added the comment: New changeset b4f9e787b857 by Serhiy Storchaka in branch 'default': Issue #23152: Move declaration into a header and exclude from stable API. https://hg.python.org/cpython/rev/b4f9e787b857 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23152 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23152] fstat64 required on Windows
Roundup Robot added the comment: New changeset 72cf174cc0eb by Serhiy Storchaka in branch 'default': Issue #23152: Move declarations back to posixmodule.c. https://hg.python.org/cpython/rev/72cf174cc0eb -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23152 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20482] smtplib.SMTP.sendmail: improve exception message
Mark Lawrence added the comment: Assuming that the inline patch in msg209943 is acceptable I'll volunteer to change the test code unless the originator wants the job. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20482 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23498] Expose http.cookiejar.split_header_words()
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag, orsenthil, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23498 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22885] Arbitrary code execution vulnerability due to unchecked eval() call in dumbdbm module
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22885 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20482] smtplib.SMTP.sendmail: improve exception message
yegle added the comment: I have no plan to work further, Mark can take the code and improve anyway you want. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20482 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22623] Missing guards for some POSIX functions
Serhiy Storchaka added the comment: HAVE_SYS_RESOURCE_H still is used for #include in several files. If guards are added to pwd functions, shouldn't it be added to grp and spwd functions? Is there a platform that have pwd.h, but not getpwuid, getpwnam or getpwent. May be instead testing the existence of separate functions adds the test about the existence of pwd.h in configure? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22623 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5700] io.FileIO calls flush() after file closed
Roundup Robot added the comment: New changeset bf52f69d6948 by Serhiy Storchaka in branch '2.7': Broke reference loops in tests added in issue #5700. https://hg.python.org/cpython/rev/bf52f69d6948 New changeset 00bde0743690 by Serhiy Storchaka in branch '3.4': Broke reference loops in tests added in issue #5700. https://hg.python.org/cpython/rev/00bde0743690 New changeset a8df1ca60452 by Serhiy Storchaka in branch 'default': Broke reference loops in tests added in issue #5700. https://hg.python.org/cpython/rev/a8df1ca60452 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5700 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22141] rlcompleter.Completer matches too much
Lorenz Quack added the comment: sorry it took so long but the contributor agreement is now signed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22141 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22143] rlcompleter.Completer has duplicate matches
Lorenz Quack added the comment: sorry it took so long but my contributor agreement is now signed. Do you want me to write a patch with the results sorted? If so, should I also change the docs to reflect that the results are sorted? This would then also affect other implementations because they would be required to also return sorted results. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22143 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22872] multiprocessing.Queue raises AssertionError
Changes by Davin Potts pyt...@discontinuity.net: -- nosy: +davin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22872 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8
Changes by Davin Potts pyt...@discontinuity.net: -- nosy: +davin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18382 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15955] gzip, bz2, lzma: add option to limit output size
Nikolaus Rath added the comment: Updated patch attached. -- Added file: http://bugs.python.org/file38206/issue15955_bz2_rev2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15178] Doctest should handle situations when test files are not readable
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15178 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock
Davin Potts added the comment: For my part, I'm now good with all aspects of the patch supplied by Alon. I have a working set of tests that will be attached in the next day or two after seeing them behave on more than one platform. -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23488] Random objects twice as big as necessary on 64-bit builds
Mark Dickinson added the comment: Here is a patch. Where?! BYW, we might want to use PY_UINT32_T rather than uint32_t directly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23488 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23493] optimize sort_keys in json module by using operator.itemgetter()
Raymond Hettinger added the comment: I'm -0 on this proposal. There is a small speed-up to be had here: $ python3.4 -m timeit -s 'f=lambda kv: kv[0]' -s 's=[10, 20]' 'f(s)' 1000 loops, best of 3: 0.105 usec per loop $ python3.4 -m timeit -s 'import operator' -s 'f=operator.itemgetter(0)' -s 's=[10, 20]' 'f(s)' 1000 loops, best of 3: 0.0717 usec per loop That said, it is applied only n-times and is likely insignificant when compared to the O(n log n) sort. I think it is better to not add an intermodule dependency when we don't have to. Also if you're using CPython, then the C version of JSON is used instead of this code. So, any timings or optimizations should be tested against the other implementations (Jython or PyPy) that use them. In those implementations, I don't think itemgetter() has any performance benefit over the lambda. -- nosy: +rhettinger type: - performance versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23493 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue626452] Support RFC 2392 in email package
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue626452 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20699] Document that binary IO classes work with bytes-likes objects
Martin Panter added the comment: Posting bytes-like-param.v4.patch, with David’s suggested wording -- Added file: http://bugs.python.org/file38207/bytes-like-param.v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8
Davin Potts added the comment: Tested Steve's code snippet on Windows 7 64-bit without the patch on default (3.5) and got result: True Not knowing the full history here, I blindly tried on the same Win7 system with 2.7.8 and got a False. Looks like Richard's patches made in #12328 were only applied to 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18382 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23499] Minor grammar issue in mimetypes.rst
Ned Deily added the comment: Thanks! -- nosy: +ned.deily resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23499 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23499] Minor grammar issue in mimetypes.rst
Roundup Robot added the comment: New changeset 2b8c5ed7b38b by Ned Deily in branch '2.7': Issue #23499: Fix grammar error noticed by SilentGhost https://hg.python.org/cpython/rev/2b8c5ed7b38b New changeset 5dfdaec85345 by Ned Deily in branch '3.4': Issue #23499: Fix grammar error noticed by SilentGhost https://hg.python.org/cpython/rev/5dfdaec85345 New changeset 49130b06e3ac by Ned Deily in branch 'default': Issue #23499: Fix grammar error noticed by SilentGhost https://hg.python.org/cpython/rev/49130b06e3ac -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23499 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23496] Steps for Android Native Build of Python 3.4.2
Changes by Ryan Gonzalez rym...@gmail.com: -- nosy: +Ryan.Gonzalez ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)
Martin Panter added the comment: See Issue 22928 for a patch making the “http.client” module even more stricter with header field names and values. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17322 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com