Philip Jenvey added the comment:
Note that this isn't an android specific issue: See issue19901, and
9791c5d55f52 for an appropriate solution patch.
(Renaming title)
--
nosy: +pjenvey
title: android: setting SO_REUSEPORT fails -> setting SO_REUSEPO
Philip Jenvey added the comment:
Thanks Serhiy, I did not see the python-dev thread. This coincidentally came up
recently in pypy3.
+1 for some kind of deprecation period needed
--
___
Python tracker
<http://bugs.python.org/issue26
Philip Jenvey added the comment:
See issue26800 for reasoning to go with #4
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue26754>
___
___
Pytho
New submission from Philip Jenvey:
Basically a reopen of the older issue8485 with the same name. It was decided
there to drop support for bytearray filenames -- partly because of the
complexity of handling buffers but it was also deemed to just not make much
sense.
This regressed or crept
Philip Jenvey added the comment:
I can't find the paper trail of what I originally thought was a "consensus" or
even that many clear pronouncements about it, but I recall Nick being
originally opposed to it but he later changed his mind, you can see his
approval here:
https://
Changes by Philip Jenvey :
--
keywords: +patch
Added file: http://bugs.python.org/file34751/issue21173-test.diff
___
Python tracker
<http://bugs.python.org/issue21
New submission from Philip Jenvey:
len() on WeakKeyDictionarys can fail with ValueErrors when _IterationGuards are
kept alive
Attached is a test showing this:
==
ERROR: test_weak_keys_len_destroy_while_iterating (__main__
New submission from Philip Jenvey:
With discussion of the new Pathlib API there's been suggestion (and maybe even
already consensus) that some of the convenience APIs provided by it should
exist on stat result objects.
It's maybe too late for 3.4, but let's track exactly wha
Changes by Philip Jenvey :
--
nosy: +ned.deily
___
Python tracker
<http://bugs.python.org/issue19516>
___
___
Python-bugs-list mailing list
Unsubscribe:
Philip Jenvey added the comment:
and the code module (after #17442 is resolved)
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue14805>
___
___
Philip Jenvey added the comment:
PyPy's fixed this here:
https://bitbucket.org/pypy/pypy/commits/1341a432e134
The tests just need to be adapted to the stdlib test suite
--
___
Python tracker
<http://bugs.python.org/is
New submission from Philip Jenvey:
The code module claims to emulate Python's interactive interpreter but it fails
to emulate displaying of the exception cause.
It can utilize traceback._iter_chain to do this (see traceback.print_exception)
--
components: Library (Lib)
mes
Changes by Philip Jenvey :
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue17032>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Philip Jenvey:
There are a couple references to an 'ndbm' variable/module in this function on
Python 3.2 and above (and just one reference on default). It appears to be
leftover from the 3.x reworking of this module
--
components: Library (Lib)
messag
Philip Jenvey added the comment:
Targeting this for 2.7.4. If Alexander doesn't get to it, ping me and I'll do it
--
nosy: +benjamin.peterson, georg.brandl, larry, pjenvey
priority: normal -> release blocker
___
Python t
Philip Jenvey added the comment:
Hey Ezio, you forgot to attach the patch
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue16835>
___
___
Pytho
Philip Jenvey added the comment:
The guidelines for this are in PEP 399. Basically, adding 'accelerated'
implementations when necessary isn't a bad thing as long as there are pure
Python equivalents (unless it's a special case) and both are tested.
issue14373's
Philip Jenvey added the comment:
PyPy had a pure python itertools until recently (it's been deleted):
https://bitbucket.org/pypy/pypy/src/c1aa74c06e86/lib_pypy/itertools.py?at=py3k
--
___
Python tracker
<http://bugs.python.org/is
Philip Jenvey added the comment:
zipimport
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue16651>
___
___
Python-bugs-list mailing list
Unsub
Philip Jenvey added the comment:
>From the perspective of Jython we'd want the easiest way to hook into this as
>possible of course, but I think that overriding marshal to handle a $py.class
>or whatever format would be a misappropriation of the marshal module
Jython actua
New submission from Philip Jenvey:
surrogateescape claims to be "implemented by all standard Python codecs"
http://docs.python.org/3/library/codecs.html#codec-base-classes
However it fails w/ multibytecodecs on encode:
Python 3.2.3+ (3.2:eb999002916c, Oct 26 2012, 16:11:03)
[GCC 4.
Philip Jenvey added the comment:
Sorry Brett, beat you to it w/ #16389 =P
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
New submission from Philip Jenvey:
#9396 replaced a few caches in the stdlib w/ lru_cache, this made the mako_v2
benchmark on Python 3 almost 3x slower than 2.7
The benchmark results are good now that Mako was changed to cache the re
itself, but the problem still stands that lru_cache seems
Philip Jenvey added the comment:
Thanks for picking this and the warning/slowdown up, Serhiy. The patch LGTM,
for whatever that's worth =]
--
___
Python tracker
<http://bugs.python.org/is
Philip Jenvey added the comment:
attached a fix for review
--
keywords: +patch
Added file: http://bugs.python.org/file26383/lengthhint-fix.diff
___
Python tracker
<http://bugs.python.org/issue15
New submission from Philip Jenvey :
The __length_hint__ optimization was broken a while ago for many iterators due
to a bug introduced in 44c090c74202. It only accepts longs as valid hints, not
ints
This affects 2.6 too (but that's in security-only fix mode), but not 3.x
--
ass
Philip Jenvey added the comment:
Jython's sys.warnoptions should probably just contain strs instead of unicode.
Otherwise I suspect unicode values could break the warnings module's usage of it
--
nosy: +pjenvey
___
Python trac
Philip Jenvey added the comment:
__import__ needs the actual module on hand so it can e.g. attach it to its
parent module
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue14
Philip Jenvey added the comment:
iter(range(1)) should also see a speedup because range's iter supports
__length_hint__
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/is
Philip Jenvey added the comment:
I think you want to decref the result of PyObject_Repr after the fact, too
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue14
Changes by Philip Jenvey :
--
nosy: -pjenvey
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
Philip Jenvey added the comment:
Actually 10.5 was the last PowerPC release
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Pytho
Philip Jenvey added the comment:
DeprecationWarnings aren't that annoying anymore now that they're silent by
default. It should at least have a PendingDeprecationWarning
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.o
Changes by Philip Jenvey :
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue13903>
___
___
Python-bugs-list mailing list
Unsubscribe:
Philip Jenvey added the comment:
Is mro_internal's second call to type_mro_modified still needed? Its comment
makes me suspect that it's not:
type_mro_modified(type, type->tp_mro);
/* corner case: the old-style super class might have been hidden
from t
Philip Jenvey added the comment:
sys.executable can be None on Jython (and I believe IronPython) when ran in an
'embedded' mode
--
nosy: +dino.viehland, pjenvey
___
Python tracker
<http://bugs.python.o
Philip Jenvey added the comment:
I'm surprised to hear that stderr is line buffered by default. Historically
stderr is never buffered (at least on POSIX) and for good reason: errors should
be seen immediately
Was this an oversight in migrating stdin/out/err to the new io m
Philip Jenvey added the comment:
2.5 is done
http://mail.python.org/pipermail/python-committers/2011-October/001844.html
--
___
Python tracker
<http://bugs.python.org/issue13
Philip Jenvey added the comment:
It probably still needs to catch OSErrors which my patch doesn't do
--
___
Python tracker
<http://bugs.python.org/is
Philip Jenvey added the comment:
Something along these lines (untested) should do it. 2.6 and 3.x need the fix
as well
--
keywords: +patch
nosy: +pjenvey
Added file: http://bugs.python.org/file23824/pypirc-secure.diff
___
Python tracker
<h
Philip Jenvey added the comment:
The code I linked to above implements those semantics in pure Python. It
follows Microsoft's "Parsing C Command-Line Arguments" rules like
CommandLineToArgvW does
Here's updated links, the older links seemed to have broken:
https://fi
Philip Jenvey added the comment:
Florent, any chance of signing off on this for 3.2? I was waiting for the patch
to go through your authorized elementtree fork
--
assignee: pjenvey -> flox
___
Python tracker
<http://bugs.python.org/iss
Changes by Philip Jenvey :
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue8685>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Philip Jenvey :
--
nosy: -pjenvey
___
Python tracker
<http://bugs.python.org/issue10073>
___
___
Python-bugs-list mailing list
Unsubscribe:
Philip Jenvey added the comment:
Another option is to wrap the operations in a try/except. When a TypeError is
raised have it throw a new TypeError with an improved error message and the
original chained to it
--
nosy: +pjenvey
___
Python tracker
Changes by Philip Jenvey :
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue9992>
___
___
Python-bugs-list mailing list
Unsubscribe:
Philip Jenvey added the comment:
It sounds like you had PYTHONWARNINGS using the fs encoding before r84694, but
reverted it due to bootstrapping issues.
Indeed, the fs encoding isn't initialized until later in Py_InitializeEx. Maybe
the PYTHONWARNINGS code should be moved there in
Changes by Philip Jenvey :
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue9988>
___
___
Python-bugs-list mailing list
Unsubscribe:
Philip Jenvey added the comment:
shell commands don't work because you're not specifying the shell=True argument
to Popen. This is covered in the subprocess "Replacing os.system" documentation
--
nosy: +pjenvey
resolution: -> invalid
Philip Jenvey added the comment:
py3k should be taken care of as of r80066+r80075
--
resolution: accepted -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Philip Jenvey added the comment:
The pending patch for py3k fixes the modification of the env value (trunk
already has a fix for that).
That patch is also doing the conversion to wchar_t via the char2wchar function
now, with that reusing a single buffer seems out of the question
Philip Jenvey added the comment:
Patch with tests (which can only really test it on Windows) here
http://bitbucket.org/pjenvey/et-2009-provolone/changeset/8292a06090a3/
--
___
Python tracker
<http://bugs.python.org/issue7
Philip Jenvey added the comment:
S.capitalize() -> string
Return a copy of the string S with only its first character
capitalized.
You've misunderstood the docs, only the first character is indeed capitalized.
You want string.capwords instead
--
nosy: +pjenvey
re
Philip Jenvey added the comment:
Here's a patch for py3k using the same char2wchar as the argv decoder for
posix, and better windows handling. Plus an additional nonascii value test.
Patch is against r79980 for clarity
--
Added file: http://bugs.python.org/file16810/issu
Philip Jenvey added the comment:
I committed a somewhat different version of this patch to py3k to handle the
warn options now calling for wchars, but this needs more work. Some of the
buildbots are unhappy
Seems like the py3k version either needs to fully decode the env values to a
unicode
Philip Jenvey added the comment:
applied in r79878 - r79881, thanks!
--
resolution: accepted -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Philip Jenvey added the comment:
Looks good to me. Updated patch with a couple whitespace changes
--
Added file: http://bugs.python.org/file16791/issue7301-2.diff
___
Python tracker
<http://bugs.python.org/issue7
Philip Jenvey added the comment:
Right, this is an intentional change in behavior in Python 3.1, non-decodable
characters are now decoded to utf8b (via the surrogateescape error handler).
The unicode string returned from getcwd furthermore can be passsed around to
other fs functions, they
Philip Jenvey added the comment:
Improved in r76640 / r76641 to explicitly mention this applies to
stdout/err=PIPE
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Philip Jenvey added the comment:
The original pure-python impl. of io accepted None, and still does. This
is a regression in C impl.
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue7
Changes by Philip Jenvey :
--
assignee: -> pjenvey
nosy: +pjenvey
versions: +Python 2.7, Python 3.2 -Python 2.5
___
Python tracker
<http://bugs.python.org/iss
Philip Jenvey added the comment:
fixed in r76337, r76338
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/iss
Philip Jenvey added the comment:
The test should skip when not hasattr(os, 'initgroups') since it's
optional
--
nosy: +pjenvey
___
Python tracker
<http://bugs.py
Philip Jenvey added the comment:
test_warnings is probably the best place since test_cmd_line ignores
environment variables
--
___
Python tracker
<http://bugs.python.org/issue7
Changes by Philip Jenvey :
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue7301>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Philip Jenvey :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue7240>
___
___
Python-bugs-list
Philip Jenvey added the comment:
Why are you flushing stdout? It's read-only and flush is for writing. This
behavior is dependent on the underlying platform's fflush, which really
*should* be raising EBADF when fflushing a read only file, anyway
--
nosy
Changes by Philip Jenvey :
--
nosy: +lemburg, loewis
___
Python tracker
<http://bugs.python.org/issue7146>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Philip Jenvey :
--
nosy: +vinay.sajip
___
Python tracker
<http://bugs.python.org/issue7120>
___
___
Python-bugs-list mailing list
Unsubscribe:
Philip Jenvey added the comment:
App engine shows up after every import statement, so it must have some
kind of import hook -- which can do evil things
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue7
Philip Jenvey added the comment:
FYI I've implemented a Windows command line parser for use by subprocess
on Jython, it's available here:
http://fisheye3.atlassian.com/browse/jython/trunk/jython/Lib/subprocess.
py?r=6636#l554
tests:
http://fisheye3.atlassian.com/browse/jython/tr
Philip Jenvey added the comment:
applied in r75143/r75144, in time for 2.6.3. thanks!
--
resolution: accepted -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Philip Jenvey added the comment:
Here's the doc change with a lil more clarification, and I've also applied
it to the module's own docs
--
Added file: http://bugs.python.org/file14996/subprocess-conversion-doc2.patch
___
Python
Philip Jenvey added the comment:
applied in r75123-r75127, including a backport to release25-maint
--
___
Python tracker
<http://bugs.python.org/issue6
Philip Jenvey added the comment:
Also I've tagged this as a (potential) security issue. E.g. if a web app
were affected, one user could potentially access another's data.
I actually noticed it in the Beaker sessioning/caching middleware (used by
Pylons and other web frameworks).
Philip Jenvey added the comment:
Great, though I think it still needs to deallocated:
Index: Modules/threadmodule.c
===
--- Modules/threadmodule.c (revision 75050)
+++ Modules/threadmodule.c (working copy)
@@ -244,7
New submission from Philip Jenvey :
When threading.local subclasses are cleared during a reference cycle the
local's internal key is nulled before the local is deallocated. That's a
problem because local only deletes its state (ldicts) from threads
during deallocation, and doesn&
Philip Jenvey added the comment:
Sorry, I meant the docs describing how to convert os.popen* calls to
subprocess calls. They assume the shell arg is always True regardless of
the cmd arg type. Those docs are probably the original source of this bug
Philip Jenvey added the comment:
The subprocess docs (in Doc/library/subprocess.rst and the module itself)
need to also reflect this change
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue5
Philip Jenvey added the comment:
Jython 2.5 behaves in the same way
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue6301>
___
___
Python-bug
New submission from Philip Jenvey :
It'd be nice to eventually standardize on the kwarg name used for basic
file-like args in the stdlib. print, warnings.showwarning and some
others take a file= argument whereas pprint, getpass.getpass take
stream=
print and pprint in particular should
New submission from Philip Jenvey :
_pyio.TextIOWrapper provides the encoding and associated errors values,
but _io._TextIOWrapper only provides encoding. Patch adds errors and has
it show up in repr in both places, against py3k
--
components: IO
files: textiowrapper-errors.diff
Philip Jenvey added the comment:
This looks like it was against Jython 2.2? Jython 2.5 passes 2.5's
test_optparse with only fixing __builtins__ and disabling the weakref test
So uses of __builtins__ should should be importing __builtin__ and use
that instead. sys.platform.startswith(
Philip Jenvey added the comment:
Exactly what command line are you passing to subprocess? Does stderr
contain anything?
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue6
Philip Jenvey added the comment:
subprocess also needs this fix applied
Does the w9xopen command line below not need this?
--
nosy: +pjenvey
___
Python tracker
<http://bugs.python.org/issue1559
Philip Jenvey added the comment:
They are the same file, namely your tty
Python 2.6 (r26:66714, Oct 8 2008, 22:16:30)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> impo
Philip Jenvey added the comment:
this and more applied in r72458
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue4351>
___
___
Py
Changes by Philip Jenvey :
--
title: Fix ptcp154 encoding cyrillic_asian alias -> [PATCH] Fix ptcp154
encoding cyrillic_asian alias
___
Python tracker
<http://bugs.python.org/issue1
New submission from Philip Jenvey :
Python 2.6's new msvc9compiler misbehaves when it can't find a compiler
(actually a utility of the missing compiler) in its query_vcvarsall() --
it raises an IOError instead of a typical distutils error
build tools expect a consistent set of
New submission from Philip Jenvey <[EMAIL PROTECTED]>:
This should be a stacklevel of 2 so we're told who accessed the attribute
--
components: Library (Lib)
files: gzip-deprecation_r67276.diff
keywords: patch
messages: 76031
nosy: pjenvey
severity: normal
status: open
ti
New submission from Philip Jenvey <[EMAIL PROTECTED]>:
The What's New doc is missing a few of these, I've added the ones
mentioned in PEP 361 that weren't already there.
I also corrected popen2's entry; it's always deprecated in 2.6, not just
in the 3.0 war
Changes by Philip Jenvey <[EMAIL PROTECTED]>:
--
title: distutils.sysconfig.get_python_lib prefix argument broken -> [PATCH]
distutils.sysconfig.get_python_lib prefix argument broken
___
Python tracker <[EMAIL PROTECTED]>
<http
New submission from Philip Jenvey <[EMAIL PROTECTED]>:
Python 2.5 added support for specifying a custom logging Formatter class
in logging configuration files. Handler classes can also be specified,
but your choice is limited to classes that live in the logging module.
A current work
New submission from Philip Jenvey <[EMAIL PROTECTED]>:
get_python_lib supports an optional prefix argument:
If 'prefix' is supplied, use it instead of sys.prefix or
sys.exec_prefix -- i.e., ignore 'plat_specific'.
However the NT and OS2 platforms don'
Philip Jenvey <[EMAIL PROTECTED]> added the comment:
Bob, all of the simplejson tests have actually been passing on Jython
trunk -- at least up until recently when you added a couple tests that
utilize the 2.4 decimal module.
I can also import simplejson.scanner with a recent build o
New submission from Philip Jenvey:
getpass (in particular _raw_input, used by unix_getpass and
default_getpass) prints out a password prompt to a stream (by default
stdout) but doesn't flush that stream. It assumes calling
sys.stdin.readline() to read the password causes stdout to be fl
New submission from
Philip Jenvey
:
tell() will skip the next LF (after a CR sets f_skipnextlf) when
universal newline support is enabled; essentially doing part of the work
of read(). However it does not identify CRLF as
Changes by
Philip Jenvey
:
--
type: -> behavior
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Philip Jenvey
added the comment:
make that against r58227
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
99 matches
Mail list logo