[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 36d5e04b6cfa by Larry Hastings in branch 'default': Issue #24000: Improved Argument Clinic's mapping of converters to legacy https://hg.python.org/cpython/rev/36d5e04b6cfa -- nosy: +python-dev ___ Python

[issue24000] More fixes for the Clinic mapping of converters to format units

2015-05-08 Thread Larry Hastings
Larry Hastings added the comment: I think this is a definite improvement, so I've checked it in so I can move on. If you guys still want to talk about it, we can still change it before we hit beta. -- resolution: - fixed stage: patch review - resolved status: open - closed

[issue24098] Multiple use after frees in obj2ast_* methods

2015-05-08 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24098 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks, Berker, your patch looks fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1322 ___ ___

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-08 Thread Nick Coghlan
Nick Coghlan added the comment: A couple of minor comments: * self.fail with an appropriate error message is a clearer way to indicate an incorrect logic path has been hit in a test case * the details of the exception chaining don't quite look right, as I believe raise X from Y sets both the

[issue23042] ctypes module doesn't build on FreeBSD, RHEL (x86) - Undefined symbol ffi_call_win32

2015-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Here's a patch which I have tested on Linux, FreeBSD and Mac OS X. It solves the problem with compiling in Windows calls on non-Windows platforms and resynchronizes the ffi_raw_call() function with the ffi_call() implementation. Both functions had the

[issue7267] format method: c presentation type broken in 2.7

2015-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be just emit a warning in -3 mode? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7267 ___

[issue24146] ast.literal_eval doesn't support the Python ternary operator

2015-05-08 Thread Larry Hastings
New submission from Larry Hastings: ast.literal_eval() supports all Python operators, yes? No. It doesn't support if/else, Python's ternary operator. Is there a reason it does not? I think it probably should. -- messages: 242760 nosy: benjamin.peterson, georg.brandl, larry

[issue16392] import crashes on circular imports in ext modules

2015-05-08 Thread Brett Cannon
Brett Cannon added the comment: https://www.python.org/dev/peps/pep-0489/ is trying to come up with a redesign of extension module loading and no one has submitted a patch for the documentation (although Stefan has inlined proposed wording in a comment). --

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't mind if you fix it in 2.7, too. (Sorry, I get a lot of bug related emails...) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20274 ___

[issue21520] Erroneous zipfile test failure if the string 'bad' appears in pwd

2015-05-08 Thread Larry Hastings
Larry Hastings added the comment: Checked in, with the filter function on a separate line, to 3.4. Also merged into 3.5. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue24146] ast.literal_eval doesn't support the Python ternary operator

2015-05-08 Thread R. David Murray
R. David Murray added the comment: Right, this isn't a bug, it is that literal_eval is intended only to support *literals*, not expressions. See also issue 22525. -- nosy: +r.david.murray resolution: - not a bug stage: needs patch - resolved status: open - closed

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- assignee: ghaering - larry resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20274

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is 2.7 affected? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20274 ___ ___ Python-bugs-list mailing list

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-08 Thread Yury Selivanov
Yury Selivanov added the comment: Nick, Berker, Please see the updated patch. -- Added file: http://bugs.python.org/file39323/pep0479.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22906

[issue21520] Erroneous zipfile test failure if the string 'bad' appears in pwd

2015-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset bff966aed6a3 by Larry Hastings in branch '3.4': Issue #21520: test_zipfile no longer fails if the word 'bad' appears https://hg.python.org/cpython/rev/bff966aed6a3 -- nosy: +python-dev ___ Python tracker

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Larry Hastings
Larry Hastings added the comment: I'm gonna fix this now. (I'm cleaning up some old issues I filed on the bug tracker this morning.) For 3.4, I'm just removing the PyObject *kwargs for those three functions that don't actually accept keyword arguments (METH_VARARGS) and aren't passed that

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c860369b6c2 by Larry Hastings in branch '3.4': Issue #20274: Remove ignored and erroneous kwargs parameters from three https://hg.python.org/cpython/rev/4c860369b6c2 New changeset 3e9f4f3c7fa7 by Larry Hastings in branch 'default': Issue #20274:

[issue16392] import crashes on circular imports in ext modules

2015-05-08 Thread R. David Murray
R. David Murray added the comment: Yes, the resolution of this issue will be to add documentation. Someone should turn Stefan's comment into a patch. -- assignee: - docs@python components: +Documentation nosy: +docs@python, r.david.murray stage: - needs patch versions: +Python 3.5

[issue24146] ast.literal_eval doesn't support the Python ternary operator

