Re: [Python-3000] Failing unit tests on WIndows

2007-10-23 Thread Giampaolo Rodola'
On 22 Ott, 04:13, Christian Heimes <[EMAIL PROTECTED]> wrote: > Python 3000 needs some love from Windows developers. The test were run > on Windows XP SP2, X86, VS 2003, SDK 2003R2, rev58587 with a fixed > pythoncore project file. My build environment has no devenv.exe so bsddb > is missing. > > 25

Re: [Python-3000] Failing unit tests on WIndows

2007-10-23 Thread Christian Heimes
Giampaolo Rodola' wrote: > Most error seems to be attributable to Unicode-related problems: > > UnicodeDecodeError: 'utf8' codec can't decode bytes in position xx-yy: > invalid data > > The following tests DO NOT fail on my Windows XP prof sp2 box: > test_sqlite, test_strptime, test_tarfile, test

[Python-3000] PyInt_AS_LONG error checking

2007-10-23 Thread Georg Brandl
PyInt_AS_LONG is #defined as PyLong_AsLong since the int/long unification. However, most places that use this macro (and also places that use PyInt_AsLong) assume it cannot fail which means that an exception won't be properly propagated in that case. If I don't overlook something here, all these

Re: [Python-3000] PyInt_AS_LONG error checking

2007-10-23 Thread Martin v. Löwis
> PyInt_AS_LONG is #defined as PyLong_AsLong since the int/long unification. > > However, most places that use this macro (and also places that > use PyInt_AsLong) assume it cannot fail which means that an exception > won't be properly propagated in that case. > > If I don't overlook something he

Re: [Python-3000] PyInt_AS_LONG error checking

2007-10-23 Thread Georg Brandl
Martin v. Löwis schrieb: >> PyInt_AS_LONG is #defined as PyLong_AsLong since the int/long unification. >> >> However, most places that use this macro (and also places that >> use PyInt_AsLong) assume it cannot fail which means that an exception >> won't be properly propagated in that case. >> >>

[Python-3000] Three new failing tests?

2007-10-23 Thread Guido van Rossum
I've got three tests failing in my py3k branch, on Linux: $ ./python Lib/test/regrtest.py test_codeccallbacks test_ctypes test_locale test_codeccallbacks test test_codeccallbacks failed -- Traceback (most recent call last): File "/usr/local/google/home/guido/python/py3kd/Lib/test/test_codeccall

Re: [Python-3000] Question about email/generator.py

2007-10-23 Thread Guido van Rossum
There's an issue in the email package that I can't resolve by myself. I described it to Barry like this: > > So in generator.py on line 291, I read: > > > > print(part.get_payload(decode=True), file=self) > > > > It turns out that part.get_payload(decode=True) returns a bytes > > object, and pri

Re: [Python-3000] Question about email/generator.py

2007-10-23 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Oct 23, 2007, at 3:36 PM, Guido van Rossum wrote: > There's an issue in the email package that I can't resolve by myself. > I described it to Barry like this: > >>> So in generator.py on line 291, I read: >>> >>> print(part.get_payload(decode=Tr

Re: [Python-3000] Three new failing tests?

2007-10-23 Thread Christian Heimes
Guido van Rossum wrote: > I don't think Georg's latest checkin (PyInt_Check/PyLong_Check issues) > broke these. You are right. They were already broken at 10am CEST. ___ Python-3000 mailing list [email protected] http://mail.python.org/mailman/lis

Re: [Python-3000] Question about email/generator.py

2007-10-23 Thread Luke Stebbing
On 10/23/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Oct 23, 2007, at 3:36 PM, Guido van Rossum wrote: > > At this point I (Guido) am really hoping someone will want to "own" > > this issue and redesign the API properly... > > I'm really bummed that I've had no time to work on this. Life and