[issue24068] statistics module - incorrect results with boolean input

2015-05-03 Thread Mark Dickinson
Mark Dickinson added the comment: I wonder if it would be better to reject Bool data in this context? It's not uncommon (and quite useful) in NumPy world to compute basic statistics on arrays of boolean dtype: the sum of such an array gives a count of the `True`s, and the mean gives the

[issue20357] Mention buildbots in the core dev section of the devguide

2015-05-03 Thread Mark Lawrence
Mark Lawrence added the comment: I couldn't see anything obvious in the devguide so I'm assuming that still needs doing. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20357

[issue10965] dev task of documenting undocumented APIs

2015-05-03 Thread Mark Lawrence
Mark Lawrence added the comment: Where do we stand on this as #10224 has been closed as out of date? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10965 ___

[issue24092] Use after free in Element.extend (2)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24092 ___

[issue24091] Use after free in Element.extend (1)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24091 ___

[issue24095] Use after free during json encoding a dict (2)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24095 ___

[issue24094] Use after free during json encoding (PyType_IsSubtype)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24094 ___

[issue24093] Use after free in Element.remove

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24093 ___

[issue24096] Use after free in get_filter

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24096 ___

[issue24097] Use after free in PyObject_GetState

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24097 ___

[issue20749] shutil.unpack_archive(): security concerns not documented

2015-05-03 Thread Mark Lawrence
Mark Lawrence added the comment: If there is an agreed standard for security warnings I'll prepare a patch for this. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20749

[issue24098] Multiple use after frees in obj2ast_* methods

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24098 ___

[issue24100] Use after free in siftdown (2)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24100 ___

[issue24099] Use after free in siftdown (1)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24099 ___

[issue24101] Use after free in siftup

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24101 ___

[issue24103] Use after free in xmlparser_setevents (1)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24103 ___

[issue24102] Multiple type confusions in unicode error handlers

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24102 ___

[issue24104] Use after free in xmlparser_setevents (2)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24104 ___

[issue24105] Use after free during json encoding a dict (3)

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24105 ___

[issue24056] Expose closure generator status in function repr()

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24056 ___

[issue24116] --with-pydebug has no effect when the final python binary is compiled

2015-05-03 Thread aleb
New submission from aleb: This is how I configure and build: $ ./configure --prefix=/usr \ --with-threads \ --with-computed-gotos \ --enable-ipv6 \ --with-system-expat \ --with-dbmliborder=gdbm:ndbm \

[issue24115] PyObject_IsInstance() and PyObject_IsSubclass() can fail

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24115 ___

[issue24116] --with-pydebug has no effect when the final python binary is compiled

2015-05-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Set CFLAGS when calling configure, not make. -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24116 ___

[issue24117] A small bug in GB18030 decoder.

2015-05-03 Thread Ma Lin
New submission from Ma Lin: Hi, There is a small bug in GB18030 decoder. For 4-byte sequence, the legal range is: 0x81-0xFE for the 1st byte 0x30-0x39 for the 2nd byte 0x81-0xFE for the 3rd byte 0x30-0x39 for the 4th byte The current code forgets to check 0xFE of the 1st and 3rd byte.

[issue24117] A small bug in GB18030 decoder.

2015-05-03 Thread Ma Lin
Changes by Ma Lin wjss...@sohu.com: -- type: - behavior Added file: http://bugs.python.org/file39278/forpy3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24117 ___

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-03 Thread Ma Lin
Changes by Ma Lin wjss...@sohu.com: -- title: A small bug in GB18030 decoder. - Wrong range checking in GB18030 decoder. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24117 ___

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +lemburg, loewis, serhiy.storchaka stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24117 ___

[issue24113] shlex constructor unreachable code

