Antoine Pitrou pit...@free.fr added the comment:
Have you tried specifying a value for the bufsize argument to Popen? Either 1
for line buffering or e.g. 4096 for a decent size block buffering.
--
nosy: +gregory.p.smith, pitrou
___
Python tracker
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1038909
___
___
Python-bugs-list mailing
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1185124
___
___
Python-bugs-list mailing
Walter Dörwald wal...@livinglogic.de added the comment:
The code for case 's'/'z' in py3k is indeed the same as for case 'U'. The patch
looks good to me.
IMHO removing 'U' should only be done once Py2 is dead.
--
___
Python tracker
New submission from samtygier samtyg...@yahoo.co.uk:
distutils will currently try to use hardlinks if os has a 'link' attribute,
however sometimes os.link() will fail, for example the filesystem may not
support it (see attached traceback).
in commands/sdist.py in make_release_tree() there is
Changes by Éric Araujo mer...@netwok.org:
--
components: +Distutils2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8876
___
___
Python-bugs-list
New submission from Dirkjan Ochtman dirk...@ochtman.nl:
d...@enrai src $ ls -l test/*
-rw-r--r-- 1 djc users 34 Jun 2 16:00 test/http.py
-rw-r--r-- 1 djc users 0 Jun 2 16:00 test/__init__.py
d...@enrai src $ cat test/http.py
from httplib import BadStatusLine
d...@enrai src $ 2to3 test/*
Dirkjan Ochtman dirk...@ochtman.nl added the comment:
Is this still relevant / will it get some love in the future?
--
nosy: +djc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2459
___
Tal Einat talei...@users.sourceforge.net added the comment:
I'd like to implement this for 2.x, if there's any chance of this being
accepted. Is there still a chance of getting this into 2.7?
This will be my first patch for the Python core, so please tell me if I'm
missing something.
samtygier samtyg...@yahoo.co.uk added the comment:
here is a patch against http://svn.python.org/projects/python/trunk
it moves the return statements into the individual file copying sections, and
takes the final call to _copy_file_contents() out of the else. this allows an
error in
Éric Araujo mer...@netwok.org added the comment:
Distutils is a special case: Many third-party code relies on its undocumented
quirks and bugs, so it’s basically frozen. Some non-disruptive bugfixes are
accepted, in which case the normal Python rules apply (e.g., no new features in
2.7 which
New submission from Neil Crouch neil.cro...@tradingtechnologies.com:
Unable to convert int to str in idle but from the cmd python prompt it work
sfine.
--
components: IDLE
files: IDLE_err.txt
messages: 106887
nosy: Stranger381
priority: normal
severity: normal
status: open
title: IDLE
Ezio Melotti ezio.melo...@gmail.com added the comment:
You probably did str = '4bf3e914' at some point and overridden str.
--
nosy: +ezio.melotti
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
The code you show works fine for me.
The error you're seeing is almost certainly the result of inadvertently using
'str' as a variable name earlier in the IDLE session:
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29)
[GCC 4.2.1 (Apple
Mark Dickinson dicki...@gmail.com added the comment:
A rapidly diminishing chance for 2.7, IMO. I wouldn't want to try to add this
after the first release candidate, which is scheduled for June 5 (and I'm not
sure I'll have time to review a patch between now and then).
On the other hand,
Tal Einat talei...@users.sourceforge.net added the comment:
I'd really like to have this in 2.7. Is there no chance of getting it into 2.7
after rc1 is released?
If so, I can have the patch ready by Friday 14:00 GMT, but if nobody will have
time to review (and possibly commit) in time for RC1
Hugh Secker-Walker hug...@users.sourceforge.net added the comment:
OK. Using bufsize=4096 or bufsize=-1 eliminates the CPU-hogging problem on Mac
OS X. Thank you.
I have to say that the Popen() doc could be better. It says: bufsize, if
given, has the same meaning as the corresponding
Mark Dickinson dicki...@gmail.com added the comment:
Benjamin?
I'd really like to have this in 2.7. Is there no chance of getting it
into 2.7 after rc1 is released?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1766304
Antoine Pitrou pit...@free.fr added the comment:
I think the default of 0, meaning unbuffered, is a poor choice.
So do I, but I'm not sure whether it's acceptable to change behaviour in
a potentially incompatible way.
Barring that semantic change, please add a note to the doc: Most
users
anatoly techtonik techto...@gmail.com added the comment:
Thanks for thorough explanation. Can somebody close it with some resolution
like Can't fix. OS level problem?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8870
Skip Montanaro s...@pobox.com added the comment:
This problem has come up before. It was a bug introduced I think when
the subprocess module was first incorporated into Python. I don't
recall if the default was changed in 2.7 or 3.x. Can you demonstrate
the problem with Python 2.7 or 3.1? If
Martin v. Löwis mar...@v.loewis.de added the comment:
Just in case it isn't clear: this is because of the order of fixes. The first
fixer replaces httplib with http.client, then the next fixer thinks this is a
relative import.
--
nosy: +loewis
___
Antoine Pitrou pit...@free.fr added the comment:
This problem has come up before. It was a bug introduced I think when
the subprocess module was first incorporated into Python. I don't
recall if the default was changed in 2.7 or 3.x.
According to the docs it is still unbuffered by default.
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Wed, Jun 2, 2010 at 11:17 AM, Tal Einat rep...@bugs.python.org wrote:
..
If so, I can have the patch ready by Friday 14:00 GMT, but if nobody will
have time to review
(and possibly commit) in time for RC1 I guess
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
assignee: - belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1766304
___
Benjamin Peterson benja...@python.org added the comment:
And this has been fixed in the lastest versions of 2to3.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
If so, I can have the patch ready by Friday 14:00 GMT, but if nobody will
have time to review
(and possibly commit) in time for RC1 I guess I'll take my time with this.
I'll review your patch, but why are you so eager to get this into
Antoine Pitrou pit...@free.fr added the comment:
Rescheduling to 3.2, if applicable (otherwise I suggest closing).
--
versions: +Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1766304
Benjamin Peterson benja...@python.org added the comment:
I don't really see the point. I would be more inclined towards it if there was
a patch already, but patching this doesn't strike me as a key feature.
--
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
This is already in 3.x. The only reason I can think of to get this in
2.7 is to have fewer performance surprises between 2.x and 3.x.
--
___
Python tracker
Benjamin Peterson benja...@python.org added the comment:
Thanks. Removed in r81656.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8874
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Rejecting this for stdlib. A 3rd party package is available at
http://pypi.python.org/pypi?name=MonthDelta:action=display .
--
stage: - committed/rejected
status: pending - closed
Antoine Pitrou pit...@free.fr added the comment:
Le mercredi 02 juin 2010 à 18:10 +, Alexander Belopolsky a écrit :
This is already in 3.x. The only reason I can think of to get this in
2.7 is to have fewer performance surprises between 2.x and 3.x.
Since you are supposed to forward-port
New submission from Brian Curtin cur...@acm.org:
Add os.link support for Windows
(mostly a reminder to myself to finish the patch I have)
--
assignee: brian.curtin
components: Extension Modules, Windows
messages: 106908
nosy: brian.curtin
priority: normal
severity: normal
stage: needs
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8870
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
The patch in attachment implements keyword arguments.
--
keywords: +patch
Added file: http://bugs.python.org/file17524/kwargs.patch
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
Is it possible to detect this situation and display more user-friendly error
message with a reference to this issue?
--
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Here is my first attempt to implement fixed offset timezone type. The patch is
based on Brett's next-patch.txt and while I changed the type name from
datetime.UTC to datetime.timezone, I did not change the name of the
New submission from Edwin Pozharski pozhar...@gmail.com:
set() method of ConfigParser accepts boolean True/False as values at runtime
without converting them to strings internally. As a result, getboolean()
method reports the following error
File /usr/lib/python2.6/ConfigParser.py, line
Éric Araujo mer...@netwok.org added the comment:
Would that mean that booleans would be converted to strings on set and
converted back on get? Seems wasteful.
(I’ve changed the version field for this bug. Its meaning is not “versions this
applies to” but “versions that will get a fix”, and
Brett Cannon br...@python.org added the comment:
My thoughts on Alexander's questions:
1. Call it FixedTimezone or something (remember it has to be CapWords). Calling
it simply Timezone does not convey the fact that DST is not supported and
people might naively think it will. Its limited
Christoph Gohlke cgoh...@uci.edu added the comment:
Any chance to get this fixed in 2.7? On Windows, the bug prevents some popular
applications and packages, such as pymol and matplotlib, to be used when
installed on network shares, as is common practice in computer labs.
--
New submission from Giampaolo Rodola' g.rod...@gmail.com:
As of right now socket.getaddrinfo() returns a sequence of 5-tuples reflecting
family, type, protocol, canonname, and address of a socket:
socket.getaddrinfo(None, 0)
[(10, 1, 6, '', ('::1', 0, 0, 0)), (10, 2, 17, '', ('::1', 0, 0,
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Created issue 8881 to treat the named tuples issue separately.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8866
___
R. David Murray rdmur...@bitdance.com added the comment:
Use SafeConfigParser instead, then you can't make the mistake of passing
non-strings to set.
We really should update the docs so that ConfigParser is doced only in a
'deprecated' section. But that's a different issue. (Care to open
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8879
___
___
Eric Smith e...@trueblade.com added the comment:
Keep in mind this isn't an entirely backwards compatible change. See issue
8413, for example.
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8881
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Wed, Jun 2, 2010 at 5:24 PM, Brett Cannon rep...@bugs.python.org wrote:
..
1. Call it FixedTimezone or something (remember it has to be CapWords).
I thought consistency within module trumps PEP 8 naming standards.
The
Martin v. Löwis mar...@v.loewis.de added the comment:
Can somebody please explain how the test and the reported bug are related? The
patch seems to deal with paths that have UNC in them; and the test seems not
to.
--
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
Also, cgohlke, can you please provide complete, detailed instructions on how to
reproduce this issue? How do I get python.exe into \\Server\Share in the first
place? And why did you not map a network drive letter?
--
Brett Cannon br...@python.org added the comment:
Forgot about datetime breaking the PEP 8 rules. You're right, consistency wins.
As for fixedtimezone being odd, that's why my mind went with
FixedOffsetTimezone to start, but that doesn't go with the naming of the
module, and
R. David Murray rdmur...@bitdance.com added the comment:
Committed to 2.7 in r81658 and 2.6 in r81659. I'm leaving this open for the
moment because while py3 doesn't have this problem, the tests should still pass
and they don't.
--
stage: patch review - committed/rejected
versions:
David Watson bai...@users.sourceforge.net added the comment:
OK. I don't like creating/using a Google account, but here it is:
http://codereview.appspot.com/1487041/show
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6560
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1820
___
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
to reproduce: on Vista, start
\\%COMPUTERNAME%\c$\python26\python.exe -c import Tkinter; print Tkinter
In this case, the path returned by GetFinalPathNameByHandle starts with
\\?\UNC\.
--
Christoph Gohlke cgoh...@uci.edu added the comment:
Btw, this bug is also present in Python 3.1, of course when using tkinter
instead of Tkinter.
Here is how to reproduce the bug on your local system: Install python-2.7b2.msi
into C:\Python27. Then open a command prompt with administrator
Christoph Gohlke cgoh...@uci.edu added the comment:
The patch seems to deal with paths that have UNC in them;
and the test seems not to.
The UNCW path is a result of the call to
ctypes.windll.kernel32.GetFinalPathNameByHandleW() in FixTk.py, which
translates \\Server\Share\File paths to
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5423
___
New submission from Edward Pilatowicz edward.pilatow...@oracle.com:
recently i was writing some python code that attempted to bind a unix
domain socket to a long filesystem path. this code was failing and
telling me that the path name was too long. tracing python i saw that
it wasn't event
R. David Murray rdmur...@bitdance.com added the comment:
OK, py3k now passes all but one of the tests, and I've disabled that one
pending email6 since fixing it would break backward compatibility within the
3.x series. The fix is different, doing the encoding to output_charset just
before
60 matches
Mail list logo