[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for pointing me at this issue Ned. It sounds like there is a behavior difference between Windows and POSIX systems related to the current directory and/or which process environment is used by the system call that launches the new process to find

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <https://bugs.python.org/issue15533> ___ ___ Python-bugs-list mailing list Un

[issue32949] Simplify "with"-related opcodes

2018-07-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Additional related PR: https://github.com/python/cpython/pull/6641 tied to issue33387 which proposes replacing the existing with and try related bytecodes with two simpler ones: RERAISE and WITH_EXCEPT_FINISH. -- nosy: +gregory.p.smith

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

2018-07-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith, ncoghlan, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue33387> ___ ___ Python-bug

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: IIRC that we decided that CPython and extension modules always require -fwrapv. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://github.com/python/cpython/blob/2.7/configure.ac#L1067 appears to add -fwrapv as desired if the gcc or clang version being used supports it. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34096] [2.7] test_audioop.test_max() failed: AssertionError: -2147483648 != 2147483648L

2018-07-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: yep. i'm going to close this, it seems arch specific. there isn't much we can realistically do to prevent people overriding things to their peril for configure or make. :) -- resolution: -> not a bug stage: -> resolved status

[issue1621] Do not assume signed integer overflow behavior

2018-08-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.7, Python 3.8 -Python 3.3 ___ Python tracker <https://bugs.python.org/issue1621> ___ ___ Python-bugs-list m

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

2018-08-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith versions: +Python 3.6, Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker <https://bugs.python.org/issu

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

2018-08-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +8384 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issue13312> ___ ___ Python-

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

2018-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 76be0f8b7dbe649ad4821144461800ffb0d0 by Gregory P. Smith in branch 'master': bpo-13312: Avoid int underflow in time year. (GH-8912) https://github.com/python/cpython/commit/76be0f8b7dbe649ad482114446

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

2018-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: OverflowError is now raised for negative values that would trigger a problem and the unittest has been updated to test this. -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue11193] test_subprocess test_undecodable_env error on AIX

2018-08-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: someone with modern AIX access reopen if this specific issue still appears to exist after the 3.8 and 3.7 PRs finish merging. -- nosy: +gregory.p.smith stage: patch review -> resolved status: open -> closed title: test_subprocess error

[issue11193] test_subprocess test_undecodable_env error on AIX

2018-08-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed ___ Python tracker <https://bugs.python.org/issue11193> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue11193] test_subprocess test_undecodable_env error on AIX

2018-08-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://github.com/python/cpython/pull/8939 and https://github.com/python/cpython/pull/8946 -- ___ Python tracker <https://bugs.python.org/issue11

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

2018-08-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> tarfile: Traversal attack vulnerability ___ Python tracker <https://bugs.python

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

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 51a4743d19abd016f0772a57fb31df7af9220e18 by Gregory P. Smith (Matthias Bussonnier) in branch 'master': bpo-33604: Remove deprecated HMAC default value marked for removal in 3.8 (GH-7063) https://github.com/python/cpyt

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

2018-09-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed type: -> behavior versions: -Python 3.6 ___ Python tracker <https://bugs.python

[issue8110] subprocess.py doesn't correctly detect Windows machines

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: lets call this fixed. if and only if another Python implementation pipes up as happier if this exists in an older than 3.8 version we can consider backporting the same refactoring to that code. -- resolution: -> fixed stage: patch rev

[issue32236] open() shouldn't silently ignore buffering=1 in binary mode

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: My problem with a warning is the standard one: People who see a warning are often end users of python applications (who don't even have to know what Python is, let alone know anything about the code). For that reason, never add a warning to a s

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ce34410b8b67f49d8275c05d51b3ead50cf97f48 by Gregory P. Smith in branch 'master': bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242) https://github.com/python/cpython/commit/ce34410b8b67f49d8275c05d5

[issue34465] ipaddress should accept bytearray in addition to bytes

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: This isn't limited to just IPv4Address, the Network classes and the IPv6 classes that accept bytes should also be updated for consistency if we're going to do this. (bytes, bytearray, memoryview) make sense to support, and explicitly test in