2015-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No it doesn't support all Python operators. ast.literal_eval('2*3') Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python3.4/ast.py, line 84, in literal_eval return _convert(node_or_string) File

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20274 ___ ___

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Larry Hastings
Larry Hastings added the comment: Yes, all those bugs exist in 2.7. However, Benjamin hasn't responded to this bug, so I assume he doesn't care and I should leave 2.7 alone. -- ___ Python tracker rep...@bugs.python.org

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the bug should be fixed in 2.7 (but not in 3.3 unless we get a crasher). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20274 ___

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Larry Hastings
Larry Hastings added the comment: Benjamin: I assume you want the extraneous (and undefined behavior) kwargs parameters removed. Do you also want pysqlite_connection_call() to start calling _PyArg_NoKeywords()? -- ___ Python tracker

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Fri, May 8, 2015, at 12:08, Larry Hastings wrote: Larry Hastings added the comment: Benjamin: I assume you want the extraneous (and undefined behavior) kwargs parameters removed. Do you also want pysqlite_connection_call() to start calling

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset c91d135b0776 by Larry Hastings in branch '2.7': Issue #20274: When calling a _sqlite.Connection, it now complains if passed https://hg.python.org/cpython/rev/c91d135b0776 -- ___ Python tracker

[issue20274] sqlite module has bad argument parsing code, including undefined behavior in C

2015-05-08 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20274 ___ ___

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-05-08 Thread Demian Brecht
Demian Brecht added the comment: LGTM, thanks for the patch! -- nosy: +r.david.murray stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23888 ___

