[issue35643] SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py

2019-01-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset d466c43e55cd32af84e353f0e9a48b09b7534f61 by Benjamin Peterson (Mickaël Schoentgen) in branch 'master': closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411) https://github.com/python/cpython

[issue35630] Missing code tag for "python3" in README.rst

2019-01-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset de66b8d498e47ed9d70607ac9b9f72468241da77 by Benjamin Peterson (Miss Islington (bot)) in branch '3.6': closes bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11400) https://github.com/python/cpython/commit

[issue35623] Segfault in test_bigmem.ListTest.test_sort

2019-01-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset f8b534477a2a51d85ea1663530f685f805f2b247 by Benjamin Peterson (sth) in branch 'master': closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380) https://github.com/python/cpython/commit

[issue35630] Missing code tag for "python3" in README.rst

2019-01-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 7e3fb40b923cb09ecc67816d3191197868593737 by Benjamin Peterson (Suriyaa ✌️️) in branch 'master': closes bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11394) https://github.com/python/cpython/commit

[issue35600] Expose siphash

2018-12-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: How about using one of these modules? https://pypi.org/search/?q=siphash -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue35

[issue35561] Valgrind reports Syscall param epoll_ctl(event) points to uninitialised byte(s)

2018-12-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suspect Valgrind is being too conservative. union epoll_data is 64 bits wide but the file descriptor only occupies the first 32 bits. The last 32 bits don't need to be initialized by the application. -- nosy: +benjamin.peterson

[issue35536] Calling built-in locals() and globals() in C++ leads to SystemError

2018-12-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: What behavior are you expecting? If there isn't any Python code in the callback, globals() and locals() are meaningless. -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue35

[issue35526] __future__.barry_as_FLUFL documented as mandatory for Python 3.9

2018-12-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Good thing we don't need a barry_as_GUIDO alias. -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue35

[issue35518] test_timeout uses blackhole.snakebite.net domain which doesn't exist anymore

2018-12-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think it might be better to rewrite the test to use a local tcp server. At least on Linux, I think trying to connect to a socket with a full accept queue should have equivalent beahvior. You could also be fancier, set up a network namespace

[issue35422] misleading error message from ssl.get_server_certificate() when bad port

2018-12-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Note this is just the error that OpenSSL produces. There isn't a whole Python can do to change it. -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue35

[issue35340] global symbol "freegrammar" should be made static ore renamed

2018-11-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2e869a8f8280b5c786b3fde1f990e13927625e7a by Benjamin Peterson in branch '2.7': closes bpo-35340: Add freegrammar to pgenheaders.h. (GH-10788) https://github.com/python/cpython/commit/2e869a8f8280b5c786b3fde1f990e13927625e7a

[issue35340] global symbol "freegrammar" should be made static ore renamed

2018-11-28 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +10034 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35340> ___ _

[issue34978] check type of object in fix_dict.py in 2to3

2018-11-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm disinclined to change the fix here after it's existed in this for for 10 years. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34893] Add 2to3 fixer to change send and recv methods of socket object.

2018-11-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: I concur with Raymond. Thank you for the patch, but this seems too error-prone to commit. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue34212] Cygwin link failure with builtin modules since issue30860

2018-11-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset da324d53d420347344236ff64cf5eb9b675d6f86 by Benjamin Peterson (E. M. Bray) in branch 'master': closes bpo-34212: Build core extension modules with Py_BUILD_CORE_BUILTIN. (GH-8712) https://github.com/python/cpython/commit

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

2018-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 6a528ccb4c09933c434be1011b2f5e148170d3a1 by Benjamin Peterson (Miss Islington (bot)) in branch '3.7': closes bpo-35309: cpath should be capath (GH-10701) https://github.com/python/cpython/commit/6a528ccb4c09933c434be1011b2f5e148170d3a1

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

