[issue2764] c_char doesn't implement py3k buffer interface

2008-05-05 Thread Thomas Heller

Thomas Heller [EMAIL PROTECTED] added the comment:

Thanks for your efforts, Christian.
This test needs an object which implements the readonly buffer interface.

Unfortunately the bytes object that I would like to use is broken:
http://bugs.python.org/issue2538

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2764
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2766] Doubtfull code in 'doctest.DocTestSuite'

2008-05-05 Thread Dieter Maurer

New submission from Dieter Maurer [EMAIL PROTECTED]:

doctest.DocTestSuite has parameter globs=None.
It uses globs in the call to test_finder.call.
After this use, it potentually modifies globs but no longer uses it.

Either the globs modification is irrelevant (then it should be removed)
or it should happen before the test_finder.find call.

--
components: Library (Lib)
messages: 66259
nosy: dmaurer
severity: normal
status: open
title: Doubtfull code in 'doctest.DocTestSuite'
versions: Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2766
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2708] IDLE subprocess error

2008-05-05 Thread Kristian Lauridsen

Kristian Lauridsen [EMAIL PROTECTED] added the comment:

Python 2.5.2 IDLE 1.2.2
It dosnt matter how i try to end IDLE: red cross, close(alt+F4), exit
(Ctrl+Q) or writing exit(), it will ask me to kill the program. 
I dont think it's IDLE im killing but the program im writing.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2708
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2767] doctest.DocTestCase.debug clears test.globs too early

2008-05-05 Thread Dieter Maurer

New submission from Dieter Maurer [EMAIL PROTECTED]:

doctest.DocTestCase.debug calls DebugRunner.run without
clear_globs=False. As a consequence, already the runner clears
test.globs and it is no longer available to tearDown (where
is it cleared again).

--
components: Library (Lib)
messages: 66262
nosy: dmaurer
severity: normal
status: open
title: doctest.DocTestCase.debug clears test.globs too early
type: behavior
versions: Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2767
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-05 Thread Martin McNickle

Martin McNickle [EMAIL PROTECTED] added the comment:

I can see that there will be a problem in this case.

However, it may be that the authors found it more intuitive to always
set the Content-Type to application/x-www-form-urlencoded when data is set.

Their implementation is inconsistent though:

#---
request = urllib2.Request('http://www.somesite.com/')
request.add_data(data)
f = urllib2.urlopen(request)

# 'Content-Type: application/x-www-form-urlencoded' is sent in the header
#---

whereas:

#---
request = urllib2.Request('http://www.somesite.com/')
request.add_header('Content-Type', 'application/xml')
request.add_data(data)

# 'Content-Type: application/xml' is sent in the header
#---

We need to decide what is the best way to handle this case.  Should the
normal headers be given preference, or should the unredirected headers
be given preference?

--- Martin

--
nosy: +BitTorment

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2756
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2697] Logging ancestors ignored after configuration

2008-05-05 Thread Yap Sok Ann

Yap Sok Ann [EMAIL PROTECTED] added the comment:

I'd think that it is a rather common situation where one wants to use 
use both fileConfig and module-level logger. As of now, the workaround 
suggested by Andrew seems to be the only viable way to achieve that. 
The alternative approach mentioned, i.e. to name all loggers explicitly 
in the configuration file, is just too unintuitive.

--
nosy: +sayap

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2697
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-05 Thread Martin McNickle

Martin McNickle [EMAIL PROTECTED] added the comment:

Sorry, the first example should read:

#---
request = urllib2.Request('http://www.whompbox.com/headertest.php')
request.add_data(data)
f = urllib2.urlopen(request)

request.add_header('Content-Type', 'application/xml')
f = urllib2.urlopen(request)

# 'Content-Type: application/x-www-form-urlencoded' is sent in both
headers.  Second header (should?) be 'application/xml'
#---

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2756
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2008-05-05 Thread Christian Heimes

New submission from Christian Heimes [EMAIL PROTECTED]:

os.fstat doesn't accept a file object with a fileno() method. This can
easily be fixed by using PyObject_AsFileDescriptor(). Other os.f*
methods may suffer from the same issue.

--
components: Extension Modules
keywords: easy
messages: 66266
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: os.fstat and other os.f* methods should use PyObject_AsFileDescriptor
type: feature request
versions: Python 2.6, Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2768
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2769] Small typo in whatsnew/2.6.rst

