[issue25711] Rewrite zipimport from scratch

2016-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: So long as this code block that imports os is avoided, I believe that this can be properly frozen: +if not isinstance(path, str): +import os +path = os.fsdecode(path) But it should be easy to avoid that code path when the

[issue29335] Python 2.7 subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-22 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 3.5, Python 3.6 ___ Python tracker <http://bugs.python.org/issue29335> ___ ___ Python-bugs-list mailin

[issue29335] Python 2.7 subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-22 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <http://bugs.python.org/issue29335> ___ ___ Python-bugs-list mailing list Un

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-22 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- title: Python 2.7 subprocess module does not check WIFSTOPPED on SIGCHLD -> subprocess module does not check WIFSTOPPED on SIGCHLD ___ Python tracker <http://bugs.python.org/issu

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: The attached patch should fix it. I want to incorporate a bug.py like regression test into test_subprocess.py. -- keywords: +patch stage: -> test needed Added file: http://bugs.python.org/file46385/issue29335-gps01.d

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: test added. -- stage: test needed -> patch review type: -> behavior Added file: http://bugs.python.org/file46386/issue29335-gps02.diff ___ Python tracker <http://bugs.python.org/i

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks Ned, I was awaiting interesting buildbot results. :) fixed in 2.7 and 3.5 onwards. thanks for the report Zach. not closing until I also apply the fix to the subprocess32 backport. -- resolution: -> fixed stage: patch review -> commit

[issue29365] parallel make test or make install can fail building pgen when configure --enable-optimizations is used

2017-01-24 Thread Gregory P. Smith
New submission from Gregory P. Smith: If you do a make -j12 test or make install before having run a separate 'make all' the build _can_ fail trying to build pgen. (it seems to be parallel make related, it won't always fail) Even if you have run a separate 'make all'

[issue29365] parallel make test or make install can fail building pgen when configure --enable-optimizations is used

2017-01-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: great, the issue you filed covers my second paragraph comment which really should be its own issue. :) -- ___ Python tracker <http://bugs.python.org/issue29

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-01-24 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue29243> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29370] "./configure --enable-optimizations && make install" does not install files in ${BINDIR} and ${LIBDIR}

2017-01-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue29370> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29375] httplib: wrong Host header when connecting to IPv6 link-local address

2017-01-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue29375> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24209] Allow IPv6 bind in http.server

2017-01-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue24209> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25667] Supply dual-stack (IPv4/IPv6) socket bind routine

2017-01-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue25667> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27500] ProactorEventLoop cannot open connection to ::1

2017-01-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue27500> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2017-01-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue23448> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15373] copy.copy() does not properly copy os.environment

2017-01-27 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- keywords: +needs review nosy: +gregory.p.smith stage: -> patch review versions: +Python 3.7 -Python 3.4 ___ Python tracker <http://bugs.python.org/issu

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2017-02-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <http://bugs.python.org/issue11549> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2017-02-08 Thread Gregory P. Smith
New submission from Gregory P. Smith: For reference, read https://github.com/google/oss-fuzz. We should investigate creating fuzz targets for the Python re module (_sre.c) at a minimum. There are probably other good targets as well such as _json.c and _csv.c. pickle and marshal are not

[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2017-02-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: there may be something in sysconfig.get_config_vars() we could use or, better, we could add something specific to indicate both pgo and lto builds. -- ___ Python tracker <http://bugs.python.org/issue26

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-20 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue29585> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29592] abs_paths() in site.py is slow

2017-02-20 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue29592> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18792] test_ftplib timeouts

2017-02-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI - hardcoding these addresses is now causing me problems as I try to get our test suite passing on IPv6 only hosts. "localhost" is correct. IMNSHO if for some reason a system cannot resolve "localhost" into a correct address, it s

[issue18792] test_ftplib timeouts

2017-02-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://bugs.python.org/issue29639 opened to track undoing this when appropriate. -- ___ Python tracker <http://bugs.python.org/issue18

[issue29639] test suite intentionally avoids referring to localhost, destroying abstraction away from IPv6 vs IPv4

2017-02-23 Thread Gregory P. Smith
New submission from Gregory P. Smith: I am working on fixing our test suite to run on IPv6 only hosts (which are becoming a reality). Many failures today occur because of hard coded 127.0.0.1 values. This is wrong. We should refer to "localhost" The "solution" to htt

[issue29639] test suite intentionally avoids referring to localhost, destroying abstraction away from IPv6 vs IPv4

