[issue8556] Confusing string formatting examples

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Committed in r85609.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8686] "This isn't defined beyond that" phrase is not friendly to non-native English speakers.

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Removed gloss in r85610.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8811] fixing sqlite3 docs for py3k

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

This was mostly fixed already, committed rest in r85611.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-10-17 Thread Georg Brandl

Changes by Georg Brandl :


--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8855] Shelve documentation lacks security warning

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Committed in r85612, will be merged to the other maintained branches.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8968] token type constants are not documented

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Committed in r85614.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue459007] Document sys.path on Windows

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks for the patch, merged with existing info in using/windows.rst in r85615.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5212] Incorrect note about md5 in hmac module documentation

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Removed note in r85617.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9086] Wrong linking terminology in windows FAQ

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Okay, I removed mention of static linking and used John's terms "load-time" and 
"run-time" linking in r85618.  I also removed the note that pythonXY.dll is 
only needed in one case, since it's not true.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9105] pickle security note should be more prominent

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Moved pickle warning in r85621.  A warning in shelve was already added for 
issue8855.

For the tutorial, I don't think a warning needs to be added.  Same goes for 
logging.

--
nosy: +georg.brandl
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9112] argparse missing documentation for error() method

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Committed after review in r85622. Thanks!

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9117] class syntax not fully documented in reference manual

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

This patch was mostly out-of-date since PEP 3115 metaclasses are now 
documented; I've merged what was missing in r85626.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9138] Tutorial: classes intro paragraph icky

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Committed Aahz' version, with the last sentence reworded to what I think is 
more positive than what sounds like "you can break things without doing 
anything".

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9138] Tutorial: classes intro paragraph icky

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

r85627.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9195] Link in docs from "String Formatting Operations" to "Template Strings"

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Mostly out of date now that we have str.format().

--
nosy: +georg.brandl
resolution:  -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5962] Ambiguity about the semantics of sys.exit() and os._exit() in multithreaded program

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Added a note about threads to sys.exit(), and changed os._exit() wording to be 
clear about process exit, in r85629.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10119] test_urllibnet failure when using support.transient_internet

2010-10-17 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Fixed in revision 85630. When using fileno attribute of the file-descriptor, 
the socket had to be in blocking mode. 
Now the results are consistent.

This may resolve the other spurious test failures that were observed too.

--
assignee:  -> orsenthil
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1945] Document back ported C functions

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, applied in r85632.

--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10116] Sporadic failures in test_urllibnet

2010-10-17 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

ixokai, A change made as part of issue10119 should have resolved this issue 
too. Please let me know if this can be closed.

--
assignee:  -> orsenthil
resolution:  -> fixed
stage:  -> committed/rejected
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9204] The documentation of PyType_Type in py3k mentions types.TypeType

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Thanks, fixed in r85633.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5121] PyRun_InteractiveLoop disagrees with documentation?

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r85635.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9237] Add sys.call_tracing to on-line sys module documentation

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Documented in r85636.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10130] Create epub format docs and offer them on the download page

2010-10-17 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee: georg.brandl
nosy: georg.brandl
priority: deferred blocker
severity: normal
status: open
title: Create epub format docs and offer them on the download page
type: feature request
versions: Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9730] base64 docs refers to strings instead of bytes

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Fixed in r85642.

--
dependencies:  -b64decode should accept strings or bytes
resolution: accepted -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10115] accept4 can fail with errno 90

2010-10-17 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

There would need to be some tests.

Also, this last part of the patch looks strange:

@@ -3001,6 +3072,10 @@
 PyErr_SetString(PyExc_ValueError,
 "can't use invalid socket value");
 return -1;
+#ifdef HAVE_ACCEPT4
+/* These flags are not inherited after accept */
+type &= ~(SOCK_NONBLOCK & SOCK_CLOEXEC);
+#endif /* HAVE_ACCEPT4 */


What is it meant for? And why does it come right after a "return" statement?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10116] Sporadic failures in test_urllibnet