2018-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 8c1592e53a8981451f59050198da34a584160b4e by Benjamin Peterson (Miss Islington (bot)) in branch '3.6': closes bpo-35309: cpath should be capath (GH-10702) https://github.com/python/cpython/commit/8c1592e53a8981451f59050198da34a584160b4e

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

2018-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 158695817d736df8b18682866033c87e46252309 by Benjamin Peterson (Boštjan Mejak) in branch 'master': closes bpo-35309: cpath should be capath (GH-10699) https://github.com/python/cpython/commit/158695817d736df8b18682866033c87e46252309

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can we prefix MEMORY_SANITIZER with _Py_? -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue35

[issue35225] test_faulthandler fails under ubsan

2018-11-12 Thread Benjamin Peterson
New submission from Benjamin Peterson : The UBsan buildbot is failing test_faulthandler. We should either spread some __attribute__((no_sanitize_undefined)) around or make the tests skip. == FAIL: test_enable_fd

[issue35204] Disable thread and memory sanitizers for address_in_range()

2018-11-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset fd3a91cbf93dd7bd97f01add9c90075d63cd7316 by Benjamin Peterson (Alexey Izbyshev) in branch 'master': closes bpo-35204: Disable thread and memory sanitizers for address_in_range(). (GH-10442) https://github.com/python/cpython/commit

[issue35171] test_TimeRE_recreation_timezone failure on systems with non-default posixrules

2018-11-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset f1b9ad3d38c11676b45edcbf2369239bae436e56 by Benjamin Peterson (Alexey Izbyshev) in branch 'master': closes bpo-35171: Fix test_TimeRE_recreation_timezone failure on some systems. (GH-10347) https://github.com/python/cpython/commit

[issue32285] In `unicodedata`, it should be possible to check a unistr's normal form without necessarily copying it

2018-11-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2810dd7be9876236f74ac80716d113572c9098dd by Benjamin Peterson (Max Bélanger) in branch 'master': closes bpo-32285: Add unicodedata.is_normalized. (GH-4806) https://github.com/python/cpython/commit/2810dd7be9876236f74ac80716d113572c9098dd

[issue35160] PyObjects initialized with PyObject_New have uninitialized pointers to set to 0x1

2018-11-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: PyObject_New is a low-level allocation function. It doesn't initialize anything but the type pointer and ref count. If you want a field to be NULL, set it to NULL. -- nosy: +benjamin.peterson resolution: -> not a bug stage: -> resolved

[issue35139] Statically linking pyexpat in Modules/Setup fails to compile on macOS

2018-11-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset a614cc92088c4e1b2d90aa03415ee6acf70f03b4 by Benjamin Peterson in branch '2.7': [2.7] closes bpo-35139: The `pyexpat` module's macros in `Modules/Setup` now match `setup.py` (GH-10293) https://github.com/python/cpython/commit

[issue35139] Statically linking pyexpat in Modules/Setup fails to compile on macOS

2018-11-01 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +9603 ___ Python tracker <https://bugs.python.org/issue35139> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35139] Statically linking pyexpat in Modules/Setup fails to compile on macOS

2018-11-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 318ab63c01f5b8e7562b122ab5ba01258a51277b by Benjamin Peterson (Max Bélanger) in branch 'master': closes bpo-35139: The `pyexpat` module's macros in `Modules/Setup` now match `setup.py` (GH-10289) https://github.com/python/cpython/commit

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2018-10-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes On Wed, Oct 31, 2018, at 22:40, Mike Frysinger wrote: > > Mike Frysinger added the comment: > > that's highlighting the SemLock._make_name func which doesn't > have retry> logic in it. did you mean to highlight SemLock.__init__ whic

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2018-10-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: The retry logic is implemented at a different layer in Python 3: https://github.com/python/cpython/blob/a1c249c40517917d2e0971d55aea8d14a44b2cc8/Lib/multiprocessing/synchronize.py#L115-L117 -- ___ Python

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2018-10-31 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +9590 ___ Python tracker <https://bugs.python.org/issue24303> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28015] configure --with-lto builds fail when CC=clang on Linux, requires gold linker