2008-05-05 Thread Quentin Gallet-Gilles

New submission from Quentin Gallet-Gilles [EMAIL PROTECTED]:

In the What's new documentation for 2.6, a code marker is missing in
the paragraph about itertools.permutations.

Attached patch corrects this.

--
assignee: georg.brandl
components: Documentation
files: whatsnew_2.6.patch
keywords: patch
messages: 66268
nosy: georg.brandl, quentin.gallet-gilles
severity: normal
status: open
title: Small typo in whatsnew/2.6.rst
versions: Python 2.6
Added file: http://bugs.python.org/file10197/whatsnew_2.6.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2769
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2632] performance problem in socket._fileobject.read

2008-05-05 Thread Raghuram Devarakonda

Raghuram Devarakonda [EMAIL PROTECTED] added the comment:

Similar problem is reported in #2760.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2632
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2760] Recent change in socket.py breaks urllib2

2008-05-05 Thread Raghuram Devarakonda

Raghuram Devarakonda [EMAIL PROTECTED] added the comment:

Similar problem has been reported in #2632 as well.

--
nosy: +draghuram

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2760
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2770] Subversion 1.5 Working Copies Break Setuptools

2008-05-05 Thread Augie Fackler

New submission from Augie Fackler [EMAIL PROTECTED]:

Subversion 1.5 adds some fields to the entries file in the working copy 
administrative area. As a result of this, the way in which setuptools 
checks the entries files results in a raised exception. Having read the 
spec for the entries file, the issue can be fixed simply by looking for 
version 8 or version 9 in the opening of the entries file. I've attached a 
patch that does this. I've tested it extensively locally (been using it 
for months).

--
components: Distutils
files: setuptools_patch.txt
messages: 66271
nosy: durin42
severity: normal
status: open
title: Subversion 1.5 Working Copies Break Setuptools
versions: Python 2.5
Added file: http://bugs.python.org/file10198/setuptools_patch.txt

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2770
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2771] test issue

2008-05-05 Thread Guido van Rossum

Changes by Guido van Rossum [EMAIL PROTECTED]:


--
nosy:  -gvanrossum
resolution:  - invalid
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2771
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2749] Raise a DeprecationWarning for warnings.showwarning(.., line)

2008-05-05 Thread Brett Cannon

Brett Cannon [EMAIL PROTECTED] added the comment:

r62720 and r62722 have the fix (and a fix for the fix). In the Python code 
I check for an argument named 'line' and in the C code I make sure there 
are at least two default arguments. Both assume a Python implementation 
for showwarning(), which should be a reasonable assumption.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2749
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1734346] patch for bug 1170311 zipfile UnicodeDecodeError

2008-05-05 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Thanks for the patch, committed as r62724. I didn't see the need to
clear the UTF-8 flag, so I left it in (in case somebody wants to inspect
it).

--
resolution:  - accepted
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1734346
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2741] documentation -- do serversockets work with ipv6

2008-05-05 Thread Mike MacFaden

Mike MacFaden [EMAIL PROTECTED] added the comment:

so i suggest just removing this sentence --

  AF_INET and socket.AF_UNIX are two possible values.

this would imply that all socket address families are supported.
but if that is not true just list the exceptions.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2741
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2770] Subversion 1.5 Working Copies Break Setuptools

2008-05-05 Thread Georg Brandl

Changes by Georg Brandl [EMAIL PROTECTED]:


--
assignee:  - pje
nosy: +pje

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2770
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2760] Recent change in socket.py breaks urllib2

2008-05-05 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

the change in socket was done as part of #2632.  i'm marking this a
duplicate, we'll track the issue in #2632.

--
assignee:  - gregory.p.smith
dependencies: +performance problem in socket._fileobject.read
nosy: +gregory.p.smith
priority:  - release blocker
resolution:  - duplicate
status: open - closed
superseder:  - performance problem in socket._fileobject.read

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2760
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2632] performance problem in socket._fileobject.read

2008-05-05 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

I'm glad i put that assert in...  The problem occurs due to a mixture of
fixed size reads followed by unbounded readlines on an unbuffered
_fileobject.  A case that the code currently doesn't handle.  I'm fixing it.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2632
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2750] Add simplejson to Python 2.6/3.0 standard library