2010-10-17 Thread Stephen Hansen

Stephen Hansen  added the comment:

I'll run the test in -F mode for a few hours to see if it comes up or not: but 
its hard for me to say one way or the other if anything has fixed or not fixed 
it, as the failure only came up every once in awhile. But I'll look.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9909] request for calendar.dayofyear() function

2010-10-17 Thread JJeffries

JJeffries  added the comment:

I agree, I think this would be very useful. I use a function that does this 
quite often.

Should also be added to calendar.py's __all__.

--
nosy: +JJeffries

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2010-10-17 Thread Florent Xicluna

New submission from Florent Xicluna :

>>> import copy
>>> from xml.dom import minidom

>>> doc = minidom.parseString('')
>>> doc2 = copy.deepcopy(doc)

>>> doc.toxml()
u''
>>> doc2.toxml()
u''
>>> minidom.parseString(doc2.toxml())
Traceback (most recent call last):
...
ExpatError: junk after document element: line 1, column 2


The workaround is to use doc.cloneNode(True).

--
components: XML
messages: 118942
nosy: flox
priority: normal
severity: normal
stage: needs patch
status: open
title: deepcopying an xml.dom.minidom.Document generates an invalid XML document
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2010-10-17 Thread Florent Xicluna

Florent Xicluna  added the comment:

It works fine with 2.5 and 2.6.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10092] calendar does not restore locale properly

2010-10-17 Thread JJeffries

Changes by JJeffries :


--
nosy: +JJeffries

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10116] Sporadic failures in test_urllibnet

2010-10-17 Thread Stephen Hansen

Stephen Hansen  added the comment:

Okay, at -r85630 on branches/py3k, I ran:

./python.exe -m test.regrtest -uall -F test_urllibnet

And after 158 retries, got the same error I had before:

test test_urllibnet failed -- Traceback (most recent call last):
  File "/Users/pythonbuildbot/test/build/Lib/urllib/request.py", line 1504, in 
open
return getattr(self, name)(url)
  File "/Users/pythonbuildbot/test/build/Lib/urllib/request.py", line 1676, in 
open_http
return self._open_generic_http(http.client.HTTPConnection, url, data)
  File "/Users/pythonbuildbot/test/build/Lib/urllib/request.py", line 1659, in 
_open_generic_http
response = http_conn.getresponse()
  File "/Users/pythonbuildbot/test/build/Lib/http/client.py", line 1027, in 
getresponse
response.begin()
  File "/Users/pythonbuildbot/test/build/Lib/http/client.py", line 347, in begin
version, status, reason = self._read_status()
  File "/Users/pythonbuildbot/test/build/Lib/http/client.py", line 303, in 
_read_status
line = str(self.fp.readline(), "iso-8859-1")
  File "/Users/pythonbuildbot/test/build/Lib/socket.py", line 267, in readinto
return self._sock.recv_into(b)
socket.error: [Errno 9] Bad file descriptor

--
resolution: fixed -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

Has this been fixed in 3.1 and 2.7 too?

--
nosy: +eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1625] bz2.BZ2File doesn't support multiple streams

2010-10-17 Thread Oliver Deppert

Oliver Deppert  added the comment:

Thanks for the update

Like I mentioned before in my previous comment, I'm still searching for a 
solution/patch for python 2.x able to handle multiple streams of bz2. 

Does anybody know a work-around or have a solution porting the p3k-patch to the 
good old python 2.x?!

At the moment I try to use this patch with py3k and it seems to work. But I 
need this multistream option for pythone 2.x because the most of the time I 
deal with matplotliband matplotlib at the moment isn't able to deal with 
py3kso, I would be very happy for any suggestion running multiple-streams 
with python 2.x ! !

Thank you very much, and best regards
Kontr-Olli

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10130] Create epub format docs and offer them on the download page

2010-10-17 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Thomas Vander Stichele

Thomas Vander Stichele  added the comment:

