[issue39480] referendum reference is needlessly annoying

2020-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Steven. The association with Brexit is specious and the CoC wasn't intended to apply to second guessing technical examples. -- assignee: docs@python -> willingc nosy: +rhettinger, willingc priority: normal -> low ___

[issue34095] [2.7] Seg fault on archlinux 32 when run tests with xvfb-run

2020-01-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2.7 is dead. -- nosy: +benjamin.peterson resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: Fedora downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=1795576 -- ___ Python tracker ___ __

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: Do you believe that a single GCC 10 issue is affecting PPC64LE, ARM, and s390x, but expressed in different manners on the different architectures OR is the PPC64LE issue separate and architecture-depdendent? -- __

[issue14787] pkgutil.walk_packages returns extra modules

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16027] pkgutil doesn't support frozen modules

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread Miro Hrončok
Miro Hrončok added the comment: I think this happens "randomly" regardless of the architecture. I've seen it on x86_64 as well. -- title: test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x -> test_zipfile: test_add_file_after_2107() sometimes fails on Fedora R

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: I suspect that the timestamp set by os.utime() is not the one seen by os.stat(). Or maybe time.localtime() behavior changed. Try attached utime_stat_localtime.py script. Output on Fedora 31 in my home directory which uses btrfs: $ python3.7 utime_stat_local

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: Output on s390x Fedora Rawhide: $ ./python utime_stat_localtime.py os.utime (sec): 4386268800 os.stat (sec): 4386268800 os.stat (ns): 21474836470 stat==utime? False localtime: (2038, 1, 18, 22, 14, 7) -- __

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2020-01-28 Thread Brett Cannon
Brett Cannon added the comment: This is still occurring. Probably need to add `and sys.ignore_environment` to https://github.com/python/cpython/blob/0cd5bff6b7da3118d0c5a88fc2b80f80eb7c3059/Lib/importlib/_bootstrap_external.py#L38. -- versions: +Python 3.9 -Python 3.6 ___

[issue16748] Make CPython test package discoverable

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16737] Different behaviours in script run directly and via runpy.run_module

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16721] configure incorrectly adds -OPT:Olimit=0 for clang

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16651] Find out what stdlib modules lack a pure Python implementation

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16392] import crashes on circular imports in ext modules

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue16101] Verify all imported modules at startup are needed

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue15987] Provide a way to compare AST nodes for equality recursively

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue15911] can't step through _frozen_importlib/importlib._bootstrap using pdb

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- title: can't step through _frozen_importlib/importlib._bootstrap using gdb -> can't step through _frozen_importlib/importlib._bootstrap using pdb ___ Python tracker __

[issue15911] can't step through _frozen_importlib/importlib._bootstrap using pdb

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.9 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15693] expose glossary link on hover

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: > os.stat (sec): 4386268800 > ... > localtime: (2038, 1, 18, 22, 14, 7) Aha, localtime() behavior changed for timestamp larger than 2**31. What is the version of the glibc package? > s390x Fedora Rawhide 3.x: > https://buildbot.python.org/all/#/builders/323/

[issue15867] make importlib documentation easier to use

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state

2020-01-28 Thread Brett Cannon
Brett Cannon added the comment: Do we still care about this, Eric? -- versions: +Python 3.9 -Python 3.3 ___ Python tracker ___ ___

[issue14678] Update zipimport to support importlib.invalidate_caches()

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: I don't see anything about localtime() or the year 2038 bug in glibc 2.30 release notes: https://lwn.net/Articles/795127/ I'm aware of work in the Linux kernel and glibc for the year 2038 bug, but for 32-bit systems: https://lwn.net/Articles/776435/ ---

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: > s390x Fedora Rawhide 3.x: > https://buildbot.python.org/all/#/builders/323/builds/6 I also checked the configure: time_t size is 64-bit on this system, so it should not be impacted on the glibc/Linux kernel work on the year 2038 bug. -- __

[issue14604] spurious stat() calls in importlib

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue14067] Avoid more stat() calls in importlib

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue14019] Unify tests for str.format and string.Formatter

2020-01-28 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue15600] expose the finder details used by the FileFinder path hook