2018-10-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: Probably that's fine, but can #31625 be easily worked around by, e.g., using make AR=llvm-ar RANLIB=llvm-ranlib? -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue28

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Fri, Oct 26, 2018, at 03:18, STINNER Victor wrote: > > STINNER Victor added the comment: > > Benjamin: > > Why do we need this Py_STATIC_INLINE macro? If you want to have one for > > enabling always inline, that's fine with

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why do we need this Py_STATIC_INLINE macro? If you want to have one for enabling always inline, that's fine with me, since it's compiler-specific. But the current Py_STATIC_INLINE macro seems to conflate linkage with always-inline behavior

[issue33015] Fix function cast warning in thread_pthread.h

2018-10-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Shall we introduce a new thread-starting API that takes a function with the "correct" pthread signature? It seems like Windows already allocates. -- ___ Python tracker <https://bugs.python.o

[issue35059] Convert Py_INCREF() and PyObject_INIT() to inlined functions

2018-10-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Does this slow down debug builds at all? It probably will not end will if Py_INCREF is ever not inlined. -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue35

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-10-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset a1f45ec73f0486b187633e7ebc0a4f559d29d7d9 by Benjamin Peterson (Tal Einat) in branch '2.7': bpo-33899: Revert tokenize module adding an implicit final NEWLINE (GH-10072) https://github.com/python/cpython/commit

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-10-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please revert in 2.7. -- ___ Python tracker <https://bugs.python.org/issue33899> ___ ___ Python-bugs-list mailing list Unsub

[issue35025] Compiling `timemodule.c` can fail on macOS due to availability warnings

2018-10-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 94451182ccd6729c11338926d8a3d11645e86626 by Benjamin Peterson (Max Bélanger) in branch 'master': closes bpo-35025: Properly guard the `CLOCK_GETTIME` et al macros in timemodule.c. (GH-9961) https://github.com/python/cpython/commit

[issue35020] Add multisort recipe to sorting docs

2018-10-20 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +9353 ___ Python tracker <https://bugs.python.org/issue35020> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35011] expat: Restore the use of pyexpatns.h to avoid link time conflicts vs other versions

2018-10-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: Sorry for breaking that, and thanks for the fix! I'm curious, though, why are you still using the embedded expat rather than linking everything against the same expat? -- ___ Python tracker <ht

[issue34878] Lock Objects documentation clarification

2018-10-09 Thread Benjamin Peterson
Change by Benjamin Peterson : -- priority: normal -> low resolution: not a bug -> status: closed -> open title: Lock Objects documentation bug -> Lock Objects documentation clarification ___ Python tracker <https://bugs.python

[issue34887] bytes subclass __repr__ raise SystemError when set to bytes.decode

2018-10-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can't reproduce this on the 3.6 branch. -- nosy: +benjamin.peterson resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34889] int.to_bytes and int.from_bytes should default to the system byte order like the struct module does

2018-10-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: It may be acceptable to allow for byteorder="native", but making the default native will make it too easy for people to write code that works great on their machine but not machines with the opposite endianess. Byte order is something

[issue34869] remove LDLAST

2018-10-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 65ed12cb7caba6ef4eb0ba18cbede5eab4e1c7a5 by Benjamin Peterson in branch 'master': closes bpo-34869: Remove LDLAST. (GH-9667) https://github.com/python/cpython/commit/65ed12cb7caba6ef4eb0ba18cbede5eab4e1c7a5 -- resolution: -> fi

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: I cannot reproduce this problem with exactly Python 3.6.3. This may be some strange situation specific to your configuration, which should be supported to RedHat. -- nosy: +benjamin.peterson ___ Python tracker

[issue34878] Lock Objects documentation bug

