[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r80775 and r80776 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 nl_langinfo(CODESET)

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 try to im

[issue8617] Non-existent variables documented

2010-05-05 Thread Tarek Ziadé
Tarek Ziadé 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 patch here btw.

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread STINNER Victor
STINNER Victor 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 pointer to an empty string is

[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-05 Thread STINNER Victor
STINNER Victor 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 that in the final patch. --

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor 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() res

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread STINNER Victor
STINNER Victor 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 nl_langinfo(CODESET) function at all, Python

[issue8313] message in unittest tracebacks

2010-05-05 Thread Michael Foord
Michael Foord added the comment: Changing traceback._some_str to return unicode rather than str seems like a bad idea. -- ___ Python tracker ___

[issue8313] message in unittest tracebacks

2010-05-05 Thread Michael Foord
Changes by Michael Foord : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opt

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor 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_FileSystemDefault

[issue8313] message in unittest tracebacks

2010-05-05 Thread Michael Foord
Michael Foord 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 _

[issue8620] wrong truncation of line in Cmd.cmd

2010-05-05 Thread Mattelaer
New submission from Mattelaer : 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 is suppose to suppress the '\n'

[issue8621] Mac OS X

2010-05-05 Thread yig
New submission from yig : 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 Linux machine I have does n

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-05 Thread Stefan Krah
Stefan Krah 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 course means raising the

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Mark Dickinson
Mark Dickinson 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 -o Modules/python.o

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread R. David Murray
R. David Murray added the comment: Why do we have a public API that begins with an '_'? -- nosy: +r.david.murray ___ Python tracker ___ __

[issue8613] Decimal module flags undetermined when a signal is trapped.

2010-05-05 Thread Mark Dickinson
Mark Dickinson 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 complicated and

[issue8621] Mac OS X

2010-05-05 Thread yig
yig 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 ) -- ___

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson 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 previous behavior of confi

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > Mark Dickinson wrote: >> >> Mark Dickinson added the comment: >> >> Since r80665, a >> >> ./configure --with-pydebug >> >> seems to give compilation with -O2 (tested on OS X and Linu

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-05 Thread Senthil Kumaran
Senthil Kumaran 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 urllib.request. I see no harm in

[issue8313] message in unittest tracebacks

2010-05-05 Thread STINNER Victor
STINNER Victor 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 status: open -> closed ___

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Mark Dickinson
Mark Dickinson 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. Since r80665, i

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren 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 -> uuid.uuid4() genera

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Mark Dickinson
Mark Dickinson 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... -- __

[issue8211] configure: allow user-provided CFLAGS to override AC_PROG_CC defaults

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > > Mark Dickinson 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 betw

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1467619] Header.decode_header eats up spaces

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1368247] unicode in email.MIMEText and email/Charset.py

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1379416] email.Header encode() unicode P2.6

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread yig
yig 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

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1685453] email package should work better with unicode

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread yig
yig added the comment: Ahem. Why not use the Python implementation on darwin until its uuid_generate_random() is deemed to be safe? -- ___ Python tracker ___ __

[issue1555570] email parser incorrectly breaks headers with a CRLF at 8192

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1693546] email.Message set_param rfc2231 encoding incorrect

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray status: pending -> open ___ Python tracker ___ ___ Python-bugs-lis

[issue1459867] Message.as_string should use "mangle_from_=unixfrom"?

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1349106] email.Generators does not separates headers with "\r\n"

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue3244] multipart/form-data encoding

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue4766] email documentation needs to be precise about strings/bytes

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6942] email.generator.Generator memory consumption

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mai

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1672568] silent error in email.message.Message.get_payload

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1555842] email package and Unicode strings handling

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue5871] email.header.Header allow to embed raw newlines into a message

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mai

[issue1440472] email.Generator is not idempotent

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue724459] Add documentation about line endings in email messages.

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list m

[issue1078919] Email.Header encodes non-ASCII content incorrectly

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue968430] error flattening complex smime signed message

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list m

