New submission from Jakub Wilk :
ast.Constant.n is documented to be deprecated, but you don't get any warning
when you use it:
$ python3.11 -Wd
Python 3.11.0a5 (main, Feb 12 2022, 17:11:59) [GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "l
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue34990>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue35897>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue46725>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue38605>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue5396>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk :
<https://docs.python.org/3.11/whatsnew/3.11.html#removed> says:
"Removed from the inspect module: […] the undocumented Signature.from_callable
and Signature.from_function functions, deprecated since Python 3.5; use the
Signature.from_callable() met
New submission from Jakub Wilk :
My "python3 setup.py sdist upload" failed with:
Upload failed (400): Invalid value for blake2_256_digest. Error: Use a valid,
hex-encoded, BLAKE2 message digest.
Apparently this is because distutils uses wrong digest size for Blake2:
https://githu
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue22240>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
I can no longer reproduce the bug with Python from git.
--
___
Python tracker
<https://bugs.python.org/issue35866>
___
___
Pytho
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue30717>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue2142>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue23427>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue31652>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: -jwilk
___
Python tracker
<https://bugs.python.org/issue34155>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
When PATH is empty string:
* zsh and FreeBSD which look for binaries in cwd.
* debianutils and GNU which always fail.
I suspect that the former is implementation accident. I can't imagine why would
anyone want this behavior.
NB, POSIX says that when PA
Jakub Wilk added the comment:
(Note that in msg333835 another implementation, presumably GNU which, was
tested.)
My point is that "which" implementations have different behavior, so justifying
anything with "which" compatibility is weird at best. You can't be
Jakub Wilk added the comment:
https://github.com/python/cpython/pull/12704 doesn't fix the bug for me.
Reverting 3b699932e5ac3e76031bbb6d700fbea07492641d doesn't fix it either.
--
___
Python tracker
<https://bugs.python.o
Jakub Wilk added the comment:
which(1) is not standardized, and there are many[*] implementations with
different behavior in corner cases. For example, this happens with zsh 5.7.1 on
Debian:
% which python
/usr/bin/python
% PATH= which python
python
% PATH=. which python
Change by Jakub Wilk :
Added file: https://bugs.python.org/file48224/gdb-bt-child.txt
___
Python tracker
<https://bugs.python.org/issue35866>
___
___
Python-bugs-list m
Jakub Wilk added the comment:
There are two processes running (parent and child) when the thing hangs.
I'm attaching GDB backtraces for both.
--
Added file: https://bugs.python.org/file48223/gdb-bt-parent.txt
___
Python tracker
&
New submission from Jakub Wilk :
This happens with Python from git master (d9bd8ec2a4):
>>> from collections import Hashable
:1: DeprecationWarning: Using or importing the ABCs from
'collections' instead of from 'collections.abc' is deprecated, and in 3.8
Jakub Wilk added the comment:
This issue was reported because with the current behavior, "the script will not
properly exit on C-c". Exiting with code 128+SIGINT will not fix this.
Please re-raise the signal.
--
___
Python track
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue35829>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
You're right that sys.stdout.flush() is missing in my code; but on Linux it
doesn't make a big difference, because multiprocessing flushes stdout before
fork()ing.
And yes, it really hangs.
--
___
Pyth
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue35431>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk :
The attached test program hangs eventually (it may need a few thousand of
iterations).
Tested with Python v3.7.2 on Linux, amd64.
--
components: Library (Lib)
files: cf-deadlock.py
messages: 334618
nosy: jwilk
priority: normal
severity: normal
status
New submission from Jakub Wilk :
$ python3.8 -c 'if object() is 42: pass'
:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
I'd like only one
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue35755>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
You can use confstr to get (running) glibc version:
>>> os.confstr('CS_GNU_LIBC_VERSION')
'glibc 2.28'
--
nosy: +jwilk
___
Python tracker
<ht
New submission from Jakub Wilk :
It should be "capath", not "cpath", in this warning:
DeprecationWarning: cafile, cpath and cadefault are deprecated, use a custom
context instead.
--
components: Library (Lib)
messages: 330379
nosy: jwilk
priority: normal
severity:
Change by Jakub Wilk :
--
title: Typo in urllib.request warning: cpath → cpath -> Typo in urllib.request
warning: cpath → capath
___
Python tracker
<https://bugs.python.org/issu
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue34867>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue34850>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
Also broke pyflakes: https://github.com/PyCQA/pyflakes/issues/367
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue32
Jakub Wilk added the comment:
I've tested Lars's patch against my collection of sly tarballs:
https://github.com/jwilk/path-traversal-samples
SafeTarFile defeated most, but not all attacks.
It still allows directory traversal for these two tarfile:
1)
https://github.com/jwilk/path
Jakub Wilk added the comment:
I think issue29988 is unrelated, or at least not the whole story.
These are samples of tracebacks I see when the file is left behind:
Traceback (most recent call last):
File "test-tmpfile.py", line 4, in
with tempfile.NamedTempora
Jakub Wilk added the comment:
You should not use decode_header() on the whole From header, because that loses
information. You should parse the header first, then decode the parts that
could be RFC2047-encoded.
Quoting <https://tools.ietf.org/html/rfc2047#section-6.2>:
> NOTE: Dec
New submission from Jakub Wilk :
If you press Ctrl+C at the wrong moment, NamedTemporaryFile won't delete the
temporary file. To reproduce, you can try this script:
import tempfile
while True:
with tempfile.NamedTemporaryFile(dir='.'):
pass
I get a
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue34066>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue33875>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
First bad commit is:
9454060e84a669dde63824d9e2fcaf295e34f687
(bpo-29240, bpo-32030: Py_Main() re-reads config if encoding changes)
--
nosy: +jwilk, vstinner
___
Python tracker
<https://bugs.python.org/issue33
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue29788>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue17102>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue33661>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk :
Multiprocessing on Windows is supposed to start child processes using
the same sys.flags as the current process (see issue 12098).
However, at least sys.flags.tabcheck is not propagated.
I've attached small test program that reproduces this bug.
On Linu
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue19124>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
GNU programs seem to use this format:
$ ls --help | grep ',.*=[A-Z]'
-I, --ignore=PATTERN do not list implied entries matching shell
PATTERN
-T, --tabsize=COLS assume tab stops at each COLS instead of 8
-w, --
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue33389>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue7>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue21314>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue25433>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue33180>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue13475>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
-I implies -s, which is not something I want.
--
___
Python tracker
<https://bugs.python.org/issue33053>
___
___
Python-bugs-list m
Change by Jakub Wilk :
--
nosy: -jwilk
___
Python tracker
<https://bugs.python.org/issue33095>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
FWIW, this behavior is documented:
https://docs.python.org/3/using/cmdline.html#cmdoption-m
"As with the -c option, the current directory will be added to the start of
sys.path."
With the -c option, at least you could easily remove the sys.path element
New submission from Jakub Wilk :
Python 3.6.4 (default, Jan 3 2018, 21:10:22)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.call('nonexistent
Change by Jakub Wilk :
--
nosy: -jwilk
___
Python tracker
<https://bugs.python.org/issue13420>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
Linux man page for execvp(3)
<http://man7.org/linux/man-pages/man3/execvp.3.html> says:
> The default search path (used when the environment does not contain
> the variable PATH) shows some variation across systems. It generally
> includes /bin a
Jakub Wilk added the comment:
I don't remember why I needed it. Sorry!
--
___
Python tracker
<https://bugs.python.org/issue13420>
___
___
Python-bugs-list m
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue32238>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue32067>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue31973>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue29400>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<https://bugs.python.org/issue31399>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
Thanks, I can reproduce the crashes with Python 2.7.9.
The first commit that fixes them is 5d7d26c403d86e9525820d872eb3e331dbc31750,
so I believe this is duplicate of issue25388.
--
___
Python tracker
<h
Jakub Wilk added the comment:
I can't reproduce it here:
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>>
Jakub Wilk added the comment:
This is a side-effect of fixing issue #28067.
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue30062>
___
___
Pytho
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue13312>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue24896>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk:
<https://docs.python.org/3/library/re.html#re.LOCALE> reads:
"Make \w, \W, \b, \B, \s and \S dependent on the current locale."
But this is not the only thing this flag does. When combined with
re.IGNORECASE, it also makes case-insesitive
Jakub Wilk added the comment:
+raise TypeError("sub() takes from 2 to 4 positional arguments "
+"but %d were given" % (4 + len(args)))
It's actually 3 to 5 for sub() and subn().
--
_
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue11957>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk:
Lib/_osx_support.py contains the following line:
flags = re.sub(r'-arch\s+\w+\s', ' ', flags, re.ASCII)
But the 4th re.sub() argument is the maximum number of substitutions, so this
is equivalent to:
flags = re.sub(r'-arch\s+
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue29857>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue14208>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jakub Wilk added the comment:
Deleting non-existent files in /tmp is an indicator of a security hole.
This kind of error must never pass silently.
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue29
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue14243>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk:
With git master (4c78c527d215c37472145152cb0e95f196cdddc9) I get this:
>>> import ast
>>> ast.get_docstring(ast.parse(''))
Traceback (most recent call last):
File "", line 1, in
File "/home/jwilk/opt/lib/python3.7/a
New submission from Jakub Wilk:
<https://docs.python.org/3/library/asyncio-dev.html#detect-exceptions-never-consumed>
reads:
"Python usually calls sys.displayhook() on unhandled exceptions. If
Future.set_exception() is called, but the exception is never consumed,
sys.displayho
Changes by Jakub Wilk :
--
nosy: +jwilk
title: argparse module version action -> argparse version action should print
to stdout, not stderr
___
Python tracker
<http://bugs.python.org/issu
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue12806>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk:
distutils/command/upload.py reads:
data = {
# action
':action': 'file_upload',
'protcol_version': '1',
...
}
It should be of course 'protocol_versio
New submission from Jakub Wilk:
Documentation for the re module <https://docs.python.org/3/library/re.html>
reads:
Unknown escapes consist of '\' and ASCII letter now raise a deprecation
warning ...
This should be:
... escapes consisting of ...
--
assig
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue13420>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk:
https://docs.python.org/3/library/email-examples.html#examples-using-the-provisional-api
contains the following code:
from email.headerregistry import Address
...
msg['From'] = Address("Pepé Le Pew", "p...@example.com")
msg['
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue9253>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
New submission from Jakub Wilk:
Typo in the example code in
<https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.Executor.shutdown>:
in the last line, it should be "src4.txt", not "src3.txt".
--
assignee: docs@python
components: Docu
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue15873>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jakub Wilk:
The safe_get_max_fd() (in Modules/_posixsubprocess.c) is documented to be
async-signal-safe.
However, this function calls sysconf().
sysconf() was guaranteed to be async-singal-safe in SUSv3, but it's no longer
in SUSv4.
I don't think it'
New submission from Jakub Wilk:
Docstring of the distutils.errors module reads:
This module is safe to use in "from ... import *" mode; it only exports
symbols whose names start with "Distutils" and end with "Error".
But in reality, the module exports al
New submission from Jakub Wilk:
https://docs.python.org/3/howto/sorting.html#odd-and-ends gives the following
example for reverse sort stability:
>>> data = [('red', 1), ('blue', 1), ('red', 2), ('blue', 2)]
>>> assert sorted(data, re
Jakub Wilk added the comment:
Uh, "use-after-use" is not a bug either. :)
--
___
Python tracker
<http://bugs.python.org/issue24568>
___
___
Python-bugs-l
New submission from Jakub Wilk:
Misc/NEWS reads:
"Fix free-after-use bug"
It should be "use-after-free", not "free-after-use".
--
assignee: docs@python
components: Documentation
messages: 246310
nosy: docs@python, jwilk
priority: normal
severity: normal
New submission from Jakub Wilk:
https://docs.python.org/3/whatsnew/3.4.html#multiprocessing reads:
"On Unix two new start methods, (spawn and forkserver, have been added for
starting processes using multiprocessing."
This stray "(" should be removed.
--
a
Jakub Wilk added the comment:
Right, I meant
<https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations>.
--
___
Python tracker
<http://bugs.python.org/i
New submission from Jakub Wilk:
If the encoding is declared on the second line, the first line must not contain
anything except comments. However, this fact is not documented.
The Python Language reference says only that "the encoding declaration must
appear on a line of its own";
a
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue7267>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Changes by Jakub Wilk :
--
nosy: +jwilk
___
Python tracker
<http://bugs.python.org/issue24305>
___
___
Python-bugs-list mailing list
Unsubscribe:
1 - 100 of 236 matches
Mail list logo