2018-10-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: The current documentation is correct. While conceptually one may think of a lock as being held ("owned") by a particular thread, the lock internally has no idea what thread owns it—operations on a lock are influenced only by its current stat

[issue34862] No longer builds on OpenBSD due to missing definition of convert_sched_param

2018-10-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 81574b80e92554adf75c13fa42415beb8be383cb by Benjamin Peterson (William Orr) in branch 'master': closes bpo-34862: Guard definition of convert_sched_param with POSIX_SPAWN_SETSCHEDULER. (GH-9658) https://github.com/python/cpython/commit

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset cbda8fc5d76b10bcbb92d927537576c229143836 by Benjamin Peterson in branch 'master': closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666) https://github.com/python/cpython/commit

[issue34869] remove LDLAST

2018-10-01 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +9059 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34869> ___ _

[issue34869] remove LDLAST

2018-10-01 Thread Benjamin Peterson
New submission from Benjamin Peterson : The last thing setting LDLAST in configure seems to have been OSF/1. Support for OSF/1 was removed in 736e7fc0f6d1242b58ee91708873d14ed7856b77. So, I think we can kill LDLAST, too. -- components: Build messages: 326855 nosy: benjamin.peterson

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +9058 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34868> ___ _

[issue34868] bad error message when combining _ grouping specifier with invalid type

2018-10-01 Thread Benjamin Peterson
New submission from Benjamin Peterson : >>> format(34, '_n') Traceback (most recent call last): File "", line 1, in ValueError: Cannot specify ',' with 'n'. Why is it talking about ","? -- components: Interpreter Core messages: 326848 nosy: benja

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2018-10-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm going to formally reject this, since GCC removed -fmpx support. -- nosy: +benjamin.peterson resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

2018-09-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Wait, why did you make offsets 1-indexed? My suggestion was to make everything zero indexed... -- ___ Python tracker <https://bugs.python.org/issue34

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-09-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: There was some disagreement later on the list about adding this warning. We will fix security issues in SimpleHTTPServer. -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue34

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: As I said on the PR, this is because Unicode gives U+4E17 (and other CJK ideographs) a numeric value only in the UniHan database not the normal UCD. makeunicodedata.py only looks at UCD for numeric values. -- nosy: +benjamin.peterson

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-09-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: I dislike that having SOURCE_DATE_EPOCH set magically changes command line tools behavior. In my view, this problem should be fixed by reverting ccbe5818af2. -- nosy: +benjamin.peterson ___ Python tracker

[issue34715] timemodule.c fails to compile on BSD

2018-09-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset c510c6b8b60f211793e0b84c317ea6974e8a6153 by Benjamin Peterson in branch 'master': Simplify PyInit_timezone. (GH-9467) https://github.com/python/cpython/commit/c510c6b8b60f211793e0b84c317ea6974e8a6153

[issue34715] timemodule.c fails to compile on BSD

2018-09-20 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34715] timemodule.c fails to compile on BSD

2018-09-20 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +8880 ___ Python tracker <https://bugs.python.org/issue34715> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset a4ae828ee416a66d8c7bf5ee71d653c2cc6a26dd by Benjamin Peterson in branch 'master': closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261) https://github.com/python/cpython/commit

[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter

2018-09-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: See #34722. -- ___ Python tracker <https://bugs.python.org/issue34686> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34722] Non-deterministic bytecode generation

2018-09-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Possibly we should just sort the individual marsahalled entries of the frozenset. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34585] Don't use AC_RUN_IFELSE to determine float endian

2018-09-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset b3b8cb419e496629873fa7dda82a01863f58617a by Benjamin Peterson in branch 'master': run autoconf (GH-9411) https://github.com/python/cpython/commit/b3b8cb419e496629873fa7dda82a01863f58617a

[issue34585] Don't use AC_RUN_IFELSE to determine float endian