[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2015-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24078 ___ ___

[issue23857] Make default HTTPS certificate verification setting configurable

2015-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Changing the title to reflect that the solution to how to configure Python is still up in the air. I also started a thread on python-dev to get some more feedback. -- title: Make default HTTPS certificate verification setting configurable via

[issue24129] Incorrect (misleading) statement in the execution model documentation

2015-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24129 ___ ___

[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.

2015-05-08 Thread Maciej Szulik
Maciej Szulik added the comment: David, I've changed according to your suggestion, appreciate review. -- Added file: http://bugs.python.org/file39324/issue21800.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21800

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-08 Thread Yury Selivanov
Yury Selivanov added the comment: Another iteration: - support of new syntax in lib2to3 - collections.abc.Awaitable -- Added file: http://bugs.python.org/file39325/await_04.patch ___ Python tracker rep...@bugs.python.org

[issue23857] Make default HTTPS certificate verification setting configurable

2015-05-08 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23857 ___ ___

[issue24145] Support |= for parameters in converters

2015-05-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: To my eyes, the current set notation form more clearly expresses its intentions than the |= notation. Readability counts. I agree the |= is a startling syntax that looks weird enough to cause a mental hiccup when reading it. So, put me down for a -1.

[issue24145] Support |= for parameters in converters

2015-05-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For now str(accept={str, NoneType}) is used only 14 times in 6 files in 5 modules. The z format unit is used also in still not converted modules _codecs (a lot of sites), _locale, mmap, _multiprocessing, and _socket. Current syntax doesn't look so ugly for

[issue24145] Support |= for parameters in converters

2015-05-08 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, it occurs to me now that introducing the implicit form trades a write time lookup (where you have to override the converter defaults explicitly), for a read time lookup (where you need to mentally add the defaults to understand the modified accept clause) As

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-08 Thread Nick Coghlan
Nick Coghlan added the comment: Latest patch LGTM, although I believe the new chaining behaviour checks would be clearer with the 3 try/except blocks merged into a single block where all 3 behaviours are checked in the same except clause, and the else clause complains that StopIteration was

[issue23042] ctypes module doesn't build on FreeBSD, RHEL (x86) - Undefined symbol ffi_call_win32

2015-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset a04b3de18c4c by Benjamin Peterson in branch '3.4': fix libffi compilation on FreeBSD (#23042) https://hg.python.org/cpython/rev/a04b3de18c4c New changeset 987b30a88653 by Benjamin Peterson in branch 'default': merge 3.4 (#23042)

[issue13044] pdb throws AttributeError at end of debugging session

2015-05-08 Thread Davin Potts
Changes by Davin Potts pyt...@discontinuity.net: -- nosy: +davin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13044 ___ ___ Python-bugs-list

[issue23042] ctypes module doesn't build on FreeBSD, RHEL (x86) - Undefined symbol ffi_call_win32

2015-05-08 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23042 ___

[issue23857] Make default HTTPS certificate verification setting configurable

2015-05-08 Thread Christian Heimes
Christian Heimes added the comment: Please let me join the party. :) Like Antoine and Donald I'm against an option to disable certificate validation. I truly believe it's the wrong approach for the problem. Users don't *want* to disable security checks either. They disable the check because

[issue23857] Make default HTTPS certificate verification setting configurable

2015-05-08 Thread Christian Heimes
Christian Heimes added the comment: PS: It's also super easy to trust self-signed certificates. All you have to do is to grab the cert and set SSL_CERT_FILE env var: $ openssl s_client -connect host:443 | openssl x509 /path/to/selfsigned.pem $ SSL_CERT_FILE=/path/to/selfsigned.pem python

[issue23857] Make default HTTPS certificate verification setting configurable

2015-05-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Those are nice ideas, but you are forgetting two important points: * browsers are typically only being used by single users, applications by potentially hundreds or thousands of users * how should the poor sys admin who's task it is to keep Python

[issue24145] Support |= for parameters in converters

2015-05-08 Thread Larry Hastings
New submission from Larry Hastings: Some format units provided by PyArg_ParseTuple() are exactly the same as others, except that they also accept the value None. For example, s and z are exactly the same, except z accepts None and s does not. The same goes for s* and z*, or s# and z#. To

[issue23920] Should Clinic have nullable or types=NoneType?

2015-05-08 Thread Larry Hastings
Larry Hastings added the comment: The final version of this has been implemented as part of 41fb7fd04b5d for issue #24001. However, I'll mention here for posterity's sakes: there's an additional discussion on #24145. (Everyone on the nosy list has already been invited to the party!)

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-08 Thread Stefan Behnel
Stefan Behnel added the comment: We also need a Coroutine ABC. Both the GeneratorType and CO_COROUTINE checks are too restrictive. Also see issue 24018, which this one should in fact depend on. -- ___ Python tracker rep...@bugs.python.org

[issue24018] add a Generator ABC

2015-05-08 Thread Stefan Behnel
Stefan Behnel added the comment: This is blocking issue 24017 (async/await syntax). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018 ___ ___

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-05-08 Thread Berker Peksag
Berker Peksag added the comment: In Lib/__future__.py: +generator_stop = _Feature((3, 5, 0, alpha, 1), alpha needs to be changed to beta. -- stage: test needed - commit review ___ Python tracker rep...@bugs.python.org

[issue24018] add a Generator ABC

2015-05-08 Thread Guido van Rossum
Guido van Rossum added the comment: Ask Yury if he'll commit it for you. It's ready. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018 ___

[issue24018] add a Generator ABC

2015-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018 ___

[issue24018] add a Generator ABC

2015-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba5d7041e2f5 by Raymond Hettinger in branch 'default': Issue #24018: Add a collections.Generator abstract base class. https://hg.python.org/cpython/rev/ba5d7041e2f5 -- nosy: +python-dev ___ Python

[issue24018] add a Generator ABC

2015-05-08 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks! Minor grouch: it should say collections.*abc*.Generator in the NEWS entry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018 ___

[issue24018] add a Generator ABC

2015-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: lukasz.langa - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24018 ___

[issue16392] import crashes on circular imports in ext modules

2015-05-08 Thread Omer Katz
Omer Katz added the comment: Is this issue resolved in any way? Has there been a decision made on how to resolve it? What's the status here? -- nosy: +Omer.Katz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16392

[issue23857] Make default HTTPS certificate verification setting configurable

2015-05-08 Thread Nick Coghlan
Nick Coghlan added the comment: Right, the key here is to think like a system administrator, not a developer. Most of those folks are downstream of redistributors (whether commercial ones or community Linux distributions) and relying on one of two things: * tools using the system cert store for

[issue22255] Multiprocessing freeze_support raises RuntimeError

2015-05-08 Thread Davin Potts
Davin Potts added the comment: The issue may already be addressed for the OP and without further information we don't know what or if anything needs pursuing. If new information surfaces, a new issue should be opened. -- resolution: - out of date status: pending - closed

[issue24147] doublequote are not well recognized with Dialect class

2015-05-08 Thread Mik
New submission from Mik: Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 Type help, copyright, credits or license for more information. import csv class Mon(csv.Dialect): ... delimiter = ',' ... quotechar = '' ... quoting = 0 ... lineterminator = '\n' ...

[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit

2015-05-08 Thread Davin Potts
Davin Potts added the comment: It is no longer possible to reproduce the described issue. Changes to the relevant libraries since this issue was originally opened appear to have addressed the cause. Going ahead with closing this issue as there have been no further reports from the OP or

[issue23042] ctypes module doesn't build on FreeBSD, RHEL (x86) - Undefined symbol ffi_call_win32

2015-05-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Let's see what the buildbots think. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23042 ___ ___

[issue23042] ctypes module doesn't build on FreeBSD, RHEL (x86) - Undefined symbol ffi_call_win32

2015-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96a7b401d5e4 by Benjamin Peterson in branch '2.7': fix libffi compilation on FreeBSD (#23042) https://hg.python.org/cpython/rev/96a7b401d5e4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org