[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2019-09-02 Thread Xiang Zhang
Xiang Zhang added the comment: >It may be better to apply it even to the developed version. There is nothing >wrong with creating the tee iterator in one thread and using it the other >thread. Or using the tee iterators with external locking. I afraid that PR >15567 can break

[issue38168] Refleaks in setint() of mmapmodule.c

2019-09-15 Thread Xiang Zhang
Change by Xiang Zhang : -- pull_requests: +15786 pull_request: https://github.com/python/cpython/pull/16176 ___ Python tracker <https://bugs.python.org/issue38

[issue38168] Refleaks in setint() of mmapmodule.c

2019-09-16 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 68d8c122972d7a49627b983af4ccbfad9f5ade17 by Xiang Zhang in branch '2.7': [2.7] bpo-38168: Fix a possbile refleak in setint() of mmapmodule.c (GH-16136) (GH-16176) https://github.com/python/cpython/commit/68d8c122972d7a49627b983af4ccbf

[issue38168] Refleaks in setint() of mmapmodule.c

2019-09-16 Thread Xiang Zhang
Change by Xiang Zhang : -- components: +Extension Modules -Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.7, Python 3.8, Python 3.9 ___ Python tracke

[issue38391] Typo in tutorial code (does not compile)

2019-10-07 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 038503e08ac5b10601b95d5adc2c2cab7be10163 by Xiang Zhang (Krishna Oza) in branch 'master': bpo-38391: Fixing a typo for Py_DECREF (GH-16616) https://github.com/python/cpython/commit/038503e08ac5b10601b95d5adc2c2cab7be10163 -

[issue38391] Typo in tutorial code (does not compile)

2019-10-07 Thread Xiang Zhang
Change by Xiang Zhang : -- assignee: -> docs@python components: +Documentation -Demos and Tools nosy: +docs@python resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Py

[issue34953] Implement `mmap.mmap.__repr__`

2019-10-17 Thread Xiang Zhang
Change by Xiang Zhang : -- components: +Extension Modules -Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.or

[issue34953] Implement `mmap.mmap.__repr__`

2019-10-17 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset d8ca2354ed30c12b9ce37c4535222b700a727b32 by Xiang Zhang (Taine Zhao) in branch 'master': bpo-34953: Implement `mmap.mmap.__repr__` (GH-9891) https://github.com/python/cpython/commit/d8ca2354ed30c12b9ce37c4535222b

[issue32408] Performance regression in urllib.proxy_bypass_environment

2021-03-31 Thread Xiang Zhang
Xiang Zhang added the comment: I think this issue has already been solved by #39507. The time difference is: before: time python3 -c 'import urllib.request; urllib.request.proxy_bypass_environment("1.1.1.1")' real0m0.912s user0m0.902s sys 0m0.010s aft

[issue32408] Performance regression in urllib.proxy_bypass_environment

2021-03-31 Thread Xiang Zhang
Xiang Zhang added the comment: Sorry, it's #39057 -- ___ Python tracker <https://bugs.python.org/issue32408> ___ ___ Python-bugs-list mailing list Unsubscr

[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-22 Thread Xiang Zhang
Xiang Zhang added the comment: I can't understand the rational for rejecting localized digits though I don't know who will use them in practise. I'd rather fix it until there is a real problem with it. -- nosy: +xiang.zhang ___

[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-23 Thread Xiang Zhang
Xiang Zhang added the comment: @Ezio, at least for my config they are all ASCII digits. But still I don't think there is any rush to change current behaviour. -- ___ Python tracker <https://bugs.python.org/is

[issue30434] multiprocessing AuthenticationError "digest sent was rejected"

2020-08-25 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34763] Treat U+4E17 as a numeric value

2019-06-03 Thread Xiang Zhang
Xiang Zhang added the comment: unicode.org doesn't list "丗" as numeric so I think there is nothing we can do. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker <https:/

[issue37441] Fix a param error in exceptions.rst

2019-07-02 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset aeecf380660ea459d85bb5f59d76bb54f757b5be by Xiang Zhang (Hai Shi) in branch 'master': bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453) https://github.com/python/cpython/commit/aeecf380660ea459d85bb5f59d76bb

[issue37441] Fix a param error in exceptions.rst

2019-07-02 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread Xiang Zhang
Xiang Zhang added the comment: Should be TypeError. It's changed from ValueError to TypeError in https://bugs.python.org/issue1831. -- nosy: +xiang.zhang ___ Python tracker <https://bugs.python.org/is

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset f6cdd3ff687ebbf8209d793a18a042ea495c4aeb by Xiang Zhang (Hai Shi) in branch 'master': bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615) https://github.com/python/cpyt