It's too bad this is closed out of date because
 a) the macro is still there being distributed
 b) it simply hangs!
 c) there's no easy way to figure out that you should be using something else 
instead.

I spent a few hours of my life figuring out why it fails and writing an 
alternative implementation that works for me.

Instead of just closing this ticket, something should be done about the 
distributions of python so that they don't suggest something that you consider 
outdated and doesn't actually work.

Here's my working version, for reference:

# THOMAS: the test for between Py_Main and Py_GetArgcArgv is because
# code is in that order in the C file; see Modules/main.c and its comment
# print the entire Python call stack
# same for eval in Python/ceval.c

# in 2.6, PyEval_EvalFrame is only bw compatible, and code now calls
# PyEval_EvalFrameEx
define pystack
set $__lastpc = $pc
set $__same = -1
 
while 1 == 1
# select the highest frame with the same $pc
# this will automatically terminate if we reach the top
while $pc == $__lastpc
up-silently
end
down-silently

if $pc > PyEval_EvalFrameEx && $pc < PyEval_EvalCodeEx
pyframe
else
# frame
end
up-silently 1
set $__lastpc = $pc

end
select-frame 0
end

--
nosy: +thomasvs

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10126] test_distutils failure with --enable-shared

2010-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

If I understand correctly, only the changes you made to test_build_ext.py have 
to be backported.  I can do it if you want, just assign to me, or else do it 
and I’ll forward port to distutils2.

Note that I don’t fully understand the change, but I trust you that it is 
indeed the test that was faulty and not the code itself.

--
assignee:  -> tarek
components: +Distutils2
versions: +3rd party

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10126] test_distutils failure with --enable-shared

2010-10-17 Thread Éric Araujo

Changes by Éric Araujo :


--
assignee: tarek -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2010-10-17 Thread Retro

Retro  added the comment:

Did you manage to apply my fix "zipfile-patch.diff" to the trunk?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9807] deriving configuration information for different builds with the same prefix

2010-10-17 Thread Matthias Klose

Matthias Klose  added the comment:

two fixes, the configure.in differentiates the name for the static library, as 
mentioned in msg118832.

the python-config.in fix prints the library name with the abiflags.

Index: configure.in
===
--- configure.in(Revision 85644)
+++ configure.in(Arbeitskopie)
@@ -585,7 +585,7 @@
 AC_MSG_CHECKING(LIBRARY)
 if test -z "$LIBRARY"
 then
-   LIBRARY='libpython$(VERSION).a'
+   LIBRARY='libpython$(VERSION)$(ABIFLAGS).a'
 fi
 AC_MSG_RESULT($LIBRARY)
 
Index: Misc/python-config.in
===
--- Misc/python-config.in   (Revision 85644)
+++ Misc/python-config.in   (Arbeitskopie)
@@ -45,7 +45,7 @@
 
 elif opt in ('--libs', '--ldflags'):
 libs = getvar('LIBS').split() + getvar('SYSLIBS').split()
-libs.append('-lpython'+pyver)
+libs.append('-lpython'+pyver+sys.abiflags)
 # add the prefix/lib/pythonX.Y/config dir, but only if there is no
 # shared library in prefix/lib/.
 if opt == '--ldflags':

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10115] accept4 can fail with errno 90

2010-10-17 Thread Vetoshkin Nikita

Vetoshkin Nikita  added the comment:

>What is it meant for? And why does it come right after a "return" statement?
@Antoine, if fd was supplied and it was correct (not returned with -1), let's 
drop flags that can't be inherited.
It's a mistake, at that level we don't know whether we should inherit flags or 
not... I'm a bit confused...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Am 15.10.2010 20:03, schrieb David Watson:
> 
> David Watson  added the comment:
> 
>> As a further note: I think socket.gethostname() is a special case, since 
>> this is just about a local setting (i.e. not related to DNS).
> 
> But the hostname *is* commonly intended to be looked up in the
> DNS or whatever name resolution mechanisms are used locally -
> socket.getfqdn(), for instance, works by looking up the result
> using gethostbyaddr() (actually the C function getaddrinfo(),
> followed by gethostbyaddr()).  So I don't see the rationale for
> treating it differently from the results of gethostbyaddr(),
> getnameinfo(), etc.