2015-05-03 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. Users should either be permitted to set debug on via an optional __init__ parameter, This is already possible via the debug attribute (https://docs.python.org/3/library/shlex.html#shlex.shlex.debug), so I don't think adding a debug

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Steve Dower
Steve Dower added the comment: Sorry, wasn't watching the other issue. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20148 ___ ___

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: Steve, please close this issue when you've confirmed it's now building correctly on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20148 ___

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: Steve, please close this issue when you've confirmed it's now building correctly on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20168 ___

[issue24123] Python 2.7 Tutorial Conflicting behavior with WeakValueDictionary.

2015-05-03 Thread Jesse Bacon
New submission from Jesse Bacon: https://docs.python.org/2/tutorial/stdlib2.html Section 11.6. Weak References The example code below from the python tutorial suggests that the value of a is no persistent when cast into a WeakValueDictionary as entry 'primary' The value persisted in the

[issue24123] Python 2.7 Tutorial Conflicting behavior with WeakValueDictionary.

2015-05-03 Thread Jesse Bacon
Jesse Bacon added the comment: https://docs.python.org/2/tutorial/stdlib2.html Section 11.6. Weak References The example code below from the python tutorial suggests that the value of 'a' is not persistent when cast into a WeakValueDictionary as entry 'primary' The value persisted in the

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then the patch LGTM. It is easier to make these changes by hand than make a review for moved code on Rietveld. I'm not sure, but may be forward static declarations of arrays of unspecified size is C99-ism? --

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: I agree. I looked it up in the C99 standard. 6.9.2.2 says: If the declaration of an identifier for an object is a tentative definition and has internal linkage, the declared type shall not be an incomplete type. And if you'd hurry up and bless my patch for

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Steve Dower
Steve Dower added the comment: It fails on VC10, 11, 12 and 14, so I doubt it's going to be changed. That said, it looks like the non-static forward definition may be some sort of extension, since it causes a redefinition error (mismatched storage class) on all versions when using /Za to

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 03/05/2015 23:06, Larry Hastings a écrit : Larry Hastings added the comment: We discussed it in IRC a bit (and I got a little education). Can we have a transcript somewhere? -- ___ Python tracker

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: We discussed it in IRC a bit (and I got a little education). I can propose three remedies: A) back out the Clinic conversion in _ssl.c B) support Clinic in 2.7 just for _ssl.c C) do a one-time backport of the Clinic generated code for _ssl.c IMO these are in

[issue24113] shlex constructor unreachable code

2015-05-03 Thread Andrew Barnert
Andrew Barnert added the comment: Presumably ESR thought that information was useful enough to send Guido a patch to add it. But apparently nobody's missed it in the 15 years it's been checked in but unreachable. If anyone needed to know the `instream` and `lineno` right after initialization,

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-05-03 Thread Steve Dower
Steve Dower added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20168 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24051] Argument Clinic no longer works with single optional argument

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then it would be better to not convert wantobjects() to Argument Clinic. Using -1 as a value for not passed argument is a hack (added in 1ab9978123be) and I don't want to propagate it to the signature. But I afraid that there are other functions that suffer

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: Oh, this is only happening on the *beta* compiler? In that case, I genuinely suggest you file a bug. We can still check in the workaround, but I really do think MSVS's behavior is wrong here. (Why is it only for forward static declarations of arrays of

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: Attached. Glad you asked right away, it would have been a lot harder to get later! -- Added file: http://bugs.python.org/file39283/irc.transcript.of._ssl.clinic.discussion.txt ___ Python tracker

[issue24123] Python 2.7 Tutorial Conflicting behavior with WeakValueDictionary.

2015-05-03 Thread Jesse Bacon
Jesse Bacon added the comment: https://docs.python.org/2/tutorial/stdlib2.html Section 11.6. Weak References The example code below from the python tutorial suggests that the value of 'a' is not persistent when cast into a WeakValueDictionary as entry 'primary' The value persisted in the

[issue24121] collections page doesn't mention that deques are mutable

