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_REUSEPORT fa
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 <rep...@bugs.python.org>
<http://bugs.p
Philip Jenvey added the comment:
See issue26800 for reasoning to go with #4
--
nosy: +pjenvey
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
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://mail.python.org
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__
Changes by Philip Jenvey pjen...@underboss.org:
--
keywords: +patch
Added file: http://bugs.python.org/file34751/issue21173-test.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21173
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 what additions
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19516
___
___
Python-bugs-list
Philip Jenvey added the comment:
and the code module (after #17442 is resolved)
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
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 rep...@bugs.python.org
http://bugs.python.org/issue17442
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)
messages
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17032
___
___
Python-bugs-list
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)
messages: 181990
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 tracker rep...@bugs.python.org
Philip Jenvey added the comment:
Hey Ezio, you forgot to attach the patch
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16835
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 latest patch seems
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 rep...@bugs.python.org
http://bugs.python.org
Philip Jenvey added the comment:
zipimport
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16651
___
___
Python-bugs-list mailing
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 actually has a slow
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.2.1 (Apple
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:
Sorry Brett, beat you to it w/ #16389 =P
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16390
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 rep...@bugs.python.org
http://bugs.python.org/issue16336
New submission from Philip Jenvey pjen...@underboss.org:
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
Philip Jenvey pjen...@underboss.org added the comment:
attached a fix for review
--
keywords: +patch
Added file: http://bugs.python.org/file26383/lengthhint-fix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15354
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org
http://bugs.python.org/issue14609
Philip Jenvey pjen...@underboss.org added the comment:
iter(range(1)) should also see a speedup because range's iter supports
__length_hint__
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14126
Philip Jenvey pjen...@underboss.org added the comment:
I think you want to decref the result of PyObject_Repr after the fact, too
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14161
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: -pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
___
Python-bugs-list
Philip Jenvey pjen...@underboss.org added the comment:
Actually 10.5 was the last PowerPC release
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
Philip Jenvey pjen...@underboss.org 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 rep
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13903
___
___
Python-bugs-list
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org
http://bugs.python.org
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org added the comment:
2.5 is done
http://mail.python.org/pipermail/python-committers/2011-October/001844.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13512
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org added the comment:
It probably still needs to catch OSErrors which my patch doesn't do
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13512
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org 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 rep
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8685
___
___
Python-bugs-list
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: -pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10073
___
___
Python-bugs-list
Philip Jenvey pjen...@underboss.org 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
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9988
___
___
Python-bugs-list
Philip Jenvey pjen...@underboss.org 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
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9992
___
___
Python-bugs-list
Philip Jenvey pjen...@underboss.org 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
status: open - closed
Philip Jenvey pjen...@underboss.org added the comment:
py3k should be taken care of as of r80066+r80075
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7301
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org
http
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org
http://bugs.python.org
Philip Jenvey pjen...@underboss.org added the comment:
applied in r79878 - r79881, thanks!
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7301
Philip Jenvey pjen...@underboss.org 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
Philip Jenvey pjen...@underboss.org added the comment:
Improved in r76640 / r76641 to explicitly mention this applies to
stdout/err=PIPE
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org
http://bugs.python.org/issue7349
Philip Jenvey pjen...@underboss.org added the comment:
The test should skip when not hasattr(os, 'initgroups') since it's
optional
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7333
Philip Jenvey pjen...@underboss.org added the comment:
fixed in r76337, r76338
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1757126
Changes by Philip Jenvey pjen...@underboss.org:
--
assignee: - pjenvey
nosy: +pjenvey
versions: +Python 2.7, Python 3.2 -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7334
Philip Jenvey pjen...@underboss.org added the comment:
test_warnings is probably the best place since test_cmd_line ignores
environment variables
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7301
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7301
___
___
Python-bugs-list
Changes by Philip Jenvey pjen...@underboss.org:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7240
Philip Jenvey pjen...@underboss.org 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: +pjenvey
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +lemburg, loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7146
___
___
Python-bugs
Philip Jenvey pjen...@underboss.org 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 rep...@bugs.python.org
http
Changes by Philip Jenvey pjen...@underboss.org:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7120
___
___
Python-bugs-list
Philip Jenvey pjen...@underboss.org 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
New submission from Philip Jenvey pjen...@users.sourceforge.net:
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
Philip Jenvey pjen...@users.sourceforge.net 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 rep...@bugs.python.org
http
Philip Jenvey pjen...@users.sourceforge.net 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 pjen...@users.sourceforge.net added the comment:
Jython 2.5 behaves in the same way
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6301
New submission from Philip Jenvey pjen...@users.sourceforge.net:
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
New submission from Philip Jenvey pjen...@users.sourceforge.net:
_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
Philip Jenvey pjen...@users.sourceforge.net 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
Philip Jenvey pjen...@users.sourceforge.net added the comment:
subprocess also needs this fix applied
Does the w9xopen command line below not need this?
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1559298
Philip Jenvey pjen...@users.sourceforge.net added the comment:
Exactly what command line are you passing to subprocess? Does stderr
contain anything?
--
nosy: +pjenvey
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6107
Philip Jenvey pjen...@users.sourceforge.net 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.
import os, sys
[os.ttyname
Philip Jenvey pjen...@users.sourceforge.net added the comment:
this and more applied in r72458
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4351
Changes by Philip Jenvey pjen...@users.sourceforge.net:
--
title: Fix ptcp154 encoding cyrillic_asian alias - [PATCH] Fix ptcp154
encoding cyrillic_asian alias
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1757126
New submission from Philip Jenvey pjen...@users.sourceforge.net:
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
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
title: [PATCH
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 warnings mode
--
assignee
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't use the prefix argument when
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 workaround
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://bugs.python.org/issue3386
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 of pypy, so
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 flushed
Philip Jenvey
added the comment:
make that against r58227
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1188
Changes by
Philip Jenvey
:
--
type: - behavior
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1188
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
94 matches
Mail list logo