2017-02-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: great! that makes me feel much less bad about fixing this in the way i desire. :) -- ___ Python tracker <http://bugs.python.org/issue29

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2017-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: TL;DR - Just one more example of why nobody should *ever* use pickle under any circumstances. It is useless for data that is not transient for consumption by the same exact versions of all software that created it. Patches against 2.7 are not useful here

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Gregory P. Smith
New submission from Gregory P. Smith: The readline module causes memory corruption (sometimes a crash) when the sys.stdin file descriptor is out of bounds for its FD_SET() call within readline.c's readline_until_enter_or_signal() function. https://github.com/python/cpython/blob/master/Mo

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: It doesn't seem very abusable... Though of a server accepts enough remote connections and uses input() and swaps out stdin after remote uses up fds with connections... That's a lot of circumstances at once. Rare application. We ran into

[issue29700] readline memory corruption when sys.stdin fd >= FD_SETSIZE for select()

2017-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Bummer. I wish select could die. :) On Thu, Mar 2, 2017, 1:06 PM Martin Panter wrote: > > Martin Panter added the comment: > > Be careful, some OSes have limited support for “poll”, “kqueue”, etc with > terminals, and I ended up using “sele

[issue3982] support .format for bytes

2016-05-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: This came up in the language summit today when discussing twisted. .format() is still not supported on bytes though % is in 3.5. realistically it sounded like twisted needs to support python 3.4 for many years so they can't rely on bytes having a .f

[issue26083] ValueError: insecure string pickle in subprocess.Popen on Python 2

2016-05-28 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue26083> ___ ___ Python-bugs-

[issue27146] posixmodule.c needs stdio.h

2016-05-28 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.or

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-05-28 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <http://bugs.python.org/issue26372> ___ ___ Python-bugs-list mailing list Un

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-28 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <http://bugs.python.org/issue27122> ___ ___ Python-bugs-list mailing list Un

[issue27167] subprocess reports signal as negative exit status, not documented

2016-05-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'll take this as a documentation update for 3.5 and a feature request for better message text in 3.6. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith versions: +Python 3.6 ___ Python tracke

[issue26700] Make digest_size a class variable

2016-05-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: +cc Christian Heimes: do the upcoming standard hash functions amenable to a constant class attribute digest_size? Are any of the expected future hashes variable length from a single class / constructor function? -- nosy: +christian.heimes

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-06-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue27164> ___ ___ Python-

[issue27185] Increase Test Coverage for the String Module

2016-06-02 Thread Gregory P. Smith
New submission from Gregory P. Smith: Can you sign the Python contributor form - https://www.python.org/psf/contrib/contrib-form/? (If you already have, just say so.) -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.

[issue27185] Increase Test Coverage for the String Module

2016-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Serhiy. Given that, I suggest checking if the new tests this adds are already covered in test_pep292.py or not to decide if we should move forward with this patch or not. -- ___ Python tracker <h

[issue27164] zlib can't decompress DEFLATE using shared dictionary

2016-06-02 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> ___ Python tracker <http://bugs.python.org/issue27164> ___ ___ Python-bugs-list mailing list Un

[issue18751] A manager's server never joins its threads

2016-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Capturing some notes from looking at this after Dan Sully asked me questions about the issue during today's pycon sprints: within multiprocessing/managers.py serve_forever(): the accepter thread is an infinite loop. i think this issue also wants to

