[issue23951] Update devguide style to use a similar theme as Docs

2016-07-19 Thread Lisa Roach
Lisa Roach added the comment: Whoops, forgot to remove some errant code. -- Added file: http://bugs.python.org/file43804/devguide_theme_revised.patch ___ Python tracker

[issue23951] Update devguide style to use a similar theme as Docs

2016-07-19 Thread Lisa Roach
Lisa Roach added the comment: Thanks for the feedback! I've cleaned up the patch, hopefully I've been able to catch all the little things that needed to be removed. I was able to wire in rstlint to the make.bat and makefile, so 'make check' should now work. I believe tools/static/py.png

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Guido, that seems like a reasonable roadmap. The examples directory is not in the CPython repo, but I found it here. https://github.com/python/asyncio/tree/master/examples For a demo based on crawl.py, the goal would be a live status report. Perhaps as

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Rémi Rampin
Changes by Rémi Rampin : Removed file: http://bugs.python.org/file43796/python-2.7-httpoxy.patch ___ Python tracker ___

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Rémi Rampin
Changes by Rémi Rampin : Removed file: http://bugs.python.org/file43797/python-3.5-httpoxy.patch ___ Python tracker ___

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Rémi Rampin
Changes by Rémi Rampin : Added file: http://bugs.python.org/file43801/python-3.5-httpoxy.patch ___ Python tracker ___

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Rémi Rampin
Rémi Rampin added the comment: - Added CVE number - Link to full note on getproxies() doc - Improved comment on uppercase (lowercase will be preferred to mIxED_case too) -- Added file: http://bugs.python.org/file43800/python-2.7-httpoxy.patch ___

[issue27569] Windows install problems

2016-07-19 Thread Ricardo Esperanza
Ricardo Esperanza added the comment: Steve CCleanr my registry, then restarted and execute instal again It worked for a longer period and ended with different error attached log. logs attached -- Added file: http://bugs.python.org/file43798/Python 3.5.2

[issue27569] Windows install problems

2016-07-19 Thread Ricardo Esperanza
Ricardo Esperanza added the comment: Steve another log file -- Added file: http://bugs.python.org/file43799/Python 3.5.2 (32-bit)_20160719204204.log ___ Python tracker

[issue27576] An unexpected difference between dict and OrderedDict