The result from gethostname likely comes out of machine-local
configuration. It may have non-ASCII in it, which is then likely
encoded in the local encoding. When looking it up in DNS, IDNA
should be applied.

OTOH, output from gethostbyaddr likely comes out of the DNS itself.
Guessing what encoding it may have is futile - other than guessing
that it really ought to be ASCII.

> I can see the point of returning the characters that were
> intended, but code that looked up the returned name would then
> have to be changed to re-encode it to bytes to avoid the
> round-tripping issue when non-ASCII characters are returned.

Python's socket module is clearly focused on the internet, and
intends to support that well. So if you pass a non-ASCII
string, it will have to encode that using IDNA. If that's
not what you want to get, tough luck.

--
title: socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names -> 
socket,  PEP 383: Mishandling of non-ASCII bytes in host/domain names

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> The issue Raymond raised is the potential impossibility of making the
> change /after/ we settle on a stable ABI. The question is whether the
> ABI will be enforced starting from 3.2, or from a later date.

I'd like to repeat that it will not be impossible to fix this after the
ABI is in place.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Le dimanche 17 octobre 2010 à 17:40 +, Martin v. Löwis a écrit :
> Martin v. Löwis  added the comment:
> 
> > The issue Raymond raised is the potential impossibility of making the
> > change /after/ we settle on a stable ABI. The question is whether the
> > ABI will be enforced starting from 3.2, or from a later date.
> 
> I'd like to repeat that it will not be impossible to fix this after the
> ABI is in place.

At the cost of very annoying complications, though.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

Can't we just do it now, and be done with it regardless of the stable ABI?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2010-10-17 Thread Brett Cannon

Brett Cannon  added the comment:

If any action regarding your patch takes place there will be a comment here 
about it. Until then assume nothing has happened.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4949] Constness in PyErr_NewException

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Assuming the patch doesn't cause warnings on the compilers that we use, it 
looks fine to me.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10130] Create epub format docs and offer them on the download page

2010-10-17 Thread Brett Cannon

Changes by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

fyi - for information on using gdb 7 with python see 
http://bugs.python.org/issue8032

I'm looking at the .gdbinit improvements regardless as not everyone has gdb 7 
(notably OS X).

--
resolution: out of date -> 
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> Can't we just do it now, and be done with it regardless of the stable ABI?

Sure. Somebody needs to implement it (and consider what consequences
this has on third-party modules - I'm uncertain).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10115] accept4 can fail with errno 90

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> That's another possibility, in which case we would first remove the
> current accept4-calling code in order to fix the buildbot failure.

In Python, the lowest layer facing the operating system always directly
exposes the API as-is, without reinterpreting the user's request. Not
following this principle leads exactly to this kind of problem.

So I think .accept() should only call accept(2), and accept4() should
only be called if explicitly requested by the application.

Exposing it as .accept4(flags) is certainly the most straight-forward
way of doing it, but I could also live with .accept(flags) (i.e.
call accept4 if flags are being passed, hoping that no other system
comes up with another accept extension that has a different integer
argument).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

everything except the lineno change from gdbinit_python26.patch has been 
committed in r85646.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

and the py_decref in there isn't quite right, fixing...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

I think the reference to EasierPythonDebugging is outdated and should be 
corrected. Dave Malcolm's work is already part of Python, and available with 
every Python build.

--
nosy: +loewis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

do we have official python docs on this that I should point to?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> do we have official python docs on this that I should point to?

I only know of the doc string of libpython.py itself, in Tools/gdb

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10132] mkpkg.py is lacked.

2010-10-17 Thread Atsushi Odagiri

New submission from Atsushi Odagiri :

I try to install distutils2-1.0a3 to python 2.5.
But I got error such a below.