[issue1210680] Split email headers near a space

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1243654] Faster output if message already has a boundary

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1243730] Big speedup in email message parsing

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1372770] email.Header should preserve original FWS

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1681333] email.header unicode fix

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue504152] rfc822 long header continuation broken

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5610] email feedparser.py CRLFLF bug: $ vs \Z

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mai

[issue5612] whitespace folding in the email package could be better ; -)

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mai

[issue1590744] mail message parsing glitch

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1443866] email 3.0+ stops parsing headers prematurely

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1155362] Bugs in parsedate_tz

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1043706] External storage protocol for large email messages

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1050268] rfc822.parseaddr is broken, breaks sendmail call in smtplib

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue975330] Inconsistent newline handling in email module

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list m

[issue795081] email.Message param parsing problem II

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list m

[issue4212] email.LazyImporter does not use absolute imports

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mai

[issue1525919] email package quoted printable behaviour changed

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue2658] decode_header() fails on multiline headers

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mai

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren 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: http://bugs.python.org/file17218/issue8621.patch ___

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread Ronald Oussoren
Changes by Ronald Oussoren : Removed file: http://bugs.python.org/file17217/issue8621-doc.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue634412] RFC 2112 in email package

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list m

[issue1443875] email/charset.py convert() patch

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> r.david.murray nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mai

[issue740495] API enhancement: poplib.MailReader()

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: barry -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7755] copyright clarification for audiotest.au

2010-05-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- assignee: loewis -> barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8622] Add PYTHONFSENCODING environment variable

2010-05-05 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : 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 environment variable with

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I've opened issue8622 for the env. var idea. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue8538] Add ConfigureAction to argparse

2010-05-05 Thread Éric Araujo
Éric Araujo 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 --thing/--no-hing and one

[issue8623] Aliasing warnings in socketmodule.c

2010-05-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 rules /home/antoin

[issue8624] Aliasing warnings in multiprocessing.c

2010-05-05 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 type-punned point

[issue8625] --with-pydebug builds now include -O2 by default

2010-05-05 Thread Mark Dickinson
New submission from Mark Dickinson : 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 the optimization cau

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren 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 (without the issue) and

[issue8625] --with-pydebug builds now include -O2 by default

2010-05-05 Thread Mark Dickinson
Mark Dickinson 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.""" -- ___

[issue8625] --with-pydebug builds now include -O2 by default

2010-05-05 Thread Antoine Pitrou
Antoine Pitrou 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 flags inclu

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread yig
yig added the comment: Great work! Very thorough patches. Strange that it's a regression versus 10.5. -- ___ Python tracker ___ ___

[issue8626] TypeError: rsplit() takes no keyword arguments

2010-05-05 Thread Dave Abrahams
New submission from Dave Abrahams : 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 keywords, and if not

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2010-05-05 Thread Mark Dickinson
New submission from Mark Dickinson : 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 clang.] This can le

[issue8621] uuid.uuid4() generates non-unique values on OSX

2010-05-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7900] posix.getgroups() failure on Mac OS X

2010-05-05 Thread Ronald Oussoren
Ronald Oussoren 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 the rationale) This e

[issue7900] posix.getgroups() failure on Mac OS X

2010-05-05 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file17221/os-getgroups-v2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

2010-05-05 Thread Mark Dickinson
Mark Dickinson 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 ___

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Walter Woods
Walter Woods 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() . . . that function works

[issue1525919] email package quoted printable behaviour changed

2010-05-05 Thread Thomas Arendsen Hein
Thomas Arendsen Hein 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 workaround I use t

[issue8622] Add PYTHONFSENCODING environment variable

2010-05-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Senthil Kumaran
Senthil Kumaran 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 = list(failobj)

[issue8572] httplib getheader() throws error instead of default

2010-05-05 Thread Walter Woods
Walter Woods added the comment: Senthil, you are correct, I gave a bad example. However, try list()ing an integer :) -- ___ Python tracker ___ _

[issue8628] Incorrect numbers.Complex.imag documentation

2010-05-05 Thread Daniel Urban
New submission from Daniel Urban : 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: d...@python components: Doc

[issue8625] --with-pydebug builds now include -O2 by default

2010-05-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

  1   2   >