[issue37513] Fix a wrong exception type in ctypes documentation

2019-07-07 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Fix a type error in ctypes.rst -> Fix a wrong exception type in ctypes documentation versions: +Python 2.7, Python 3.7, Python 3.8

[issue37476] Adding a unit test of unicode in test_unicode.py

2019-07-07 Thread Xiang Zhang
Change by Xiang Zhang : -- type: -> enhancement versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue37476> ___ ___ Python-bugs-list mai

[issue37606] Improve test_dtrace.py

2019-07-16 Thread Xiang Zhang
Xiang Zhang added the comment: In Py3, you should use `python -m test test_dtrace` to run the test suite. -- nosy: +xiang.zhang resolution: -> not a bug stage: patch review -> resolved status: open -> closed versions: +Python 3.5 _

[issue37606] Improve test_dtrace.py

2019-07-16 Thread Xiang Zhang
Change by Xiang Zhang : -- versions: -Python 3.5 ___ Python tracker <https://bugs.python.org/issue37606> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37476] Adding a unit test of unicode in test_unicode.py

2019-07-20 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 5623ac87bbe5de481957eca5eeae06347612fbeb by Xiang Zhang (Hai Shi) in branch 'master': bpo-37476: Adding tests for asutf8 and asutf8andsize (GH-14531) https://github.com/python/cpython/commit/5623ac87bbe5de481957eca5eeae06

[issue37476] Adding tests for PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize

2019-07-20 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Adding a unit test of unicode in test_unicode.py -> Adding tests for PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize ___ Py

[issue37451] Remove redudant test code in _testcapimodule.c

2019-07-20 Thread Xiang Zhang
Change by Xiang Zhang : -- components: +Tests resolution: -> rejected stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python

[issue30176] curses attribute constants list is incomplete

2017-06-15 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: patch review -> backport needed ___ Python tracker <http://bugs.python.org/issue30176> ___ ___ Python-bugs-list mai

[issue30176] curses attribute constants list is incomplete

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

[issue30176] curses attribute constants list is incomplete

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

[issue30176] curses attribute constants list is incomplete

