[issue17121] SSH upload for distutils

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

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: reopening as documentation mixups remain to be fixed. -- nosy: +benjamin.peterson, larry priority: high -> release blocker resolution: fixed -> stage: patch review -> needs patch ___ Python track

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue6972> ___ ___ Python-bugs-list

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

2013-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: Brett wrote a pure python zipimporter in http://bugs.python.org/issue17630 :) FWIW, the zipimport.c implementation (in 2.7) causes us serious pain when we've got the stdlib in a .zip file and need to update that while there are running python proc

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2013-09-23 Thread Gregory P. Smith
New submission from Gregory P. Smith: If you are 1) using zipimport 2) zipimport.c has cached the zip file's central index during an import. 3) the .zip file is modified or replaced while the process is running 4) you try to import something new from that .zip file. you're gonna

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2013-09-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's a fix (the test is now in the patch). -- keywords: +needs review stage: -> patch review Added file: http://bugs.python.org/file31860/issue19081-gps01.diff ___ Python tracker <http://bugs

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2013-09-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : Added file: http://bugs.python.org/file31869/issue19081-gps02.patch ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Python-bug

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2013-09-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : Added file: http://bugs.python.org/file31871/issue19081-gps03.patch ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Python-bug

[issue19159] 2to3 incorrectly converts two parameter unicode() constructor to str()

2013-10-03 Thread Gregory P. Smith
New submission from Gregory P. Smith: >From a conversion through 2to3: < default_value=unicode("", "utf-8"), --- > default_value=str("", "utf-8"), The Python 2 unicode constructor takes an optional second parameter which is the co

[issue19159] 2to3 incorrectly converts two parameter unicode() constructor to str()

