[issue46797] ast.Constant.n deprecated without warning

2022-02-19 Thread Jakub Wilk
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 "licens

[issue34990] year 2038 problem in compileall.py

2022-02-18 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue34990> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35897] Support list as argument to .startswith()

2022-02-18 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue35897> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46725] Unpacking without parentheses is allowed since 3.9

2022-02-18 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue46725> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.11

2022-02-07 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue38605> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5396] os.read not handling O_DIRECT flag

2022-01-12 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue5396> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45903] What’s New In Python 3.11: wrong reference to Signature.from_callable

2021-11-26 Thread Jakub Wilk
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

[issue45590] distutils: Upload failed (400): Invalid value for blake2_256_digest

2021-10-23 Thread Jakub Wilk
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

[issue22240] argparse support for "python -m module" in help

2021-08-05 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue22240> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35866] concurrent.futures deadlock

2021-07-03 Thread Jakub Wilk
Jakub Wilk added the comment: I can no longer reproduce the bug with Python from git. -- ___ Python tracker <https://bugs.python.org/issue35866> ___ ___ Pytho

[issue30717] Add unicode grapheme cluster break algorithm

2021-06-29 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue30717> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2142] difflib.unified_diff(...) produces invalid patches

2020-10-28 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue2142> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23427] Python should expose command when invoked with -c

2020-06-08 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue23427> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31652] make install fails: no module _ctypes

2019-06-08 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue31652> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34155] email.utils.parseaddr mistakenly parse an email

2019-04-29 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: -jwilk ___ Python tracker <https://bugs.python.org/issue34155> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35755] On Unix, shutil.which() and subprocess no longer look for the executable in the current directory if PATH environment variable is not set

2019-04-17 Thread Jakub Wilk
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 PATH

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-17 Thread Jakub Wilk
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 compa

[issue35866] concurrent.futures deadlock

2019-04-16 Thread Jakub Wilk
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.org/issue35

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-04-16 Thread Jakub Wilk
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

[issue35866] concurrent.futures deadlock

2019-03-19 Thread Jakub Wilk
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

[issue35866] concurrent.futures deadlock

2019-03-19 Thread Jakub Wilk
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 <ht

[issue36265] Remove ABCs from collections

2019-03-11 Thread Jakub Wilk
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 it will stop w

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2019-02-14 Thread Jakub Wilk
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

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2019-02-01 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue35829> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35866] concurrent.futures deadlock

2019-01-31 Thread Jakub Wilk
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. -- ___ Python tracker

[issue35431] Add a function for computing binomial coefficients to the math module

2019-01-31 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue35431> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35866] concurrent.futures deadlock

2019-01-31 Thread Jakub Wilk
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

[issue35798] duplicate SyntaxWarning: "is" with a literal

2019-01-21 Thread Jakub Wilk
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 copy of this w

[issue35755] Remove current directory from posixpath.defpath to enhance security

2019-01-18 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue35755> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35389] Use gnu_get_libc_version() in platform.libc_ver()?

2018-12-03 Thread Jakub Wilk
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 <https://bugs.python.or

[issue35309] Typo in urllib.request warning: cpath → cpath

2018-11-24 Thread Jakub Wilk
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:

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-24 Thread Jakub Wilk
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

[issue34867] Add mode to disable small integer and interned string caches

2018-10-02 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue34867> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34850] Emit a syntax warning for "is" with a literal

2018-10-01 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue34850> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-10-01 Thread Jakub Wilk
Jakub Wilk added the comment: Also broke pyflakes: https://github.com/PyCQA/pyflakes/issues/367 -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue32

[issue21109] tarfile: Traversal attack vulnerability

2018-08-28 Thread Jakub Wilk
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-traversal

[issue34157] NamedTemporaryFile can leave temporary files behind

2018-07-20 Thread Jakub Wilk
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

[issue34155] email.utils.parseaddr mistakenly parse an email

2018-07-19 Thread Jakub Wilk
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:

[issue34157] NamedTemporaryFile can leave temporary files behind