2016-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: This does need to be fixed. FWIW, here is the relevant docstring from MutableMapping: ''' D.update([E, ]**F) -> None. Update D from mapping/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k]

[issue27576] An unexpected difference between dict and OrderedDict

2016-07-19 Thread Emanuel Barry
Changes by Emanuel Barry : -- assignee: -> eric.snow components: +Library (Lib) keywords: +3.5regression -3.4regression nosy: +ebarry, eric.snow stage: -> needs patch ___ Python tracker

[issue27392] Add a server_side keyword parameter to create_connection

2016-07-19 Thread Yury Selivanov
Yury Selivanov added the comment: Jim, the patch lgtm. Will merge it soon. -- assignee: -> yselivanov ___ Python tracker ___

[issue27571] 3.6 Seems to be ignoring the _sodium pyd file made with pip.

2016-07-19 Thread Zachary Ware
Zachary Ware added the comment: I have confirmed that this is not a Python issue. PyNaCl takes some special coercion and a third-party library to build (see https://github.com/pyca/pynacl/issues/165), but I managed to get it to build with 3.5.1 and 3.6 and imported nacl._sodium in both with

[issue24254] Make class definition namespace ordered by default

2016-07-19 Thread Eric Snow
Changes by Eric Snow : -- hgrepos: -310 ___ Python tracker ___ ___

[issue24254] Make class definition namespace ordered by default

2016-07-19 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file43629/deforder-with-tp-slot.diff ___ Python tracker ___

[issue25393] 'resource' module documentation error

2016-07-19 Thread Zachary Ware
Zachary Ware added the comment: Thanks to Christos for the report and Alakshendra for the patch! -- nosy: +zach.ware ___ Python tracker ___

[issue25393] 'resource' module documentation error

2016-07-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 434fc614c506 by Zachary Ware in branch '2.7': Issue #25393: Fix probable copy/paste error in resource docs https://hg.python.org/cpython/rev/434fc614c506 New changeset 0fe2b7509707 by Zachary Ware in branch '3.5': Issue #25393: Fix probable

[issue27571] 3.6 Seems to be ignoring the _sodium pyd file made with pip.

2016-07-19 Thread Decorater
Decorater added the comment: Commenting* -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27571] 3.6 Seems to be ignoring the _sodium pyd file made with pip.

2016-07-19 Thread Decorater
Decorater added the comment: hmm unless it has something to do with only my bot's debug command doing the following as it seems it could possible be only my bot's debug command however commenting out 1 thing in Discord.py also generates this Issue. Debug Command Code:

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for this patch. The CVE number assigned to python - CVE-2016-1000110. There is redundancy in /Doc/library/urllib.request.rst change where the same paragraph is repeated twice. See if you can have it at a single location as a `Note` and reference it.

[issue19489] move quick search box above TOC

2016-07-19 Thread Ammar Askar
Ammar Askar added the comment: bump, added the documentation experts list, not sure if the core dev who made this issue is still active. -- nosy: +eric.araujo ___ Python tracker

[issue27576] An unexpected difference between dict and OrderedDict

2016-07-19 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Consider the following code: $ cat x.py from collections import OrderedDict class X: def items(self): print('items') return [] def keys(self): print('keys') return [] print(dict(X())) print(OrderedDict(X()))

[issue25393] 'resource' module documentation error

2016-07-19 Thread Evelyn Mitchell
Evelyn Mitchell added the comment: I've looked at the patch, and the fix looks correct to me. Thanks Alakshendra! I'll verify it builds correctly. -- nosy: +Evelyn Mitchell ___ Python tracker

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Cory Benfield
Cory Benfield added the comment: Ok, so I've taken a preliminary look at this patch. It looks good to me! I have one question: right now the patch as written will blow away not just HTTP_PROXY, but also any other mixed-case spelling of that name (e.g. HtTp_PrOxY) in a CGI environment. That's

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Rémi Rampin
Changes by Rémi Rampin : Added file: http://bugs.python.org/file43797/python-3.5-httpoxy.patch ___ Python tracker ___

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Rémi Rampin
Changes by Rémi Rampin : Added file: http://bugs.python.org/file43796/python-2.7-httpoxy.patch ___ Python tracker ___

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Rémi Rampin
Changes by Rémi Rampin : Removed file: http://bugs.python.org/file43779/python-2.7-httpoxy-mitigation.patch ___ Python tracker ___

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Rémi Rampin
Changes by Rémi Rampin : Removed file: http://bugs.python.org/file43780/python-3.5-httpoxy-mitigation.patch ___ Python tracker ___

[issue27571] 3.6 Seems to be ignoring the _sodium pyd file made with pip.

2016-07-19 Thread Brett Cannon
Brett Cannon added the comment: Anything is possible, but I'm not aware of any big changes in extension loading in 3.6. Would need a test case to verify. -- ___ Python tracker

[issue27567] Add constants EPOLLRDHUP and POLLRDHUP to module select.

2016-07-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset d87f30c29ad4 by Berker Peksag in branch 'default': Issue #27567: Expose the POLLRDHUP constant in the select module https://hg.python.org/cpython/rev/d87f30c29ad4 -- ___ Python tracker

[issue27567] Add constants EPOLLRDHUP and POLLRDHUP to module select.

2016-07-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag status: open -> closed ___ Python tracker ___

[issue27575] dict viewkeys intersection slow for large dicts

2016-07-19 Thread David Su
New submission from David Su: In dictobject.c, the function dictviews_and performs a very expensive set creation operation on the keys of the self dict object: >From Python 2.7: ... static PyObject* dictviews_and(PyObject* self, PyObject *other) { PyObject *result = PySet_New(self); ...

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2016-07-19 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list

[issue27571] 3.6 Seems to be ignoring the _sodium pyd file made with pip.

2016-07-19 Thread Steve Dower
Steve Dower added the comment: Any chance this is a regression in the "extension module within a package" issue we saw during 3.5? There's a pretty relevant difference between: >>> import nacl._sodium >>> import _cffi_backend -- ___ Python tracker

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2016-07-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached patch fixes the issue. There is at least already an existing test case: test_subprocess.MiscTests.test_getoutput calls subprocess.getstatusoutput() that runs a Popen instance with shell=True. -- stage: -> patch review Added file:

[issue27574] Faster parsing keyword arguments

2016-07-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Parsing keyword arguments is much more slow than parsing positional arguments. Parsing time can be larger that useful execution time. $ ./python -m timeit "b'a:b:c'.split(b':', 1)" 100 loops, best of 3: 0.638 usec per loop $ ./python -m timeit

[issue27571] 3.6 Seems to be ignoring the _sodium pyd file made with pip.

2016-07-19 Thread Brett Cannon
Brett Cannon added the comment: If it's only affecting a single library then chances are it's not Python's fault. -- components: +Windows nosy: +brett.cannon, paul.moore, steve.dower, tim.golden, zach.ware resolution: -> third party status: open -> closed

[issue27472] add the 'unix_shell' attribute to test.support

2016-07-19 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +haypo stage: patch review -> commit review ___ Python tracker ___

[issue25571] Improve the lltrace feature with the Py_Debug mode

2016-07-19 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- components: +Interpreter Core versions: +Python 3.6 ___ Python tracker ___

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2016-07-19 Thread Anders Hovmöller
Anders Hovmöller added the comment: Hmm, ok. I guess I was confused by "dates and times" part of the subject. Ok, so only datetimes. My other comments still apply though. > On 19 Jul 2016, at 16:20, Mathieu Dupuy wrote: > > > Mathieu Dupuy added the comment: > >

[issue27561] Warn against subclassing builtins, and overriding their methods

2016-07-19 Thread Kirk Hansen
Kirk Hansen added the comment: Raymond: Thanks for essentially answering my stackoverflow question (if you are a member, and add most of your response, I'll accept it). I agree enough with your documentation statement. An entry in an FAQ would have been just as helpful to me as a note in the

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2016-07-19 Thread Mathieu Dupuy
Mathieu Dupuy added the comment: because it limits itself to only support the RFC 3339 subset, as explained in the begining of the discussion. 2016-07-19 16:07 GMT+02:00 Anders Hovmöller : > > Anders Hovmöller added the comment: > > The tests attached to this ticket seem

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2016-07-19 Thread Anders Hovmöller
Anders Hovmöller added the comment: The tests attached to this ticket seem pretty bare. Issues that I can spot directly: - only tests for datetimes, not times or dates - only tests for zulu and "-8:00” timezones - no tests for invalid input (parsing a valid date as a datetime for example) -

[issue1621] Do not assume signed integer overflow behavior

2016-07-19 Thread Antti Haapala
Antti Haapala added the comment: About shifts, according to C standard, right shifts >> of negative numbers are implementation-defined: "[in E1 >> E2], If E1 has a signed type and a negative value, the resulting value is implementation-defined." In K this meant that the number can be

[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2016-07-19 Thread Anders Hovmöller
Anders Hovmöller added the comment: > The `arrow` library depends on the supposed "strict" behaviour of strptime > that has never been guaranteed, which often results in very buggy behaviour > under some conditions. Well… the arrow library accepts all sorts of broken input and gives you a

[issue27573] code.interact() should print an exit message

2016-07-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: This time, with a patch that includes updated tests. -- Added file: http://bugs.python.org/file43793/code.patch ___ Python tracker

[issue27573] code.interact() should print an exit message

2016-07-19 Thread Steven D'Aprano
Changes by Steven D'Aprano : Removed file: http://bugs.python.org/file43791/code.patch ___ Python tracker ___

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: Following (and thanks to :) Martin's review and comments, this new patch: * does not use the not portable '-e' echo option * uses single quotes (') to avoid the escaping * improves the error message “make touch” does not always fix the problem, for example when

[issue1621] Do not assume signed integer overflow behavior

2016-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does this work with negative steps? -- ___ Python tracker ___ ___

[issue27573] code.interact() should print an exit message

2016-07-19 Thread Steven D'Aprano
New submission from Steven D'Aprano: Way too often I've lost track of whether I'm in the code.interact() REPL or the original REPL, or hit Ctrl-D once too often, and accidentally quit the real REPL. It is easy to lose track, since the real and imitation REPL both use the same prompts. It

[issue20932] Undefined behavior flagged by Clang 3.4 (Python 3.5 from hg)

2016-07-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter ___ Python tracker ___ ___

[issue27561] Warn against subclassing builtins, and overriding their methods

2016-07-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: Raymond, that was a fantastic explanation. Would you be willing to turn it into a FAQ? Or if you don't have the time, to allow somebody to steal your description and use it? -- nosy: +steven.daprano ___ Python

[issue27567] Add constants EPOLLRDHUP and POLLRDHUP to module select.

2016-07-19 Thread Марк Коренберг
Changes by Марк Коренберг : -- status: closed -> open ___ Python tracker ___ ___

[issue27567] Add constants EPOLLRDHUP and POLLRDHUP to module select.

2016-07-19 Thread Марк Коренберг
Марк Коренберг added the comment: Thanks, but POLLRDHUP is also missing...I have typo in subject(fixed) -- title: Add constants EPOLLRDHUP and EPOLLHUP to module select. -> Add constants EPOLLRDHUP and POLLRDHUP to module select. ___ Python tracker

[issue27568] "HTTPoxy", use of HTTP_PROXY flag supplied by attacker in CGI scripts

2016-07-19 Thread Cory Benfield
Cory Benfield added the comment: I like this patch a great deal, I'll happily review it with docs and tests. -- nosy: +Lukasa ___ Python tracker ___

[issue27572] Support bytes-like objects when base is given to int()

2016-07-19 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file43790/bytes_like_support_to_int.patch ___ Python tracker ___

[issue27572] Support bytes-like objects when base is given to int()

2016-07-19 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file43789/bytes_like_support_to_int.patch ___ Python tracker ___

[issue27572] Support bytes-like objects when base is given to int()

2016-07-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- type: -> enhancement ___ Python tracker ___ ___

[issue27572] Support bytes-like objects when base is given to int()

2016-07-19 Thread Xiang Zhang
New submission from Xiang Zhang: Right now, int() supports bytes-like objects when *base* is not given: >>> int(memoryview(b'100')) 100 When *base* is given bytes-like objects are not supported: >>> int(memoryview(b'100'), base=2) Traceback (most recent call last): File "", line 1, in

[issue27571] 3.6 Seems to be ignoring the _sodium pyd file made with pip.

2016-07-19 Thread Decorater
Decorater added the comment: It dooes work foor _cffi_backend however on reading it so this issue is only on nacl._sodium then. -- title: 3.6 Seems to be ignoring all pyd's installed and compiled by pip -> 3.6 Seems to be ignoring the _sodium pyd file made with pip.

[issue27571] 3.6 Seems to be ignoring all pyd's installed and compiled by pip

2016-07-19 Thread Decorater
Decorater added the comment: Attacked are the 2 versions of _sodium for PyNacl that it seems to not be able to find. -- Added file: http://bugs.python.org/file43788/_sodium.cp36-win32.pyd ___ Python tracker

[issue27571] 3.6 Seems to be ignoring all pyd's installed and compiled by pip

2016-07-19 Thread Decorater
Changes by Decorater : Added file: http://bugs.python.org/file43787/_sodium.cp36-win_amd64.pyd ___ Python tracker ___

[issue27571] 3.6 Seems to be ignoring all pyd's installed and compiled by pip

2016-07-19 Thread Decorater
New submission from Decorater: in 3.5 the following would succed: >>>import nacl._sodium None but in 3.6 (I even compiled it for 3.6 specifically) this happens: >>>import nacl._sodium Traceback (most recent call last): import nacl._sodium ImportError: No module named 'nacl._sodium'

[issue25591] refactor imaplib tests

2016-07-19 Thread Maciej Szulik
Maciej Szulik added the comment: Thanks, I'll try to update the patch in the following days. -- ___ Python tracker ___