[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-29 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +18075 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/18718 ___ Python tracker <https://bugs.python.org/issu

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: keeping this open while i investigate if fixing 3.8 and 3.7 is feasible. if nothing else i'll try to add a note to the docs about the issue in 3.5-3.8 with a code sample suggested workaround. -- resolution: -> fixed stage: patch review ->

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 02673352b5db6ca4d3dc804965facbedfe66425d by Gregory P. Smith in branch 'master': bpo-39769: Fix compileall ddir for subpkgs. (GH-18676) https://github.com/python/cpython/commit/02673352b5db6ca4d3dc804965facbedfe66425d

[issue29505] Submit the re, json, csv, & struct modules to oss-fuzz testing

2020-02-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: Submit the re, json, & csv modules to oss-fuzz testing -> Submit the re, json, csv, & struct modules to oss-fuzz testing ___ Python tracker <https://bugs.python.

[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: the concept of a native _Bool seems fuzzy. the important thing for the struct module is to consume sizeof _Bool bytes from the input stream. how those are interpreted is up to the platform. So if the platform says a bool is 8 bytes and it only ever

[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-02-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Extension Modules nosy: +gregory.p.smith stage: -> needs patch type: -> behavior ___ Python tracker <https://bugs.python.org/i

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +18036 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18676 ___ Python tracker <https://bugs.python.org/issu

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: belated postmortem: if there had been tests against the filename encoded in the pycs living in subdirs as generated by compile_dir, this regression would not have happened. -- ___ Python tracker <ht

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: meaning this regression was introduced in 3.5. -- versions: +Python 3.5 ___ Python tracker <https://bugs.python.org/issue39

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: The regression was caused by the parallelization enhancement implementation from https://bugs.python.org/issue16104 -- ___ Python tracker <https://bugs.python.org/issue39

[issue16104] Compileall script: add option to use multiple cores

2020-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: This caused a regression in behavior. compileall.compile_dir()'s ddir= parameter no longer does the right thing for any subdirectories. https://bugs.python.org/issue39769 -- nosy: +gregory.p.smith ___ Python

[issue38112] Compileall improvements

2020-02-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://bugs.python.org/issue39769 may be of interest. compileall's ddir= does not behave properly in recursive subdirectories, it did the right thing in 2.7 which is similar to a combination of compile_dir(dir, prependdir=ddir, stripdir=dir) after

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Ironically 3.9a4 gains some compileall enhancements that could be used as an awkward workaround from https://bugs.python.org/issue38112: python 2.7 compile_dir(d, ddir="") behavior can be had with python 3.9a4 compile_dir(d, prependdir="&q

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: This has probably been happening for many 3 releases. I noticed it on 3.6 when investigating a problem with wrong paths in tracebacks coming from code which we used compileall.compile_dir(src_root, quiet=1, ddir=") on. I'm guessing ddir= (-d on th

[issue39769] compileall.compile_dir(..., ddir="") omits the intermediate package paths when prepending the prefix

2020-02-26 Thread Gregory P. Smith
New submission from Gregory P. Smith : Easiest to demonstrate as such: ```shell #!/bin/bash mkdir bug touch bug/__init__.py mkdir bug/foo touch bug/foo/__init__.py touch bug/foo/bar.py python3 -m compileall -d "" bug python2 -m compileall -d "" bug echo "prefix

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid() does not

2020-02-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Reopening so that spending time on deciding this in the future at least stays on my radar. Your workaround sounds like the reasonable, if understandably not pretty approach for now. -- resolution: wont fix -> remind status: closed ->

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid() does not

2020-02-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +3.4regression, 3.5regression ___ Python tracker <https://bugs.python.org/issue25960> ___ ___ Python-bugs-list mailin

[issue25960] Popen.wait() hangs when called from a signal handler when os.waitpid() does not

2020-02-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: yes, Popen's use of a lock since that change means that Popen.wait() cannot be called in an asynchronous context where its own execution could be blocking the execution of code that would unlock the lock. at this point we should probably just document

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2020-02-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Noted, but making it a keyword only argument would break a lot of existing code that has always just been passing three positional args. Needless pain. -- stage: patch review -> resolved status: open ->

[issue39539] Improve Keccak support in hashlib including KangarooTwelve

2020-02-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Christian added the SHA3 support so is probably best to comment on this. The way our hashlib code is structured we always use the https://github.com/python/cpython/tree/master/Modules/_sha3 implementation rather than OpenSSL for these algorithms due

[issue39536] Datetime strftime: %Y exports years < 1000 with 3 digits instead of 4 on Linux

2020-02-03 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker <https://bugs.python.org/issue39536> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue29249] Pathlib glob ** bug

2020-01-31 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue29249> ___ ___ Python-bugs-list mailin

[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks everyone! -- resolution: -> fixed stage: patch review -> commit review status: open -> closed versions: +Python 3.9 ___ Python tracker <https://bugs.python.or

[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: backport automation appears unhappy at the moment. I'm keeping this open and assigned to me to manually run cherry_picker on this for 3.8 and 3.7 (if still open for non-security fixes). -- assignee: -> gregory.p.smith stage: patch rev

[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset d3ae95e1e945ed20297e1c38ba43a18b7a868ab6 by Gregory P. Smith (Alex Rebert) in branch 'master': bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) (GH-18117) https://github.com/python/cpython/commit

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw, no need to remove that message. We'll want to make the docs clear that this does not apply to Windows. :) -- ___ Python tracker <https://bugs.python.org/issue39

[issue39376] Avoid modifying the process global environment (not thread safe)

2020-01-17 Thread Gregory P. Smith
New submission from Gregory P. Smith : For more context, see https://bugs.python.org/issue39375 which seeks to document the existing caveats. POSIX lacks any APIs to access the process global environment in a thread safe manner. Given this, we could _consider_ preventing os.putenv

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-01-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://bugs.python.org/issue39376 tracks possible interpreter behavior changes. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-01-17 Thread Gregory P. Smith
New submission from Gregory P. Smith : The underlying API calls made by os.putenv() and os.environ[name] = value syntax are not thread safe on POSIX systems. POSIX _does not have_ any thread safe way to access the process global environment. In a pure Python program, the GIL prevents

[issue37958] Adding get_profile_dict to pstats

2020-01-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Daniel! -- nosy: +gregory.p.smith resolution: -> fixed stage: -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37218] Default hmac.new() digestmod has not been removed from documentation

2019-12-18 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue37218> ___ ___ Python-bugs-list mailing list Unsub

[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2019-12-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue28254> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2019-12-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue13

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: i believe new work will be done via the new issue. marking this closed. if there is something not covered by issue38576 that remains, please open a new issue for it. new discussion on this long issue is easy to get lost in. -- resolution

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-12-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- priority: normal -> high ___ Python tracker <https://bugs.python.org/issue38576> ___ ___ Python-bugs-list mailing list Un

[issue38981] better name for re.error Exception class.

2019-12-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Strictly speaking not all of those _need_ to be touched given the old name is always going to exist for backwards compatibility. But I agree that we should update them as part of this regardless. I'd go forward with a PR. The only fallout I expect

[issue38991] Remove test.support.strip_python_stderr()

2019-12-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: do we have any buildbots using -X showrefcount? -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue38

[issue35981] shutil make_archive create wrong file when base name contains dots at end

2019-12-01 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: Tested locally on Win10 pro, and both suggestions of steve.dower worked. I've put a PR (https://github.com/python/cpython/pull/17435) based on his second suggestion. The rationale being that that way, the format function (zip/bztar/etc) will get

[issue35981] shutil make_archive create wrong file when base name contains dots at end

2019-12-01 Thread Bruno P. Kinoshita
Change by Bruno P. Kinoshita : -- keywords: +patch, patch pull_requests: +16914, 16915 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17435 ___ Python tracker <https://bugs.python.org/issu

[issue35981] shutil make_archive create wrong file when base name contains dots at end

2019-12-01 Thread Bruno P. Kinoshita
Change by Bruno P. Kinoshita : -- keywords: +patch pull_requests: +16914 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17435 ___ Python tracker <https://bugs.python.org/issu

[issue38868] Shutil cannot delete a folder that contains an .ini file

2019-12-01 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: I think eryksun is correct. Reproduced it locally. Setting to read-only initially did not raise the issue, but then as administrator I removed the inherited permissions and set it to read-only for my user, then it raised the exact same WinError 5

[issue38720] Logging failure with timestamp messages

2019-12-01 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: I think this needs a script to reproduce the problem. Tested first with Anaconda Python 3.7.1 on Win10 Pro. Not able to reproduce the issue. Smae with the latest version. Using Python master and Win10Pro and timezone set to NZ (not that really matter

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-26 Thread Bruno P. Kinoshita
Change by Bruno P. Kinoshita : -- pull_requests: +16878 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/17397 ___ Python tracker <https://bugs.python.org/issu

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2019-11-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: sweet! =) -- versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue33387> ___ ___ Python-bug

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: +1 to re-exposing a way to do PEP-523. PEP-523 added a public API, we unintentionally hid it behind the mask of Py_BUILD_CORE_MODULE in 3.8. We shouldn't remove PEP-523's abilities without a deprecation cycle. But given the use cases tend to be "

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue38500> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-21 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: Done. Rebased on master too, and edited commit message & GH PR title. Thanks Giampaolo! -- ___ Python tracker <https://bugs.python.org/iss

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-21 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: I really liked that improvement, and didn't think it needed to be removed. That's why the PR reverts it partially. I think the os.stat improvements were in the other methods changed, and should not be changed in my PR - unless I changed it by accident

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-21 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: Hi Giampaolo, I think it is more or less the same as the previous code, which was using os.list to return a list in memory. My first tentative fix was: def copytree(src, ...): entries = os.list(src) return _copytree(entries=entries

[issue38791] readline history file is hard-coded

2019-11-13 Thread pmp-p
Change by pmp-p : -- nosy: +twouters ___ Python tracker <https://bugs.python.org/issue38791> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38791] readline history file is hard-coded

2019-11-13 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker <https://bugs.python.org/issue38791> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-09 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: Hi, I did a quick `git bisect` using the example provided, and looks like this regression was added in the fix for bpo-33695, commit 19c46a4c96553b2a8390bf8a0e138f2b23e28ed6. It looks to me that the iterator returned by with os.scandir

[issue38688] Python 3.8 regression: endless loop in shutil.copytree

2019-11-09 Thread Bruno P. Kinoshita
Change by Bruno P. Kinoshita : -- keywords: +patch pull_requests: +16604 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17098 ___ Python tracker <https://bugs.python.org/issu

[issue33695] Have shutil.copytree(), copy() and copystat() use cached scandir() stat()s

2019-11-09 Thread Bruno P. Kinoshita
Change by Bruno P. Kinoshita : -- pull_requests: +16605 pull_request: https://github.com/python/cpython/pull/17098 ___ Python tracker <https://bugs.python.org/issue33

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-11-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: .cleandoc is _probably_ more of what people want than .dedent? I hadn't bothered to even try to pick between the two yet. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-11-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Another option not using a new letter: A triple-backtick token. def foo(): value = ```this is a long multi line string i don't want indented. ``` A discuss thread was started so I reconnected it with this issue. See https

[issue38693] Use f-strings instead of str.format within importlib

2019-11-04 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +16569 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17058 ___ Python tracker <https://bugs.python.org/issu

[issue38693] Use f-strings instead of str.format within importlib

2019-11-04 Thread Gregory P. Smith
New submission from Gregory P. Smith : importlib is full of str.format calls, modernizing it to use f-strings is a slight performance win and much more readable. -- assignee: gregory.p.smith messages: 356005 nosy: gregory.p.smith priority: normal severity: normal status: open title

[issue38670] can we accept os.PathLike objects within the subprocess args= list?

2019-11-03 Thread Gregory P. Smith
New submission from Gregory P. Smith : We started down this path in https://bugs.python.org/issue31961 but had to revert part of that before 3.7 as the implementation was incomplete making it inconsistent across platforms.  https://github.com/python/cpython/pull/4329. Specifically accepting

[issue38659] enum classes cause slow startup time

2019-10-31 Thread Gregory P. Smith
New submission from Gregory P. Smith : Creating an enum subclass (ie: defining an enum) is slow. This dramatically impacts startup time of Python programs that import a bunch of potentially needed constant definitions at startup before any proper code executes. How slow? So slow

[issue38634] Symbol resolution conflict when embeding python in an application using libedit

2019-10-29 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker <https://bugs.python.org/issue38634> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36666] threading.Thread should have way to catch an exception thrown within

2019-10-29 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker <https://bugs.python.org/issue3> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue28833] cross compilation of third-party extension modules

2019-10-25 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker <https://bugs.python.org/issue28833> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: -> needs patch ___ Python tracker <https://bugs.python.org/issue38576> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue38576> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33348] lib2to3 doesn't parse f(*[] or [])

2019-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm marking this fixed, technically it still exists in 2.7. it'll be up to someone who cares about making a change to 2.7 to make a PR to go in there for the final release. It has existed so long, I doubt it matters there. -- resolution

[issue20443] __code__. co_filename should always be an absolute path

2019-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: (read that as: feel free to keep the behavior for co_filename and path[0] and lets see what happens :) -- ___ Python tracker <https://bugs.python.org/issue20

[issue20443] __code__. co_filename should always be an absolute path

2019-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think sys.argv[0] is the important one as program logic often tends to use that as an input. I'm honestly unsure of if this will be as much of a problem for .co_filename or sys.path[0]. -- ___ Python tracker

[issue38571] Segfault with StopIteration

2019-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: There isn't really much we can do without a reasonable repeatable way to reproduce the problem. -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue38

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2019-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: Make lib2to3 grammar more closely match Python -> Make lib2to3 grammar better match Python, support the := walrus ___ Python tracker <https://bugs.python.org/issu

[issue36541] Make lib2to3 grammar more closely match Python

2019-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue36541> ___ ___ Python-

[issue33348] lib2to3 doesn't parse f(*[] or [])

2019-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 2.7 ___ Python tracker <https://bugs.python.org/issue33348> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33348] lib2to3 doesn't parse f(*[] or [])

2019-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue33348> ___ ___ Python-

[issue32496] lib2to3 fails to parse a ** of a conditional expression

2019-10-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> lib2to3 doesn't parse f(*[] or []) versions: +Python 3.8, Python 3.9 -Python 3.6 ___ Python tracker <https://

[issue33348] lib2to3 doesn't parse f(*[] or [])

2019-10-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue33348> ___ ___ Python-bugs-list mailin

[issue36541] Make lib2to3 grammar more closely match Python

2019-10-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.9 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue36541> ___ ___ Python-bugs-list mailin

[issue20443] __code__. co_filename should always be an absolute path

2019-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Please revert. An absolute path changes semantics in many real world situations (altering symlink traversals, etc). People expect the current sys.argv[0] behavior which is "similar to C argv" and matches what was passed on the interpreter co

[issue30618] readlink for pathlib paths

2019-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Girts! -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue30618] readlink for pathlib paths

2019-10-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue30618> ___ ___ Python-

[issue34384] os.readlink does not accept pathlib.Path on Windows

2019-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: can this be closed? -- nosy: +gregory.p.smith status: pending -> open ___ Python tracker <https://bugs.python.org/issu

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Can you please open a separate issue for CVE-2019-18348? It is easier to track that way. (META: In general I think the CVE process is being abused and that these really did not deserve that treatment. https://lwn.net/Articles/801157/ is good reading

[issue34776] Postponed annotations break inspection of dataclasses

2019-10-23 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue34776> ___ ___ Python-bugs-list mailing list Unsubscribe:

roundup issue tracker release 2.0.0alpha0

2019-10-23 Thread John P. Rouillard
pack and run:: python demo.py Release info and download page: https://pypi.org/project/roundup Source and documentation is available at the website: http://roundup-tracker.org/ Mailing lists - the place to ask questions: https://sourceforge.net/p/roundup/mailman/ About Roundup

[issue22385] Define a binary output formatting mini-language for *.hex()

2019-10-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.or

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset f33c57d5c780da1500619f548585792bb5b750ee by Gregory P. Smith in branch 'master': bpo-33604: Raise TypeError on missing hmac arg. (GH-16805) https://github.com/python/cpython/commit/f33c57d5c780da1500619f548585792bb5b750ee

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38477] magiccube2x2 permutations 28% slower with Python 3.8.0rc1 vs 3.7

2019-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: If I compile my own 3.7.5 and 3.8.0 both with --enable-optimizations, I am unable to reproduce this. greg@zoonaut:~/sandbox/python/cpython/lh$ ../b37/python permutations2x2 --max_depth 6 | egrep "^# Total_Time" # Total_Time: 75.92 greg@zoonaut

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: BTW, if you want the type annotation that'd be used for this, 3.8 effectively removes the Optional[] from the one listed in: https://github.com/python/typeshed/blob/master/stdlib/2and3/hmac.pyi#L16

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <https://bugs.python.org/issue33604> ___ ___ Python-bugs-list mailing list Un

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the feedback. Better late than never. :) A default algorithm is a bad thing when it comes to authentication. Explicit is better than implicit. A default regularly becomes obsolete as math and cryptanalysis methods move forward and need

[issue33604] HMAC default to MD5 marked as to be removed in 3.6

2019-10-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +16362 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/16805 ___ Python tracker <https://bugs.python.org/issu

[issue38456] Reduce the time test_subprocess takes to complete.

2019-10-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: I assume the CI systems are shared and potentially noisy. It should be easier to look at some logs from slower buildbots. but sadly test_subprocess has fallen off the list of "10 slowest tests" that timing info is supplied for. concurre

[issue38456] Reduce the time test_subprocess takes to complete.

2019-10-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 4f0587f161786318cdfa22c42459676fa42aacb6 by Gregory P. Smith in branch '3.8': [3.8] bpo-38456: Use /bin/true in test_subprocess (GH-16737) https://github.com/python/cpython/commit/4f0587f161786318cdfa22c42459676fa42aacb6

[issue38473] AttributeError on asserting autospecced mock object added using attach_mock

2019-10-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue38473> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38456] Reduce the time test_subprocess takes to complete.

2019-10-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +16316 pull_request: https://github.com/python/cpython/pull/16737 ___ Python tracker <https://bugs.python.org/issue38

[issue38456] Reduce the time test_subprocess takes to complete.

2019-10-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 67b93f80c764bca01c81c989d74a99df208bea4d by Gregory P. Smith in branch 'master': bpo-38456: Use /bin/true in test_subprocess (GH-16736) https://github.com/python/cpython/commit/67b93f80c764bca01c81c989d74a99df208bea4d

[issue38456] Reduce the time test_subprocess takes to complete.

2019-10-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +16315 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16736 ___ Python tracker <https://bugs.python.org/issu

[issue38456] Reduce the time test_subprocess takes to complete.

2019-10-12 Thread Gregory P. Smith
New submission from Gregory P. Smith : test_subprocess is one of our long running tests, this slows down CI and buildbots. There is room for improvement in its total execution time. Use this issue as a rollup issue for any such work. we need to keep it reliable, just focus on reducing

[issue38417] Add support for settting umask in subprocess children

2019-10-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: Now to see if the more esoteric config buildbots find any platform issues to address... -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracke

[issue38417] Add support for settting umask in subprocess children

2019-10-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset f3751efb5c8b53b37efbbf75d9422c1d11c01646 by Gregory P. Smith in branch 'master': bpo-38417: Add umask support to subprocess (GH-16726) https://github.com/python/cpython/commit/f3751efb5c8b53b37efbbf75d9422c1d11c01646

<    4   5   6   7   8   9   10   11   12   13   >