2018-07-19 Thread Jakub Wilk
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 stray temporary

[issue34066] Possible resource warning in "with open()"

2018-07-13 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue34066> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33875] Allow dynamic password evaluation in pypirc configuration file.

2018-06-22 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue33875> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33824] Settign LANG=C modifies the --version behavior

2018-06-15 Thread Jakub Wilk
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

[issue29788] [Security] tarfile: Add absolute_path option to tarfile, disabled by default

2018-06-01 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue29788> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17102] tarfile extract can write files outside the destination path

2018-06-01 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue17102> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33661] urllib may leak sensitive HTTP headers to a third-party web site

2018-06-01 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker <https://bugs.python.org/issue33661> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33557] Windows multiprocessing doesn't propagate tabcheck to children

2018-05-17 Thread Jakub Wilk
New submission from Jakub Wilk <jw...@jwilk.net>: 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 th

[issue19124] os.execv executes in background on Windows

2018-05-15 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue19124> ___ ___ Python

[issue33389] argparse redundant help string

2018-05-04 Thread Jakub Wilk
Jakub Wilk <jw...@jwilk.net> 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, -

[issue33389] argparse redundant help string

2018-05-04 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33389> ___ ___ Python

[issue33337] Provide a supported Concrete Syntax Tree implementation in the standard library

2018-04-27 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue7> ___ ___ Python

[issue21314] Document '/' in signatures

2018-04-20 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue21314> ___ ___ Python

[issue25433] whitespace in strip()/lstrip()/rstrip()

2018-03-31 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25433> ___ ___ Python

[issue33180] Flag for unusable sys.executable

2018-03-30 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33180> ___ ___ Python

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2018-03-21 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue13475> ___ ___ Python

[issue33053] Avoid adding an empty directory to sys.path when running a module with `-m`

2018-03-18 Thread Jakub Wilk
Jakub Wilk <jw...@jwilk.net> added the comment: -I implies -s, which is not something I want. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33095] Cross-reference isolated mode from relevant locations

2018-03-18 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: -jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33095> ___ ___ Python

[issue33053] Running a module with `-m` will add empty directory to sys.path

2018-03-16 Thread Jakub Wilk
Jakub Wilk <jw...@jwilk.net> 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 rem

[issue32490] subprocess: duplicate filename in exception message

2018-01-03 Thread Jakub Wilk
New submission from Jakub Wilk <jw...@jwilk.net>: 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('

[issue13420] newer() function in dep_util.py discard changes in the same second

2017-12-08 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: -jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue13420> ___ ___ Python

[issue26414] os.defpath too permissive

2017-12-07 Thread Jakub Wilk
Jakub Wilk <jw...@jwilk.net> 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 general

[issue13420] newer() function in dep_util.py discard changes in the same second

2017-12-07 Thread Jakub Wilk
Jakub Wilk <jw...@jwilk.net> added the comment: I don't remember why I needed it. Sorry! -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32238] Handle "POSIX" in the legacy locale detection

2017-12-07 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32238> ___ ___ Python

[issue32067] Deprecate accepting unrecognized braces in regular expressions

2017-11-24 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32067> ___ ___ Python

[issue31973] Incomplete DeprecationWarning for async/await keywords

2017-11-07 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31973> ___ ___ Python

[issue29400] Add instruction level tracing via sys.settrace

2017-09-27 Thread Jakub Wilk
Change by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue29400> ___ ___ Python

[issue31399] Let OpenSSL verify hostname and IP address

2017-09-15 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31399> ___ ___ Python

[issue31301] Python 2.7 SIGSEGV

2017-09-03 Thread Jakub Wilk
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 <

[issue31301] Python 2.7 SIGSEGV

2017-09-01 Thread Jakub Wilk
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 >>> s = o

[issue30062] datetime in Python 3.6+ no longer respects 'TZ' environment variable

2017-06-10 Thread Jakub Wilk
Jakub Wilk added the comment: This is a side-effect of fixing issue #28067. -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue13312] test_time fails: strftime('%Y', y) for negative year

2017-06-10 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13312> ___ ___ Python

[issue24896] It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE

2017-05-15 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24896> ___ ___ Python

[issue30373] Incomplete description of re.LOCALE

2017-05-15 Thread Jakub Wilk
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

[issue11957] re.sub confusion between count and flags args

2017-04-14 Thread Jakub Wilk
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(). -- __

[issue11957] re.sub confusion between count and flags args

2017-04-14 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11957> ___ ___ Python

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-13 Thread Jakub Wilk
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+\w+\s', ' ', flags, count

[issue29857] Provide `sys._raw_argv` for host application's command line arguments

2017-03-20 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29857> ___ ___ Python

[issue14208] No way to recover original argv with python -m

2017-03-19 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14208> ___ ___ Python

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2017-02-27 Thread Jakub Wilk
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 <rep...@bugs.python.org> <http://bugs.python.org/i

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2017-02-23 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14243> ___ ___ Python

[issue29637] ast.get_docstring(): AttributeError: 'NoneType' object has no attribute 'expandtabs'

2017-02-23 Thread Jakub Wilk
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/ast.py"

[issue27839] "Python [...] calls sys.displayhook() on unhandled exceptions"

2016-08-23 Thread Jakub Wilk
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.

[issue18920] argparse version action should print to stdout, not stderr

2016-07-04 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk title: argparse module version action -> argparse version action should print to stdout, not stderr ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue12806] argparse: Hybrid help text formatter