2017-06-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 04521c275e47e4df59046ee0297810f06c208350 by Xiang Zhang in branch '3.5': bpo-30176: Add missing curses cell attributes constants (#2277) https://github.com/python/cpython/commit/04521c275e47e4df59046ee0297810

[issue30176] curses attribute constants list is incomplete

2017-06-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset b39a7481ee7e6166d6d2b252a7a514b1f6553dfa by Xiang Zhang in branch '2.7': bpo-30176: Add missing curses cell attributes constants (#2278) https://github.com/python/cpython/commit/b39a7481ee7e6166d6d2b252a7a514

[issue30176] curses attribute constants list is incomplete

2017-06-19 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks Mariatta and Serhiy! -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

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

2017-06-23 Thread Xiang Zhang
Xiang Zhang added the comment: One question about this function: hosts like "*.foo.com" gets an unambiguous intention, but how about hosts like "*foo.com"? Should it match hosts like barfoo.com, or treat it as a typo and not match? Although the link says "asterisks

[issue30961] Py_Decref a borrowed reference in _tracemalloc

2017-07-18 Thread Xiang Zhang
Changes by Xiang Zhang : -- components: Extension Modules nosy: xiang.zhang priority: normal severity: normal stage: patch review status: open title: Py_Decref a borrowed reference in _tracemalloc versions: Python 3.5, Python 3.6, Python 3.7

[issue30961] Py_Decref a borrowed reference in _tracemalloc

2017-07-18 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +2806 ___ Python tracker <http://bugs.python.org/issue30961> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30961] Py_Decref a borrowed reference in _tracemalloc

2017-07-18 Thread Xiang Zhang
New submission from Xiang Zhang: New changeset 4ed5ad79ec6c6270e6018bd0a55656305ee60907 by Xiang Zhang in branch 'master': bpo-30961: Fix decrementing a borrowed reference in tracemalloc. (#2747) https://github.com/python/cpython/commit/4ed5ad79ec6c6270e6018bd0a55656

[issue30961] Py_Decref a borrowed reference in _tracemalloc

2017-07-18 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +2807 ___ Python tracker <http://bugs.python.org/issue30961> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30961] Py_Decref a borrowed reference in _tracemalloc

2017-07-18 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +2808 ___ Python tracker <http://bugs.python.org/issue30961> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30961] Py_Decref a borrowed reference in _tracemalloc

2017-07-18 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 241c4a28d9fec7f2beffc9cbd21f15659a9d by Xiang Zhang in branch '3.6': bpo-30961: Fix decrementing a borrowed reference in tracemalloc. (#2747) (#2748) https://github.com/python/cpython/commit/241c4a28d9fec7f2beffc9cbd21f15

[issue30961] Py_Decref a borrowed reference in _tracemalloc

2017-07-18 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset cb3f024f3ac91e468d581f0682e63685c977c80d by Xiang Zhang in branch '3.5': bpo-30961: Fix decrementing a borrowed reference in tracemalloc. (#2747) (#2749) https://github.com/python/cpython/commit/cb3f024f3ac91e468d581f0682e636

[issue30961] Py_Decref a borrowed reference in _tracemalloc

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

[issue30966] multiprocessing.queues.SimpleQueue leaks 2 fds

2017-07-19 Thread Xiang Zhang
Xiang Zhang added the comment: Get this solved then we could also solve #23267, which reports pipes leak in pool due to using SimpleQueue. -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue30

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

2017-07-19 Thread Xiang Zhang
Changes by Xiang Zhang : -- dependencies: +multiprocessing.queues.SimpleQueue leaks 2 fds ___ Python tracker <http://bugs.python.org/issue23267> ___ ___ Python-bug

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

2017-08-09 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file47070/800.jpg ___ Python tracker <http://bugs.python.org/issue29456> ___ ___ Python-bugs-list mailin

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

2017-08-09 Thread Xiang Zhang
Xiang Zhang added the comment: Hi Wonsup, sorry for the delay. I get really busy with my work these days. If no one get involved I'd try to find time reviewing your patch this week. -- ___ Python tracker <http://bugs.python.org/is

[issue31282] C APIs called without GIL in PyOS_Readline

2017-08-25 Thread Xiang Zhang
New submission from Xiang Zhang: When debugging our project I find something interesting. In PyOS_Readline it releases the GIL and delegate its job to PyOS_ReadlineFunctionPointer, which could be call_readline or PyOS_StdioReadline(I don't find where vms__StdioReadline is defined). But i

[issue31282] C APIs called without GIL in PyOS_Readline

2017-08-27 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: -> needs patch versions: +Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.org/issue31282> ___ ___ Python-

[issue31282] C APIs called without GIL in PyOS_Readline

2017-08-27 Thread Xiang Zhang
Xiang Zhang added the comment: In pymem.h, it's stated that "The GIL must be held when using these APIs". I think the reason is when PYMALLOC_DEBUG is defined, they finally delegate to PyObject_Malloc. Victor must be familiar with them since once he proposed to remote the res

[issue31282] C APIs called without GIL in PyOS_Readline

2017-08-28 Thread Xiang Zhang
Xiang Zhang added the comment: >>> I fixed Python 3, no? Yes. In Python3 they are replaced by PyMem_RawMalloc. But it's not only PyMem_Malloc, there are also PyErr_SetString, PyErr_NoMemory, even in Python3. BTW, even in Python3, when memory allocators are in debug mode, it

[issue31379] run_profile_task in Makefile should add $(RUNSHARED)

2017-09-07 Thread Xiang Zhang
New submission from Xiang Zhang: Build Python 2.7 with --enable-shared and pgo could highly possibly skip test procedure due to dynamic link fails. I suggest adding $(RUNSHARED) to bring convenience. Python 3 already gets it. -- components: Build keywords: easy messages: 301578 nosy

[issue31379] run_profile_task in Makefile should add $(RUNSHARED)

2017-09-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +3419 ___ Python tracker <http://bugs.python.org/issue31379> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31379] run_profile_task in Makefile should add $(RUNSHARED)

2017-09-07 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 7dcea4c8769e4f12197646922f399a699c3e2a5a by Xiang Zhang in branch '2.7': bpo-31379: Added $(RUNSHARED) to run_profile_task (#3422) https://github.com/python/cpython/commit/7dcea4c8769e4f12197646922f399a

[issue31379] run_profile_task in Makefile should add $(RUNSHARED)

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

[issue31440] wrong default module search path in help message

2017-09-13 Thread Xiang Zhang
New submission from Xiang Zhang: In python --help: PYTHONHOME : alternate directory (or :). The default module search path uses /pythonX.X. I think the default module search path should be /lib/pythonX.X. -- keywords: easy messages: 302032 nosy: xiang.zhang priority

[issue31451] PYTHONHOME is not absolutized

2017-09-13 Thread Xiang Zhang
New submission from Xiang Zhang: I find that PYTHONHOME is not absolutized even after VM initialization. So sys.prefix will be "usr" if I execute `PYTHONHOME=usr python`. This could lead to libraries like pip to fail if the current directory is changed, such as by `os.chdir`. I a

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset c3e97d9d984130d1c2aceedc4dfcd603b3162688 by Xiang Zhang in branch 'master': bpo-30246: fix several error messages which only mention bytes in struct (#1421) https://github.com/python/cpython/commit/c3e97d9d984130d1c2aceedc4dfcd6

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- keywords: +patch pull_requests: +3552 ___ Python tracker <https://bugs.python.org/issue30246> ___ ___ Python-bugs-list mailin

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset fa82dda1012b406a7091587fc65384ce11528346 by Xiang Zhang in branch '3.6': [3.6] bpo-30246: fix several error messages which only mention bytes in struct (#3561) https://github.com/python/cpython/commit/fa82dda1012b406a7091587fc65384

[issue30246] fix several error messages in struct

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker <https://bugs.python.or

[issue19985] Not so correct error message when initializing Struct with ill argument

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- dependencies: +fix several error messages in struct -Document whether it's safe to use bytes for struct format string resolution: -> fixed stage: -> resolved status: open -> closed ___ Python t

[issue19985] Not so correct error message when initializing Struct with ill argument

2017-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: +Python 3.6, Python 3.7 -Python 3.3, Python 3.4 ___ Python tracker <https://bugs.python.org/issue19985> ___ ___ Python-bug

[issue31473] PyMem_Raw* API in debug mode are not thread safe

2017-09-14 Thread Xiang Zhang
New submission from Xiang Zhang: PyMem_Raw* APIs should be thread safe. But in debug mode, they are not that simple and increment a global variable *serialno* and the incrementing action is not thread safe. -- components: Interpreter Core messages: 302187 nosy: haypo, xiang.zhang

[issue31440] wrong default module search path in help message

2017-09-17 Thread Xiang Zhang
Xiang Zhang added the comment: Not sure about Windows. _get_path() looks to me is used for user site-packages. getsitepackages() doesn't do the same and seems matching the current message, also the OS2 branch in py2. Let's consult Windows guys. -- nosy: +eryksun, gaur

[issue31484] Cache single-character strings outside of the Latin1 range

2017-09-17 Thread Xiang Zhang
Xiang Zhang added the comment: I run the patch against a toy NLP application, cutting words from Shui Hu Zhuan provided by Serhiy. The result is not bad, 6% faster. And I also count the hit rate, 90% hit cell 0, 4.5 hit cell 1, 5.5% miss. I also increase the cache size to 1024 * 2. Although

[issue33106] Deleting a key in a read-only gdbm results in KeyError, not gdbm.error

2018-12-12 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 4fb0b8bc25c52aae8dcb4353e69c1c88999a9a53 by Xiang Zhang in branch 'master': bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error (#6295) https://github.com/python/cpyt

[issue33106] Deleting a key in a read-only gdbm results in KeyError, not gdbm.error

2018-12-12 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: behavior -> enhancement ___ Python tracker <https://bugs.python

[issue35470] A deadly decref in _PyImport_FindExtensionObjectEx()

2018-12-12 Thread Xiang Zhang
Xiang Zhang added the comment: What about version 3.6? -- nosy: +xiang.zhang ___ Python tracker <https://bugs.python.org/issue35470> ___ ___ Python-bugs-list m

[issue35517] selector.EpollSelector: add new parameter to support EPOLLEXCLUSIVE

2018-12-17 Thread Xiang Zhang
Xiang Zhang added the comment: > I don't think to make selector be a public property is a good idea. It will > break the whole system integrity. If exposing a private property is not a good idea, another choice may be construct a selector with a customized I/O multiplexer

[issue35497] Libary select docs enhance

2018-12-17 Thread Xiang Zhang
Change by Xiang Zhang : -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python, xiang.zhang versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue35497] Libary select docs enhance

2018-12-19 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 92330c0b6d6c253c41a133cc50caea4853c7e311 by Xiang Zhang (Manjusaka) in branch 'master': bpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162) https://github.com/python/cpython/commit/92330c0b6d6c253c41a133cc50caea

[issue35497] Libary select docs enhance

2018-12-19 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue24329] __qualname__ and __slots__

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

[issue24329] __qualname__ and __slots__

2017-03-05 Thread Xiang Zhang
Xiang Zhang added the comment: PR made. :-) -- ___ Python tracker <http://bugs.python.org/issue24329> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29657] os.symlink: FileExistsError shows wrong message

2017-03-05 Thread Xiang Zhang
Xiang Zhang added the comment: I agree with Eryk. The error message is misleading. When I see it, I take it as source -> destination. I think we should make the error message clearer, or document it in the OSError documentation. -- ___ Pyt

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-05 Thread Xiang Zhang
Xiang Zhang added the comment: The problem is now _PyBytes_FormatEx uses strchr to sniff %. It should use memchr instead. -- assignee: -> xiang.zhang nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issu

[issue29714] can't interpolate byte string with \x00 before replacement identifier

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

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

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

[issue29714] can't interpolate byte string with \x00 before replacement identifier

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

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-06 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for the report, Nick! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29714] can't interpolate byte string with \x00 before replacement identifier

2017-03-06 Thread Xiang Zhang
Xiang Zhang added the comment: I think no. String is not affected now and its code uses related macros so I don't think it could suffer possible regression. -- ___ Python tracker <http://bugs.python.org/is

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

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

[issue27577] Make implementation and doc of tuple and list more compliant

2017-03-06 Thread Xiang Zhang
Xiang Zhang added the comment: This issue doesn't make any sense once #29695 is applied. So close. -- resolution: -> fixed stage: -> resolved ___ Python tracker <http://bugs.python.

[issue27577] Make implementation and doc of tuple and list more compliant

2017-03-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue27577> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28728] test_host_resolution in test_socket fails

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

[issue29739] zipfile raises wrong exception for some incorrect passwords

2017-03-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +serhiy.storchaka ___ Python tracker <http://bugs.python.org/issue29739> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29744] memmap behavior changed

2017-03-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29744> ___ ___ Python-bugs-list

[issue28728] test_host_resolution in test_socket fails

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

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- components: +Interpreter Core stage: test needed -> patch review versions: +Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.org/issu

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +449 ___ Python tracker <http://bugs.python.org/issue28856> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28856] %b format for bytes does not support objects that follow the buffer protocol

2017-03-07 Thread Xiang Zhang
Xiang Zhang added the comment: Isn't this a discussed behaviour that is explicitly documented in PEP 461? -- ___ Python tracker <http://bugs.python.org/is

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2017-03-07 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +454 ___ Python tracker <http://bugs.python.org/issue26915> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24329] __qualname__ and __slots__

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

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

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

[issue29568] undefined parsing behavior with the old style string formatting

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

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-03-07 Thread Xiang Zhang
Xiang Zhang added the comment: Any reason our _Py_stat_struct on Windows uses a signed type to represent st_ino? -- nosy: +eryksun, steve.dower ___ Python tracker <http://bugs.python.org/issue29

[issue29758] Previously-working SWIG code fails in Python 3.6

2017-03-08 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +haypo, serhiy.storchaka ___ Python tracker <http://bugs.python.org/issue29758> ___ ___ Python-bugs-list mailing list Unsub

[issue29756] Improve documentation for list methods that compare items by equality

2017-03-08 Thread Xiang Zhang
Xiang Zhang added the comment: +1 for jsoh. Actually the behaviour is documented in https://docs.python.org/3/reference/expressions.html#value-comparisons. So a single 'a is b' or 'a == b' is not complete. I would like to use 'equal to' which implies '

[issue29756] Improve documentation for list methods that compare items by equality

2017-03-08 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +468 ___ Python tracker <http://bugs.python.org/issue29756> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29759] Deadlock in multiprocessing.pool.Pool on terminate

2017-03-08 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +davin versions: -Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue29759> ___ ___ Python-bugs-list mailin

[issue29764] PyUnicode_Decode with encoding utf8 crashes

2017-03-08 Thread Xiang Zhang
Xiang Zhang added the comment: You need to first call `Py_Initialize()` to initialize the Python interpreter. It is required. -- nosy: +xiang.zhang resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python track

[issue29767] build python failed on test_socket due to unused_port is actually used.

2017-03-08 Thread Xiang Zhang
Xiang Zhang added the comment: Could you show the failure message here? And you could make your patch a PR on GitHub. -- nosy: +xiang.zhang ___ Python tracker <http://bugs.python.org/issue29

  1   2   3   4   5   6   7   8   9   10   >