Change by jiahua wang :
--
nosy: +wangjiahua
nosy_count: 9.0 -> 10.0
pull_requests: +30229
pull_request: https://github.com/python/cpython/pull/32149
___
Python tracker
<https://bugs.python.org/issu
Change by jiahua wang :
--
keywords: +patch
nosy: +wangjiahua
nosy_count: 3.0 -> 4.0
pull_requests: +29159
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30980
___
Python tracker
<https://bugs.python.org/i
New submission from WANG Xuerui :
First of all I think the changes should probably go in main branch first, then
backported to the older branches if possible; although IMO you'd be much better
off just backporting and carrying the patch yourselves.
Secondly the suggested patch i
Change by jiahua wang :
--
nosy: +wangjiahua
nosy_count: 5.0 -> 6.0
pull_requests: +29028
pull_request: https://github.com/python/cpython/pull/30846
___
Python tracker
<https://bugs.python.org/issu
Change by jiahua wang :
--
keywords: +patch
pull_requests: +29012
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30825
___
Python tracker
<https://bugs.python.org/issu
New submission from jiahua wang :
Apparently there is no test for Calendar().iterweekdays().
wangdeMacBook-Pro :: ~/cpython ยป grep -R iterweekdays Lib/test/ *
Binary file Lib/test//__pycache__/test_calendar.cpython-311.pyc matches
Doc/library/calendar.rst: .. method:: iterweekdays()
Binary
Change by jiahua wang :
--
keywords: +patch
pull_requests: +29010
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30823
___
Python tracker
<https://bugs.python.org/issu
New submission from jiahua wang :
https://www.iana.org/assignments/media-types/image/avif
--
components: Library (Lib)
messages: 411134
nosy: wangjiahua
priority: normal
severity: normal
status: open
title: Add mime type "image/avif"
versions: P
Change by jiahua wang :
--
nosy: +wangjiahua
nosy_count: 3.0 -> 4.0
pull_requests: +28927
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/30740
___
Python tracker
<https://bugs.python.org/i
Change by jiahua wang :
--
keywords: +patch
nosy: +wangjiahua
nosy_count: 2.0 -> 3.0
pull_requests: +28885
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30687
___
Python tracker
<https://bugs.python.org/i
Change by jiahua wang :
--
nosy: +wangjiahua
nosy_count: 1.0 -> 2.0
pull_requests: +28088
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29861
___
Python tracker
<https://bugs.python.org/i
Change by jiahua wang :
--
keywords: +patch
nosy: +wangjiahua
nosy_count: 2.0 -> 3.0
pull_requests: +28074
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29845
___
Python tracker
<https://bugs.python.org/i
Change by jiahua wang :
--
keywords: +patch
nosy: +wangjiahua
nosy_count: 5.0 -> 6.0
pull_requests: +28061
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29830
___
Python tracker
<https://bugs.python.org/i
Change by jiahua wang :
--
nosy: +180909
nosy_count: 5.0 -> 6.0
pull_requests: +28055
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29823
___
Python tracker
<https://bugs.python.org/i
Change by jiahua wang :
--
nosy: +180909
nosy_count: 2.0 -> 3.0
pull_requests: +28054
pull_request: https://github.com/python/cpython/pull/29822
___
Python tracker
<https://bugs.python.org/issu
Change by jiahua wang :
--
keywords: +patch
nosy: +180909
nosy_count: 4.0 -> 5.0
pull_requests: +28052
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29820
___
Python tracker
<https://bugs.python.org/i
Change by jiahua wang :
--
keywords: +patch
nosy: +180909
nosy_count: 4.0 -> 5.0
pull_requests: +28049
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29817
___
Python tracker
<https://bugs.python.org/i
Change by jiahua wang :
--
keywords: +patch
nosy: +180909
nosy_count: 2.0 -> 3.0
pull_requests: +27714
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29460
___
Python tracker
<https://bugs.p
New submission from jiahua wang :
I input python -h on the command line, and I can't find any -R option.
--
assignee: docs@python
components: Documentation
messages: 405891
nosy: 180909, docs@python
priority: normal
severity: normal
status: open
title: python -h can't find
Change by jiahua wang :
--
assignee: docs@python
components: Documentation
nosy: 180909, docs@python
priority: normal
pull_requests: 27191
severity: normal
status: open
title: Some links in the document is changed
versions: Python 3.11
___
Python
New submission from Wang Bingchao <819576...@qq.com>:
I use python3.7 python3.6 python2.7, and run the following code:
print(3==3 is not True)
print(3==3 is True)
print(3==2 is not True)
print(3==2 is True)
I got the same results as follow:
True
False
False
False
but I don't th
wang xuancong added the comment:
Another lazy explanation not wanting to improve anything
--
___
Python tracker
<https://bugs.python.org/issue44930>
___
___
New submission from wang xuancong :
Different from Python 2, Python 3 has removed the capability to create a list
from a range. In Python 2, we can use range(1,100,2) to create a list [1, 3, 5,
..., 99], but in Python 3, we can only use list(range(1,100,2)) or
[*range(1,100,2)] where the
New submission from Michael Wang :
Ultimately it seems that deep recursion after setting the recursion limit
actually crashes python
--
components: Interpreter Core
files: bug.py
messages: 398619
nosy: michaeljwang10
priority: normal
severity: normal
status: open
title: Recursion
wang xuancong added the comment:
Thanks @terry.reedy for your expert-level good comments!
1.
"In Python 3, the one *implementation*, and its lookup mode, are fixed. The
slower implementation was dropped because it was not thought worth the bother."
If I remember correctly, the p
wang xuancong added the comment:
Of course, I am aware of that. As elite-level Python programmers, we should all
be aware of security issues whenever we deal with exec() and eval().
--
___
Python tracker
<https://bugs.python.org/issue44
New submission from wang xuancong :
In general, the ability to update local variables is very important and it
simplifies life tremendously. For example, in machine learning, it allows
saving/loading arbitrary-format datasets and arbitrary-structure neural
networks (NN) using a single line
keven wang added the comment:
Agree w/ PR here to remove resource tracker unlinking as a quick fix:
https://github.com/python/cpython/pull/15989
This will at least make the unlink behavior more controllable, which is not the
case currently (on mac and linux).
Would love to have this merged
New submission from Yanfeng Wang :
My environment:
system: MacOS 10.15.x
python: 3.9.0
when I inherit the BaseHTTPRequestHandler class, and call the
send_error(error_di, msg) method in my own class's do_GET override function:
the msg argument can't accept unicode string, an UnicodeE
Change by Zhiming Wang :
--
keywords: +patch
pull_requests: +21617
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22643
___
Python tracker
<https://bugs.python.org/issu
Change by Zhiming Wang :
--
nosy: +zmwangx
nosy_count: 5.0 -> 6.0
pull_requests: +21618
pull_request: https://github.com/python/cpython/pull/22643
___
Python tracker
<https://bugs.python.org/issu
New submission from Zhiming Wang :
Since profile/cProfile CLI interface prints a sorted list of stats, using head
to limit output to the most relevant entries should be a fairly natural thing
to do. Unfortunately, BrokenPipeError isn't caught, causing quite a bit of
pollution to the o
wang zhao added the comment:
We managed to fixed on the server by following and got it sucuessfully compiled:
-./configure --with-system-ffi LDFLAGS="-L
/home/XXX/installs/libffi-3.3/lib64/" CPPFLAGS="-I
/home/XXX/installs/libffi-3.3/include/"
-LD_LIBRARY_PATH=$LD_LI
New submission from Zhiming Wang :
I noticed that on Windows, socket operations like recv appear to always block
SIGINT until it's done, so if a recv hangs, Ctrl+C cannot interrupt the
program. (I'm a *nix developer investigating a behavioral problem of my program
on Windows,
New submission from Ziyi Wang :
Here are the two test cases: the one with FileIO.readall() fails
def testReadWithWritingMode(self):
r, w = os.pipe()
w = os.fdopen(w, "w")
w.write("hello")
w.close()
with io.FileIO(r, mode="w") as f:
Clem Wang added the comment:
Oops: forgot version numbers
MacOS Catalina (10.15.13 19D76)
2.6 Ghz 6-Code Intel i7
32 GB RAM
Homebrew 2.2.10
Homebrew/homebrew-core (git revision 58c0; last commit 2020-03-13)
Homebrew/homebrew-cask (git revision ab52c7; last commit 2020-03-14)
Not sure
New submission from Clem Wang :
pyenv install 3.8.2
results in:
BUILD FAILED (OS X 10.15.3 using python-build 20180424)
Inspect or clean up the working tree at
/var/folders/jy/10md97xn3mz_x_b42l1r2r8cgp/T/python-build.20200313154805.37448
Results logged to
/var/folders/jy
New submission from Mingye Wang :
Consider this interaction:
cmd> echo > 1.txt
cmd> python -c "__import__('os').truncate('1.txt', 1024 ** 3)"
cmd> fsutil sparse queryFlag 1.txt
Not only takes a long time as is typical for a zero-write, but also re
New submission from Wang Jie :
I referenced an Exception object in a function and found memory usage will
increase constantly in the accident. I think it may be a bug.
I wrote a minimal code to reproduce it.
```py
from threading import local, Thread
from time import sleep
l = {}
def t0
Change by Mingye Wang :
--
keywords: +patch
pull_requests: +17987
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18622
___
Python tracker
<https://bugs.python.org/issu
New submission from Mingye Wang :
Although there is no native UID type in Apple's XML format, Apple's
NSKeyedArchiver still works with it because it converts the UID to a dict of
{"CF$UID": int(some_uint64_val)}. Plistlib should do the same.
For a sample, see
https://gi
Mingye Wang added the comment:
b'\x80'.decode('cp936') is still broken on python 3.7. Working on a PR.
--
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bug
Ying Wang added the comment:
Oh cool, I didn't know triple quotes can be used as part of f-strings! Thanks
for the explanation!
--
___
Python tracker
<https://bugs.python.org/is
New submission from Ying Wang :
Hey,
I encountered an interesting bug when trying to do string parsing using
f-strings. I am currently under the impression that within the curly braces is
any expression that can be successfully evaluated in a REPL. Here's the error:
```bash
yin
New submission from wang xuancong :
If I load a file which contains "\r" and "\n", I can find "\n", but not "\r".
This behaviour is inconsistent in Python 3, but consistent in Python 2.
>>> open('./3cjkxdnw/accessibilityLog/15701818
wang xuancong added the comment:
I agree with Mark Amery.
The reason why defaultdict still exists given that everything can be achieved
by subclassing the built-in dict is because of convenience. I suggest maybe
Python developer can put it into low priority instead.
--
nosy
New submission from wang xuancong :
A very common use of defaultdict is that if the key exist, use the
corresponding mapped target, if the key does not exist, use the key itself.
However, current Python 2/3 defaultdict does not support parametric lambda
function:
>>> from collectio
Xianbo Wang added the comment:
Python2 urlparse.urlparse and urllib2.urlparse.urlparse have a similar IPv6
hostname parsing bug.
>>> urlparse.urlparse('http://nevil.com[]').hostname
>>> 'evil.com['
This is less practical to exploit since the parsed do
New submission from wang xuancong :
We all know that since:
[False, True, False].count(True) gives 1
eval('[False, True, False].count(True)') also gives 1.
However, in Python 2,
eval('[False, True, False].count(True)', {}, Counter()) gives 3, while
eval('[False
New submission from Sean Wang :
When an IPV4 URL with 'username:password' in it, and the password contains
special characters like #[]?, urlparse would act as unexcepted.
example:
urlparse('http://user:pass#?[w...@example.com:80/path')
--
components: Library (L
New submission from David Wang :
If you call setLevel() on a subclass of logging.Logger, it does not reset the
cache for that logger. This mean that if you make some logging calls, then call
setLevel(), the logger still acts like it still has its old level. See the
attached python file for a
Change by Ying Wang :
--
pull_requests: +13280
___
Python tracker
<https://bugs.python.org/issue36850>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ying Wang :
--
keywords: +patch
pull_requests: +13279
___
Python tracker
<https://bugs.python.org/issue24564>
___
___
Python-bugs-list mailin
Ying Wang added the comment:
@rhettinger should this issue be closed if no action is to be taken? If so,
should I manually close the pull request referencing this issue, or will that
be automatically handled by the Python bug tracker
Ying Wang added the comment:
I would like to take a stab at this as a first-time CPython contributor.
--
nosy: +Ying Wang
___
Python tracker
<https://bugs.python.org/issue36
New submission from Xianbo Wang :
The urlparse function in Python urllib returns the wrong hostname when parsing
URL crafted by the malicious user. This may be caused by incorrect handling of
IPv6 addresses. The bug could lead to open redirect in web applications which
rely on urlparse to
New submission from Xin Wang :
I face the same error with https://bugs.python.org/issue36154, but the solution
is not work for me. So I want to show you my error.
I'm on a Mac running Mojave, version 10.14.3. I installed Python 3.7.2.
I am using vscode. It is work fine in command
New submission from wang xuancong :
Python3 programmers have forgotten to convert/implement the socket file
descriptor for IO stream operation. Would you please add it? Thanks!
import socket
s = socket.socket()
s.connect('localhost', 5432)
S = s.makefile()
# on Python2, the follo
Change by Zhiming Wang :
--
nosy: +zmwangx
___
Python tracker
<https://bugs.python.org/issue33618>
___
___
Python-bugs-list mailing list
Unsubscribe:
Fish Wang added the comment:
Just checked weakref.py on different branches, I think this bug exists in
Python 2.7, 3.4, 3.5, and 3.6 as well.
--
___
Python tracker
<https://bugs.python.org/issue35
Fish Wang added the comment:
Just submitted a PR against the master branch on GitHub.
> This can be apply to 3.8?
I think so.
--
___
Python tracker
<https://bugs.python.org/issu
Fish Wang added the comment:
Thanks for your reply.
I'm preparing a PR. However, I'm not sure how to write a reliable test case to
trigger the crash outside my application. I will submit the PR for now, and see
if anyone on the mailing list has a better idea of what a reliable
New submission from Fish Wang :
I come across this issue recently when developing a multi-threaded PySide2 (Qt)
application. When I'm calling .copy() on a WeakValueDictionary, there is a high
chance that my application crashes with the following stack backtrace:
--
Traceback
Change by Zhiming Wang :
--
keywords: +patch
pull_requests: +9946
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35308>
___
___
Py
Change by Zhiming Wang :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue35308>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Zhiming Wang :
This is a regression in Python 3.7:
$ BROWSER=w3m python3.6 -c 'import sys; import webbrowser;
print(sys.version); print(webbrowser.get()); print(webbrowser._tryorder)'
3.6.7 (default, Nov 24 2018, 09:47:01)
[GCC 4.2.1 Compatible
Runping Wang added the comment:
We're also depending on this MIME type for WebAssembly. It will be great if we
can get this wasm MIME type in.
--
nosy: +runpiw
___
Python tracker
<https://bugs.python.org/is
Change by Zhiming Wang :
--
keywords: +patch
pull_requests: +9362
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35035>
___
___
Py
New submission from Zhiming Wang :
Documentation for PSL module email.utils is named email.util.rst. See
<https://docs.python.org/3/library/email.util.html>.
This seems to violate the principle of least surprise. (I have a command line
tool to open documentation for any PSL module,
Edward Wang added the comment:
Ethan - thank you for your speedy response!
For an example you can see
https://github.com/ucb-bar/hammer/blob/97021bc7e1c819747f8b8b6d4b8c76cdc6a488e3/src/hammer-vlsi/hammer_vlsi_impl.py#L195
- the ObstructionType enum is really only used inside
Change by Edward Wang :
--
keywords: +patch
pull_requests: +7557
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33976>
___
___
Py
New submission from Edward Wang :
Methods defined in Enums behave 'normally' but classes defined in Enums get
mistaken for regular values and can't be used as classes out of the box.
```python
class Outer(Enum):
a = 1
b = 2
class Inner(Enum):
foo = 10
New submission from Judy Wang :
According to https://docs.python.org/3/library/datetime.html, %f is zero-padded
on the left. But actual Python 3 behavior is puts the zero padding on the right.
--
files: Bug description.py
messages: 315873
nosy: jujuwoman
priority: normal
severity
Dawei Wang added the comment:
This is important since for aws lambda the package can change every time.
--
nosy: +Dawei Wang
___
Python tracker
<https://bugs.python.org/issue29
Zhiming Wang added the comment:
Yeah, Apple LLVM versions are a major headache. I resorted to feature
detection, using C++ coroutines support as the clang 5 distinguisher[1]:
$ cat /tmp/test/stub.cc
#include
int main() {
return 0;
}
$
/Applications/Xcode.app/Contents/Developer
Zhiming Wang added the comment:
Turns out python 2.7.10 doesn't suffer from the performance issue even when
compiled with stock clang 4.x, and upon further investigation, I tracked down
the commit that introduced the regression:
commit 2c992a0788536087bfd78da8f2c62b30a461d7e2
A
Zhiming Wang added the comment:
My benchmarks above do contain py37 (master) stats.
--
___
Python tracker
<https://bugs.python.org/issue32616>
___
___
Python-bug
New submission from Zhiming Wang :
Python 2.7 could be significantly slower (5x in some cases) when compiled with
clang 3.x or 4.x, compared to clang 5.x. This is quite a problem on macOS,
since the latest clang from Apple (which comes with Xcode 9.2) is based on LLVM
4.x. This issue was
Change by Roger Wang :
--
nosy: +rogerwang
___
Python tracker
<https://bugs.python.org/issue31639>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Zhiming Wang :
--
keywords: +patch
pull_requests: +3803
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31638>
___
___
Py
New submission from Zhiming Wang :
Currently (up to 3.7.0a1) archives generated by the zipapp module are
uncompressed, which are unnecessarily large for large projects. It's easy to
add deflate compression support, and Python loads compressed archives just fine.
I already have a
Changes by Zhiming Wang :
--
pull_requests: +3245
___
Python tracker
<http://bugs.python.org/issue31281>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Zhiming Wang:
Consider
import fileinput
import pathlib
with fileinput.input(files=(pathlib.Path('in.txt'),), inplace=True) as fp:
for line in fp:
print(line, end='')
which results in
Traceback (most recent ca
Huan Wang added the comment:
Hi Mark,
Thank you for your reply.
I went over again the answer from Zachary Ware published on 2015-08-08 09:36. I
got the point that it is better to use string type of number.
>>> from decimal import Decimal, ROUND_HALF_UP
>>> Decimal(&qu
Huan Wang added the comment:
Hello,
I was confused by the decimal module. The problem is that I want to
from decimal import Decimal, ROUND_HALF_UP
def rounded(number, n):
''' Round the digits after the n_th decimal point by using
decimal module in python.
Changes by morris wang :
--
title: os.startfile("") craches Python 2.7, 3.4, 3.5 -> os.startfile("")
craches Python 2.7, 3.4, 3.5 in Windows 7
___
Python tracker
<http://
New submission from morris wang:
try... except... won't catch it.
import os
try:
os.startfile("")
except:
pass
crashes python, resulting in error message "python has stopped working"
--
messages: 297487
nosy: morris wang
priority: normal
severity:
winton Wang added the comment:
the output:
datetime.datetime(2017, 1, 1, 0, 0)
I question about the week format if without the week of the weekday, the
datetime should be the fist day of week as the default?
--
___
Python tracker
<h
New submission from winton Wang:
datetime stiptime error according to "%U" format.
Python version: 3.4.3, 2.7.13 ,3.6.0, 3.5.2
from datetime import datetime
input:
datetime.strptime('201726', '%Y%U')
output:
datetime.datetime(2007, 1, 1, 0, 0)
-
Yibo Wang added the comment:
It's a bug from cffi because the interpreter won't crash when using ctypes only
without cffi.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs
Fengyang Wang added the comment:
It looks like this is a duplicate of http://bugs.python.org/issue11796
Sorry for the noise.
--
resolution: -> duplicate
___
Python tracker
<http://bugs.python.org/issu
Fengyang Wang added the comment:
By the way, in Python 2.7 at least, this was working.
--
___
Python tracker
<http://bugs.python.org/issue30577>
___
___
Python-bug
New submission from Fengyang Wang:
Reduced reproduction:
class X:
r = [1, 2, 3]
z = [(i, j) for i in [4, 5] for j in r]
fails with "NameError: name 'r' is not defined". The expected behavior would be
for r to be resolved as the r in the class namespace. Note in co
New submission from Yibo Wang:
I am writing python wrapper for rust library, everything goes fine until
execution finishes.
"Python quit unexpectedly"
[1]25805 segmentation fault python3
To reproduce, download code from GitHub repo provided by this
blog(https://kushalda
Alex Wang added the comment:
At least when I last built Python, configure always said that optimizations
were not enabled regardless of whether I passed in the flag.
>From what it looked like to me, it's because configure uses the $enableval
>variable to store the result of th
Changes by Alex Wang :
--
pull_requests: +253
___
Python tracker
<http://bugs.python.org/issue29643>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Alex Wang:
PR submitted here: https://github.com/python/cpython/pull/129
--
components: Build
messages: 288535
nosy: awang
priority: normal
severity: normal
status: open
title: --enable-optimizations compiler flag has no effect
type: behavior
versions: Python 2.7
New submission from Dingyuan Wang:
When compiling the PyPy default branch [1] on a Debian testing machine with
Python 2.7.13, cpython randomly crashes.
(gdb) bt
#0 update_refs () at ../Modules/gcmodule.c:332
#1 collect.lto_priv () at ../Modules/gcmodule.c:924
#2 0x5562a804 in
New submission from Dingyuan Wang:
We have the sqlite3.set_authorizer function, where the first argument to its
callback is one of the Authorizer Action Codes that the SQLite documentations
defines[1]. However, the constants in the sqlite3 module is not up to date. The
code in _sqlite
New submission from Liang-Bo Wang:
In Tutorial "An Informal Introduction" section, character is introduced as a
string of size one. It may be true for python 2.x, where str can be interpreted
as bytes. However in Python 3, strings are unicode thus the size and the length
of a
1 - 100 of 217 matches
Mail list logo