2013-10-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Correct, my characterization above was wrong (I shouldn't write these up without the interpreter right in front of me). What is wrong with the conversion is: unicode("", "utf-8") in python 2.x should become either str(b""

[issue19236] Add Tornado HTTP benchmark

2013-10-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: makes sense to me. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue19236> ___ ___ Python-bugs-list m

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-10-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: I haven't had a chance to look at this since May. It'd still be a great addition. -- ___ Python tracker <http://bugs.python.o

[issue17276] HMAC: deprecate default hash

2013-10-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: yes just remove the DeprecationWarning. Document it as deprecated with a release now+0.2 as the earliest it will be removed. (if you want a warning at all, use PendingDeprecationWarning as that one is filtered out by default so it won't bother use

[issue18742] Abstract base class for hashlib

2013-10-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: > > Have you had a chance to read http://www.python.org/dev/peps/pep-0452/ , too? Overall pep 452 looks good but one thing popped out at me: >>> import hashlib >>> from Crypto.Hash import MD5 >>> m = M

[issue10197] subprocess.getoutput fails on win32

2013-11-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: The documentation needs updating to state that these are available on Windows (currently it says UNIX) with a versionchanged annotation. http://docs.python.org/3.3/library/subprocess.html#legacy-shell-invocation-functions -- nosy: +gregory.p.smith

[issue9922] subprocess.getstatusoutput can fail with utf8 UnicodeDecodeError

2013-11-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: If anybody using them in Python 3.3 is already depending upon them returning strings, changing it to return bytes will break their code... so that ship as unfortunately sailed. Changing that only in 3.4 would just cause churn and make code using this more

[issue19499] "import this" is cached in sys.modules

2013-11-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd take their question as an educational opportunity. reload(this) -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/is

[issue19499] "import this" is cached in sys.modules

2013-11-10 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <http://bugs.python.org/issue19499> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13788] os.closerange optimization

2013-11-23 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: gregory.p.smith -> ___ Python tracker <http://bugs.python.org/issue13788> ___ ___ Python-bugs-list mailing list Un

[issue16134] Add support for RTMP schemes to urlparse

2013-11-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: i'd like to see a proposed change against the 3.4 standard library for this with tests. -- assignee: gregory.p.smith -> ___ Python tracker <http://bugs.python.org

[issue1195571] simple callback system for Py_FatalError

2013-11-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: i obviously didn't add this to 3.3, unassigning to reflect the attention it (isn't) currently getting. sorry! -- assignee: gregory.p.smith -> ___ Python tracker <http://bugs.python.

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-11-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: For reference the current state of things for this is the proposal in: https://mail.python.org/pipermail/python-dev/2013-May/126196.html With a prototype using a ctypes based implementation as proof of concept in https://github.com/benhoyt/scandir. A

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2013-11-23 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- title: distutils.utils.get_platform() for 32-bit Python on a 64-bit machine -> distutils.utils.get_platform() for 32-bit Python on a 64-bit machine ___ Python tracker <http://bugs.python.org/issu

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2013-11-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: adding {0,1,2} to fds_to_keep (populated from pass_fds) is indeed an alternate approach. A variant of an alternate patch doing that attached. This actually simplifies code. Is there anything this would hurt that i'm not seeing? I suppose it adds

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: > I've always had an implicit understanding that calls with timeouts may, for > whatever reason, return sooner than requested (or later!), and the most > careful approach is to re-check the clock again. exactly. at the system call le

[issue18885] handle EINTR in the stdlib

2013-11-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: Guido's point was that it is already a bug in code to not check the elapsed time after a select call returns rather than assuming the full timeout time has elapsed. Correct code today already needs to deal with both situations (OSError(EINTR) and s

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2013-11-30 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.4 -Python 3.2 ___ Python tracker <http://bugs.python.or

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2013-12-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: fixed -> stage: committed/rejected -> commit review status: closed -> open ___ Python tracker <http://bugs.python.or

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: I do not consider this a feature; that EINTR is exposed as an exception from the API is a bug. But Larry is the only one who can actually make that decision as the 3.4 release manager (+nosy'd). > by returning an empty list you force the user t

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: It sounds like doing this is fine (as Glyph suggests in the email thread) but it isn't magically going to solve all EINTR problems, just reduce the number of calls that could encounter them. http://man7.org/linux/man-pages/man7/signal.7.html se

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2013-12-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: i went with the less invasive in terms of behavior change approach of making sure that the errpipe_write fd is always >= 3. In Python 3.4 the code change was different and much simpler and on the Python only side as all fd's are opened O_CLOEXEC by

[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

2013-12-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: > > I believe that the libc and the kernel knows better than Python how to > restart a syscalls, than Python. I expect more reliable timeout, or > the kernel may avoid context switches (don't wake up the process). > See the man page i l

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: I like Antoine's tutjson.patch. commit it. Thanks for noticing this Donald! -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/is

[issue19901] tests fail due to unsupported SO_REUSEPORT when building Python 3.3.2-r2

2013-12-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: I fixed this in 3.3 and 3.4 several weeks ago. http://hg.python.org/cpython/rev/9791c5d55f52 http://hg.python.org/cpython/rev/00766fa3366b -- assignee: -> gregory.p.smith nosy: +gregory.p.smith resolution: -> fixed stage: -> committed

[issue19843] Wait for multiple sub-processes to terminate

2013-12-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: I do not think this is ready to live in the standard library. I've left some comments on your patch review. Consider those for incorporation into the psutils project. wait_procs() implementation should live in the psutils module on PyPI with

[issue19883] Integer overflow in zipimport.c

2013-12-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: zipimport.c makes no attempt to support zip files larger than 2GiB or zip64 files. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue19

[issue19506] subprocess.communicate() should use a memoryview

2013-12-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue19506] subprocess.communicate() should use a memoryview

2013-12-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw, this patch made sense. using test_sub.py on my dual-core amd64 box with an opt build is saw the times drop from ~0.90-0.97 to ~0.75-0.8. more speedup than i was really anticipating for this use case. it probably depends upon what the value of

[issue19837] Wire protocol encoding for the JSON module

2013-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: upstream simplejson (of which json is an earlier snapshot of) has an encoding parameter on its dump and dumps method. Lets NOT break compatibility with that API. Our users use these modules interchangeably today, upgrading from stdlib json to simplejson

[issue19837] Wire protocol encoding for the JSON module

2013-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: So why not put a dump_bytes into upstream simplejson first, then pull in a modern simplejson? There might be some default flag values pertaining to new features that need changing for stdlib backwards compatible behavior but otherwise I expect it's a

[issue19929] subprocess: increase read buffer size

2013-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I saw a small regression over 4k when using a 64k buffer on one of my machines (dual core amd64 linux). With 32k everything (amd64 linux, armv7l 32-bit linux, 64-bit os x 10.6) showed a dramatic improvement on the microbenchmark. approaching 50% less cpu

[issue19883] Integer overflow in zipimport.c

2013-12-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: comments added to the patch. -- ___ Python tracker <http://bugs.python.org/issue19883> ___ ___ Python-bugs-list mailin

[issue21216] getaddrinfo is wrongly considered thread safe on linux

2014-06-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: The upstream Debian issue contains a fix for the bug in eglibc. Python should not attempt to work around this. Distros need to fix their libc if they shipped a broken one. -- components: +Extension Modules resolution: -> not a bug st

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Do you honestly have a situation where you need to share a computationally significant amount of hashing state only to want to finish the computation N different times with alternate computationally significant ending data that multiprocessing would actually

[issue11771] hashlib object cannot be pickled

2014-07-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Please be constructive. There is no way to implement generic pickling for hash objects that would work across all implementations. The underlying code implementing each function is free to store its internal state however it wants and does not provide an

[issue12876] Make Test Error : ImportError: No module named _sha256

2014-07-02 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/issue12876> ___ ___ Pyth

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue6931> ___ ___ Python-

[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue6931> ___ ___ Python-bug

[issue21949] Document the Py_SIZE() macro.

2014-07-09 Thread Gregory P. Smith
New submission from Gregory P. Smith: The Py_SIZE() macro is not documented. It should be. It is very useful along with PyList_New(positive_number) after using PyList_SET_ITEM() to fill in up to the first positive_number elements of a list object in the most optimal manner by avoiding

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

2014-07-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: (un-cc'ing myself as I can't deal with Windows) -- components: +Tests, Windows -IO ___ Python tracker <http://bugs.python.o

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

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

[issue16178] atexit._run_exitfuncs should be a public API

2014-07-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: I don't currently have a need for this so, no. -- ___ Python tracker <http://bugs.python.org/issue16178> ___ ___ Pytho

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-07-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: issue14252 appears to have been a fix for the windows side only. On Posix the best that could be done here is to catch OSError within Popen.terminate() and Popen.kill() and ignore the problem if there was an error. We do not have a way to know if the child

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-07-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: agreed, we could at least do that for the Popen methods. -- ___ Python tracker <http://bugs.python.org/issue17131> ___ ___

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-07-20 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith stage: -> needs patch ___ Python tracker <http://bugs.python.org/issue17131> ___ ___ Pyth

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2014-08-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: $SHELL is up to the user and not guaranteed to be anything remotely /bin/sh compatible. On Jul 31, 2014 4:14 PM, "Antoine Pitrou" wrote: > > Antoine Pitrou added the comment: > > Why not simply use $SHELL? > >

[issue21307] PEP 466: backport hashlib changes

2014-08-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: use a frozenset for algorithms_guaranteed. in the docs under more algor... may be available make the two variables link to their docs. you might explicitly mention python 2.7.9 in that paragraph. you probably should use pystring_fromstring imstead of

[issue21307] PEP 466: backport hashlib changes

2014-08-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Keeping the delta small makes sense. I'd use frozenset in 3 as well but its unimportant. LGTM. -- ___ Python tracker <http://bugs.python.org/is

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: modify it as you see fit, i hadn't noticed this issue; just the warnings. -- ___ Python tracker <http://bugs.python.org/is

[issue22530] re rejects index of type long on 2.7

2014-10-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks. btw an alternative type check to consider in these situations: PyIndex_Check https://docs.python.org/2/c-api/number.html#c.PyIndex_Check but what you wrote works. -- nosy: +gregory.p.smith ___ Python

[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C

2014-10-05 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> out of date status: languishing -> closed ___ Python tracker <http://bugs.python.org/issue2552> ___ ___ Pyth

[issue19904] Add 128-bit integer support to struct

2013-12-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: Pick two suitable letters for the int128 and uint128 cases and create a patch for an implementation with tests (targeting Python 3.5). The implementation needs to compile and work even when the platform C compiler Python is compiled with does not have a

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

2013-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Review comments added. I don't really see why the fix should not be as trivial as: diff -r ca9bca7aecda Lib/telnetlib.py --- a/Lib/telnetlib.py Tue Dec 10 16:06:46 2013 -0600 +++ b/Lib/telnetlib.py Tue Dec 10 18:08:37 2013 -0800 @@ -312,7 +

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

2013-12-10 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <http://bugs.python.org/issue17200> ___ ___ Python-bugs-list mailing list Un

[issue15032] Provide a select.select implemented using select.poll

2013-12-10 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

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

2013-12-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: anyways, i went with just the simple fix and no specific test for this issue as the tests were painful and questionable reliability. i appreciate the other refactoring suggestion within the code but for 2.7 and 3.3 bugfixes where no significant changes are

[issue15027] Faster UTF-32 encoding

2013-12-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: one comment to address on the review, otherwise after addressing that I believe this is ready to go in for 3.4. -- nosy: +gregory.p.smith priority: low -> normal ___ Python tracker <http://bugs.pyth

[issue19901] tests fail due to unsupported SO_REUSEPORT when building Python 3.3.2-r2

2013-12-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: You didn't do anything wrong. You were running 3.3.3 which is the latest release of 3.3. Portage is Gentoo's thing, you'd have to ask the gentoo python portage ebuild maintainer and point them at the commit with the additional patch to apply

[issue20104] expose posix_spawn(p)

2014-01-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Unless it could replace the fork+exec code path in its entirety, which I do not believe is possible, I see posix_spawn() as a distraction and additional maintenance burden with no benefit. http://pubs.opengroup.org/onlinepubs/759899/functions

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I would not bother pulling this out until the week before RC1 if the standard has not yet been declared final. Otherwise, -1 on keeping it under another name. The only hashes we bundle should be standard ones as those are the only ones people will want to

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given the likely delay in the standard Martin cites, I've change my mind: agreed. Go ahead and remove it for 3.4. We'll have an official sha3 in Python 3.5. Early adopters can live with PyPI. --

[issue19843] Wait for multiple sub-processes to terminate

2014-01-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd rather see it bake in psutils for a while longer regardless of implementation. -- ___ Python tracker <http://bugs.python.org/is

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: attaching a patch for 3.3. up next, 3.4: So long as I get to it before the release candidates the approach can likely be improved for 3.4 to actually hold the zip file we're importing from open for the life of the process instead of doing all of these

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file31869/issue19081-gps02.patch ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file31860/issue19081-gps01.diff ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: The Windows 7 buildbot is unhappy after that change and failing one of the new tests: ERROR: testZipFileChangesAfterFirstImport (test.test_zipimport.ZipFileModifiedAfterImportTestCase) Alter the zip file after caching its index and try an import

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: updated 3.3 patch based off the changes made to the 2.7 one. -- Added file: http://bugs.python.org/file9/issue19081-33-gps05.diff ___ Python tracker <http://bugs.python.org/issue19

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file33323/issue19081-33-gps04.diff ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-07 Thread Gregory P. Smith
New submission from Gregory P. Smith: Python 3.3.3+ (3.3:28337a8fb502+, Jan 7 2014, 01:32:44) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import unittest >>> r

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: somewhat related - https://code.google.com/p/unittest-ext/issues/detail?id=22 -- ___ Python tracker <http://bugs.python.org/issue20

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/issue20165> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : Added file: http://bugs.python.org/file33356/issue19081-33-gps06.diff ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : Removed file: http://bugs.python.org/file9/issue19081-33-gps05.diff ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Pytho

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: I believe this is done. I'm opting not to go for a more complicated "cache the open FILE* with the zip_directory_cache" approach for 3.4 due to complexity and time. long term: It'd be ideal if zipimport weren't a pile of C code s

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue19081> ___ ___ Python-bugs-

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not comfortable changing this for 2.7 or 3.3 in case some code is unfortunately is depending on this behavior. But as it is it does seem like the kind of thing that can hide problems (tests that are passing that are not expected to). Here'

[issue20165] unittest TestResult wasSuccessful returns True when there are unexpected successes

2014-01-20 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: 2.7 subprocess is fundamentally flawed and cannot be fixed. Install subprocess32 from PyPI. It's fixed in 3.2 and later. -- nosy: +gregory.p.smith resolution: -> wont fix status: open -> closed ___ Pyt

[issue20318] subprocess.Popen can hang in threaded applications

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: A pointer in the 2.7 subprocess docs to subprocess32 does seem like a good idea, its what i tell everyone to do anyways. :) If you've got a patch for this in 2.7 feel free to add it here and I can take a look. leaving this open as a reminder to

[issue20307] Android's failure to expose SYS_* system call constants causes _posixsubprocess cross-compilation to fail

2014-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: The patch seems reasonable. i'd modify it slightly to include a check the SYS_getdents64 is not already defined before doing the #define. -- assignee: -> gregory.p.smith ___ Python tracke

[issue19936] Executable permissions of Python source files

2014-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: For those four libffi files in msg208964, do what you want with them. I ignored executable bits entirely (didn't set or unset) when importing the code as there is zero need to execute any of them. IMNSHO, I think executable bits should _not_ be set on

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: Not all cases of this were fixed by the existing patch. subimports still trigger the bug via a different code path. attaching an updated unittest that demonstrates that. -- resolution: fixed -> status: closed -> open Added file:

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: The call stack for that code path failing is: #0 get_data (fp=0xf64920, archive=0xe77ecc "/home/greg/sandbox/python/cpython/2.7/junk95142.zip", toc_entry=('/home/greg/sandbox/python/cpython/2.7/junk95142.zip/ziptestpackage/ziptestmod

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: The problem appears to be that every zipimporter instance keeps its own reference to the zip files table of contents (self->files) instead of continually using the module wide zip_directory_cache but the zip_stat_cache is being maintained externally to t

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's a fix that I believe works with one TODO in there that needs investigation due to a question about the current historical zipimport code. -- Added file: http://bugs.python.org/file33614/issue19081-subimport-fix-gps02

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: I refactored the unittests a bit and added another test for subimports when a directory within the .zip file is in sys.path as well. The quizzical "wtf" TODO I had in the code has been "answered" in that I am unable to trigger a situati

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Updated to make that function (zipimporter_init) easier to follow by not repurposing the path variable mid-function and allocate the local path buffer rather than keeping it on the stack. -- Added file: http://bugs.python.org/file33736/issue19081

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in the 2.7 branch. The existing patch in the 3.3 and 3.4 branches is incomplete and does not actually fix the problem. Despite what the Misc/NEWS entry claims. The patch I am attaching now (applies to 3.3, I will forward port it to 3.4) fixes the

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Georg. I'll leave it until after the 3.3.4 release. For simplicity's sake I'll leave it for 3.4.1 as well unless Larry says otherwise. -- priority: release blocker -> deferred blocker

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: documented with a deprecation. that's the best we can do for now. it can be considered for removal in the 3.5 or 3.6 timeframe. i doubt many people used it. -- nosy: +gregory.p.smith resolution: -> fixed status: open -

<    22   23   24   25   26   27   28   29   30   31   >