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
Change by Xiang Zhang :
--
pull_requests: +15786
pull_request: https://github.com/python/cpython/pull/16176
___
Python tracker
<https://bugs.python.org/issue38
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
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
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
-
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
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
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
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
Xiang Zhang added the comment:
Sorry, it's #39057
--
___
Python tracker
<https://bugs.python.org/issue32408>
___
___
Python-bugs-list mailing list
Unsubscr
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
___
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
Change by Xiang Zhang :
--
resolution: -> out of date
stage: test needed -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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:/
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
Change by Xiang Zhang :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
Change by Xiang Zhang :
--
type: -> enhancement
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue37476>
___
___
Python-bugs-list mai
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
_
Change by Xiang Zhang :
--
versions: -Python 3.5
___
Python tracker
<https://bugs.python.org/issue37606>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Change by Xiang Zhang :
--
components: +Tests
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
type: -> enhancement
___
Python tracker
<https://bugs.python
Changes by Xiang Zhang :
--
stage: patch review -> backport needed
___
Python tracker
<http://bugs.python.org/issue30176>
___
___
Python-bugs-list mai
Changes by Xiang Zhang :
--
pull_requests: +2326
___
Python tracker
<http://bugs.python.org/issue30176>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xiang Zhang :
--
pull_requests: +2327
___
Python tracker
<http://bugs.python.org/issue30176>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Xiang Zhang added the comment:
Thanks Mariatta and Serhiy!
--
resolution: -> fixed
stage: backport needed -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
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
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
Changes by Xiang Zhang :
--
pull_requests: +2806
___
Python tracker
<http://bugs.python.org/issue30961>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Xiang Zhang :
--
pull_requests: +2807
___
Python tracker
<http://bugs.python.org/issue30961>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xiang Zhang :
--
pull_requests: +2808
___
Python tracker
<http://bugs.python.org/issue30961>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Xiang Zhang :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
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
Changes by Xiang Zhang :
--
dependencies: +multiprocessing.queues.SimpleQueue leaks 2 fds
___
Python tracker
<http://bugs.python.org/issue23267>
___
___
Python-bug
Changes by Xiang Zhang :
Removed file: http://bugs.python.org/file47070/800.jpg
___
Python tracker
<http://bugs.python.org/issue29456>
___
___
Python-bugs-list mailin
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
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
Changes by Xiang Zhang :
--
stage: -> needs patch
versions: +Python 3.6, Python 3.7
___
Python tracker
<http://bugs.python.org/issue31282>
___
___
Python-
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
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
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
Changes by Xiang Zhang :
--
pull_requests: +3419
___
Python tracker
<http://bugs.python.org/issue31379>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Xiang Zhang :
--
resolution: -> fixed
stage: needs patch -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
Changes by Xiang Zhang :
--
keywords: +patch
pull_requests: +3552
___
Python tracker
<https://bugs.python.org/issue30246>
___
___
Python-bugs-list mailin
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
Changes by Xiang Zhang :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.5
___
Python tracker
<https://bugs.python.or
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
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
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
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
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
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
Change by Xiang Zhang :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
type: behavior -> enhancement
___
Python tracker
<https://bugs.python
Xiang Zhang added the comment:
What about version 3.6?
--
nosy: +xiang.zhang
___
Python tracker
<https://bugs.python.org/issue35470>
___
___
Python-bugs-list m
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
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
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
Change by Xiang Zhang :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Changes by Xiang Zhang :
--
pull_requests: +405
___
Python tracker
<http://bugs.python.org/issue24329>
___
___
Python-bugs-list mailing list
Unsubscribe:
Xiang Zhang added the comment:
PR made. :-)
--
___
Python tracker
<http://bugs.python.org/issue24329>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Xiang Zhang :
--
pull_requests: +407
___
Python tracker
<http://bugs.python.org/issue29714>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xiang Zhang :
--
pull_requests: +411
___
Python tracker
<http://bugs.python.org/issue26915>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xiang Zhang :
--
pull_requests: +412
___
Python tracker
<http://bugs.python.org/issue29714>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Xiang Zhang :
--
nosy: +xiang.zhang
___
Python tracker
<http://bugs.python.org/issue29700>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
Changes by Xiang Zhang :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue27577>
___
___
Python-bugs-list mailing list
Unsubscrib
Changes by Xiang Zhang :
--
pull_requests: +440
___
Python tracker
<http://bugs.python.org/issue28728>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xiang Zhang :
--
nosy: +serhiy.storchaka
___
Python tracker
<http://bugs.python.org/issue29739>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xiang Zhang :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue29744>
___
___
Python-bugs-list
Changes by Xiang Zhang :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue28728>
___
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
Changes by Xiang Zhang :
--
pull_requests: +449
___
Python tracker
<http://bugs.python.org/issue28856>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Xiang Zhang :
--
pull_requests: +454
___
Python tracker
<http://bugs.python.org/issue26915>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xiang Zhang :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Xiang Zhang :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Xiang Zhang :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
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
Changes by Xiang Zhang :
--
nosy: +haypo, serhiy.storchaka
___
Python tracker
<http://bugs.python.org/issue29758>
___
___
Python-bugs-list mailing list
Unsub
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 '
Changes by Xiang Zhang :
--
pull_requests: +468
___
Python tracker
<http://bugs.python.org/issue29756>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Xiang Zhang :
--
nosy: +davin
versions: -Python 3.3, Python 3.4
___
Python tracker
<http://bugs.python.org/issue29759>
___
___
Python-bugs-list mailin
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
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 - 100 of 1629 matches
Mail list logo