$ python -V
Python 2.5.2
$ python setup.py build
running build
running build_py
running build_scripts
error: file 'distutils2/mkpkg.py' does not exist
$ ls distutils2/mkpkg.pyls: cannot access distutils2/mkpkg.py: No such file or 
directory

--
assignee: tarek
components: Distutils2
messages: 118966
nosy: Atsushi.Odagiri, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: mkpkg.py is lacked.
versions: Python 2.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

Updated list of failing test with py3k and a non-ascii path:
 * Linux, LANG=C: test_gc test_gdb test_runpy test_zipimport
 * Windows: test_email test_httpservers test_zipimport

Possible reasons:
 * test_httpservers (CGIHTTPServerTestCase.setUp): test should be skipped if 
sys.executable is not pure ASCII (and it's not possible to create ASCII path 
using a symlink)
 * test_zipimport: zipimport uses utf-8 (in strict mode) for the prefix, 
instead of the filesystem encoding
 * test_gc (test_get_count): "The following two tests are fragile: ..." :-/
 * test_gdb: libpython doesn't support surrogates if paths
 * test_email: issue with the end of line (\n vs \r\n?)
 * test_runpy: ?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Case Van Horsen

Case Van Horsen  added the comment:

I'm the maintainer of a third-party library (gmpy) that would be impacted by 
this and I'm definately in favor of this change. With ever increasing amounts 
of memory becoming standard in computers, more users will encounter performance 
issues with large dictionaries. I see 3.2 as the version of Python 3.x that 
gains wide-spread use. Regardless of the timing of a stable ABI, it's 
popularity will make it more difficult change the hash size in the future.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10128] multiprocessing.Pool throws exception with __main__.py

2010-10-17 Thread Michael Olson

Michael Olson  added the comment:

I wrapped the offending assertion in a if main_name != '__main__'. I considered 
not checking the module_name against built-in modules but that seemed likely to 
be the sort of thing being guarded against, so I left it at an exception for 
__main__.

Ran a few trivial testing using Pool and Process and it seems to work fine.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

I updated the note in gdbinit to point to Tools/gdb/libpython.py for py3k (3.2) 
and 2.7.

Thomas: I didn't do anything with your version of pystack because the existing 
versions in 3.2 and 2.7 appear to work fine for me.

--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

This is now fixed in r85660. The field associated with a T_BOOL must be of type 
char, so I changed the type of inTransaction.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> I'm the maintainer of a third-party library (gmpy) that would be
> impacted by this and I'm definitely in favor of this change.

Assume Python would make such a change, and users would build released
gmpy versions for such a Python release. What would happen (in terms
of observable errors)?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10073] calendar.isleap() not checking parameter type

2010-10-17 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

Let me fix this function a little bit...

def isleap(year):
"""Return True for leap years, False for non-leap years."""
if year == 0:
raise ValueError('year 0 does not exist')
return (year % 4 == 0) and (year % 100 != 0) or (year % 400 == 0)

This function, however, does not mind if you give it a negative number. But I 
think we can leave this option to mean B.C. (Before Christ), so 
calendar.isleap(-240) would mean 240 B.C., which was a leap year.

About the  if year == 0  check... Well, read Wikipedia's article  
http://en.wikipedia.org/wiki/0_(year)  which clearly states that "Year zero 
does not exist in the widely used Gregorian calendar or in its predecessor, the 
Julian calendar."  So we raise a ValueError if this value is used in the 
calendar.isleap() function.

I have uploaded a patch that fixes this function. Please apply it to the trunk 
and also to the maintenance brances.

--
keywords: +patch
Added file: http://bugs.python.org/file19255/calendar-isleap.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10132] mkpkg.py is lacked.

2010-10-17 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

The file was renamed to mkcfg.py, but we forgot to rename it in the scripts 
options in setup.py for py < 2.6. This was fixed since then.

Until the alpha4 release is out you can make the same change in setup.py for 
your build to work.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10132] mkpkg.py is lacked.

2010-10-17 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