[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: comments added to the code review. -- ___ Python tracker <http://bugs.python.org/issue16113> ___ ___ Python-bugs-list mailin

[issue27189] configure --with-lto with clang should find the appropriate llvm-profdata tool

2016-06-02 Thread Gregory P. Smith
New submission from Gregory P. Smith: The --with-lto support added in issue25702 can work with clang, but on a Linux distribution such as ubuntu 16.04 with clang installed you get: $ CC=clang ./configure --with-lto ... $ make profile-opt Error: Cannot perform PGO build because llvm-profdata

[issue25931] os.fork() command distributed in windows Python27 (in SocketServer module)

2016-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I made the change to not export the Forking names on Windows or other non-os.fork() supporting platforms in 3.6 only as it is arguably an API change, even though the names it removes would effectively be unusable on those platforms anyways. the docs still

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: the main part of this issue is done but it can't be closed until the dependencies listed are also dealt with. un-assigning myself. -- assignee: gregory.p.smith -> resolution: -> fixed ___ Python tra

[issue27167] subprocess reports signal as negative exit status, not documented

2016-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: docs updated (7b12180481da and 19d77132f38d). working on the error message update. -- ___ Python tracker <http://bugs.python.org/issue27

[issue25931] os.fork() command distributed in windows Python27 (in SocketServer module)

2016-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: It may be worth rolling back the above two commits. I'm not sure. I'd like to see if anything else falls out of this during the beta phases. There is a chance that some library has code similar to that found in test_socketserver.py that defin

[issue25931] os.fork() command distributed in windows Python27 (in SocketServer module)

2016-06-02 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: needs patch -> commit review status: open -> closed ___ Python tracker <http://bugs.python.or

[issue27167] subprocess reports signal as negative exit status, not documented

2016-06-02 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: -Python 3.5 ___ Python tracker <http://bugs.python.org/issue27167> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27167] subprocess reports signal as negative exit status, not documented

2016-06-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: So this is mostly done... one oddity which may warrant improvement though: signal numbers have multiple names. ie: SIGABRT is also known as SIGIOT, etc. This is likely to be confusing to if the error message is surfaced to the user as most users only know

[issue27167] subprocess reports signal as negative exit status, not documented

2016-06-03 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue27167> ___ ___ Python-bugs-

[issue23306] Within zipfile, use of zlib.crc32 raises OverflowError at argument-parsing time on large strings

2016-06-03 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- dependencies: +zlib: OverflowError while trying to compress 2^32 bytes or more stage: -> needs patch ___ Python tracker <http://bugs.python.org/issu

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-06-03 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue26372> ___ ___

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-06-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Lukas - cc'ing you just in case this bug is related to the asyncio subprocess race condition-ish problems you were talking about at pycon. -- nosy: +lukasz.langa ___ Python tracker <http://bugs.py

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-06-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: the bot hasn't piped up with the changesets. these are the 3.5 and default fixes: remote: notified python-check...@python.org of incoming changeset 883cfb3e28f9 remote: notified python-check...@python.org of incoming changeset 78e81de

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-06-04 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- stage: commit review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue26372> ___ ___ Pyth

[issue27291] two heap corruption issues when running modified pyc code.

2016-06-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Executing code in any form from untrusted sources can do arbitrary things. If someone can corrupt .pyc data before python executes it, they are just as likely to be able to corrupt other things leading to more direct exploits not even requiring the CPython

[issue15468] Edit docs to hide hashlib.md5()

2016-06-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Patch review: I see two competing solutions with differing behaviors. Yury's raises a RuntimeError in the loop situation. Serhiy's simply reorders the exception context to put the referred to one at the front of the chain in the event of a loop

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- stage: commit review -> patch review ___ Python tracker <http://bugs.python.org/issue25782> ___ ___ Python-bugs-list mai

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- dependencies: +CPython hangs on error __context__ set to the error itself ___ Python tracker <http://bugs.python.org/issue27

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> ncoghlan ___ Python tracker <http://bugs.python.org/issue27122> ___ ___ Python-bugs-list mai

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Proposed fix based on STINNER and Nick's earlier comments and the simple reproducer turned into a test. Nick - your most recent comment makes me wonder if this shouldn't be doing more. this does make both hang_bug*.py examples do something reason

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think I'm with Nick on this, the re-ordering fix is the closest to the right thing to do for 3.5 as it at least leaves all exceptions present in the chain. As a more accurate long term fix, it would be great if we could express the tree via tupl

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixes are in 3.5 and default: remote: notified python-check...@python.org of incoming changeset 9ee36b74b432 remote: notified python-check...@python.org of incoming changeset 9fadeee05880 -- ___ Python tracker

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: (with a follow up change to fix the typo in the news file which the bot hasn't seen fit to mention here yet) i'm removing the 25782 dependency as that isn't blocking fixing this. -- dependencies: -CPython hangs on error __context__ s

[issue27123] Allow `install_headers` command to follow specific directory structure

2016-06-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: (ignore that... typo in the commit log for issue27122's fix) -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/is

[issue27123] Allow `install_headers` command to follow specific directory structure

2016-06-14 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <http://bugs.python.org/issue27123> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-14 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2016-07-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW at this point i'm not willing to "fix" issues in Python 2.7's subprocess module for POSIX platforms as subprocess32 is a superior drop in alternative without the issues. inspecting the 2.7 code, if you are seeing a memory leak and

[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2016-07-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: ah, okay, that makes much more sense and is indeed a bug. Recommendation given that most people won't be using a python 2.7 version that has this and tons of other subprocess from a threaded process bugs fixed: Use subprocess32 where this isn't

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

2016-07-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: For me the momentum on fixing these things has stalled because I no longer work on any code that runs into this. There is a fundamental problem: You cannot safely use threading and os.fork() in the same application per POSIX rules. So even if the standard

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

2016-07-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: My intent is not to block anything. I'm Just explaining why I'm not motivated to spend much time on this issue myself. Others are welcome to. subprocess is not related to this issue, it has been fixed for use with threads (in 3.2 and highe

[issue1621] Do not assume signed integer overflow behavior

2016-07-31 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <http://bugs.python.org/issue1621> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27664] Allow specifying prefix for thread name in concurrent.futures.ThreadPoolExecutor

2016-08-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue27664> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20215] socketserver can not listen IPv6 address

2016-08-02 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue20215> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20215] socketserver.TCPServer can not listen IPv6 address

2016-08-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: TL;DR - We really need reliable tests for the exact behavior we want before coming up with patches. attached is a patch (-gps01) that would do the same thing as Lib/smtpd.py does... But I'm not convinced it is a good idea. Would forc

[issue26750] Mock autospec does not work with subclasses of property()

2016-08-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue26750> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26750] Mock autospec does not work with subclasses of property()

2016-08-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10721] Remove HTTP 0.9 server support

2016-08-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <http://bugs.python.org/issue10721> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23306] Within zipfile, use of zlib.crc32 raises OverflowError at argument-parsing time on large strings

2016-08-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: This appears to have been fixed by at least issue27130's https://hg.python.org/cpython/rev/2192edcfea02 recent commits. greg:cpython/build27$ ./python -c "import zlib;zlib.crc32('a'*(1<<31))" greg:cpython/build27$ ./pyt

[issue27664] Allow specifying prefix for thread name in concurrent.futures.ThreadPoolExecutor

2016-08-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: A workaround for this on 3.5 and older versions is probably to do: initialization: num_q = queue.Queue() map(num_q.put, range(max_workers)) Then schedule max_workers identical tasks: def task(): threading.current_thread().name = '%s_%d' % (y

[issue27664] Allow specifying prefix for thread name in concurrent.futures.ThreadPoolExecutor

2016-08-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: cleaned up a bit with documentation added and submitted. thanks. ThreadPoolExecutor threads now have a default name as well, because why not. -- resolution: -> fixed stage: patch review -> commit review status: open -&g

[issue26750] Mock autospec does not work with subclasses of property()

2016-08-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Probably just Amaury and I forgetting that existed. Amaury, inspect.isdatadescriptor's implementation is a bit different than this change's _is_data_descriptor. Thoughts? -- stage: resolved ->

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-08-09 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue26526> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27574] Faster parsing keyword arguments

2016-08-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue27574> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker <http://bugs.python.org/issue27736> ___ ___ Python-

[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: This is very architecture specific and focused on low level information that you can also already get from places like /proc/cpuinfo on Linux. Also, regardless of what capability bits a CPU exposes that has nothing to do with what accelerations the

[issue26750] Mock autospec does not work with subclasses of property()

2016-08-17 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- stage: commit review -> resolved ___ Python tracker <http://bugs.python.org/issue26750> ___ ___ Python-bugs-list mai

[issue26488] hashlib command line interface

2016-08-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: There are so many existing tools that already do this I don't really see why Python needs to become yet another one. What is the value in doing this? Just use the openssl command. "openssl sha256 myfile" Or any of the md5sum, sha1sum and

[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: The processor capabilities vector is not the API you want. What you want is an API to ask the ssl library about characteristics of algorithm implementations it will be using. Those are not the same thing. If we want to expose processor capabilities as a

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2016-08-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith priority: normal -> high ___ Python tracker <https://bugs.python.org/issue23702> ___ ___ Python-bugs-lis

[issue25969] Update lib2to3 grammar to include missing unpacking generalizations.

2016-08-28 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith priority: normal -> high versions: +Python 2.7 ___ Python tracker <https://bugs.python.org/issu

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2016-08-29 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 3.6 -Python 3.4 ___ Python tracker <https://bugs.python.org/issue21541> ___ ___ Python-bugs-list mailin

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2016-08-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: We use Modules/Setup.local to build the _ssl and _hashlib modules against our an SSL library of our choosing at work using a Setup entry like this: _ssl _ssl.c $(PY_CORE_CFLAGS) -DUSE_SSL -I%{SSL_ROOT}/include \ -Wl,--version-script,_ssl.lds

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-02-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: this bug was likely introduced when i applied the telnetlib patches to use poll to not hit the select fd limit. doh. nice catch! -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue17

[issue17221] Resort Misc/NEWS

2013-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: re-yank it. that was unintentional. less sections == better. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17230] when forking, buffered output is not flushed first.

2013-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: os.fork() is a low level system call wrapper. Anyone using it needs to deal with flushing whatever buffers their application has before forking among many many other things. There is a reason it lives in the os module. It is already a dangerous system

[issue17192] libffi-3.0.12 import

2013-02-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: An update to libffi is needed for all maintained versions of Python. In 2.7, we're running into the stack being misaligned in 32-bit x86 code which is something a libffi update fixes. It is a simple patch: http://patchwork.ozlabs.org/patch/58128/

<    25   26   27   28   29   30   31   32   33   >