2018-09-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2a9c3805ddedf282881ef7811a561c70b74f80b1 by Benjamin Peterson (Ross Burton) in branch 'master': closes bpo-34585: Don't do runtime test to get float byte order. (GH-9085) https://github.com/python/cpython/commit

[issue17239] XML vulnerabilities in Python

2018-09-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Tue, Sep 18, 2018, at 06:39, STINNER Victor wrote: > > STINNER Victor added the comment: > > > Who normally updates the vendored libexpat? > > I made the 3 latest libexpat updates, and each of them was painful :-) Oh?

[issue34673] make the eval loop more editable

2018-09-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ddd1949fea59f256e51191540a4446f75ed608fa by Benjamin Peterson in branch 'master': closes bpo-34673: Tweaks to make ceval more editable. (GH-9289) https://github.com/python/cpython/commit/ddd1949fea59f256e51191540a4446f75ed608fa

[issue34515] lib2to3: support non-ASCII identifiers

2018-09-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 10a428b64b3f224e2ccd40ff2afb141b9b3425b1 by Benjamin Peterson (Monson Shao) in branch 'master': closes bpo-34515: Support non-ASCII identifiers in lib2to3. (GH-8950) https://github.com/python/cpython/commit

[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter

2018-09-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Fri, Sep 14, 2018, at 23:59, Erwan Le Pape wrote: > > Erwan Le Pape added the comment: > > Great! My only concern with that is marshalling of untrusted data at > runtime (I know, you shouldn't do that) can become a much more expensi

[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Fri, Sep 14, 2018, at 12:30, Erwan Le Pape wrote: > Without these `hacks`, making build outputs to be deterministic means > fixing marshal to essentially sort elements when dumping unordered > objects. Would you rather see a pa

[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: It would be preferable to fix build outputs to be deterministic even under randomization in the interpreter. -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue34

[issue34683] Caret positioned wrong for SyntaxError reported by ast.c

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think ast.c is in the right here and there are two complementary bugs in caret printing and the parser. print_error_text does this: while (--offset > 0) PyFile_WriteString(" ", f); which is off-by-one if offset is zero-i

[issue28955] Not matched behavior of numeric comparison with the documentation

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ad8a0004206ba7aec5a8a60fce413da718080db2 by Benjamin Peterson (Tony Flury) in branch 'master': closes bpo-28955: Clarified comparisons between NaN and number in reference documentation (GH-5982) https://github.com/python/cpython/commit

[issue34672] '%Z' strftime specifier never works with musl

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset b93062b7fbc965cd0d522f597ed51eb4e493dfc2 by Benjamin Peterson in branch 'master': bpo-34672: Don't pass NULL to gmtime_r. (GH-9312) https://github.com/python/cpython/commit/b93062b7fbc965cd0d522f597ed51eb4e493dfc2

[issue34672] '%Z' strftime specifier never works with musl

2018-09-14 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +8738 ___ Python tracker <https://bugs.python.org/issue34672> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33070] Add platform triplet for RISC-V

2018-09-14 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> add new triplets for mips r6 and riscv variants ___ Python tracker <https://bugs.python

[issue34672] '%Z' strftime specifier never works with musl

2018-09-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 5633c4f342d957df2ef0d67b9bfb472a0d28a76b by Benjamin Peterson in branch 'master': bpo-34672: Try to pass the C library's own timezone strings back to it. (GH-9288) https://github.com/python/cpython/commit

[issue34674] assume unistd.h exists

2018-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ea13740a37347d68d096b11b87c9167917ccfc22 by Benjamin Peterson in branch 'master': bpo-34674: Assume unistd.h exists on Unix. (GH-9290) https://github.com/python/cpython/commit/ea13740a37347d68d096b11b87c9167917ccfc22

[issue34674] assume unistd.h exists

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue30786] getaddrinfo emulation does not support AI_NUMERICSERV

2018-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: What platform needs Modules/getaddrinfo.c these days? -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue30

[issue34674] assume unistd.h exists

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8721 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34674> ___ _

[issue34674] assume unistd.h exists

2018-09-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : We still have some conditional code under HAVE_UNISTD. However, we also unconditionally include it many other places, so let's just get rid of the condition and configure check. -- components: Build messages: 325322 nosy: benjamin.peterson

[issue34673] make the eval loop more editable

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8720 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34673> ___ _

[issue34673] make the eval loop more editable

2018-09-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : The TARGET macro in ceval.c hides control flow, most importantly the case statement. This confuses my editor and makes it indent things automatically improperly. This can be fixed by moving the case statements out of the TARGET macro

[issue34672] '%Z' strftime specifier never works with musl

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8719 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34672> ___ _

[issue34672] '%Z' strftime specifier never works with musl

2018-09-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : With the musl C library, one has failures like this: == FAIL: test_strptime (test.test_time.TimeTestCase) -- Traceback

[issue34656] memory exhaustion in Modules/_pickle.c:1393

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8718 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34656> ___ _

[issue31132] test_prlimit from test_resource fails when building python3 inside systemd-nspawn environment

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34669] test_ssl fails if SSLv2 is enabled

2018-09-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : I modified multissltests.py to enable-ssl2: --- a/Tools/ssl/multissltests.py +++ b/Tools/ssl/multissltests.py @@ -275,7 +275,8 @@ class AbstractBuilder(object): cmd = [ "./config", "sh

[issue31132] test_prlimit from test_resource fails when building python3 inside systemd-nspawn environment

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8712 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31132> ___ _

[issue34668] test_resource fails if test has CAP_SYS_RESOURCE but isn't root

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8711 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34668> ___ _

[issue34668] test_resource fails if test has CAP_SYS_RESOURCE but isn't root

2018-09-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : test_prlimit tries to test that raising the hardlimit of an unprivileged process. It tries to raise the hardlimit of pid 1, which usually raises a PermissionError. However, if the tests are privileged, this test can't work. The test tries to avoid

[issue34664] test.test_os.MakedirTests.test_mode is too strict

2018-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 84db4a9978069a98978e9cd7951d1a01d47e5286 by Benjamin Peterson in branch 'master': closes bpo-34664: Only check file permission bits of newly created directories. (GH-9273) https://github.com/python/cpython/commit

[issue34664] test.test_os.MakedirTests.test_mode is too strict

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8705 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34664> ___ _

[issue34661] test_shutil fails with busybox unzip

2018-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 18e21883a4ec2a36a02054eb2ff47e3ba9bd1d33 by Benjamin Peterson in branch '2.7': [2.7] closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9267) https://github.com/python/cpython/commit/18e21883a4ec2a36a02054eb2ff47e3ba9bd1d33

[issue34664] test.test_os.MakedirTests.test_mode is too strict

2018-09-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : If TESTFN is in a directory with S_ISGID set in its mode, test_os will fail: == FAIL: test_mode (test.test_os.MakedirTests

[issue34661] test_shutil fails with busybox unzip

2018-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset e78734d579439861f6d7e12f35d268836b2c1e24 by Benjamin Peterson in branch 'master': bpo-34661: Fix test skipping call. (GH-9266) https://github.com/python/cpython/commit/e78734d579439861f6d7e12f35d268836b2c1e24

[issue34661] test_shutil fails with busybox unzip

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +8699 ___ Python tracker <https://bugs.python.org/issue34661> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34661] test_shutil fails with busybox unzip

2018-09-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +8698 ___ Python tracker <https://bugs.python.org/issue34661> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34661] test_shutil fails with busybox unzip

2018-09-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset a710ebd21b09efe902dde84d4862ce5c6427f7af by Benjamin Peterson in branch 'master': closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262) https://github.com/python/cpython/commit/a710ebd21b09efe902dde84d4862ce5c6427f7af

<    1   2   3   4   5   6   7   8   9   10   >