The file was renamed to mkcfg.py, but we forgot to rename it in the scripts 
options in setup.py for py < 2.6. This was fixed since then.

Until the alpha4 release is out you can make the same change in setup.py for 
your build to work.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

r85655 fixed test_gdb failure.

test_runpy failure looks to be linked to test_zipimport problems.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9772] test_pep277 failure on AMD64 debian parallel buildbot

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

That appears to be a bug in the NFS server. When you creat("Gr\303\274-Gott"), 
what actually comes out of getdents(3) is Gr\303\274-Gott. This only happens 
with four bytes of non-ASCII - two UTF-8 bytes are correctly reported. We are 
investigating this locally.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10133] conn_recv_string() broken error handling

2010-10-17 Thread Hallvard B Furuseth

New submission from Hallvard B Furuseth :

Neither conn_recv_string() nor its callers free *newbuffer on error.

The promotion rules break negative 'res' for 64-bit Py_ssize_t
in the (ulength <= buflength) branch:
res = -1 ==> (UINT32)-1 ==> Py_ssize_t 0x instead of -1.

While I'm writing: The _conn_recvall() calls can be factored out
of the if().

This patch applies to both 3.2a3 and 2.7.  However, the patched failure
cases are untested: I do not know how to test them. It passes make test.

--
components: IO
files: conn_recv_string_failures.diff
keywords: patch
messages: 118978
nosy: hfuru
priority: normal
severity: normal
status: open
title: conn_recv_string() broken error handling
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file19256/conn_recv_string_failures.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

r85659 + r85662 + r85663 fixed test_httpservers.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Here's a patch. Please review.

--
keywords: +patch
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file19257/hash_t.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Benjamin Peterson

Changes by Benjamin Peterson :


Added file: http://bugs.python.org/file19258/hash_t.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Antoine Pitrou

Changes by Antoine Pitrou :


___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9730] base64 docs refers to strings instead of bytes

2010-10-17 Thread Daniel Stutzbach

Daniel Stutzbach  added the comment:

That fixes the example code, but what about the numerous text that reads  
"strings" that should read "byte sequences", "bytes", or similar?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2010-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

Good news: this issue is now fixed in py3k (Python 3.2). I cannot give a commit 
number, because there are too much commits related to this problem (see #8611 
and #9425), but it works ;-)

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-10-17 Thread R. David Murray

R. David Murray  added the comment:

Thank you, Martin.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10132] mkpkg.py is missing

2010-10-17 Thread R. David Murray

Changes by R. David Murray :


--
title: mkpkg.py is lacked. -> mkpkg.py is missing

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

A few comments:
- in complex_hash, why did you drop the cast?
- in object.rst, add versionchanged. It should also explain that Py_hash_t is a 
signed integer with the same width as size_t.

Otherwise, it looks fine.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Dropping the cast was inadvertent. I've now added versionchanged and committed 
it in r85664.

--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10133] multiprocessing: conn_recv_string() broken error handling

2010-10-17 Thread Amaury Forgeot d'Arc

Changes by Amaury Forgeot d'Arc :


--
assignee:  -> jnoller
nosy: +jnoller
title: conn_recv_string() broken error handling -> multiprocessing: 
conn_recv_string() broken error handling

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10126] test_distutils failure with --enable-shared

2010-10-17 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

Hi Eric, yes, that's basically what I did.  See _fix_command(), which *should* 
be the only thing that needs to be backported.  I do believe it's a faulty test 
and hopefully the comment explains why it's necessary.

Thanks for giving the backport a shot!

--
assignee:  -> eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Skip Montanaro

Skip Montanaro  added the comment:

I added a placeholder to the What's New document.  Since it will affect 
extension module authors it should be mentioned at a higher level than just 
Misc/NEWS.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1343] XMLGenerator: nice elements

2010-10-17 Thread R. David Murray

R. David Murray  added the comment:

Committed Neil's patch (after adding docs) in r85671.  Thanks.

--
nosy: +r.david.murray
resolution:  -> accepted
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-17 Thread Bruce Sherwood