[issue33460] "..." is used to confusingly indicate many different things in chapter 3

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset f019579828ed62653e2d41c95278308fa076ccaf by Gregory P. Smith (Lew Kurtz) in branch 'master': bpo-33460: remove ellipsis that look like continuation prompts (GH-7851) https://github.com/python/cpyt

[issue33487] BZ2File(buffering=None) does not emit deprecation warning, deprecation version not documented.

2018-09-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue33487> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33487] BZ2File(buffering=None) does not emit deprecation warning, deprecation version not documented.

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ffa198c642f9c67b84ef192bf0f7016c4249e570 by Gregory P. Smith (Matthias Bussonnier) in branch 'master': bpo-33487: improve BZ2File Deprecation and documentation. (GH-6785) https://github.com/python/cpyt

[issue33487] BZ2File(buffering=None) does not emit deprecation warning, deprecation version not documented.

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 9c4a63fc17efea31ad41f90d28825be37469e0e2 by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242) (GH-9148) https://github.com/python

[issue33032] Mention implicit cache in struct.Struct docs

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3666b3c1f695a145adab1bf644c22e564e8eb0ee by Gregory P. Smith (Zackery Spytz) in branch 'master': bpo-33032: Mention the implicit cache in struct.Struct() docs (GH-7700) https://github.com/python/cpyt

[issue33032] Mention implicit cache in struct.Struct docs

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2018-09-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 2173bb818c6c726d831b106ed0d3fad7825905dc by Gregory P. Smith (Miss Islington (bot)) in branch '3.6': bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242) (GH-9149) https://github.com/python

[issue34636] re module microoptimization: speed up bytes \w \s \d matching

2018-09-11 Thread Gregory P. Smith
New submission from Gregory P. Smith : filing this issue to track https://github.com/python/cpython/pull/9170 -- assignee: gregory.p.smith messages: 325073 nosy: gregory.p.smith priority: normal pull_requests: 8627 severity: normal status: open title: re module microoptimization: speed

[issue34636] re module microoptimization: speed up bytes \w \s \d matching

2018-09-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Confirming the microoptimization here with a non-debug (opt) build: ~/oss/cpython$ sre-before/python -m timeit -s "import re; s = (b'~' * 100); f = re.compile(b'\s\w\d').search" "f(s)" 20 loops, best of 5: 1

[issue34637] Make *start* usable as a keyword argument for sum().

2018-09-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: +1 agreed. -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue34637> ___ ___ Python-bugs-list mailin

[issue34637] Make *start* usable as a keyword argument for sum().

2018-09-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: I suggest also allowing the first argument to be a keyword named sequence= as well. (along the philosophy of positional only arguments on APIs that happen to be implemented in C in CPython are a bad legacy) pypy already uses these names: https

[issue34636] re module microoptimization: speed up bytes \w \s \d matching

2018-09-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: This is consistent for me, not random. run -m test.regrtest in -v mode and it passes. remove the -v and it fails. run Lib/test/test_pkg.py directly and it fails with the details mentioned here. this prevents CI builds from succeeding for me now

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: confirmed that this is present in 3.7 rev 72c34cf6dd as well. -- nosy: +ned.deily priority: high -> release blocker ___ Python tracker <https://bugs.python.org/issu

[issue34200] importlib: python -m test test_pkg fails

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: marking release blocker solely because this prevents CI runs from succeeding. I'm surprised how long this issue has been here though, i don't know what caused it to start happening consistently but as with many such heisenbugs changes at a dist

[issue34200] importlib: python -m test test_pkg fails

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: this also happens in 3.6. whatever the problem is, it has been around a long time. -- priority: release blocker -> deferred blocker versions: +Python 3.6 ___ Python tracker <https://bugs.python.org/issu

