[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 ___ _

[issue24018] add a Generator ABC

2015-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[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 tracker

[issue24018] add a Generator ABC

2015-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: lukasz.langa -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[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 ___ ___ Python-bugs-list ma

[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 __

[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 ___ ___ Python-bugs-list mai

[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

[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 : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13044] pdb throws AttributeError at end of debugging session

2015-05-08 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[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) https://hg.python.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 ___ ___ Python-bugs-list mailing list U

[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

[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 othe

[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 ... lineterminato

[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

[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 suppr

[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)

[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 u

[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 scri

[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
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[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 glob

[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

[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

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

2015-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

2015-05-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[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 ___

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

2015-05-08 Thread Larry Hastings
Changes by Larry Hastings : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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 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 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

[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 ___ ___

[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 ___

[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 ___ ___

[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

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

2015-05-08 Thread Larry Hastings
Changes by Larry Hastings : -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2015-05-08 Thread Larry Hastings
Changes by Larry Hastings : -- assignee: ghaering -> larry resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[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:

[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
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 pa

[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 "", line 1, in File "/usr/lib/python3.4/ast.py", line 84, in literal_eval return _convert(node_or_string) File "/usr/lib/python3.4/ast.py

[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

[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

[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

[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). -- ___

[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 priorit

[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 fo

[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. The

[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!) ---

[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#

[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 __

[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 same

[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 ___ ___ Python

[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 th

[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 ___ ___ Python-bugs-list mailing lis

[issue24098] Multiple use after frees in obj2ast_* methods

2015-05-08 Thread paul
paul added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman