New submission from Eric Snow:
In changeset 88c3a1a3c2ff you'll find in test_api.py where I threw together a
__path__ to compare against the one I was getting (which had 2 identical
entries) on my Ubuntu 12.04 workstation. The XP buildbot
Eric Snow added the comment:
Windows looks happy now. I'll look into the duplicate portions separately in
issue19469.
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19413
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19413
___
___
paul j3 added the comment:
When you add an argument, argparse creates an `Action`, and returns it. It
also places that action in various lists (e.g. parse._actions) and
dictionaries. A `remove_argument` function would have to trace and remove all
of those links. That's a non-trivial task.
Vajrasky Kok added the comment:
Attached the *preliminary* patch to address R. David Murray's request.
It does not address the case where we send raw utf-8 bytes to payload. Maybe we
should handle that in different ticket.
msg.set_payload(b'\xd0\x90\xd0\x91\xd0\x92') == chucks
--
hhm added the comment:
(see also http://bugs.python.org/issue5871)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19470
___
___
Python-bugs-list
New submission from hhm:
An email.header.Header object should not allow two consecutive newlines, since
this terminates interpretation of headers and starts the body section. This can
be exploited by an attacker in a case of user input being used in headers, and
validated with the Header
New submission from Russell Jurney:
Python 2.7.6 RC1 on Mac OS X Mavericks 10.9 results in segfault when accessing
a Pandas DataFrame. Same problem as in 2.7.5.
See
http://stackoverflow.com/questions/19722580/segfault-with-pandas-with-python-v2-7-6-rc1-on-mac-os-x-10-9
--
messages:
Changes by Vajrasky Kok sky@speaklikeaking.com:
--
nosy: +r.david.murray, vajrasky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19470
___
___
Ezio Melotti added the comment:
This is probably a duplicate of #18458.
--
nosy: +ezio.melotti, ned.deily, ronaldoussoren
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - interactive interpreter crashes and test_readline fails on OS X
10.9
Russell Jurney added the comment:
I have installed 2.7.6 RC1 on OS X 10.9, and this bug still exists. See
http://stackoverflow.com/questions/19722580/segfault-11-with-pandas-with-python-v2-7-6-rc1-on-mac-os-x-10-9
--
nosy: +Russell.Jurney
___
Python
Changes by hhm heehooman+bugspyt...@gmail.com:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19470
___
___
Changes by Charles-François Natali cf.nat...@gmail.com:
Added file: http://bugs.python.org/file32448/subprocess_selectors-2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18923
___
Charles-François Natali added the comment:
There are actually two reasons to choosing poll over epoll/kqueue
(i.e. no extra FD):
- it's a bit faster (1 syscall vs 3)
- but more importantly - and that's the main reason I did it in
telnetlib/multiprocessing/subprocess - sometimes, you really don't
Artem Ustinov added the comment:
Paul,
essentialy, what i looking for is to replace the 'help' string of the
inherited argument with the new one. If you say it could be changed without
any effect so what would be the proper way to do it using argparse?
Artem
--
New submission from Marco Buttu:
I was looking at inspect.getsource(). In Python 3.3 and 3.4 either the
docstring and the online doc say it raises a OSError, and in fact:
import inspect
def foo():
... pass
...
inspect.getsource(foo)
Traceback (most recent call last):
...
OSError:
Richard Oudkerk added the comment:
Given PEP 446 (fds are now CLOEXEC by default) I prepared an updated patch
where the fork lock is undocumented and subprocess no longer uses the fork
lock. (I did not want to encourage the mixing of threads with fork() without
exec() by exposing the fork
New submission from Brett Cannon:
People seem to be sensitive enough to stat calls that exposing the cache
validation check in FileFinder so it can be overridden to effectively turn it
off would be useful to power users.
--
components: Library (Lib)
messages: 201893
nosy: brett.cannon
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19473
___
___
Roundup Robot added the comment:
New changeset 599b5200ad51 by Tim Golden in branch 'default':
Issue #19464 Suppress compiler warnings during clean. Patch by Zachary Ware.
http://hg.python.org/cpython/rev/599b5200ad51
--
nosy: +python-dev
___
Python
Stefan Krah added the comment:
Since this is tagged crash, I'm curious if you managed to crash
_decimal. The unhandled return in convert_op_cmp should result in
AtrributeError(object does not have a numerator attribute).
The exception that wasn't set in dec_format should result in a
wrong
Nick Coghlan added the comment:
+1, works for me :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19331
___
___
Python-bugs-list mailing list
Changes by Tim Golden m...@timgolden.me.uk:
--
assignee: - tim.golden
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10197
___
R. David Murray added the comment:
I'm not sure how appropriate it is to validate a header using the Header
object. Header is for *composing* internationalized headers, and does no
validation to speak of. However, if you'd like to write a patch to add this
check, I would probably commit it,
Charles-François Natali added the comment:
Given PEP 446 (fds are now CLOEXEC by default) I prepared an updated patch
where the fork lock is undocumented and subprocess no longer uses the fork
lock. (I did not want to encourage the mixing of threads with fork() without
exec() by exposing
Claudiu.Popa added the comment:
Here's the new version which addresses your last comment. Regarding the first
issue, I don't believe that the result will be as readable (but I agree with
you that it will be better). For instance, `items` will probably look like this:
try:
return
Changes by Brett Cannon br...@python.org:
--
dependencies: +Restore empty string special casing in
importlib.machinery.FileFinder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18810
___
New submission from Brett Cannon:
In the curses module there are some variables that can go uninitialized which
are causing clang to complain:
/Users/bcannon/Repositories/cpython/default/Modules/_cursesmodule.c:624:17:
warning: variable
'x' is used uninitialized whenever 'if' condition
Changes by Robert Xiao nneon...@gmail.com:
Removed file: http://bugs.python.org/file32320/readline.so
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
Robert Xiao added the comment:
Russell, that's not related to readline. Please file a new bug report.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
Roundup Robot added the comment:
New changeset 17d730d37b2f by Brett Cannon in branch 'default':
Issue #19410: Put back in special-casing of '' for
http://hg.python.org/cpython/rev/17d730d37b2f
--
nosy: +python-dev
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19410
___
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18810
___
Brett Cannon added the comment:
Wrong issue
--
dependencies: -Restore empty string special casing in
importlib.machinery.FileFinder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18810
___
Brett Cannon added the comment:
I'm going to go ahead and close this. I think the optimistic change is the only
one worth making since it's backwards-compatible.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18810
Guido van Rossum added the comment:
Hm. If you really are going to create 300 instances, you should probably
use asyncio. Otherwise, how are you going to multiplex them? Create 300
threads each doing select() on 1 FD? That sounds like a poor architecture
and I don't want to bend over backwards
STINNER Victor added the comment:
I don't have the gdb trace anymore but it was really a crash.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19437
___
Tim Golden added the comment:
Patched according to Nick Coghlan's suggestion in
http://bugs.python.org/issue9922#msg150093. Ad hoc tests look ok on Windows.
I'll add tests look at *nix later.
--
Added file: http://bugs.python.org/file32450/issue10197.diff
STINNER Victor added the comment:
The PEP 446 does not offer any warranty on the atomicity on clearing the
inheritable flag.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16500
___
Charles-François Natali added the comment:
Of course, when I have 300 connections to remote nodes, I use poll()
to multiplex between them.
But there are times when you can have a large number of threads
running concurrently, and if many of them call e.g.
subprocess.check_output() at the same
Changes by Brett Cannon br...@python.org:
--
resolution: - duplicate
status: open - closed
superseder: - Expose mtime check in importlib.machinery.FileFinder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19473
Zachary Ware added the comment:
That appears to be the case:
P:\Projects\OSS\Python\cpython\ $ chcp
Active code page: 437
P:\Projects\OSS\Python\cpython\ $ PCbuild\python_d.exe
Python 3.4.0a4+ (default:995173ed248a+, Nov 1 2013, 09:12:43) [MSC v.1600 32
bit (Intel)] on win32
Type help,
Richard Oudkerk added the comment:
It is a recent kernel and does support pipe2().
After some debugging it appears that a pipe handle created in Popen.__init__()
was being leaked to a forked process, preventing Popen.__init__() from
completing before the forked process did.
Previously the
paul j3 added the comment:
Just hang on the Action object that the `add_argument` returned, and change its
`help` attribute.
a = parser.add_argument('--foo', help='initial help')
a.help = 'new help'
If using a custom parser class and subclass, I'd do something like:
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: -python-dev
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19331
___
Barry A. Warsaw added the comment:
Thanks Ethan, your latest patch is wonderful. Applied!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19331
___
Roundup Robot added the comment:
New changeset 1a40d4eaa00b by Barry Warsaw in branch 'default':
Ethan Furman's latest patch for Issue 19331.
http://hg.python.org/peps/rev/1a40d4eaa00b
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Christian Heimes added the comment:
Thanks for the feed back! The new patch implements a class with two additional
class methods. The low level functions are no longer part of the public API.
--
Added file: http://bugs.python.org/file32451/ssl_asn1obj2.patch
New submission from Skip Montanaro:
I have a CSV file. Here are a few rows:
2013-10-30 14:26:46.000528,1.36097023829
2013-10-30 14:26:46.999755,1.36097023829
2013-10-30 14:26:47.999308,1.36097023829
2013-10-30 14:26:49.002472,1.36097023829
2013-10-30 14:26:50,1.36097023829
2013-10-30
Ezio Melotti added the comment:
See #7342.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19475
___
___
Python-bugs-list
Ned Deily added the comment:
No, this does not fit the signature of Issue18458, which is fixed in 2.7.6rc1
anyway. On the other hand, it is not likely that this is a problem in Python
or its standard library. Pandas uses numpy and other third-party packages that
contain C code. It's much
Ned Deily added the comment:
Googling around a bit, there was another report of this problem that includes
OS X crash stack traces. The crash there occurred in umath.so, a part of Numpy
and that leads to a now-resolved bug in Numpy.
https://github.com/pydata/pandas/issues/5396
R. David Murray added the comment:
It may be simple but as Ezio has pointed out, it has already been rejected :)
The problem with being generous in what you accept in this context is that the
parsing is using a specific format string, and the semantics of that format
string are based on
New submission from Eric Snow:
In recent PEP 451-related discussions, the subject of reloading has come up
multiple times. Most recently, PJE suggested that reload semantics are
under-specified (and under-tested). [1][2]
It may be worth adding a dedicated section on reloading to the
Skip Montanaro added the comment:
I don't accept your conclusion. I understand that making %S consume
microseconds or .%f be optional would be a load. What's the problem with
forcing __str__ and isoformat to emit microseconds in all cases though? That
would allow you to parse what they
R. David Murray added the comment:
It's not my conclusion. It's Guido's and the other developers who designed
datetime. Argue with them. (I'd guess it would be better argued on
python-ideas rather than python-dev, but use your own judgement.)
--
status: open - closed
Brett Cannon added the comment:
So I tried extracting out the check by implementing a path_mtime() method on
FileFinder, but then I realized it would simply be easier to abstract out
_os.stat() to _path_stat() and let people cache stat calls at the global level,
which would have a side-effect
Christian Heimes added the comment:
New information on NIST's hash forum strongly suggest that NIST is going to
standardize SHA-3 according to the original proposal with c=2n and Sakura
padding as well as two SHAKEs with variable length output.
SHA3-224 with c=448
SHA3-256 with c=512
SHA3-384
Tim Peters added the comment:
The decision to omit microseconds when 0 was a Guido pronouncement, back when
datetime was first written. The idea is that str() is supposed to be friendly,
and for the vast number of applications that don't use microseconds at all,
it's unfriendly to shove
Skip Montanaro added the comment:
Okay, so no to __str__. What about isoformat?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19475
___
___
Brett Cannon added the comment:
Won't work until PEP 451 code lands and lets us drop __package__/__loader__
checking/setting post-load.
--
dependencies: +Implementation for PEP 451 (importlib.machinery.ModuleSpec)
___
Python tracker
Tim Peters added the comment:
I don't know, Skip. Since `.isoformat()` and `str()` have *always* worked this
way, and that was intentional, it's probably going to take a strong argument to
change either.
--
___
Python tracker
Guido van Rossum added the comment:
Well, I don't know if this sways anything, but I was probably responsible, and
I think my argument was something about not all timestamp sources having
microseconds, and not wanting to emit the .00 in that case. If I could go
back I'd probably do
New submission from Stefan Behnel:
The tp_print slot is still documented as it was in Py2, although it is no
longer used in Py3.
http://docs.python.org/3.4/c-api/typeobj.html?highlight=tp_print#PyTypeObject.tp_print
Given that it no longer serves any purpose, it should at least be deprecated
Skip Montanaro added the comment:
The ultimate culprit here is actually the csv module. :-) It calls str() on
every element it's about to write. In my applications which write to CSV files
I can special case datetime objects.
I will stop swimming upstream.
--
R. David Murray added the comment:
I suppose in an ideal world the csv module would have some sort of hookable
serialization protocol, like the database modules do :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19475
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18864
___
New submission from Marc Liyanage:
I'm running Python 2.7 in a sandboxed OS X app. There are restrictions on the
naming of POSIX semaphores when running in the sandbox. Specifically, there is
a mandatory prefix.
I would like the ability to inject this prefix into the part of the
Marc Liyanage added the comment:
leasing - leading
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19478
___
___
Python-bugs-list mailing list
Marc Liyanage added the comment:
I'm thinking something along the lines of
char *env = Py_GETENV(PYTHONSEMAPHOREPREFIX);
if (env *env != '\0') {
PyOS_snprintf(buffer, sizeof(buffer), %s/mp%ld-%d, env,
(long)getpid(), counter++);
} else {
PyOS_snprintf(buffer,
Changes by Ned Deily n...@acm.org:
--
nosy: +ned.deily, ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19478
___
___
Ned Deily added the comment:
I don't have any experience using OS X sandboxing yet but I wonder whether
there are other instances of semaphores or other resources used elsewhere in
the standard library that would benefit from a common solution.
--
Marc Liyanage added the comment:
From the description above, I would guess shared memory names as well, but I
don't know which parts of the Python library use those, if any.
In general, it's easy to adjust the Python code to deal with the restriction of
the sandboxed environment (mostly
Richard Oudkerk added the comment:
Although it is undocumented, in python 3.4 you can control the prefix used by
doing
multiprocessing.current_process()._config['semprefix'] = 'myprefix'
in the main process at the beginning of the program.
Unfortunately, this will make the full prefix
Changes by Claudiu.Popa pcmantic...@gmail.com:
Added file: http://bugs.python.org/file32453/dbm_dumb1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19385
___
Marc Liyanage added the comment:
Great to hear that this is mostly supported in 3.4. I would definitely like to
see the small change added that lets me insert a string before the leading
slash.
It would also be helpful to have it in Python 2.7 as well.
--
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15873
___
___
Python-bugs-list
Terry J. Reedy added the comment:
As I understand Guido's message, he reopened this to consider adding a new
parameter.
Given an existing csv file like that given, either Tim's solution or
try: parse with microseconds
except ValueError: parse without
should work.
--
nosy: +terry.reedy
Claudiu.Popa added the comment:
And the patch.
--
keywords: +patch
Added file: http://bugs.python.org/file32455/dbm_dumb_open.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18039
___
Claudiu.Popa added the comment:
Here's a patch which adds support for the `n` value of the flag. It makes the
dbm consistent across implementations and it's thus more reliable.
Also, attached a script which replicates the problem for Windows (where
dbm.dumb is used).
My output (after a
Eric Snow added the comment:
Here's a new patch that is mostly up to date with the PEP. I still need to
work on Docs and add more tests. There are a few failing tests (due to the
recent reload patch) that I need to fix when I get a minute.
This patch also implements find_spec() on
Changes by Eric Snow ericsnowcurren...@gmail.com:
Removed file: http://bugs.python.org/file32408/modulespec-primary-changes.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18864
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
Added file: http://bugs.python.org/file32457/modulespec-primary-changes.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18864
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
Removed file: http://bugs.python.org/file32456/modulespec-primary-changes.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18864
___
Terry J. Reedy added the comment:
The test should use the more specific assertXyz method:
self.assertIn(pprint.cover, files)
The error message would then be the more informative
AssertionError: 'pprint.cover' not found in files listed
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
Is the patch against 3.4? I am not sure if we backport new test files.
--
components: +Tests
nosy: +terry.reedy
stage: - patch review
title: bdb test coverage - Add tests for bdb (previously not tested)
type: - enhancement
versions: +Python 3.4
Terry J. Reedy added the comment:
Does all of the code for say, BdbTestCase.setUp, need to be repeated for each
test method, versus being put in a .setUpClass method to be executed just once
for all the methods in BdbTestCase.
--
___
Python tracker
Terry J. Reedy added the comment:
The 3.4 urllib.parse.urlparse doc says The module has been designed to match
the Internet RFC on Relative Uniform Resource Locators. It supports the
following URL schemes: list of 24, including 'file:'.
To me, 'support' means 'accept every valid URL for the
Ned Deily added the comment:
Here are my review comments (sorry, no Rietveld):
ensurepip/__init__.py
-
Why have the separate _run_pip function? It would be simpler and less
confusing to just merge run_pip into bootstrap and eliminate the extra for
loop. Both depend on
Ned Deily added the comment:
I suppose the changes could be isolated to just ensurepip if it used a
temporary dir for the scripts and then moved the appropriate ones itself to the
standard scripts directory.
--
___
Python tracker
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19456
___
___
Python-bugs-list
Ned Deily added the comment:
Just for the record, here's what the installed ./lib/python3.4/site-packages
looks like after ensurepip has run:
-rw-r--r-- 1 nad pyd 119 Nov 1 15:20 README
drwxr-x--- 2 nad pyd 204 Nov 1 15:21 __pycache__/
drwxr-x--- 3 nad pyd 170 Nov 1
Donald Stufft added the comment:
The .pya thing is an experimental extension type that setuptools added that
just got missed during the new features to generate scripts during wheel
install vs wheel build time. I opened a bug to remove that and it'll be gone
before 1.5 is released.
I can fix
Donald Stufft added the comment:
Oh one thing, I can't move anything out of _run_pip because the part you're
referring to is actually modifying the sys.path. If I move it then I can't
prevent the tests from having side effects.
--
___
Python
Donald Stufft added the comment:
Oh nevermind, I understand now. I misread the statement. I can do that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19406
___
Donald Stufft added the comment:
Attached is the second combined2 patch with Ned's feedback incorporated.
For anyone testing this the patch does not contain the binary files which can
be found at
https://github.com/dstufft/cpython/blob/ensurepip/Lib/ensurepip/_bundled/.
--
Added
Nick Coghlan added the comment:
The install everything approach is OK for Windows and virtual
environments. The challenge is the shared bin directories on *nix systems.
Perhaps pip itself could be updated such that it installs the bare pip
only if sys.executable matches shutil.which(python)? At
Ned Deily added the comment:
Without digging deeper, I'd be a little cautious about using a test involving
sys.executable and shutil.which. sys.executable in the past at least was not
always what you might think in certain cases with OS X framework installs.
--
Geraldo Xexeo added the comment:
The same program will behave different in Windows and Mac.
utf-8 works on Mac (10.6.8), cp1256 does not print some lines
cp1256 works on Windows 7, utf-8 prints some characters in a wrong way
For the record, I use accentuated letters from Portuguese alphabet (
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19411
___
___
Python-bugs-list
1 - 100 of 104 matches
Mail list logo