[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: and I do agree that it is somewhat random. while i have some situations where I can reproduce this, i have others where I can rerun exactly the same binary and single process single thread process running just test_pkg.py and nothing else where the

[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <https://bugs.python.org/issue34200> ___ ___ Python-bugs-list mailing list Un

[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: kinda poking at ideas here, but from a lunch conversation could this be related to the filesystem iteration order within the temp directories. assigned to me while i investigate possibilities. -- ___ Python

[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: I can make the test reliable... but I wouldn't say I fully understand the ultimate cause of the problem. The reliability fix for test_pkg is to stop using test.support.modules_setup() and test.support.modules_cleanup() in the setUp() and tea

[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +8679 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34200> ___ _

[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: this is also present in 3.5, but it'll be up to the 3.5 release manager to cherry pick the test_pkg.py reliability fix into the 3.5 branch if it impacts them during the release process. -- versions: +Pytho

[issue34200] importlib: python -m test test_pkg fails semi-randomly

2018-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: I still feel like there is an underlying issue within the import system that use of test.support.modules_cleanup somehow triggers that I never managed to really understand. but the particular issue in this bug that people were seeing frequently is fixed

[issue34658] subprocess with preexec_fn when fork() fails could corrupt PyErr state

2018-09-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: -> patch review type: -> behavior ___ Python tracker <https://bugs.python.org/issue34658> ___ ___ Python-bugs-list

[issue34658] subprocess with preexec_fn when fork() fails could corrupt PyErr state

2018-09-13 Thread Gregory P. Smith
New submission from Gregory P. Smith : Found in the stdlib test suite while testing the fix for bpo-6721: When subprocess is called with a preexec_fn and os.register_at_fork has been used and the fork() system call fails, the Python error state is set before the "after fork in parent pr

[issue34658] subprocess with preexec_fn when fork() fails could corrupt PyErr state

2018-09-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +8687 ___ Python tracker <https://bugs.python.org/issue34658> ___ ___ Python-bugs-list mailin

[issue34658] subprocess with preexec_fn when fork() fails could corrupt PyErr state

2018-09-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Extension Modules ___ Python tracker <https://bugs.python.org/issue34658> ___ ___ Python-bugs-list mailing list Unsub

[issue34651] Disallow fork in a subinterpreter.

2018-09-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: +1 agreed. this is the simplest approach to start with. Code to restrict: os.fork itself and disallowing the use of preexec_fn on subprocess within subinterpreters. feel free to ignore preexec_fn in subprocess for the time being if desired, we already

[issue6721] Locks in the standard library should be sanitized on fork

2018-09-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 19003841e965bbf56fd06824d6093620c1b66f9e by Gregory P. Smith in branch 'master': bpo-6721: Hold logging locks across fork() (GH-4071) https://github.com/python/cpython/commit/19003841e965bbf56fd06824d60936

[issue34658] subprocess with preexec_fn when fork() fails could corrupt PyErr state

2018-09-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +8723 ___ Python tracker <https://bugs.python.org/issue34658> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34658] subprocess with preexec_fn when fork() fails could corrupt PyErr state

2018-09-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed versions: -Python 3.6 ___ Python tracker <https://bugs.python.or

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given the FreeBSD default and seeming desirability of vfork for this use case, is there a good reason using vfork could not be the default behavior on any OS that supports it? -- ___ Python tracker <ht

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: Give all of this, the lesson I'd take away is perhaps that we should just provide the constant in the os module when available at build time (a configure check) and let people who find a need to use it on their system check for its presence and use

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Agreed on not exposing it. It seems obsolete in recent glibc and the older glibc implementations that had it may have made questionable decisions. :) Thanks for chiming in Florian, and thanks Pablo for your detailed investigation

[issue34776] Postponed annotations break inspection of dataclasses

2018-09-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue34776> ___ ___ Python-bugs-list m

[issue34776] Postponed annotations break inspection of dataclasses

2018-09-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw, agreed that this should wait for 3.7.2. -- ___ Python tracker <https://bugs.python.org/issue34776> ___ ___ Python-bug

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2018-09-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue29988> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34826] io.BufferedReader crashes in 2.7 on memoryview attribute access

2018-09-27 Thread Gregory P. Smith
New submission from Gregory P. Smith : The following test code segfaults on Python 2.7: ```python import io class X(io.RawIOBase): def readable(self): return True def readinto(self, b): if isinstance(b, memoryview): print(b.format) # XXX boom, crashes here. return 0

[issue15994] memoryview to freed memory can cause segfault

2018-09-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue15

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

2018-09-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: The problem with a SyntaxWarning is that the wrong people will see it. It gets in the way of users of applications that happen to be written in Python. scenarios: (a) A Python interpreter gets upgraded, and suddenly the _users_ of an application start

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

2018-09-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: If we were to ship a "chaos" mode in the CPython interpreter itself, I assume you envision an interpreter flag and/or env var? If it required someone compiling the interpreter a special way I don't think it would be widely adopted wi

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

2018-10-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: The intent is to use only enable this during testing / continuous integration. -- ___ Python tracker <https://bugs.python.org/issue34

[issue6721] Locks in the standard library should be sanitized on fork

2018-10-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3b699932e5ac3e76031bbb6d700fbea07492641d by Gregory P. Smith (Miss Islington (bot)) in branch '3.7': bpo-6721: Hold logging locks across fork() (GH-4071) (#9291) https://github.com/python/cpyt

[issue35011] Update to expat removed the pyexpatns.h, causing link time symbol conflicts vs other versions in an application

2018-10-17 Thread Gregory P. Smith
New submission from Gregory P. Smith : These lines used to exist in Modules/expat/expat_external.h: /* Namespace external symbols to allow multiple libexpat version to co-exist. */ #include "pyexpatns.h" https://github.com/python/cpython/commit/5dc3f23b5fb0b510926012cb3732dae63cd

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

2018-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Not a release blocker as most users probably do not run into this problem, but the pyexpatns.h mechanics should be restored. -- assignee: -> gregory.p.smith components: +Build, Extension Modules nosy: +benjamin.peterson stage: -> needs

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

2018-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: This appears to not have been shipped in a release yet. It is new in 3.6.7. cc'ing ned daily to see if he wants to include the fix (the PR is trivial, coming ASAP). I don't have a good feel for how this impacts the real world or not. We notic

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

2018-10-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +9290 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

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

2018-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 9d4712bc8f26bf1d7e626b53ab092fe030bcd68d by Gregory P. Smith in branch 'master': bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939) https://github.com/python/cpython/commit/9d4712bc8f26bf1d7e626b53ab092f

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

2018-10-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34912] Update overflow checks in resize_buffer

2018-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: correct, i don't see an obvious problem in the existing code. -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/is

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

2018-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI, An example of other fallout from this change - patsy broke and needed this fix: https://github.com/pydata/patsy/commit/4f53bbaf58c0bf1a9bed73fc67c7c6d0aa7f4e20#diff-53c70e68c6dfd4fe9b08427792cb2bd6 -- nosy: +gregory.p.smith

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

2018-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: some pylint fallout appears to be addressed in https://github.com/PyCQA/pylint/commit/2698cbe56b44df7974de1c3374db8700296c6fad -- ___ Python tracker <https://bugs.python.org/issue33

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

2018-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset dfba1f67e7f1381ceb7cec8fbcfa37337620a9b0 by Gregory P. Smith (Tal Einat) in branch 'master': bpo-33899: Mention tokenize behavior change in What's New (GH-10073) https://github.com/python

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue33012> ___ ___ Python-bugs-list m

[issue33015] Fix function cast warning in thread_pthread.h

2018-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I left comments on the github PRs with reasons why, but PR 6008 seems correct. PR 10057 would leave us with undefined behavior. -- ___ Python tracker <https://bugs.python.org/issue33

[issue33015] Fix function cast warning in thread_pthread.h

2018-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: This is presumably also present in 3.6 and 2.7 so I've tagged those on the issue, but for this kind of change i'd leave it up to release managers to see if they want to backport something of this nature that late in those release cycles. Obser

[issue35107] untokenize() fails on tokenize output when a newline is missing

2018-10-29 Thread Gregory P. Smith
New submission from Gregory P. Smith : The behavior change introduced in 3.6.7 and 3.7.1 via https://bugs.python.org/issue33899 has further consequences: ```python >>> tokenize.untokenize(tokenize.generate_tokens(io.StringIO('#').readline)) Traceback (most recent call last)

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

2018-10-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://bugs.python.org/issue35107 filed to track further fallout from this API change. -- ___ Python tracker <https://bugs.python.org/issue33

[issue35107] untokenize() fails on tokenize output when a newline is missing

2018-10-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: Interesting! I have a 3.6.2 sitting around and cannot reproduce that "x=1" behavior. I don't know what the behavior _should_ be. It just feels natural that untokenize should be able to round trip anything tokenize or generate_tokens

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
New submission from Gregory P. Smith : An off by one error was introduced to peephole.c by the "off by one error fix" in https://bugs.python.org/issue28517. Clang's memory sanitizer detects it (msan). find_op is ultimately called with h == codelen so it accesses one byte out

[issue28517] Dead code in wordcode

2018-11-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: the off by one error fix here introduced a new off by one error. PR coming, follow https://bugs.python.org/issue35193 for that. -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue28

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +9698 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35193> ___ _

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 49fa4a9f1ef387e16596f271414c855339eadf09 by Gregory P. Smith in branch 'master': bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418) https://github.com/python/cpython/commit/49fa4a9f1ef387e16596f271414c85

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9703 ___ Python tracker <https://bugs.python.org/issue35193> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 65e1a1fd311943866361fcb288c0df65dadbe092 by Gregory P. Smith in branch '3.6': bpo-35193: Fix an off by one error in the RETURN_VALUE case. (GH-10418) (GH-10422) https://github.com/python/cpyt

[issue35193] Off by one error in peephole call to find_op on case RETURN_VALUE

2018-11-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm working on getting a memory-sanitizer buildbot setup. I'm so happy it made finding and debugging this relatively easy. -- resolution: -> fixed stage: patch review -> resolved status

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

2018-11-11 Thread Gregory P. Smith
New submission from Gregory P. Smith : clang's memory sanitizer (-fsanitize=memory) turns up useful problems in code. I'm working on getting a CPython buildbot running it setup but would like our build to be cleaner to start with before I run that. These are the initial fixes re

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

2018-11-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +9746 ___ Python tracker <https://bugs.python.org/issue35214> ___ ___ Python-bugs-list mailin

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 1584a0081500d35dc93ff88e5836df35faf3e3e2 by Gregory P. Smith in branch 'master': bpo-35214: Initial clang MemorySanitizer support (GH-10479) https://github.com/python/cpython/commit/1584a0081500d35dc93ff88e5836df

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

2018-11-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9749 ___ Python tracker <https://bugs.python.org/issue35214> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 5f4d05d83fde05fed0b6554d0beee4f1c1f1d8f1 by Gregory P. Smith in branch '3.7': [3.7] bpo-35214: Initial clang MemorySanitizer support (GH-10479) (GH-10492) https://github.com/python/cpython/commit/5f4d05d83fde05fed0b6554d0beee4

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

2018-11-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9751 ___ Python tracker <https://bugs.python.org/issue35214> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25438] document what codec PyMemberDef T_STRING decodes the char * as

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: it still seems relevant, having better docs is always good. -- ___ Python tracker <https://bugs.python.org/issue25

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3b5b1c0931cd32253bbf2f3bd74e90ff821e026e by Gregory P. Smith in branch '3.6': [3.6] bpo-35214: Initial clang MemorySanitizer support (GH-10479) (GH-10493) https://github.com/python/cpython/commit/3b5b1c0931cd32253bbf2f3bd74e90

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

2018-11-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9760 ___ Python tracker <https://bugs.python.org/issue35214> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-11-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah, i've been surprised how far i was able to get from an oss CPython tree and pre-built clang 7 binary installation. If you have headers installed for common libraries like libssl-dev and libreadline-dev you can't produce an interpreter th

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

2018-11-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +9763 ___ Python tracker <https://bugs.python.org/issue35214> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    19   20   21   22   23   24   25   26   27   28   >