2020-01-28 Thread Brett Cannon
Brett Cannon added the comment: Since Eric never replied I'm just closing this. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x: time.localtime() limited to year 2038

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: Notes on the glibc: * localtime() calls __tz_convert() * localtime() and __tz_convert() have been modified recently to support 64-bit timestamp * __tz_convert() is implemented in time/tzset.c * localtime() is implemented in time/localtime.c -- title:

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x: time.localtime() limited to year 2038

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: $ ./python Python 3.9.0a3+ (heads/master:aabdeb766b, Jan 28 2020, 13:50:48) [GCC 10.0.1 20200121 (Red Hat 10.0.1-0.4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> time.localtime(2**31) time.struct_time(tm

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x: time.localtime() limited to year 2038

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: David Edelsohn: > Output on s390x Fedora Rawhide: > (...) > os.stat (sec): 4386268800 > os.stat (ns): 21474836470 Oh wait, ns != sec * 10**9 here. "2147483647" is 2**31-1 (INT_MAX). It looks like a bug in fill_time() of Modules/posixmodule.c. I suspe

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
Change by STINNER Victor : -- title: test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x: time.localtime() limited to year 2038 -> test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x ___ Python

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: $ ./python utime_stat_localtime2.py os.utime (sec): 4386268800 os.stat (sec int): 2147483647 os.stat (sec float): 2147483647.0 os.stat (ns): 21474836470 -- ___ Python tracker

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: I understand that os.fsencode() was modified to support the fspath protocol to be consistent with the C implementation PyUnicode_FSConverter() which calls PyOS_FSPath(). I agree that at least in C, we need two functions: one which accepts (str, bytes), anot

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: Not -O3, but it's calling PyLong_FromLongLong on s390x as well 0x011ca524 <+28>:brasl %r14,0x10649b0 -- ___ Python tracker ___

[issue39461] [RFE] os.environ should support Path-like values, like subprocess(..., env=...)

2020-01-28 Thread Ethan Furman
Ethan Furman added the comment: Well, I would prefer if Path objects were seamless to use since at one time they were actually strings, but I can live with Brett's rationale that they are only seamless where paths are explicitly expected. -- ___ P

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread STINNER Victor
STINNER Victor added the comment: """ $ ./python utime_stat_localtime2.py os.utime (sec): 4386268800 os.stat (sec int): 2147483647 os.stat (sec float): 2147483647.0 os.stat (ns): 21474836470 """ It doesn't make sense !? In msg360916, you had: os.stat (sec): 4386268800 <= os.stat().st

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: [dje@rawhide ~]$ touch testfn [dje@rawhide ~]$ python3 -c 'import os; os.utime("testfn", (4386268800, 4386268800))' [dje@rawhide ~]$ stat testfn File: testfn Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: fd00h/64768d

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-28 Thread David Edelsohn
David Edelsohn added the comment: In utime_stat_localtime.py, "os.stat (sec)" is the result of os.utime. In utime_stat_localtime2.py "os.stat (sec int)" is the result of os.stat. -- ___ Python tracker __

[issue39401] [CVE-2020-8315] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Steve Dower
Steve Dower added the comment: This is now assigned CVE-2020-8315 (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8315 https://nvd.nist.gov/vuln/detail/CVE-2020-8315) Thanks Anthony for the report! I included your name as the reporter, though I don't see it on any of the pages. --

[issue39479] [RFE] Add math.lcm() function: Least Common Multiple

2020-01-28 Thread Vedran Čačić
Vedran Čačić added the comment: I agree with Raymond that it's really seldom needed. However, I'd like to point out that the "trivial" implementation might not be so trivial after all: as Steven said, it mishandles (0,0) case. And even Tim fell into that trap, so it can't be said it's easily

[issue39401] [CVE-2020-8315] Unsafe dll loading in getpathp.c on Win7

2020-01-28 Thread Steve Dower
Steve Dower added the comment: New changeset 6a65eba44bfd82ccc8bed4b5c6dd6637549955d5 by Steve Dower in branch 'master': bpo-39401: Avoid unsafe DLL load on Windows 7 and earlier (GH-18231) https://github.com/python/cpython/commit/6a65eba44bfd82ccc8bed4b5c6dd6637549955d5 -- ___

[issue14019] Unify tests for str.format and string.Formatter

2020-01-28 Thread Joseph Gordon
Change by Joseph Gordon : -- nosy: -josephgordon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue39320] Handle unpacking of */** arguments and rvalues in the compiler

2020-01-28 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue24249] unittest API for detecting test failure in cleanup/teardown

2020-01-28 Thread Joseph Gordon
Change by Joseph Gordon : -- nosy: -josephgordon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue39320] Handle unpacking of */** arguments and rvalues in the compiler

2020-01-28 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +17623 pull_request: https://github.com/python/cpython/pull/18243 ___ Python tracker ___ ___

[issue25661] tokenize.untokenize does not maintain the order of tabbed indentations and leading spaces

2020-01-28 Thread Joseph Gordon
Change by Joseph Gordon : -- nosy: -josephgordon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2020-01-28 Thread Joseph Gordon
Change by Joseph Gordon : -- nosy: -josephgordon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2020-01-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39482] Write 2to3 fixer for MutableMapping

2020-01-28 Thread Orion Poplawski
New submission from Orion Poplawski : fail2ban currently relies on 2to3 for python 3 support. Build now fails with python 3.9: Traceback (most recent call last): File "/builddir/build/BUILD/fail2ban-0.11.1/bin/fail2ban-testcases", line 61, in tests = gatherTests(regexps, opts) File

[issue39482] Write 2to3 fixer for MutableMapping

2020-01-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +benjamin.peterson, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue39476] Not convinced with the dynamic data type assignment

2020-01-28 Thread Sushma
Sushma added the comment: Thank you On Tue, Jan 28, 2020, 6:30 PM Steven D'Aprano wrote: > > Steven D'Aprano added the comment: > > The "num" variable is not a number, it *is* a string. Just because you > call it "num" doesn't magically turn it into a number. The `input` function > returns

[issue39482] Write 2to3 fixer for MutableMapping

2020-01-28 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue36051] Drop the GIL during large bytes.join operations?

2020-01-28 Thread Inada Naoki
Inada Naoki added the comment: New changeset d07d9f4c43bc85a77021bcc7d77643f8ebb605cf by Bruce Merry in branch 'master': bpo-36051: Drop GIL during large bytes.join() (GH-17757) https://github.com/python/cpython/commit/d07d9f4c43bc85a77021bcc7d77643f8ebb605cf -- ___

[issue36051] Drop the GIL during large bytes.join operations?

2020-01-28 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue39480] referendum reference is needlessly annoying

2020-01-28 Thread Aurora
Aurora added the comment: This example is practically against Python's diversity statement. -- nosy: +opensource-assist ___ Python tracker ___

[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state

2020-01-28 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think so. I don't think the patch even did what I wanted it to do. I'll close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

<    1   2