Bruce Sherwood  added the comment:

I found a couple of mistakes in the patch I submitted (places where "vidle" 
should have been "idlelib", and which aren't addressed in Ned Deily's patch), 
so I've rebuilt the patch starting from the tag r32a3, which I assume is the 
version from which Ned started.

--
Added file: http://bugs.python.org/file19259/idlelib20101012_from_r32a3.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9730] base64 docs refers to strings instead of bytes

2010-10-17 Thread R. David Murray

R. David Murray  added the comment:

I reviewed the doc and tightened up the wording (which was already mostly 
correct) in r85672.  Also fixed one typo and changed it to consistently use 
'byte string' (rather than 'bytestring' which was used in one or two places).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread R. David Murray

R. David Murray  added the comment:

Victor, can you paste or attach the error for email?  My MSDN subscription has 
expired so I can't set up to test it myself (I've submitted the renewal, but 
who knows how long it will take to process :)

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4499] redefinition of TILDE macro on AIX platform

2010-10-17 Thread R. David Murray

R. David Murray  added the comment:

Committed to py3k in r85675, 3.1 in r85676, and 2.7 in r85677.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue678250] test_mmap failling on AIX

2010-10-17 Thread R. David Murray

R. David Murray  added the comment:

Committed to py3k in r85678.  If I'm reading this string correctly, I believe 
this can (and should be) be backported.  Am I correct?

--
nosy: +r.david.murray
resolution:  -> fixed
stage:  -> committed/rejected

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Case Van Horsen

Case Van Horsen  added the comment:

The patch does not address that "unsigned long" is still used to calculate the 
hash values. This breaks numeric hashing and leads to incorrect values.

Python 3.2a3+ (py3k, Oct 17 2010, 19:03:38) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.hash_info
sys.hash_info(width=64, modulus=-1, inf=314159, nan=0, imag=103)
>>>

Would "size_t" be the appropriate type to use?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Good point. Here's another patch:

--
Added file: http://bugs.python.org/file19260/deunsignify.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10134] test_email failures on Windows: end of line issue?

2010-10-17 Thread STINNER Victor

New submission from STINNER Victor :

See attached file for the full output. One example:

== CPython 3.2a3+ (py3k:85660, Oct 17 2010, 21:57:48) [MSC v.1500 32 bit 
(Intel)]
==   Windows-XP-5.1.2600-SP3 little-endian
==
FAIL: test_MIME_digest (email.test.test_email.TestBytesGeneratorIdempotent)
--
Traceback (most recent call last):
  File "C:\victor\py3k\lib\email\test\test_email.py", line 2016, in 
test_MIME_digest
self._idempotent(msg, text)
  File "C:\victor\py3k\lib\email\test\test_email.py", line 2947, in _idempotent
self.assertEqual(data, b.getvalue())
  File "C:\victor\py3k\lib\email\test\test_email.py", line 2952, in assertEqual
