sri sriram.thai...@gmail.com added the comment:
You missed the code part:
urllib._urlopener = AppURLopener()
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8619
___
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed in r80775 and r80776
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8619
___
___
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
I don't think it's a good idea to display an fatal error at runtime. If
nl_langinfo(CODESET) is not available, configure should fail or we should
fallback to an hardcoded encoding (ok but which one?).
If
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
The documentation of os.environb and os.getenvb() in my last patch is very
short. I'm not inspired.
We told me on IRC to not use function annotations because annotation semantic
was not decided yet.
I will
Tarek Ziadé ziade.ta...@gmail.com added the comment:
site definitely needs more documentation about the per-user site-packages.
We need to add a section about that. I am adding Christian to the nosy list,
since he added those feature. I can work on a section sometimes next week and
propose a
STINNER Victor victor.stin...@haypocalc.com added the comment:
manpage for nl_langinfo() doesn't mention any errors that could
be raised by it
It's more about get_codeset(). This function can fail for different reasons:
- nl_langinfo() result is an empty string: If item is not valid, a
STINNER Victor victor.stin...@haypocalc.com added the comment:
MaL Patch looks good. +1 on adding it.
Cool. I didn't understood if MvL is +1, but at least he's not -1 on this, and
we are at least two at +1 :-)
MaL One nit: I'd rename the keymap function to encodekey.
Ok, I will also change
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
manpage for nl_langinfo() doesn't mention any errors that could
be raised by it
It's more about get_codeset(). This function can fail for different
STINNER Victor victor.stin...@haypocalc.com added the comment:
I think that using ASCII is a safer choice in case of errors.
I choosed UTF-8 to keep backward compatibility:
PyUnicode_DecodeFSDefaultAndSize() uses utf-8 if
Py_FileSystemDefaultEncoding==NULL. If the OS has no
Michael Foord mich...@voidspace.org.uk added the comment:
Changing traceback._some_str to return unicode rather than str seems like a bad
idea.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8313
Changes by Michael Foord mich...@voidspace.org.uk:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8313
___
___
Python-bugs-list mailing list
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
I think that using ASCII is a safer choice in case of errors.
I choosed UTF-8 to keep backward compatibility:
PyUnicode_DecodeFSDefaultAndSize()
Michael Foord mich...@voidspace.org.uk added the comment:
I would prefer to try str(...) first and only attempt to convert to unicode and
do the backslash replace if the str(...) call fails.
--
___
Python tracker rep...@bugs.python.org
New submission from Mattelaer olivier.mattel...@uclouvain.be:
When using the Cmd module on a file.
it happens that the last line is truncated from the last caracther.
The problem is simply that it can happen that the last line doesn't finish by
'\n' charcacter. In consequence the line which
New submission from yig yo...@yotamgingold.com:
Calling uuid.uuid4() while using the multiprocessing module leads to the same
exact UUIDs being generating in each process. It is an artifact resulting from
the built-in uuid_generate_random() of my underlying platform, Mac OS X 10.6.3.
A
Stefan Krah stefan-use...@bytereef.org added the comment:
I agree that the spec is not unambiguous, but consider the Overflow and
Underflow passages here:
http://speleotrove.com/decimal/daexcep.html
== Overflow
== In all cases, Inexact and Rounded will also be raised.
Raise here of
Mark Dickinson dicki...@gmail.com added the comment:
Since r80665, a
./configure --with-pydebug
seems to give compilation with -O2 (tested on OS X and Linux). Is this
intentional?
I'm getting, e.g.,
gcc -c -g -O2 -g -Wall -Wstrict-prototypes -I. -IInclude -I./Include
-DPy_BUILD_CORE
R. David Murray rdmur...@bitdance.com added the comment:
Why do we have a public API that begins with an '_'?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8619
___
Mark Dickinson dicki...@gmail.com added the comment:
Yes, that's a good point. It would be nice for e.g. Inexact = Rounded
invariants to be, well, invariant.
I agree that the cdecimal behaviour is the correct one. I'm looking for wiggle
room here because I don't really want to make a set of
yig yo...@yotamgingold.com added the comment:
For the record, I filed a bug against the underlying platform. (I wrote a
simple program to reproduce this in C and filed a bug report with Apple
rdar://7944700. The OpenRadar page for it is here:
http://openradar.appspot.com/radar?id=334401 )
Marc-Andre Lemburg m...@egenix.com added the comment:
Mark Dickinson wrote:
Mark Dickinson dicki...@gmail.com added the comment:
Since r80665, a
./configure --with-pydebug
seems to give compilation with -O2 (tested on OS X and Linux). Is this
intentional?
Yes. I've restored the
Changes by Marc-Andre Lemburg m...@egenix.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8211
___
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Marc-Andre Lemburg wrote:
Marc-Andre Lemburg m...@egenix.com added the comment:
Mark Dickinson wrote:
Mark Dickinson dicki...@gmail.com added the comment:
Since r80665, a
./configure --with-pydebug
seems to give compilation with
Senthil Kumaran orsent...@gmail.com added the comment:
That is actually a private attribute of urllib (not urllib2) module
present from the very first version. It is intended strictly for
overriding purposes not for anything else. During the merge in py3k,
it has taken its place in
STINNER Victor victor.stin...@haypocalc.com added the comment:
Commited: r80777 (trunk) and r80779 (2.6); blocked: r80778 (py3k).
Open a new issue if you would like to use something better than
ASCII+backslashreplace in unittest (using runner stream encoding?).
--
resolution: - fixed
Mark Dickinson dicki...@gmail.com added the comment:
Yes. I've restored the previous behavior of configure to
have AC_PROG_CC determine CFLAGS defaults.
Just to be clear, the previous behaviour has *not* been restored. Up until
r80665, a '--with-pydebug' build did not include optimization.
Ronald Oussoren ronaldousso...@mac.com added the comment:
As the bug is in the underlying platform the best we can do is to warn about
this in the documentation, as in the attached patch.
BTW. I've updated the title to be slightly more informative.
--
keywords: +patch
title: Mac OS X
Mark Dickinson dicki...@gmail.com added the comment:
Ah, I understand now: -O2 started appearing in debug builds in r79218, which
changed the Makefile to respect CFLAGS. I tested a variety of revision, but
failed to test revision in between that and Victor's change...
--
Marc-Andre Lemburg m...@egenix.com added the comment:
Mark Dickinson wrote:
Mark Dickinson dicki...@gmail.com added the comment:
Ah, I understand now: -O2 started appearing in debug builds in r79218, which
changed the Makefile to respect CFLAGS. I tested a variety of revision, but
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4661
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1467619
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1368247
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1379416
___
___
yig yo...@yotamgingold.com added the comment:
Why not default to not use the Python implementation on darwin instead of the
underlying platform's uuid_generate_random(), until it's proven safe?
--
___
Python tracker rep...@bugs.python.org
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6521
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1685453
___
yig yo...@yotamgingold.com added the comment:
Ahem. Why not use the Python implementation on darwin until its
uuid_generate_random() is deemed to be safe?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8621
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue170
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1693546
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1459867
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1349106
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
___
Python-bugs-list
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4766
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6942
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1025395
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1672568
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5871
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1440472
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue724459
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1078919
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue968430
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1210680
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1243654
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1243730
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1372770
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1690608
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1681333
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue504152
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5610
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5612
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1590744
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1443866
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1155362
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1043706
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1050268
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue975330
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue795081
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4212
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1525919
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2658
___
Ronald Oussoren ronaldousso...@mac.com added the comment:
Because I didn't look closely enough at the source :-(
The attached patch disabled the C implementation on OSX 10.6 or later. I've
tested that 10.5 is not affected by the issue.
--
Added file:
Changes by Ronald Oussoren ronaldousso...@mac.com:
Removed file: http://bugs.python.org/file17217/issue8621-doc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8621
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue634412
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1443875
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry - r.david.murray
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1823
___
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: barry -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue740495
___
___
Python-bugs-list
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: loewis - barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7755
___
___
New submission from Marc-Andre Lemburg m...@egenix.com:
As discussed on issue8610, we need a way to override the automatic detection of
the file system encoding - for much the same reasons we also do for the I/O
encoding: the detection mechanism isn't fail-safe.
We should add a new
Marc-Andre Lemburg m...@egenix.com added the comment:
I've opened issue8622 for the env. var idea.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8610
___
Éric Araujo mer...@netwok.org added the comment:
Are we sure we want three or four ways to spell the same thing? --foo and
--no-foo seem a useful couple to me, and --with-foo/--without-foo cater to
different use cases. Perhaps it would be ok to have a SwitchAction (or
FlagAction) for
New submission from Antoine Pitrou pit...@free.fr:
This is on py3k, with gcc 4.4.3:
/home/antoine/py3k/__svn__/Modules/socketmodule.c: In function
'socket_gethostbyaddr':
/home/antoine/py3k/__svn__/Modules/socketmodule.c:3238: warning: dereferencing
pointer 'sa' does break strict-aliasing
New submission from Antoine Pitrou pit...@free.fr:
This is on py3k, with gcc 4.4.3:
/home/antoine/py3k/__svn__/Modules/_multiprocessing/multiprocessing.c: In
function 'multiprocessing_sendfd':
/home/antoine/py3k/__svn__/Modules/_multiprocessing/multiprocessing.c:125:
warning: dereferencing
New submission from Mark Dickinson dicki...@gmail.com:
When doing a debug build of Python with gcc, without any previous setting of
CFLAGS, the '-O2' flag is now automatically included.
This behaviour started in r79218.
It would be nice to restore the original behaviour, if possible, since
Ronald Oussoren ronaldousso...@mac.com added the comment:
Also added a testcase that should warn if other unix-y platforms start to
suffer from the same issue.
BTW. issue8621.patch uses a runtime test in the uuid module instead of a
configure-check because a binary might be created on 10.5
Mark Dickinson dicki...@gmail.com added the comment:
Just double checked the gcc manual. From:
http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
If you use multiple -O options, with or without level numbers, the last such
option is the one that is effective.
--
Antoine Pitrou pit...@free.fr added the comment:
It would be nice to restore the original behaviour, if possible, since
the optimization causes difficulties when debugging. One solution
would be to add '-O0' to OPT for debug builds (on gcc), as in the
attached patch. You then get compiler
yig yo...@yotamgingold.com added the comment:
Great work! Very thorough patches. Strange that it's a regression versus 10.5.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8621
___
New submission from Dave Abrahams d...@boostpro.com:
Based on the rsplit documentation, I'd expect
'foo bar'.rsplit(maxsplit=1)
to work. This is probably a much bigger problem than just rsplit, i.e. I doubt
there is a policy about whether documented parameter names need to be usable as
New submission from Mark Dickinson dicki...@gmail.com:
Lines 3884 and 3890 of Objects/typeobject.c (trunk, r80782), which check for a
subclass overriding __eq__ (or __cmp__) but not __hash__, call PyErr_WarnPy3k
but don't check the return value. [This was reported when compiling Python
with
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8621
___
___
Ronald Oussoren ronaldousso...@mac.com added the comment:
I agree with Michael that something should be done.
I propose to add commit os-getgroups-v2.patch, which is the almost same as
os-getgroups.patch that I posted earlier, but adds a check for large values of
NGROUPS_MAX (see msg99913 for
Changes by Ronald Oussoren ronaldousso...@mac.com:
Added file: http://bugs.python.org/file17221/os-getgroups-v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7900
___
Mark Dickinson dicki...@gmail.com added the comment:
Hmm. Fixing this isn't easy: a simple 'if (inherit_slots(...) 0) goto
error;' produces a huge reference leak in PyType_Ready.
--
___
Python tracker rep...@bugs.python.org
Walter Woods woodswal...@gmail.com added the comment:
Sorry I'm just getting back to this . . . Senthil, doesn't list(None) throw an
exception? That was the whole problem with list()ing the default argument.
And I don't think the problem should be fixed in
email.message.Message.get_all() . .
Thomas Arendsen Hein tho...@intevation.de added the comment:
Roger Demetrescu, I filed the issue with Python 2.4, because the behavior
changed somewhere between 2.4.2 and 2.4.3
The updated link to the MoinMoin bug entry is:
http://moinmo.in/MoinMoinBugs/ResetPasswordEmailImproperlyEncoded
The
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8622
___
Senthil Kumaran orsent...@gmail.com added the comment:
Walter, just to address one of your point:
+if failobj and not isinstance(failobj, list):
+if isinstance(failobj, str):
+failobj = [failobj]
+else:
+failobj
Walter Woods woodswal...@gmail.com added the comment:
Senthil, you are correct, I gave a bad example. However, try list()ing an
integer :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8572
New submission from Daniel Urban urban.dani...@gmail.com:
The current documentation of the imag abstract property of numbers.Complex is
this:
Abstract. Retrieves the Real component of this number.
Of course the imag attribute is the imaginary component, not the real.
--
assignee:
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8625
___
1 - 100 of 185 matches
Mail list logo