Chris Jerdonek added the comment:
Are there any comments on the patch from the PEP 1 authors? PEP 1 says that I
should assign this to one of the PEP authors. Any takers, or is this something
I can commit on the authors' behalf?
--
___
Python
Andrew Svetlov added the comment:
I think that usage is not officially supported, so we cannot grant this way
will work forever.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16123
___
Andrew Svetlov added the comment:
Patch is welcome!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15346
___
___
Python-bugs-list mailing list
New submission from Vinay Sajip:
ChainMap.new_child could IMO be improved through allowing an optional dict to
be passed, which is used to create the child. The use case is that you
sometimes need to temporarily push a new non-empty mapping in front of an
existing chain. This could be
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16612
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8865
___
___
Python-bugs-list
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12268
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16602
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14913
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14728
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14743
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16180
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13044
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14912
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16482
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9633
___
___
Python-bugs-list
Jesús Cea Avión added the comment:
FreeBSD Buildbot has been updated to 9.1, and the issue is solved. This was
clearly a 9.0 kernel bug.
Closing bug as Invalid.
Thanks for triaging this, Koobs.
--
resolution: - invalid
status: open - closed
___
Changes by Jesús Cea Avión j...@jcea.es:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16605
___
___
koobs added the comment:
I have just upgraded the buildbot host to FreeBSD 9.1-RELEASE and cannot see
failures in the 3.x and 3.3 branches over the last couple of builds.
I have been unable to isolate the commit that fixed it, but the relevant
revision log is here if anybody wants to cast an
Stefan Krah added the comment:
I think this commit broke the --without-threads buildbot:
http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/3581/steps/test/logs/stdio
--
nosy: +skrah
___
Python tracker
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15745
___
___
Python-bugs-list mailing list
Jesús Cea Avión added the comment:
Doing ./python Lib/test/regrtest.py test_os for current default in Solaris
10 Update 10, I don't see any test failure. I have run it 10.000 times.
I can't reproduce this.
What Solaris 10 version are you using, Trent?
--
Andrew Svetlov added the comment:
Will take a look.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13120
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset 26056f8a0afe by Andrew Svetlov in branch '3.2':
Skip pdb test for #13120 if threading is not available.
http://hg.python.org/cpython/rev/26056f8a0afe
New changeset 328a8824c1a7 by Andrew Svetlov in branch '3.3':
Merge: skip pdb test for #13120 if
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16612
___
___
New submission from Michael Edwards:
When running parse_args, ArgumentParser is liberal in accepting parameters.
Partial matches will be accepted as arguments
(in the included example, --test bob, --tester bob, --testers bob all set the
testers argument)
Perhaps this is documented, but it
Changes by Jesús Cea Avión j...@jcea.es:
--
resolution: fixed -
stage: committed/rejected - patch review
status: closed - open
type: compile error -
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16588
Changes by Jesús Cea Avión j...@jcea.es:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
type: - compile error
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16588
Roundup Robot added the comment:
New changeset 0adfbafe8a99 by Jesus Cea in branch '2.7':
Closes #16588: Silence unused-but-set warnings in Python/thread_pthread.h
http://hg.python.org/cpython/rev/0adfbafe8a99
--
___
Python tracker
Andrew Svetlov added the comment:
Failed test is skipped if there are no threads.
Thanks for report, Stefan!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13120
___
Jesús Cea Avión added the comment:
Spin-off of Issue #16588.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16615
___
___
Python-bugs-list
New submission from Jesús Cea Avión:
GCC 4.7 is showing some compilation warning about setting variables never read.
--
assignee: jcea
messages: 176984
nosy: jcea
priority: normal
severity: normal
status: open
title: gcc 4.7 unused-but-set warnings
type: compile error
versions: Python
R. David Murray added the comment:
It is both documented
(http://docs.python.org/dev/library/argparse.html#argument-abbreviations) and
an important feature.
I thought there was an enhancement request in this tracker for making the
behavior optional, but I couldn't find it when I looked, so
Changes by Xavier de Gaye xdeg...@gmail.com:
--
nosy: +xdegaye
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13328
___
___
Python-bugs-list
Changes by Xavier de Gaye xdeg...@gmail.com:
--
nosy: +xdegaye
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16596
___
___
Python-bugs-list
Changes by Jesús Cea Avión j...@jcea.es:
--
assignee: jcea -
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16615
___
___
Andrew Svetlov added the comment:
Do we need to fix it at all?
On finalizing pdb can stop working at some time, but debugging on finalization
stage can be still useful in certain cases.
Xavier, your proposition noticeably changes current behavior as I understand it.
For now set_trace() works
Pekka Klärck added the comment:
It seems that joining UNC path to a directory root fails:
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2] on linux2
Type help, copyright, credits or license for more information.
from ntpath import join
join('c:\\', 'server\\mount\\dir')
New submission from Richard Oudkerk:
PollTests.poll_unit_tests() is not run because its method name does not begin
with test. It looks it was accidentally disabled when test_poll() was
converted to unittest in f56b25168142.
Renaming it test_poll_unit_tests() makes it run successfully (at
Changes by Dave Malcolm dmalc...@redhat.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15516
___
___
New submission from Vladimir Kotulskiy:
File C:\DevTools\Python27\lib\mimetypes.py, line 355, in init
db.read_windows_registry()
File C:\DevTools\Python27\lib\mimetypes.py, line 259, in
read_windows_registry
for ctype in enum_types(mimedb):
File
New submission from Serhiy Storchaka:
glob ignores names which starts with dot if pattern is not starts with dot. But
this is wrong for bytes pattern in Python 3.
import glob
glob.glob('*hg')
[]
glob.glob(b'*hg')
[b'.hg']
The proposed patch fixes this inconsistency. Also it contains new
Serhiy Storchaka added the comment:
Python 2.7 is not needed the fix, however additional tests can be useful. Here
is a patch.
--
components: +Tests
versions: +Python 2.7
Added file: http://bugs.python.org/file28212/glob_tests-2.7.patch
___
Python
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16602
___
___
Python-bugs-list mailing list
Xavier de Gaye added the comment:
On finalizing pdb can stop working at some time, but debugging on
finalization stage can be still useful in certain cases.
Agreed that debugging on finalization stage is useful. Debugging on
finalization stage does not seem to work though:
Amaury Forgeot d'Arc added the comment:
This is a duplicate of issue9291.
--
nosy: +amaury.forgeotdarc
resolution: - duplicate
status: open - closed
superseder: - mimetypes initialization fails on Windows because of non-Latin
characters in registry
Chris Jerdonek added the comment:
David, is issue 14910 the one you were thinking of?
--
nosy: +chris.jerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16614
___
Serhiy Storchaka added the comment:
Here is a patch which implements recursive globbing which conforms to Bash
globbing with globstar option.
For backward compatibility recursive globbing off by default and works only if
new argument recursive is true (default is False). I am not sure this is
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16618
___
___
Python-bugs-list mailing list
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +Michael.Edwards
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14910
___
___
R. David Murray added the comment:
It is indeed. And it even has a patch. Don't know how I missed it.
--
resolution: - duplicate
stage: needs patch - committed/rejected
superseder: - argparse: disable abbreviation
___
Python tracker
Serhiy Storchaka added the comment:
Test should check changed behavior. I.e. it should test that calling poll
concurrently raises an exception.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8865
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16597
___
___
Python-bugs-list mailing list
New submission from Bruno Dupuis:
We found some strange behaviour of the compiler in this discussion on
python-list:
http://mail.python.org/pipermail/python-list/2012-December/636104.html
The fact is, `return` and `return None` result in inconsistent bytecode
depending on the context.
Serhiy Storchaka added the comment:
It is good, if stdlib has function for escaping any special characters, even if
this function is simple. There are already escape functions for re and
sgml/xml/html.
Private function glob.glob1 used in Lib/msilib and Tools/msi to prevent
unexpected
New submission from Serhiy Storchaka:
Private function glob.glob1() used in Lib/msilib and Tools/msi to prevent
unexpected globbing in parent directory name. ``glob.glob1(dirname, pattern)``
should be replaced by ``glob.glob(os.path.join(fnmatch.escape(dirname),
pattern)`` in external code.
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Add a function to escape metacharacters in glob/fnmatch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16620
___
New submission from Carlos Ferreira:
The sched module available in the Python core lacks a simple but very useful
which is waiting for new events scheduling.
Current version only process events that are present in the queue before the
schedule.run() is issued or for events that are schedule
Serhiy Storchaka added the comment:
See also issue16165.
--
nosy: +serhiy.storchaka
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16621
___
Changes by Antoine Pitrou pit...@free.fr:
--
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13390
___
___
Changes by Carlos Ferreira carlosmf...@gmail.com:
Removed file: http://bugs.python.org/file28214/sched2.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16621
___
Carlos Ferreira added the comment:
Sorry, wrong file issued before...
--
Added file: http://bugs.python.org/file28215/sched2.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16621
___
Antoine Pitrou added the comment:
Here is an updated patch.
test_ctypes still leaks memory blocks with it:
$ ./python -m test -R 3:8 test_ctypes
[1/1] test_ctypes
beginning 11 repetitions
12345678901
...
test_ctypes leaked [2, 2, 1, 1, 1, 1, 1, 1] memory blocks, sum=10
--
nosy:
Jesús Cea Avión added the comment:
Seek can be very cheap. Anybody could actually measure it???
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16569
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16601
___
___
Python-bugs-list mailing list
Matthew Barnett added the comment:
The same problem occurs with both `False` and `True`.
--
nosy: +mrabarnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16619
___
Bruno Dupuis added the comment:
To me, the whole issue is at line ~ 480 in peehole.c in the
LOAD_NAME/LOAD_GLOBAL switch case.
This explains the difference between `return` and `return None` as the former
is actually compiled to LOAD_CONST. OTOH, `return None` has to pass the optim
pass to
Bruno Dupuis added the comment:
line 426 in peehole.c :
if (codestr[codelen-1] != RETURN_VALUE)
goto exitUnchanged;
before the optim. I'm quite sure it's here. i patch and see...
--
___
Python tracker rep...@bugs.python.org
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16619
___
___
Python-bugs-list mailing
New submission from Steve OBrien:
Working in IDLE on Mac OSX 10.8 when I type a parentheses IDLE crashes.
Here is the output of the crash report:
Process: Python [60507]
Path:/Applications/Python 3.3/IDLE.app/Contents/MacOS/Python
Identifier: org.python.IDLE
Version:
Changes by Chris Kaynor ckay...@zindagigames.com:
--
nosy: +DragonFireCK
versions: +Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16619
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16619
___
___
Python-bugs-list
Bruno Dupuis added the comment:
This first patch spots the issue, but doesn't solve it if the bytecode of the
function is 32700 (see PyCode_Optimize comment). However with this patch, we
get the LOAD_CONST anytime for None, True and False.
There is two questions :
1- is it safe to strip all
New submission from Roy Smith:
Running this code:
---
import argparse
p = argparse.ArgumentParser()
p.add_argument('--foo',
help=u'This is a very long help string. ex:
--s3\u00A0s3://my.bucket/dir1/dir2')
p.parse_args()
Terry J. Reedy added the comment:
(2.6 is security fix only)
Stripping truly dead code after return is really tricky in general because
a) it might be in a conditional block, and
b) unreachable yield and assignment can affect compilation.
Assignments that make names local are detected on a
New submission from Zack Weinberg:
subprocess.check_output calls Popen.communicate but does not allow you to
specify its argument (i.e. data to send to the child process's stdin). It
would be nice if it were enhanced to allow this. Proposed patch attached (to
the 2.7 subprocess.py; should
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +chris.jerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16623
___
___
Roger Serwy added the comment:
Steve, please verify that you are using the correct version of Tkinter with
IDLE. See http://www.python.org/download/mac/tcltk/
--
nosy: +ned.deily, serwy
___
Python tracker rep...@bugs.python.org
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16619
___
___
Python-bugs-list
Steve OBrien added the comment:
I have tried both 8.5.11.1 and 8.5.11.2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16622
___
___
Bruno Dupuis added the comment:
We definitely need to put the code that loads constants with LOAD_CONST out of
the optimization code. It's not optim, it's a language feature: None *is* a
'singleton' constant.
I'm trying to figure out how to change compile.c to achieve this, as it's my
first
Benjamin Peterson added the comment:
Here's what I think we should do for 3.4. Nick, care to commment?
--
Added file: http://bugs.python.org/file28219/const-node.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16619
Benjamin Peterson added the comment:
Wouldn't it be easier to write a Python class that raises an error from
__int__() but succeeds in __long__()?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
Roger Serwy added the comment:
This looks like a duplicate of issue16177, but for version 3.3.0 instead of
2.7.3. I'm closing this in favor of the prior report.
Steve, can you try the suggestion from msg172501 in #16177 ?
--
resolution: - duplicate
status: open - closed
superseder:
Roger Serwy added the comment:
Added version 3.3 as reported in #16622.
--
nosy: +Steve.OBrien
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16177
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16612
___
___
Python-bugs-list mailing list
Jesús Cea Avión added the comment:
David, please subscribe to Issue #16612.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16490
___
___
Changes by Bruno Dupuis bdup...@lisael.org:
--
nosy: +bruno.dupuis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue887237
___
___
Python-bugs-list
Changes by Bruno Dupuis bdup...@lisael.org:
--
nosy: +bruno.dupuis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11299
___
___
Python-bugs-list
Changes by Bruno Dupuis bdup...@lisael.org:
--
nosy: +bruno.dupuis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15045
___
___
Python-bugs-list
Changes by Bruno Dupuis bdup...@lisael.org:
--
nosy: +bruno.dupuis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294232
___
___
Python-bugs-list
Nick Coghlan added the comment:
First reaction is +1 for finally switching to real constant nodes in the AST
for 3.4+. This is an inherited behaviour from 2.x where these were ordinary
names rather than true keywords, so we weren't able to completely disallow
overwriting them.
As a smaller
Alex Gaynor added the comment:
Nick, None was a constant even in 2k
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16619
___
___
pmoody added the comment:
on it.
I'm not a huge fan of integer args for the first argument because of possible
confusion between v4/v6.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16531
Nick Coghlan added the comment:
True and False weren't, though (and even None wasn't a proper keyword)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16619
___
Nick Coghlan added the comment:
The difference in the errors below is the reason the systematic fix in
Benjamin's patch simply wasn't practical in 2.x (as it would have required a
complex deprecation dance to turn None, True and False into real keywords):
Python 2.7.3 (default, Jul 24 2012,
New submission from Sworddragon:
The mode 'br' on open() can cause an exception with the following message:
ValueError: mode string must begin with one of 'r', 'w', 'a' or 'U', not
'br'. Curriously most times the mode 'br' is working fine and I'm not able to
create a simple test case where it
Marius Gedminas added the comment:
Considering many existing Python installations out there would it be possible
to fix this on the server side? I.e. lowercase the URL while redirecting?
--
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16625
___
___
Python-bugs-list
Ben Hoyt added the comment:
Ah, thanks for making this an issue of its own! As I commented over at
Issue10551, it's a serious problem, and makes mimetypes.guess_type() unusable
out of the box on Windows.
Yes, the fix in Issue4969 uses MIME\Database\Content Type, which is a mime
type - file
100 matches
Mail list logo