self.assertListEqual(str1.split(b'\n'), str2.split(b'\n'))
AssertionError: Lists differ: [b'MIME-version: 1.0\r', b'Fro... != 
[b'MIME-version: 1.0', b'From:...

First differing element 0:
b'MIME-version: 1.0\r'
b'MIME-version: 1.0'

- [b'MIME-version: 1.0\r',
? --

+ [b'MIME-version: 1.0',
-  b'From: ppp-requ...@zzz.org\r',
? --

+  b'From: ppp-requ...@zzz.org',
-  b'Sender: ppp-ad...@zzz.org\r',
? --

+  b'Sender: ppp-ad...@zzz.org',
-  b'To: p...@zzz.org\r',
?   --

+  b'To: p...@zzz.org',
-  b'Subject: Ppp digest, Vol 1 #2 - 5 msgs\r',
?  --

+  b'Subject: Ppp digest, Vol 1 #2 - 5 msgs',
-  b'Date: Fri, 20 Apr 2001 20:18:00 -0400 (EDT)\r',
?   --

+  b'Date: Fri, 20 Apr 2001 20:18:00 -0400 (EDT)',
-  b'X-Mailer: Mailman v2.0.4\r',
?--

+  b'X-Mailer: Mailman v2.0.4',
-  b'X-Mailman-Version: 2.0.4\r',
?--

+  b'X-Mailman-Version: 2.0.4',
-  b'Content-Type: multipart/mixed; 
boundary="192.168.1.2.889.32614.987812255.500.21814"\r',
?   
--

+  b'Content-Type: multipart/mixed; 
boundary="192.168.1.2.889.32614.987812255.500.21814"',
-  b'\r',
?--

+  b'',
-  b'--192.168.1.2.889.32614.987812255.500.21814\r',
?   --

+  b'--192.168.1.2.889.32614.987812255.500.21814',
-  b'Content-type: text/plain; charset=us-ascii\r',
?  --

+  b'Content-type: text/plain; charset=us-ascii',
-  b'Content-description: Masthead (Ppp digest, Vol 1 #2)\r',
?--

+  b'Content-description: Masthead (Ppp digest, Vol 1 #2)',
-  b'\r',
?--

+  b'',
   b'Send Ppp mailing list submissions to\r',
   b'\t...@zzz.org\r',
   b'\r',
   b'To subscribe or unsubscribe via the World Wide Web, visit\r',
   b'\thttp://www.zzz.org/mailman/listinfo/ppp\r',
   b"or, via email, send a message with subject or body 'help' to\r",
   b'\tppp-requ...@zzz.org\r',
   b'\r',
   b'You can reach the person managing the list at\r',
   b'\tppp-ad...@zzz.org\r',
   b'\r',
   b'When replying, please edit your Subject line so it is more specific\r',
   b'than "Re: Contents of Ppp digest..."\r',
   b'\r',
-  b'\r',
?--

+  b'',
-  b'--192.168.1.2.889.32614.987812255.500.21814\r',
?   --

+  b'--192.168.1.2.889.32614.987812255.500.21814',
-  b'Content-type: text/plain; charset=us-ascii\r',
?  --

+  b'Content-type: text/plain; charset=us-ascii',
-  b"Content-description: Today's Topics (5 msgs)\r",
?--

+  b"Content-description: Today's Topics (5 msgs)",
-  b'\r',
?--

+  b'',
   b"Today's Topics:\r",
   b'\r',
   b'   1. testing #1 (Barry A. Warsaw)\r',
   b'   2. testing #2 (Barry A. Warsaw)\r',
   b'   3. testing #3 (Barry A. Warsaw)\r',
   b'   4. testing #4 (Barry A. Warsaw)\r',
   b'   5. testing #5 (Barry A. Warsaw)\r',
-  b'\r',
?--

+  b'',
-  b'--192.168.1.2.889.32614.987812255.500.21814\r',
?   --

+  b'--192.168.1.2.889.32614.987812255.500.21814',
-  b'Content-Type: multipart/digest; boundary="__--__--"\r',
?   --

+  b'Content-Type: multipart/digest; boundary="__--__--"',
-  b'\r',
?--

+  b'',
-  b'--__--__--\r',
?  --

+  b'--__--__--',
-  b'\r',
?--

+  b'',
-  b'Message: 1\r',
?  --

+  b'Message: 1',
-  b'Content-Type: text/plain; charset=us-ascii\r',
?  --

+  b'Content-Type: text/plain; charset=us-ascii',
-  b'Content-Transfer-Encoding: 7bit\r',
?   --

+  b'Content-Transfer-Encoding: 7bit',
-  b'Date: Fri, 20 Apr 2001 20:16:13 -0400\r',
? --

+  b'Date: Fri, 20 Apr 2001 20:16:13 -0400',
-  b'To: p...@zzz.org\r',
?  

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

> Victor, can you paste or attach the error for email?

It doesn't look to be related to the path name (same failure with "py3ké" or 
"py3k" directory name), so I opened #10134.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com