2016-07-04 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12806> ___ ___ Python

[issue27349] distutils.command.upload: typo "protcol_version"

2016-06-18 Thread Jakub Wilk
New submission from Jakub Wilk: distutils/command/upload.py reads: data = { # action ':action': 'file_upload', 'protcol_version': '1', ... } It should be of course 'protocol_version'. I checked the PyPI code, and it's spelled

[issue27327] re documentation: typo "escapes consist of"

2016-06-15 Thread Jakub Wilk
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 ... -- assignee: docs@

[issue13420] newer() function in dep_util.py discard changes in the same second

2016-06-09 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13420> ___ ___ Python

[issue26426] email examples: incorrect use of email.headerregistry.Address

2016-02-24 Thread Jakub Wilk
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['To'] = (Addres

[issue9253] argparse: optional subparsers

2015-09-19 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9253> ___ ___ Python

[issue25127] typo in concurrent.futures.Executor.shutdown() example

2015-09-15 Thread Jakub Wilk
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

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2015-09-06 Thread Jakub Wilk
Changes by Jakub Wilk <jw...@jwilk.net>: -- nosy: +jwilk ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15873> ___ ___ Python

[issue24876] distutils.errors not wildcard-import-safe

2015-08-16 Thread Jakub Wilk
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 also names that don't start with Distutils: ns

[issue24715] Sorting HOW TO: bad example for reverse sort stability

2015-07-25 Thread Jakub Wilk
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, reverse=True) == list(reversed(sorted(reversed(data But here

[issue24568] Misc/NEWS: free-after-use - use-after-free

2015-07-05 Thread Jakub Wilk
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 status: open title: Misc/NEWS: free

[issue24568] Misc/NEWS: free-after-use - use-after-free

2015-07-05 Thread Jakub Wilk
Jakub Wilk added the comment: Uh, use-after-use is not a bug either. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24568 ___ ___ Python-bugs

[issue24547] What’s New In Python 3.4: stray (

2015-07-01 Thread Jakub Wilk
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. -- assignee: docs@python components

[issue24531] please document that no code preceding encoding declaration is allowed

2015-06-29 Thread Jakub Wilk
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; and PEP 263

[issue24531] please document that no code preceding encoding declaration is allowed

2015-06-29 Thread Jakub Wilk
Jakub Wilk added the comment: Right, I meant https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24531

[issue7267] format method: c presentation type broken in 2.7

2015-06-10 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7267 ___ ___ Python-bugs-list mailing list

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-06-07 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24305 ___ ___ Python-bugs-list mailing list

[issue16314] Support xz compression in distutils

2015-05-17 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16314 ___ ___ Python-bugs-list mailing list

  1   2   3   >