[issue30378] SysLogHandler does not support IPv6 destinations

2017-06-01 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1982 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30378> ___ _

[issue30378] SysLogHandler does not support IPv6 destinations

2017-06-01 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1981 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30378> ___ _

[issue30378] SysLogHandler does not support IPv6 destinations

2017-06-01 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 0b4b57df964f1ba427684556b8e5f05852454e0d by Xiang Zhang in branch 'master': bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1676) https://github.com/python/cpython/commit/0b4b57df964f1ba427684556b8e5f05852454e0d

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Xiang Zhang
Xiang Zhang added the comment: Interestingly I could only reproduce the failure on 3.6 but not master. -- nosy: +xiang.zhang ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c3454f0e79b35fb81b0426cfac4b801d4495b8ea by Xiang Zhang (Stéphane Wirtel) in branch '3.6': bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) (#1790) https://github.com/python/cpython/commit/c3454f0e79b35fb81b0426cfac4b801d4495b8ea

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset ebbefae14039aa86d4c8a7cfab8f2b5a3ef0d241 by Xiang Zhang (Stéphane Wirtel) in branch '3.5': bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) (#1789) https://github.com/python/cpython/commit/ebbefae14039aa86d4c8a7cfab8f2b5a3ef0d241

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-24 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 779e7c933e777270897b1e35fa9e5b12eee12af9 by Xiang Zhang (Stéphane Wirtel) in branch '2.7': bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) (#1788) https://github.com/python/cpython/commit/779e7c933e777270897b1e35fa9e5b12eee12af9

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-23 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9e98cd0383d9e7f06c0537038a32459bf5efa97a by Xiang Zhang (Joel Hillacre) in branch 'master': bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) https://github.com/python/cpython/commit/9e98cd0383d9e7f06c0537038a32459bf5efa97a