2008-05-05 Thread Christian Heimes

Christian Heimes [EMAIL PROTECTED] added the comment:

Please merge the bzr into the svn trunk as soon as possible. I'd like to
get it into the last alpha release.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2750
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1799] Per user site-packages and setup.py install --user patch

2008-05-05 Thread Christian Heimes

Changes by Christian Heimes [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file9158/trunk_usersite4.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1799
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1799] PEP 370

2008-05-05 Thread Christian Heimes

Christian Heimes [EMAIL PROTECTED] added the comment:

The new patch applies cleanly in the trunk.

--
priority: normal - critical
title: Per user site-packages and setup.py install --user patch - PEP 370
Added file: http://bugs.python.org/file10199/pep370.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1799
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2750] Add simplejson to Python 2.6/3.0 standard library

2008-05-05 Thread Brett Cannon

Brett Cannon [EMAIL PROTECTED] added the comment:

I am leaving this issue open until 'json' is ported to 3.0 (and thus why I 
am assigning this to Christian).

--
assignee: benjamin.peterson - christian.heimes

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2750
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2750] Add simplejson to Python 2.6/3.0 standard library

2008-05-05 Thread Brett Cannon

Changes by Brett Cannon [EMAIL PROTECTED]:


--
versions:  -Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2750
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2750] Add simplejson to Python 2.6/3.0 standard library

2008-05-05 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Fixed up the docs in r62736.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2750
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2769] Small typo in whatsnew/2.6.rst

2008-05-05 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Fixed in r62737.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2769
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2759] Bool makes filter(None,it) redundant; remove None option?

2008-05-05 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

I don't think this is important enough to get into 3099.

--
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2759
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2761] Doc: built-in callables and map

2008-05-05 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Problem is, we already have a section Builtin types.

Fixed the map() docs in r62738, and added a note to the first sentence
in r62739.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2761
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2752] Wrong comment in socket documentation

2008-05-05 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Fixed in r62740, thanks!

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2752
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1734346] patch for bug 1170311 zipfile UnicodeDecodeError

2008-05-05 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

 Martin, I cleared the flag bit because filename was changed in-place, to
 mark that filename does not need further processing. This was primarily
 compatibility concern, to accommodate for situations where users try to
 do such decoding in their own code (this way flag won't be there, so
 their code won't trigger). Without clearing the flag bit, calling
 _decodeFilenameFlags second time will fail, as well as any similar user
 code.

I'm not concerned about the compatibility; code that actually does the
decoding still might break since it would expect the filename to be a
byte string if it doesn't explicitly decode. Such assumption would still
break under your change.

I am concerned about silently faking data. The library shouldn't do
that; it should present the flags unmodified, as some application might
perform further processing (such as displaying the flags to the user).
It would then be confusing if the data processed isn't the one that was
read from disk.

 I suggest that if users want to know if filename is unicode, they should
 check that filename is of class unicode.

That won't work in Py3k, which will always decode the filename.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1734346
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2741] documentation -- do serversockets work with ipv6

2008-05-05 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

 so i suggest just removing this sentence --
 
   AF_INET and socket.AF_UNIX are two possible values.
 
 this would imply that all socket address families are supported.
 but if that is not true just list the exceptions.

I think this will confuse users which don't know what an
address family is - they are left guessing what possibly could
be in this field.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2741
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2741] documentation -- do serversockets work with ipv6

2008-05-05 Thread Mike MacFaden

Mike MacFaden [EMAIL PROTECTED] added the comment:

then change 'possible values' to 'for example'

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2741
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2732] curses.textpad loses characters at the end of lines

2008-05-05 Thread Shish

Shish [EMAIL PROTECTED] added the comment:

Also present in 2.5

--
components: +Library (Lib) -Extension Modules
versions: +Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2732
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2762] Language Reference: obsolute 2.x notes

2008-05-05 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks very much, Terry! I've done almost all your suggestions in
r62742, and added a docstring to with_traceback in r62741.

For future issues, please feel free to choose either method 1 or 3 (I
think 3 may be the simplest for you.)

--
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2762
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2632] performance problem in socket._fileobject.read

2008-05-05 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

The bug introduced in r62627 has been fixed in r62744.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2632
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2760] Recent change in socket.py breaks urllib2

2008-05-05 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

The bug introduced in r62627 has been fixed in r62744.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2760
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1736190] asyncore/asynchat patches

