[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/72e1b61da0920c5607481304879e03

[issue29990] Range checking in GB18030 decoder

2017-05-08 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[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/4e7457b85316e6591a4f0c3a4d0807

[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 <http://bugs.python.org/is

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

2017-05-09 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +davin ___ Python tracker <http://bugs.python.org/issue30301> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 : -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue30024> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 <http://bugs.python.org/issue30

[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 <http://bugs.python.org/is

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

[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/2ddf5a19c3a06978edff2c8ba0aaf5

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

2017-05-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1629 ___ Python tracker <http://bugs.python.org/issue30281> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-05-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1628 ___ Python tracker <http://bugs.python.org/issue30281> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-05-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1630 ___ Python tracker <http://bugs.python.org/issue30281> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/98b49a00d413972965044fd355be3b

[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/639e295650a51894412c9d97695879

[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/05469fa1c05acf55bdca05db21822e

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

2017-05-10 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[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

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

[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 <http://bugs.python.org/is

[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

[issue30341] Add an explaining comment in _PyTrash_thread_destroy_chain()

2017-05-11 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1644 ___ Python tracker <http://bugs.python.org/issue30341> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30003] Remove hz codec

2017-05-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1652 ___ Python tracker <http://bugs.python.org/issue30003> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30003] Fix handling escape characters in HZ codec

2017-05-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- 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 <http://bugs.python.org/i

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

2017-05-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +rhettinger, xiang.zhang ___ Python tracker <http://bugs.python.org/issue30352> ___ ___ Python-bugs-list mailing list Unsub

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

[issue30341] Add an explaining comment in _PyTrash_thread_destroy_chain()

2017-05-12 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[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 <http://bugs.python.org/issue30353> ___ ___ Python-bug

[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 <http://bugs.python.org/is

[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

[issue30367] Cannot build CPython3.6 with module “testcapimodule” statically

2017-05-14 Thread Nan Zhang
New submission from Nan Zhang: up vote 0 down vote favorite I am trying to build CPython3.6 from GitHub statically with the Documentation below: https://wiki.python.org/moin/BuildStatically Changed *shared* to *static* And only uncommented the module "testcapimodule" in Modules/

[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/96f502856796f9310fed7161dc5402

[issue30224] remove outdated checks in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

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

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1677 ___ Python tracker <http://bugs.python.org/issue30110> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30110] test_asyncio reports reference leak

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1678 ___ Python tracker <http://bugs.python.org/issue30110> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/981096f98b9c131594b0ac85ad01b6

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1679 ___ Python tracker <http://bugs.python.org/issue30242> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1680 ___ Python tracker <http://bugs.python.org/issue30242> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1681 ___ Python tracker <http://bugs.python.org/issue30242> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/0ce1f7e02d4102e8a459d1855d689c

[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/51ab4ada8fc99c24d434a533693375

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

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

[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/982a17e02d99dcf6e4dff93110cff5

[issue30110] test_asyncio reports reference leak

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

[issue30242] resolve undefined behaviour in struct

2017-05-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[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 <http://bugs.python.org/issu

[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

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

2017-05-16 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1692 ___ Python tracker <http://bugs.python.org/issue30301> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-05-16 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> not a bug ___ Python tracker <http://bugs.python.org/issue30195> ___ ___ Python-bugs-list mailing list Unsubscrib

[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 <http://bugs.python.org/issue30301> ___ ___ Python-bugs-list m

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

2017-05-17 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue23267> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/6f75bc003ab4d5294b0291289ae03f

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

2017-05-17 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1718 ___ Python tracker <http://bugs.python.org/issue30301> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-05-17 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1719 ___ Python tracker <http://bugs.python.org/issue30301> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/9081b36f330964faa4dee3af03228d

[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/43d4c0329e2348540a3a16ac61b303

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

2017-05-17 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[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

[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

[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

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-20 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1771 ___ Python tracker <http://bugs.python.org/issue30378> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-20 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +vinay.sajip, xiang.zhang ___ Python tracker <http://bugs.python.org/issue30378> ___ ___ Python-bugs-list mailing list Unsub

[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

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

2017-05-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue30412> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-05-21 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +davin, xiang.zhang ___ Python tracker <http://bugs.python.org/issue30414> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/89a5e03244370f41ce9bed5cea38e0

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1807 ___ Python tracker <http://bugs.python.org/issue30003> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1808 ___ Python tracker <http://bugs.python.org/issue30003> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1809 ___ Python tracker <http://bugs.python.org/issue30003> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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/65440f8278351e16350be716dff61f

[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/54af41d42eebbe4c6afe6b34ebb0fb

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[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/6e1b832a6c0c8f32962a196ab631cc

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

[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/9e98cd0383d9e7f06c0537038a3245

[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/779e7c933e777270897b1e35fa9e5b

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

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

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

2017-05-24 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[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 <http://bugs.python.org/issue30

[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/0b4b57df964f1ba427684556b

[issue30378] SysLogHandler does not support IPv6 destinations

2017-06-01 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1981 ___ Python tracker <http://bugs.python.org/issue30378> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30378] SysLogHandler does not support IPv6 destinations

2017-06-01 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1982 ___ Python tracker <http://bugs.python.org/issue30378> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30378] SysLogHandler does not support IPv6 destinations

2017-06-01 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1983 ___ Python tracker <http://bugs.python.org/issue30378> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30378] SysLogHandler does not support IPv6 destinations

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

[issue30378] SysLogHandler does not support IPv6 destinations

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

[issue30378] SysLogHandler does not support IPv6 destinations

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

[issue30378] SysLogHandler does not support IPv6 destinations

2017-06-01 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks calcheng for your report and Vinay for the review. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker <http://bug

[issue30462] urllib does not support NO_PROXY environment variable containing domain with asterisk

2017-06-01 Thread Xiang Zhang
Xiang Zhang added the comment: Hi Jiri, thanks for your PR. But at least we need a corresponding test and an entry in Misc/NEWS to complete the patch. Also, if your name is not in Misc/ACKS, please add it. :-) -- nosy: +xiang.zhang ___ Python

[issue30245] possible overflow when organize struct.pack_into error message

2017-06-01 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset aead53b6ee27915de248b07de509529174aaad21 by Xiang Zhang (Johan Liu) in branch 'master': bpo-30245: Fix possible overflow when organize struct.pack_into error message (#1682) https://github.com/python/cpyt

[issue30245] possible overflow when organize struct.pack_into error message

2017-06-01 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue30458] CRLF Injection in httplib

2017-06-02 Thread Xiang Zhang
Xiang Zhang added the comment: Looking at the code and the previous issue #22928, CRLF immediately followed by a tab or space (obs-fold: CRLF 1*( SP / HTAB )) is a valid part of a header value so the regex deliberately ignore them. So it looks right to me the url given doesn't raise the

[issue30554] Inaccessible attribute characters_written on OSError instances

2017-06-02 Thread Xiang Zhang
Xiang Zhang added the comment: Actually the docs says "This attribute is available when using the buffered I/O classes from the io module", which means it's not always available since it depends on an inner field set or not. It's just like Python code: >>> class

[issue30554] Inaccessible attribute characters_written on OSError instances

2017-06-02 Thread Xiang Zhang
Xiang Zhang added the comment: Looking at the code and doc it seems it's by design. But it's good or not remains in question. The related discussion about the more general problem behind this issue is https://groups.google.com/d/msg/python-ideas/Kou5cYGjGQ8/oXEixwgiDwAJ. T

[issue29456] bug in unicodedata.normalize: u1176, u11a7 and u11c3

2017-06-05 Thread Xiang Zhang
Xiang Zhang added the comment: We have moved our code hosting to GitHub, would you mind turn your patch into a GitHub PR first Wonsup? -- ___ Python tracker <http://bugs.python.org/issue29

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-06-11 Thread Zhang Wenbo
Changes by Zhang Wenbo : -- nosy: +Zhang Wenbo ___ Python tracker <http://bugs.python.org/issue27240> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-06-12 Thread Zhang Wenbo
Zhang Wenbo added the comment: I think I find a case which can reproduct this bug: the UnstructuredTokenList has a ValueTerminal which is long enough(its encoded word is longer than policy.maxlen ) and not at the beginning. For examples, the following subjects can cause this bug: - 'Re:

[issue36561] Python argparse doesn't work in the presence of my custom module

2019-04-08 Thread JP Zhang
New submission from JP Zhang : Github repo for reproducing: https://github.com/zjplab/gc-mc-pytorch/tree/bug, test.py. In the presence of my custom data_loader, it will error as unrecognized argument. But without importing it(comment it out) everything is just fine. -- components

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