[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-23 Thread Xiang Zhang
Xiang Zhang added the comment: "192.168.0.0" is the network address of "192.168.0.0/23" while "192.168.1.0" not. :-) -- ___ Python tracker <rep...@bugs.python.org>

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 6e1b832a6c0c8f32962a196ab631ccc17471d32b by Xiang Zhang in branch '2.7': bpo-30003: Fix handling escape characters in HZ codec (#1720) (#1556) https://github.com/python/cpython/commit/6e1b832a6c0c8f32962a196ab631ccc17471d32b

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 54af41d42eebbe4c6afe6b34ebb0fb550de1e7ba by Xiang Zhang in branch '3.6': bpo-30003: Fix handling escape characters in HZ codec (#1556) (#1719) https://github.com/python/cpython/commit/54af41d42eebbe4c6afe6b34ebb0fb550de1e7ba

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 65440f8278351e16350be716dff61f5f786f7060 by Xiang Zhang in branch '3.5': bpo-30003: Fix handling escape characters in HZ codec (#1556) (#1718) https://github.com/python/cpython/commit/65440f8278351e16350be716dff61f5f786f7060

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1809 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30003> ___ _

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1808 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30003> ___ _

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1807 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30003> ___ _

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 89a5e03244370f41ce9bed5cea38e0dd620edb73 by Xiang Zhang in branch 'master': bpo-30003: Fix handling escape characters in HZ codec (#1556) https://github.com/python/cpython/commit/89a5e03244370f41ce9bed5cea38e0dd620edb73

[issue30414] multiprocesing.Queue silently ignore messages after exc in _feeder

2017-05-21 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- nosy: +davin, xiang.zhang ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30414> ___

[issue30412] mailbox : add option to prevent platform EOL conversion

2017-05-21 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- nosy: +r.david.murray ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30412> ___ _

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-21 Thread Xiang Zhang
Xiang Zhang added the comment: Joel, our patch system has moved to GitHub. Mind to turn your patch into a PR? -- nosy: +xiang.zhang stage: -> patch review type: enhancement -> behavior versions: +Python 2.7, Python 3.5, Python 3.7 ___ Python t

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-20 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- nosy: +vinay.sajip, xiang.zhang ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-20 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1771 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30378> ___ _

[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-19 Thread Xiang Zhang
Xiang Zhang added the comment: See the doc: https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network.hosts. For hosts() method, network address and broadcast address are excluded from the result. So it's right IPv4Address('192.168.0.0') and IPv4Address('192.168.1.255

[issue30000] Inconsistency in the zlib module

2017-05-19 Thread Xiang Zhang
Xiang Zhang added the comment: Since Martin and Gregory support it, Ellison if you'd like you could make a PR for it. But code change alone is not enough. You need also adding corresponding tests and docs. -- ___ Python tracker <

[issue30387] warning of threading_cleanup in test_threading

2017-05-17 Thread Xiang Zhang
New submission from Xiang Zhang: Running test_threading throws a warning now. ./python -m test test_threading Run tests sequentially 0:00:00 load avg: 0.22 [1/1] test_threading Warning -- threading_cleanup() failed to cleanup 0 threads after 2 sec (count: 0, dangling: 21) 1 test OK. Total

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-17 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-17 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 43d4c0329e2348540a3a16ac61b3032f04eefd34 by Xiang Zhang in branch '3.6': bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601) (#1628) https://github.com/python/cpython/commit/43d4c0329e2348540a3a16ac61b3032f04eefd34

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-17 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9081b36f330964faa4dee3af03228d2ca7c71835 by Xiang Zhang in branch '3.5': bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601) (#1627) https://github.com/python/cpython/commit/9081b36f330964faa4dee3af03228d2ca7c71835

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-17 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1719 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30301> ___ _

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-17 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1718 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30301> ___ _

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-17 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 6f75bc003ab4d5294b0291289ae03f7a8d305f46 by Xiang Zhang in branch 'master': bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601) https://github.com/python/cpython/commit/6f75bc003ab4d5294b0291289ae03f7a8d305f46

[issue23267] multiprocessing pool.py doesn't close inqueue and outqueue pipes on termination

2017-05-17 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- nosy: +xiang.zhang ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23267> ___ __

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-16 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your reply Serhiy. Test added. :-) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30195] writing non-ascii characters in xml file using python code embedded in C

2017-05-16 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> not a bug ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30195> ___ _

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-16 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1692 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30301> ___ _

[issue30301] multiprocessing: AttributeError: 'SimpleQueue' object has no attribute '_poll'

2017-05-16 Thread Xiang Zhang
Xiang Zhang added the comment: Related commit is bdb1cf1ca56db25b33fb15dd91eef2cc32cd8973. A simple reproduce snippet: import multiprocessing as mp def foo(q): q.put('hello') assert not q.empty() if __name__ == '__main__': mp.set_start_method('spawn') q = mp.SimpleQueue

[issue24339] iso6937 encoding missing

2017-05-15 Thread Xiang Zhang
Xiang Zhang added the comment: Would you mind converting this patch to a Github PR John? -- stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.or

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 982a17e02d99dcf6e4dff93110cff5ecc59247f5 by Xiang Zhang in branch '2.7': bpo-30242: resolve some undefined behaviours in struct (#1418) (#1588) https://github.com/python/cpython/commit/982a17e02d99dcf6e4dff93110cff5ecc59247f5

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 51ab4ada8fc99c24d434a533693375169c097006 by Xiang Zhang in branch '3.5': bpo-30110: fix resource leak in test_asyncio.test_events (#1413) (#1585) https://github.com/python/cpython/commit/51ab4ada8fc99c24d434a533693375169c097006

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset dd2a09cf98845b1460f0e049ad0ffeeb5c6c6476 by Xiang Zhang in branch '3.5': bpo-30242: resolve some undefined behaviours in struct (#1418) (#1587) https://github.com/python/cpython/commit/dd2a09cf98845b1460f0e049ad0ffeeb5c6c6476

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset aad1caf55f7fadb00ee097a1465bece4e128d8ef by Xiang Zhang in branch '3.6': bpo-30242: resolve some undefined behaviours in struct (#1418) (#1586) https://github.com/python/cpython/commit/aad1caf55f7fadb00ee097a1465bece4e128d8ef

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 0ce1f7e02d4102e8a459d1855d689c8e4613a327 by Xiang Zhang in branch '3.6': bpo-30110: fix resource leak in test_asyncio.test_events (#1413) (#1584) https://github.com/python/cpython/commit/0ce1f7e02d4102e8a459d1855d689c8e4613a327

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1681 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30242> ___ _

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1680 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30242> ___ _

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1679 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30242> ___ _

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 981096f98b9c131594b0ac85ad01b63cbd11aa0a by Xiang Zhang in branch 'master': bpo-30242: resolve some undefined behaviours in struct (#1418) https://github.com/python/cpython/commit/981096f98b9c131594b0ac85ad01b63cbd11aa0a

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1678 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30110> ___ _

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1677 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30110> ___ _

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 7c278a5eeb656c2b48a85bbd761ce165f1751bb6 by Xiang Zhang in branch 'master': bpo-30110: fix resource leak in test_asyncio.test_events (#1413) https://github.com/python/cpython/commit/7c278a5eeb656c2b48a85bbd761ce165f1751bb6

[issue30224] remove outdated checks in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30224] remove outdated checks in struct

2017-05-14 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 96f502856796f9310fed7161dc540201a4afc1ee by Xiang Zhang in branch 'master': bpo-30224: remove outdated checks in struct (#1374) https://github.com/python/cpython/commit/96f502856796f9310fed7161dc540201a4afc1ee

[issue30364] Outdated function attribute to disable address sanitizer

2017-05-14 Thread Xiang Zhang
New submission from Xiang Zhang: In obmalloc, __attribute__((no_address_safety_analysis)) is used to disable address sanitizer. But this attribute is now deprecated in both clang and GCC. Related links: https://clang.llvm.org/docs/AddressSanitizer.html#disabling-instrumentation-with-attribute

[issue30355] Unicode symbols crash lib2to3.parse

2017-05-13 Thread Xiang Zhang
Xiang Zhang added the comment: Why? Unicode identifiers are not allowed in 2.x. I don't think lib2to3 is able or responsible to parse invalid syntax source codes. -- nosy: +xiang.zhang ___ Python tracker <rep...@bugs.python.org>

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-05-13 Thread Xiang Zhang
Xiang Zhang added the comment: Looks same as #29804. -- nosy: +vinay.sajip, xiang.zhang ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30341] Add an explaining comment in _PyTrash_thread_destroy_chain()

2017-05-12 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30341] Add an explaining comment in _PyTrash_thread_destroy_chain()

2017-05-12 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset a66f9c6bb134561a24374f10e8c35417d356ce14 by Xiang Zhang in branch 'master': bpo-30341: Improve _PyTrash_thread_destroy_chain() a little bit (#1545) https://github.com/python/cpython/commit/a66f9c6bb134561a24374f10e8c35417d356ce14

[issue30352] The 'in' syntax should work with any object that implements __iter__

2017-05-12 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- nosy: +rhettinger, xiang.zhang ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue30003] Fix handling escape characters in HZ codec

2017-05-12 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- stage: -> patch review title: Remove hz codec -> Fix handling escape characters in HZ codec versions: +Python 2.7, Python 3.5, Python 3.6 ___ Python tracker <rep...@bugs.py

[issue30003] Remove hz codec

2017-05-12 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1652 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30003> ___ _

[issue30341] Add an explaining comment in _PyTrash_thread_destroy_chain()

2017-05-11 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1644 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30341> ___ _

[issue30341] Add an explaining comment in _PyTrash_thread_destroy_chain()

2017-05-11 Thread Xiang Zhang
New submission from Xiang Zhang: Studying how trashcan works I get puzzled about why increasing trash_delete_nesting in _PyTrash_thread_destroy_chain. I asked Antoine privately (thought he was the author). Antoine told me the reason and suggested add a comment here to help understand

[issue29290] argparse breaks long lines on NO-BREAK SPACE

2017-05-10 Thread Xiang Zhang
Xiang Zhang added the comment: I can't reproduce the failure in anyway. :-( Could you do some investigation and give more info? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27144] concurrent.futures.as_completed() memory inefficiency

2017-05-10 Thread Xiang Zhang
Xiang Zhang added the comment: > Any update on this reviewing, patching, and then backporting to 2.7? concurrent package was added in 3.2. How backport to 2.7? Nosy myself. -- nosy: +xiang.zhang versions: +Python 3.7 ___ Python tracker &

[issue30323] concurrent.futures.Executor.map() consumes all memory when big generators are used

2017-05-10 Thread Xiang Zhang
Xiang Zhang added the comment: IIUC, the meaning of executor.map() is to run the tasks concurrently. So you have to loop the iterable ahead to submit all the tasks. If you make it a generator comprehension, you are actually submitting a task and then getting the result. So you are executing

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 05469fa1c05acf55bdca05db21822ecdd7f6487a by Xiang Zhang in branch '2.7': bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1531) (#1480) https://github.com/python/cpython/commit/05469fa1c05acf55bdca05db21822ecdd7f6487a

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 639e295650a51894412c9d976958792010d3bcf8 by Xiang Zhang in branch '3.5': bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1530) (#1480) https://github.com/python/cpython/commit/639e295650a51894412c9d976958792010d3bcf8

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 98b49a00d413972965044fd355be3b8482caa07c by Xiang Zhang in branch '3.6': bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) (#1529) https://github.com/python/cpython/commit/98b49a00d413972965044fd355be3b8482caa07c

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1630 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30281> ___ _

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1628 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30281> ___ _

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1629 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30281> ___ _

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-10 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 2ddf5a19c3a06978edff2c8ba0aaf5df3528204a by Xiang Zhang in branch 'master': bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480) https://github.com/python/cpython/commit/2ddf5a19c3a06978edff2c8ba0aaf5df3528204a

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-10 Thread Xiang Zhang
Xiang Zhang added the comment: > I don't think that the patch changes the behaviour of "make": it only > changes the behaviour of "make install" and "make test" (and a few > others). I don't mean "make" is changed. I mean the latter. Before, a

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-09 Thread Xiang Zhang
Xiang Zhang added the comment: So now we have to run make if we want to trigger the profile procedure since other make commands like make test won't trigger the procedure by itself, right? -- ___ Python tracker <rep...@bugs.python.org>

[issue30289] make distclean and Misc/python-config.sh

2017-05-09 Thread Xiang Zhang
Xiang Zhang added the comment: I know, but this is not a bug. So I only want to backport it to 3.6. -- versions: -Python 3.5 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

2017-05-09 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- nosy: +xiang.zhang ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30024> ___ __

[issue30301] “AttributeError: 'SimpleQueue' object has no attribute '_poll'”

2017-05-09 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- nosy: +davin ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30301> ___ __

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks Ma Lin for finding the problem! Don't know why you close the PR but anyway, we solve it finally. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 4e7457b85316e6591a4f0c3a4d0807bfdf7a2bea by Xiang Zhang in branch '2.7': bpo-29990: Fix range checking in GB18030 decoder (#1509) https://github.com/python/cpython/commit/4e7457b85316e6591a4f0c3a4d0807bfdf7a2bea

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bu

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 72e1b61da0920c5607481304879e039b63e2a3d5 by Xiang Zhang in branch '3.6': bpo-29990: Fix range checking in GB18030 decoder (#1495) (#1507) https://github.com/python/cpython/commit/72e1b61da0920c5607481304879e039b63e2a3d5

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset f5f7870d9322b46ab87c45b2c4c46f6b10ecbd70 by Xiang Zhang in branch '3.5': bpo-29990: Fix range checking in GB18030 decoder (#1495) (#1508) https://github.com/python/cpython/commit/f5f7870d9322b46ab87c45b2c4c46f6b10ecbd70

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1611 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29990> ___ _

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1610 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29990> ___ _

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1609 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29990> ___ _

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9da408d15bdef624a5632182cb4edf98001fa82f by Xiang Zhang in branch 'master': bpo-29990: Fix range checking in GB18030 decoder (#1495) https://github.com/python/cpython/commit/9da408d15bdef624a5632182cb4edf98001fa82f

[issue30289] make distclean and Misc/python-config.sh

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your report! -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue30289] make distclean and Misc/python-config.sh

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 410d75ab71e2db0fdc8b2016600a3d3d4830f38e by Xiang Zhang in branch '3.6': bpo-30289: remove Misc/python-config.sh when make distclean (#1498) (#1506) https://github.com/python/cpython/commit/410d75ab71e2db0fdc8b2016600a3d3d4830f38e

[issue30289] make distclean and Misc/python-config.sh

2017-05-08 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1608 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30289> ___ _

[issue30289] make distclean and Misc/python-config.sh

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset fa5abac1e6cd74979557d5a6f960a55f40a10b0e by Xiang Zhang in branch 'master': bpo-30289: remove Misc/python-config.sh when make distclean (#1498) https://github.com/python/cpython/commit/fa5abac1e6cd74979557d5a6f960a55f40a10b0e -- nosy

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-08 Thread Xiang Zhang
Xiang Zhang added the comment: Checked with asterite's scripts and it crashes in 3.5 but not in 3.6 and master. Victor, your patch in #26590 seems the resolution of this failure. -- nosy: +xiang.zhang versions: -Python 3.4 ___ Python tracker <

[issue30289] make distclean and Misc/python-config.sh

2017-05-08 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1600 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30289> ___ _

[issue29990] Range checking in GB18030 decoder

2017-05-07 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1597 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29990> ___ _

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-05 Thread Xiang Zhang
Xiang Zhang added the comment: I am okay to use PY_SSIZE_T_MIN. But if we are worried about future change of PY_SSIZE_T_MIN, seems we also need to change the API doc of PySlice_Unpack(). Although _PyEval_SliceIndex's comment says it clips value to -PY_SSIZE_T_MAX-1, actually it uses

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-05 Thread Xiang Zhang
Changes by Xiang Zhang <angwe...@126.com>: -- pull_requests: +1579 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30281> ___ _

[issue30281] set stop default to -PY_SSIZE_T_MAX-1 in PySlice_Unpack

2017-05-05 Thread Xiang Zhang
New submission from Xiang Zhang: The default value for stop in PySlice_Unpack should be -PY_SSIZE_T_MAX-1. Otherwise a sequence of length PY_SSIZE_T_MAX could get a wrong slicelength when doing L[::-1]. -- components: Interpreter Core messages: 293097 nosy: serhiy.storchaka

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: My previous two messages are not clear enough so I delete them. Sorry for the noise. :-( When unpacking a pascal string, you cannot simply specify a p format character otherwise struct calculate a wrong size of the format. That's why unpack fails. When count

<    1   2   3   4   5   6   7   8   9   10   >