2008-05-05 Thread Guido van Rossum

Guido van Rossum [EMAIL PROTECTED] added the comment:

FWIW, I've added Giampaolo's latest patch to Rietveld:
http://codereview.appspot.com/744

Review comments added there should automatically be CC'ed here.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1736190
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1736190] asyncore/asynchat patches

2008-05-05 Thread svncodereview

svncodereview [EMAIL PROTECTED] added the comment:

Dear [EMAIL PROTECTED],

New code review comments by [EMAIL PROTECTED] have been published.
Please go to http://codereview.appspot.com/744 to read them.

Message:
(This is mostly a test of the bug/rietveld integration.)

Details:

http://codereview.appspot.com/744/diff/1/22
File Doc/library/asyncore.rst (right):

http://codereview.appspot.com/744/diff/1/22#newcode226
Line 226: A file_dispatcher takes a file descriptor or file object 
along with an optional
Mind keeping the line length under 80 chars?

Issue Description:
http://bugs.python.org/issue1736190

Sincerely,

  Your friendly code review daemon (http://codereview.appspot.com/).

--
nosy: +svncodereview

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1736190
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2630] repr() should not escape non-ASCII characters

2008-05-05 Thread Guido van Rossum

Guido van Rossum [EMAIL PROTECTED] added the comment:

On Fri, Apr 18, 2008 at 1:46 AM, Marc-Andre Lemburg
[EMAIL PROTECTED] wrote:
 On 2008-04-18 05:35, atsuo ishimoto wrote:
   atsuo ishimoto [EMAIL PROTECTED] added the comment:
  
   Is a codec which encode() returns an Unicode allowed in Python3?

  Sure, why not ?

Actually, it is not. In Py3k, x.encode() always requires x to be a str
(i.e. unicode) instance and return a bytes instance. y.decode()
requires y to be a bytes instance and returns a str (i.e. unicode)
instance.

  I think you have to ask another question: Is repr() allowed to
  return a string (instead of Unicode) in Py3k ?

In Py3k, strings *are* unicode. The str data type is Unicode.

If you're asking about repr() possibly returning a bytes instance,
definitely not.

  If not, then unicode_repr() will have to check the return value of
  the codec and convert it back to Unicode as necessary.

What codec?

   I started to think codec is not nessesary, but python function is enough.

  That's what we currently have with unicode_repr(), but it doesn't
  solve the problem.

I'm lost here.

PS. Atsuo's PEP has now been checked in as PEP 3138. Discussion should
start soon on the python-3000 list.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2630
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2630] repr() should not escape non-ASCII characters

2008-05-05 Thread Guido van Rossum

Guido van Rossum [EMAIL PROTECTED] added the comment:

FWIW, I've uploaded diff3.txt to Rietveld:
http://codereview.appspot.com/767

Code review comments should be reflected here.

I had to skip the change to Modules/unicodename_db.h which were too
large for Rietveld to handle.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2630
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2697] Logging ancestors ignored after configuration

2008-05-05 Thread andrew cooke

andrew cooke [EMAIL PROTECTED] added the comment:

Got more important things than this to worry about, but yes, original
response not very helpful.  In a perfect world this might be either
justified more clearly or addressed.  OTOH, I get the impression hardly
anyone uses this package (docs were pretty opaque...)

Also, isn't this a won't fix rather than an invalid?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2697
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2621] rename test_support to support

2008-05-05 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Now that the stdlib-reorg PEP has been accepted, would you like you me
to apply this patch? (Of course, I'll account for recent changes in the
test suite.)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2621
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2630] repr() should not escape non-ASCII characters

2008-05-05 Thread atsuo ishimoto

atsuo ishimoto [EMAIL PROTECTED] added the comment:

I forgot to mention to Modules/unicodename_db.h. 

The current unicodename_db.h looks it was generated
by old Tools/unicode/makeunicodedata.py. This patch
includes newly generated unicodename_db.h, but we 
can exclude the change if not necessary.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2630
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2630] repr() should not escape non-ASCII characters

2008-05-05 Thread Guido van Rossum

Guido van Rossum [EMAIL PROTECTED] added the comment:

No need to change anything, the diff is just too big for the code
review tool (Rietveld), but since it consists only of numbers we don't
need to review it anyway. :)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2630
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com