Senthil Kumaran orsent...@gmail.com added the comment:
I checked in a modified version of reset the retry count for respnse code !=401
in the following checkins:
r84323 (py3k)
r84324 (release21-maint)
r84325 (release31-maint)
Unfortunately, we wont be able to patch the 2.6.x release. You might
Changes by Senthil Kumaran orsent...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
Added file: http://bugs.python.org/file18648/basic_auth.patch
___
Python tracker rep...@bugs.python.org
Kay Hayen kayha...@gmx.de added the comment:
You didn't understand. Please tell me, how to decide if this is a unicode
literal or a str (2.x) literal:
value=Str(s='d')
It's just not possible. When I found a from __future__ import
unicode_literals in the code before, it means I should convert
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Indeed, with 3.1:
def f(x, y): pass
...
inspect.formatargspec(inspect.getargspec(f))
TypeError: object of type 'map' has no len()
--
nosy: +amaury.forgeotdarc
type: - behavior
___
Python
Göran Uddeborg goe...@uddeborg.se added the comment:
Although BIND_FIRST is still there, I could not reproduce the problem with
Python 3.1.2. If it is because something changed in Python, or that HP-UX has
fixed something, I don't know. I still don't see the point in specifying
BIND_FIRST
Florent Xicluna florent.xicl...@gmail.com added the comment:
Łukasz,
_closing is not necessary on FileIO instances. The class already declares an
__exit__ method which takes care of closing file.
import io
f = io.FileIO('/tmp/test_closing', 'wb')
f.closed
False
f.__exit__()
f.closed
Florent Xicluna florent.xicl...@gmail.com added the comment:
Patch.
--
keywords: +patch
Added file: http://bugs.python.org/file18649/issue9572_oserror.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9572
r84324 (release21-maint)
That should be release27-maint. :)
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Mads Kiilerich m...@kiilerich.com added the comment:
Senthil, can you tell us why this fix is correct - and convince us that it is
the Final Fix for this issue? Not because I don't trust you, but because this
issue has a bad track record.
Some comments/questions to this patch:
Why do 401
Giampaolo Rodola' g.rod...@gmail.com added the comment:
I agree with you that asyncore API model is far from being robust and I've
personally seen infinite recursion more than once if certain asyncore methods
aren't properly subclassed.
What I don't understand is what changes you are
Dwayne Bailey dwayne+pythonb...@translate.org.za added the comment:
This is causing a regression in our code.
Previously when we write out our INI file for an entry that has a value of None
we saw the following:
value = None
These are now stored as:
value
This is now causing a traceback in
New submission from Ronald Oussoren ronaldousso...@mac.com:
The attached file 'manifest-test.zip' is a small distutils project that
demonstrates a problem I have with the sdist command.
The archive contains a directory 'sandbox' that is not mentioned in MANIFEST.in
or anywhere in setup.py.
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
The correct call is more something like
``inspect.formatargspec(*inspect.getargspec(f))``, which should work for all
(Python) functions in Python 3. In Python 2, tuple unpacking was represented
using a nested list for the
Fred L. Drake, Jr. fdr...@acm.org added the comment:
Re-opening for investigation.
(The previous message really should have been a new issue.)
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7005
Changes by Fred L. Drake, Jr. fdr...@acm.org:
--
nosy: +lukasz.langa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7005
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
fromfd is already taken care of in 3.2. Otherwise, this looks like a good fix
once updated to trunk.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1552
Benjamin Peterson benja...@python.org added the comment:
I see that it's a problem, but there's nothing we can do about it now, so
you'll have to determine whether it was unicode literals or not based on
compile flags.
--
___
Python tracker
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1552
___
___
jan matejek jmate...@suse.cz added the comment:
this affects 2.7 as well. the problem was introduced by r78136 which skips out
of the directory containing newly built libpython2.7, so the linking command
cannot find it in -L. and fails (unless a systemwide libpython is already
present)
the
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
___
___
Changes by Georg Brandl ge...@python.org:
--
assignee: - loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9682
___
___
Python-bugs-list
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
This functionality would be useful in format_exception(), too, so it might be
better to implement in format_exception_only(). This latter function formats
the exception part of a traceback, so it makes sense to implement it here.
I would
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
This also happens on later versions. Since 2.x is essentially frozen, this
feature request can't be implemented in 2.x, so recategorising as a Python 3.2
issue.
Here, a change in logging will either duplicate code in traceback.py or print
Ich Neumon ichneumo...@gmail.com added the comment:
Looks like this one needs reopening to me... I've recently had to parse out
attachments with the following Content-Type lines and no Content-Disposition
provided:
Content-Type: application/vnd.ms-excel; name=transactions.xls
It might not
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
Removed message: http://bugs.python.org/msg114972
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
This functionality would be useful in format_exception(), too.
I prefer fullstack to full as it's clearer what the 'full' pertains to. An
alternative might be upperframes or allframes.
--
___
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9427
___
___
Andrey Vlasovskikh andrey.vlasovsk...@gmail.com added the comment:
On closer look your patch is also ignoring SystemExit. I think it's
beneficial to honor SystemExit, so a user could use this as a means to
replace the current process with a new one.
Yes, SystemExit should cancel all the
Changes by Andrey Vlasovskikh andrey.vlasovsk...@gmail.com:
--
nosy: +vlasovskikh
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9205
___
___
Ich Neumon ichneumo...@gmail.com added the comment:
A slight update for my workaround for the above with the following code:
if not filename:
ct = part.get(Content-Type)
if ct:
m = re.compile('name=\?(\S+)\?').search(ct, 1)
if m: filename = m.group(1)
I've added ? operators
Georg Brandl ge...@python.org added the comment:
Fixed in r84326.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9689
___
Georg Brandl ge...@python.org added the comment:
Fixed in r84327.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9681
___
New submission from Ulrich Seidl ulrich.se...@muneda.com:
The following code leads to an UnicodeError in python 2.7 while it works fine
in 2.6 2.5:
# -*- coding: latin-1 -*-
import xml.etree.cElementTree as ElementTree
oDoc = ElementTree.fromstring(
'?xml version=1.0
Changes by Brian Curtin cur...@acm.org:
--
nosy: +flox
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9692
___
R. David Murray rdmur...@bitdance.com added the comment:
Also, issue 7082 might be relevant here, since it fixed a bug in this fix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1403349
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
IMO the code is not correct: how does ElementTree know which encoding is used
for the attribute value? Even 2.5 prints a different content when the script
is saved with a different encoding.
The line should look like:
oDoc.set(
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Brian, Tim, any comments on this wrt Windows or do you think this can be
closed? Could there be an impact on any other OS? I'll close if there's no
response, unless someone else feels fit to close this anyway.
--
nosy:
Mark Lawrence breamore...@yahoo.co.uk added the comment:
I don't believe that this can still be a problem.
--
nosy: +BreamoreBoy
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
versions: +Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1078919
___
Mark Matusevich mark...@users.sourceforge.net added the comment:
This is what I got on computer with 512 MB RAM:
Mandriva Linux 2009.1
=
Python 2.6.1 (r261:67515, Jul 14 2010, 09:23:11) [GCC 4.3.2]
- Python process killed by operating system after 14
Microsoft
Mark Lawrence breamore...@yahoo.co.uk added the comment:
I'm assuming that the attached patches are simply out of date.
--
nosy: +BreamoreBoy
stage: unit test needed - needs patch
versions: +Python 3.2 -Python 2.7
___
Python tracker
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Éric can you please select the appropriate stage, component(s) or version(s)
as you see fit, thanks.
--
assignee: - tarek
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
The consensus is that this should have gone into Python years ago.
--
nosy: +BreamoreBoy
stage: - patch review
versions: +Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Setting all three branches that accept bug fixes. Someone coming here thanks to
the easy keyword could write a unit test, otherwise I’ll do it and adjust
versions as needed.
--
components: +Distutils2
keywords: +easy
stage: - unit test
Mark Lawrence breamore...@yahoo.co.uk added the comment:
My gut reaction is that pygettext should be deprecated, other opinions are
welcome.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1098749
Mark Lawrence breamore...@yahoo.co.uk added the comment:
The patch is small and clean, can a core dev please take a look and commit if
you see fit, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1100562
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Anyone interested in updating the patch for 3.2?
--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Can the fix be backported to 2.7 or can this be closed?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1209447
Mark Lawrence breamore...@yahoo.co.uk added the comment:
From msg60764 Note that this bug is fixed in CVS:. I'd test myself, but the
last time I tried soemthing like this it took me ages to persuade Windows
Calendar that I wasn't Dutch.
--
components: +Library (Lib) -None
nosy:
Mark Lawrence breamore...@yahoo.co.uk added the comment:
I believe that RDM is working on this sort of issue as part of email6.
--
nosy: +BreamoreBoy
versions: +Python 3.1, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No reply to msg86492 so I'll close unless someone objects.
--
nosy: +BreamoreBoy
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1379804
John Ehresman j...@wingware.com added the comment:
I say close it since it is a change in behavior and shouldn't go in a point
release. I'm happy to see it fixed in 3.1.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No replky to msg83894.
--
nosy: +BreamoreBoy
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1394135
New submission from Giampaolo Rodola' g.rod...@gmail.com:
This can be useful in those circumstances where the user wants to execute some
action right after some data has been sent (push()) or a producer has been
consumed (push_with_producer()).
Example:
def log(msg):
logging.debug(msg)
Ulrich Seidl ulrich.se...@muneda.com added the comment:
Of course, if you use an unicode string it works and of course it would be easy
to switch to unicode for this demo code. Unfortunately, the affected
application is a little bit more complex and it is not that easy to switch to
unicode. I
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
stage: - patch review
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2527
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
assignee: - d...@python
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1397474
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
assignee: georg.brandl - d...@python
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1398781
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Testing with python 2.5: oDoc.set(ATTR, ÄÖÜ) uses the encoding used by the
source code (with # -*- coding:;) If I use utf-8 instead, the output is:
ROOT ATTR=#195;#132;#195;#150;#195;#156; /
which contains the numbers of the 3 pairs
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Brian, Tim, any views on this?
--
nosy: +BreamoreBoy, brian.curtin, tim.golden
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Can a core dev please look at this now that we're at 3.2 alapha, thanks. Or
has it already been fixed?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No comments on this for 4 1/2 years. Is this still valid and/or is anyone
still interested?
--
nosy: +BreamoreBoy
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
stage: unit test needed - patch review
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1438480
Changes by R. David Murray rdmur...@bitdance.com:
--
keywords: +patch
Added file: http://bugs.python.org/file18652/header_encode_test.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1379416
Changes by R. David Murray rdmur...@bitdance.com:
Added file: http://bugs.python.org/file18653/header_charset_fix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1379416
___
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Brian, Tim, any views on this?
--
components: +Library (Lib) -None
nosy: +BreamoreBoy, brian.curtin, tim.golden
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0
___
Python
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Does this belong with RDM or d...@python?
--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
I've attached a fix and test. I've uploaded them separately since the fix only
applies to 2.7, but I want to put the test into 3.x as well.
--
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
stage: unit test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1379416
___
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: wont fix - accepted
status: closed - languishing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue877904
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Closing the report: eu_es has been Python for quite a while (at least since
Python 2.5).
If you also feel that 'basque' should be added as alias, please provide proof
that this alias is really in use and open a new bug report.
--
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9693
___
___
Python-bugs-list
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9682
___
___
Catherine Devlin fredv8vi...@liquidid.net added the comment:
There is the non-zero cost of keeping two copies of that bit of
information in-sync with each other (and the code).
That's true, but how often do the strftime format codes change? I'd be happy
to personally volunteer to keep them
Ulrich Seidl ulrich.se...@muneda.com added the comment:
Well, the output of the print is not that interesting as long as ElementTree is
able the restore the former attributes value when reading it in again. The
print was just used to illustrate that an UnicodeDecodeError appears. Think
about
David Watson bai...@users.sourceforge.net added the comment:
Is this still an issue on later versions of Python and/or FreeBSD?
Yes, there is still an issue. There is no longer a deadlock on
FreeBSD because the module been changed to use only lockf() and
dot-locking (on all platforms), but
David Watson bai...@users.sourceforge.net added the comment:
The surrogateescape mechanism is a very hackish approach, and
violates the principle that errors should never pass silently.
I don't see how a name resolution API returning non-ASCII bytes
would indicate an error. If the host table
Kay Hayen kayha...@gmx.de added the comment:
Hello Benjamin,
thank you for the response. What do you mean with there is nothing we can do
about it. Is it not possible to add another field indicating the prefix given
to a literal?
BTW: I believe raw strings are also no longer recognizable.
R. David Murray rdmur...@bitdance.com added the comment:
As far as I can tell from a little bit of testing, if it is even possible to
quote ':' in a posix path it isn't obvious how you do it.
--
nosy: +r.david.murray
___
Python tracker
Benjamin Peterson benja...@python.org added the comment:
2010/8/26 Kay Hayen rep...@bugs.python.org:
Kay Hayen kayha...@gmx.de added the comment:
Hello Benjamin,
thank you for the response. What do you mean with there is nothing we can do
about it. Is it not possible to add another field
New submission from Ben Schmaus benjamin.schm...@gmail.com:
The argparse module lists required args as optional in the default help message.
If you run the following program (also attached) you'll get the output listed
below.
#!/usr/bin/env python
import argparse
parser =
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - fixed
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1433886
___
Changes by Benjamin Peterson benja...@python.org:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1433886
___
___
Eric Smith e...@trueblade.com added the comment:
It looks to me like reqarg is marked as required, since it's not in brackets.
Or am I missing something?
--
nosy: +bethard, eric.smith
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Agreed. Although the docs do not explicitly say you cannot use bytes as
source, this is clearly implicit in the Python3 bytes/string separation. The
docs talk only about string inputs.
--
nosy: +r.david.murray
resolution: -
R. David Murray rdmur...@bitdance.com added the comment:
Yeah, the fact that it is listed under the heading optional arguments: :)
Guess we need a new section?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
While Python is 'GPL compatible', whatever that means, it cannot incorporate
GPLed code in the PSF distribution. Code must be contributed under one on the
two licenses in the contributor agreement. Philip, can you contribute a patch
Eric Smith e...@trueblade.com added the comment:
Duh. Sorry about that.
Also applies to 3.2.
--
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9694
___
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Think of e.g. embedded Python interpreters or py2exe-style applications
running on Linux or other systems that don't use Unicode APIs
for
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.2 -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2236
___
Brett Cannon br...@python.org added the comment:
r84329 has the fix. I decided to catch IOError and OSError separately rather
than EnvironmentError as a blanket 'except' clause; explicit is better than
implicit and all.
--
status: open - closed
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Ok, I'm closing this as won't fix. The OP doesn't have the issue anymore;
anybody else having some issue please report that separately (taking into
account that you are likely asked to provide a patch as well).
--
resolution: -
Changes by Éric Araujo mer...@netwok.org:
--
assignee: georg.brandl - d...@python
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5904
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The spawn* functions return intptr_t, because it's the process handle.
But _getpid() returns an int.
Both seem to be correctly handled.
Which part do you suspect to truncate data?
--
nosy: +amaury.forgeotdarc
Skip Montanaro s...@pobox.com added the comment:
Catherine,
Did my suggestion to alter pydoc output so it always contains a link to the
enclosing module's documentation not seem like a reasonable compromise?
Another problem with embedding the format codes in the docstring is that it
opens up a
Martin v. Löwis mar...@v.loewis.de added the comment:
why is it a UnicodeError?
Because IDNA is an encoding, and codecs are supposed to raise UnicodeErrors.
The string you are trying to encode is not supported in the encoding in
question.
It would be possible to catch the UnicodeError, and
Martin v. Löwis mar...@v.loewis.de added the comment:
I don't see how a name resolution API returning non-ASCII bytes
would indicate an error.
It's in violation of RFC 952 (slightly relaxed by RFC 1123).
But to be more explicit, that's like saying if it hurts, get
your sysadmin to
kxroberto kxrobe...@users.sourceforge.net added the comment:
I'm not working with Py3. don't how much that module is different in 3.
unless its going into a py2 version, I'll leave the FR so far to the py3
community
--
___
Python tracker
Steven Bethard steven.beth...@gmail.com added the comment:
Yeah, I guess the optional vs. positional isn't the best terminology now that
you can have required flag-based arguments. Did you have a word other than
optional that you'd prefer?
--
___
New submission from Yury Selivanov yseliva...@gmail.com:
The patch is intended to fix behaviour of 'return' statement in python's
generators.
Please read this message before looking at the patch.
http://mail.python.org/pipermail/python-dev/2010-August/103297.html
--
components:
1 - 100 of 130 matches
Mail list logo