Changes by Gregory P. Smith :
--
nosy: -gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue17121>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Gregory P. Smith :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue6972>
___
___
Python-bugs-list
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
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
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
Changes by Gregory P. Smith :
Added file: http://bugs.python.org/file31869/issue19081-gps02.patch
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Python-bug
Changes by Gregory P. Smith :
Added file: http://bugs.python.org/file31871/issue19081-gps03.patch
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Python-bug
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
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""
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
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
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
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
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
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
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
Changes by Gregory P. Smith :
--
nosy: -gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue19499>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gregory P. Smith :
--
assignee: gregory.p.smith ->
___
Python tracker
<http://bugs.python.org/issue13788>
___
___
Python-bugs-list mailing list
Un
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
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.
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
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
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
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
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
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
Changes by Gregory P. Smith :
--
resolution: fixed ->
stage: committed/rejected -> commit review
status: closed -> open
___
Python tracker
<http://bugs.python.or
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
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
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
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
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
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
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
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
Changes by Gregory P. Smith :
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
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
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
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
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
Gregory P. Smith added the comment:
comments added to the patch.
--
___
Python tracker
<http://bugs.python.org/issue19883>
___
___
Python-bugs-list mailin
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
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
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
Changes by Gregory P. Smith :
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12876>
___
___
Pyth
Changes by Gregory P. Smith :
--
assignee: -> gregory.p.smith
nosy: +gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue6931>
___
___
Python-
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
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
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
Changes by Gregory P. Smith :
--
nosy: -gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue11361>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Gregory P. Smith added the comment:
agreed, we could at least do that for the Popen methods.
--
___
Python tracker
<http://bugs.python.org/issue17131>
___
___
Changes by Gregory P. Smith :
--
assignee: -> gregory.p.smith
stage: -> needs patch
___
Python tracker
<http://bugs.python.org/issue17131>
___
___
Pyth
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?
>
>
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
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
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
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
Changes by Gregory P. Smith :
--
resolution: -> out of date
status: languishing -> closed
___
Python tracker
<http://bugs.python.org/issue2552>
___
___
Pyth
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
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 +
Changes by Gregory P. Smith :
--
assignee: -> gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue17200>
___
___
Python-bugs-list mailing list
Un
Changes by Gregory P. Smith :
--
resolution: -> out of date
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
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
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
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
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
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
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.
--
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
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
Changes by Gregory P. Smith :
Removed file: http://bugs.python.org/file31869/issue19081-gps02.patch
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Pytho
Changes by Gregory P. Smith :
Removed file: http://bugs.python.org/file31860/issue19081-gps01.diff
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Pytho
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
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
Changes by Gregory P. Smith :
Removed file: http://bugs.python.org/file33323/issue19081-33-gps04.diff
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Pytho
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
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
Changes by Gregory P. Smith :
--
nosy: +michael.foord
___
Python tracker
<http://bugs.python.org/issue20165>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gregory P. Smith :
Added file: http://bugs.python.org/file33356/issue19081-33-gps06.diff
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Pytho
Changes by Gregory P. Smith :
Removed file: http://bugs.python.org/file9/issue19081-33-gps05.diff
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Pytho
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
Changes by Gregory P. Smith :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue19081>
___
___
Python-bugs-
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'
Changes by Gregory P. Smith :
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
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
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
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
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
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:
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
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
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
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
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
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
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
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 -
2601 - 2700 of 3274 matches
Mail list logo