2015-05-03 Thread Raymond Hettinger
New submission from Raymond Hettinger: Mutability is conferred by the presence of mutating methods. Deques are documented to have append, pop, extend, appendleft, popleft, extendleft, and rotate. Also the examples all show mutations. -- nosy: +rhettinger resolution: - not a bug

[issue24051] Argument Clinic no longer works with single optional argument

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: If the argument currently uses a default value of -1, then I see no problem with converting it to Argument Clinic using a default value of -1. If you claim it's a hack then you should discuss that with the author of 1ab9978123be. --

[issue24051] Argument Clinic no longer works with single optional argument

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: Closing as wontfix. This is not a supported use of optional groups. -- resolution: - wont fix status: languishing - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24051

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Steve Dower
Steve Dower added the comment: According to http://compgroups.net/comp.std.c/why-does-the-standard-prohibit-static-int-a/2569729, it's invalid in both C89 and C99, but some compilers accept it as an extension. IMO we should avoid relying on compiler extensions, at least in the code files

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: (sorry, 6.9.2.3) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20148 ___ ___ Python-bugs-list mailing list

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20179 ___ ___ Python-bugs-list mailing list

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a76c462c7f6 by Larry Hastings in branch 'default': Fix Windows build breakage from checkins on Issues #20148 and #20168. https://hg.python.org/cpython/rev/7a76c462c7f6 -- ___ Python tracker

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a76c462c7f6 by Larry Hastings in branch 'default': Fix Windows build breakage from checkins on Issues #20148 and #20168. https://hg.python.org/cpython/rev/7a76c462c7f6 -- ___ Python tracker

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

2015-05-03 Thread R. David Murray
R. David Murray added the comment: Here is an updated patch based on Milan's work, including docs. I've tweaked the API slightly: no dedicated method for doing the enable (instead it is inlined in authenticate), I added 'enable' to the exposed API (with a doc caveat about not using it for

[issue24123] Python 2.7 Tutorial Conflicting behavior with WeakValueDictionary.

2015-05-03 Thread R. David Murray
R. David Murray added the comment: If I run the example code you pasted using 2.7, I get a KeyError. So the example looks correct to me. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24123

[issue24123] Python 2.7 Tutorial Conflicting behavior with WeakValueDictionary.

2015-05-03 Thread Jesse Bacon
Jesse Bacon added the comment: Thank you for the second eyes. I just verified that it works using the standard python shell. It looks like the bug is in IPython. I’ll post it there. In [7]: class A: ...: def __init__(self, value): ...: self.value = value ...: def

[issue16344] Traceback Internationalization Proposal

2015-05-03 Thread Mariano Reingart
Mariano Reingart added the comment: Just for the record, I've presented a CPython Internationalization proposal for this year Google Summer of Code program: http://www.google-melange.com/gsoc/proposal/public/google/gsoc2015/reingart/5634387206995968 Indeed, that was my third attempt to move

[issue23857] Make default HTTPS certificate verification setting configurable via global ini file

2015-05-03 Thread Nick Coghlan
Nick Coghlan added the comment: After further consideration, I realised there's an important difference between this case and the hash randomisation case: having the -E switch imply hash randomisation was OK, but having it imply HTTPS certificate verification after the system administrator

[issue16344] Traceback Internationalization Proposal

2015-05-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: For what it's worth, there are at least two localised versions of Python: Teuton and ChinesePython. As far as I know, ChinesePython is still in active development. Both translate the keywords and builtins, to German and Chinese respectively. I don't have a

[issue24123] Python 2.7 Tutorial Conflicting behavior with WeakValueDictionary.

2015-05-03 Thread Jesse Bacon
Jesse Bacon added the comment: After further testing it appears that the bug is in IPython not Python 2.7. The bug has been moved to the Python list at https://github.com/ipython/ipython/issues/8403#issuecomment-98565759 -- resolution: - third party status: open - closed

[issue22881] show median in benchmark results

2015-05-03 Thread Stefan Behnel
Stefan Behnel added the comment: I'm actually not sure how it relates to the minimum. The more runs you have, the higher the chance of hitting the actual minimum at least once. And if none of the runs hits the real minimum, you're simply out of luck. However, it should tend to give a much

[issue22881] show median in benchmark results

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be just drop 5% of largest values to avoid the impact of outliers? See also issue23552. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22881 ___

[issue22881] show median in benchmark results

2015-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: May be just drop 5% of largest values to avoid the impact of outliers? In fast mode (option -f), there may not be enough samples for that. -- ___ Python tracker rep...@bugs.python.org

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added new comments. issue20182.signalmodule.patch LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20182 ___

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-05-03 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9517 ___

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Adding Hye-Shik who wrote the codec. -- nosy: +hyeshik.chang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24117 ___

[issue22881] show median in benchmark results

2015-05-03 Thread Stefan Behnel
Stefan Behnel added the comment: Well, we can apply a kludge, or apply statistics. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22881 ___ ___

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have no opinion on whether this is a good thing or not. Security backports should be few and far between, so I don't think it's a big problem if they are a bit more difficult. -- ___ Python tracker

[issue22881] show median in benchmark results

2015-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Then let's just replace the average with the median? I don't think it makes sense to add more statistical information to the output (IMHO, there is already too much of it :-)). -- ___ Python tracker

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: wantobjects() was not converted due to a bug in Argument Clinic (issue24051). -- dependencies: -Argument Clinic no longer works with single optional argument resolution: - fixed stage: patch review - resolved status: open - closed

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Serhiy Storchaka
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/issue20148 ___

[issue22881] show median in benchmark results

2015-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Have you found the median to be more stable than the minimum here? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22881 ___

[issue22619] Possible implementation of negative limit for traceback functions

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Dmitry. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619

[issue24116] --with-pydebug has no effect when the final python binary is compiled

2015-05-03 Thread R. David Murray
R. David Murray added the comment: Sounds like this is a duplicate of issue 9189? (--with-pydebug certainly works for me). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24116

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Christian Heimes
Christian Heimes added the comment: I'm with Alex. The move to argument clinic is going to make it very hard to port patches to older versions of Python, especially Python 2.7. -- ___ Python tracker rep...@bugs.python.org

[issue24105] Use after free during json encoding a dict (3)

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a disadvantage of opening several issues for similar bugs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24105 ___

[issue24118] http.client example is no longer valid

2015-05-03 Thread Steven D'Aprano
New submission from Steven D'Aprano: The example code for http.client shows www.python.org/parrot.spam return a 404: https://docs.python.org/3/library/http.client.html#examples # Example of an invalid request conn.request(GET, /parrot.spam) r2 = conn.getresponse() print(r2.status,

[issue24096] Use after free in get_filter

2015-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffc1f9d1c8b3 by Benjamin Peterson in branch '3.3': be more robust against the filters list changing under us (closes #24096) https://hg.python.org/cpython/rev/ffc1f9d1c8b3 New changeset 47f4c3a5d86a by Benjamin Peterson in branch '3.4': merge 3.3

[issue24116] --with-pydebug has no effect when the final python binary is compiled

2015-05-03 Thread aleb
aleb added the comment: It's confusing that the CFLAGS specified when running make are passed further sometimes but not always. So I guess that's a workaround? Or CFLAGS should never be specified to make directly? -- ___ Python tracker

[issue23330] h2py.py regular expression missing

2015-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23330 ___

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry. Should I rollback 1eaaf27b3956? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20179 ___ ___

[issue10965] dev task of documenting undocumented APIs

2015-05-03 Thread Brett Cannon
Brett Cannon added the comment: The issue is still valid and waiting for someone to submit a patch to the devguide. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10965 ___

[issue22619] Possible implementation of negative limit for traceback functions

2015-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb6052605fd8 by Serhiy Storchaka in branch 'default': Issue #22619: Added negative limit support in the traceback module. https://hg.python.org/cpython/rev/eb6052605fd8 -- nosy: +python-dev ___ Python

[issue22881] show median in benchmark results

2015-05-03 Thread Stefan Behnel
Stefan Behnel added the comment: for the even number case, I think you shouldn't do // 2, but / 2. Right. I updated the patch. -- Added file: http://bugs.python.org/file39279/show_median.patch ___ Python tracker rep...@bugs.python.org

[issue23330] h2py.py regular expression missing

2015-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset b32ca610c9e6 by Serhiy Storchaka in branch '2.7': Issue #23330: h2py now supports arbitrary filenames in #include. https://hg.python.org/cpython/rev/b32ca610c9e6 New changeset 0079465a9425 by Serhiy Storchaka in branch '3.4': Issue #23330: h2py now

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1eaaf27b3956 by Serhiy Storchaka in branch 'default': Issue #20179: Converted the _ssl module to Argument Clinic. https://hg.python.org/cpython/rev/1eaaf27b3956 -- ___ Python tracker

[issue20168] Derby: Convert the _tkinter module to use Argument Clinic

2015-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset b22ced894d51 by Serhiy Storchaka in branch 'default': Issue #20168: Converted the _tkinter module to Argument Clinic. https://hg.python.org/cpython/rev/b22ced894d51 -- nosy: +python-dev ___ Python

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5f78a855355 by Serhiy Storchaka in branch 'default': Issue #20148: Converted the _sre module to Argument Clinic. https://hg.python.org/cpython/rev/d5f78a855355 -- nosy: +python-dev ___ Python tracker

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For now almost all generated code are written in separate file, so it doesn't attract attention (if you believe Argument Clinic). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20180

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: How often are patches backported to 2.7? While I understand the sentiment, I'd like to understand the scale of the objection being raised. I suspect it's infrequent, making the objection a minor one. -- ___

[issue1182143] making builtin exceptions more informative

2015-05-03 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182143 ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't see the v2 patch for the signal module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20182 ___ ___

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2015-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Peter for the fix. Applied by Christian in 743c54a2830f. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20175 ___

[issue24095] Use after free during json encoding a dict (2)

2015-05-03 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - duplicate status: open - closed superseder: - Use after free during json encoding (PyType_IsSubtype) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24095

[issue24105] Use after free during json encoding a dict (3)

2015-05-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: I applied a very similar patch for #24094. -- nosy: +benjamin.peterson resolution: - duplicate status: open - closed superseder: - Use after free during json encoding (PyType_IsSubtype) ___ Python tracker

[issue24119] Carry comments with the AST

2015-05-03 Thread Brett Cannon
New submission from Brett Cannon: One thing about https://www.python.org/dev/peps/pep-0484/ is that it makes comments potentially semantically meaningful. Unfortunately the AST doesn't carry comments with it in any way, making it difficult to build a tool to implement a linter for PEP 484

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2015-05-03 Thread Tal Einat
Tal Einat added the comment: Do you mean the v2.patch file, or the one before it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20182 ___ ___

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2015-05-03 Thread Christian Heimes
Christian Heimes added the comment: You are right, patches are seldomly backported to Python 2.7. Features are never backported. Well, except for one exception: the ssl module. :) -- ___ Python tracker rep...@bugs.python.org

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2015-05-03 Thread Larry Hastings
Larry Hastings added the comment: Yes, it moves the type declaration to the bottom of the file, and adds forward static declarations for the types to the top of the file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20148

[issue24119] Carry comments with the AST

2015-05-03 Thread Mark Shannon
Mark Shannon added the comment: Comments don't belong on the AST. Where would you attach them? The tokenizer module provides all information about comments. Tools can get the information quite easily if they need it. -- nosy: +Mark.Shannon ___

[issue24121] collections page doesn't

2015-05-03 Thread lf
Changes by lf thereallucasf...@gmail.com: -- assignee: docs@python components: Documentation nosy: docs@python, lf priority: normal severity: normal status: open title: collections page doesn't versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

  1   2   >