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

2008-05-04 Thread Brett Cannon

Brett Cannon [EMAIL PROTECTED] added the comment:

One problem with the way the patch is now is that it will fail on non-
CPython interpreters the way it is currently coded. For instance, 
json/decoder.py completely assumes that importing _json will succeed. Same 
with the test suite.

Will need to tweak the code so that it will run on PyPy, etc., where there 
is no C extensions.

But that does not need to hold up committing the code. If Christian and 
Benjamin think the code is in good shape we can commit now and fix in svn.

__
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-04 Thread Bob Ippolito

Bob Ippolito [EMAIL PROTECTED] added the comment:

It doesn't work on alternate implementations right now anyway, because
it (ab)uses some sre APIs that aren't widely implemented outside of cpython.

__
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-04 Thread Brett Cannon

Brett Cannon [EMAIL PROTECTED] added the comment:

Ouch. Well then hopefully either they will get implemented or some way to 
not rely on them can be developed.

__
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



[issue2753] Test issue (different spelling)

2008-05-04 Thread svncodereview

svncodereview [EMAIL PROTECTED] added the comment:

Dear [EMAIL PROTECTED], [EMAIL PROTECTED],

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

Message:

Details:

http://codereview.appspot.com/730/diff/1/21
File Lib/test/regrtest.py (right):

http://codereview.appspot.com/730/diff/1/21#newcode3
Line 3: Regression test driver.
Comment 6

Issue Description:

Sincerely,

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

--
nosy: +svncodereview
title: Test issue - Test issue (different spelling)

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



[issue2753] Test issue (different spelling)

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

Changes by Martin v. Löwis [EMAIL PROTECTED]:


--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2753
__
___
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-04 Thread Bob Ippolito

Bob Ippolito [EMAIL PROTECTED] added the comment:

it's isolated to json.scanner, if that was re-implemented in more
general terms then it wouldn't be dependent on sre anymore.

__
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



[issue2726] Autodoc's autoclass directive should include constructor docstring

2008-05-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Okay, I added a config value (autoclass_content) in r62697. Let me
know what you think!

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2726
__
___
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-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, fixed in r62695.

--
resolution:  - fixed
status: open - closed

__
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



[issue2656] Autodoc should skip inherited methods

2008-05-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks. In SVN (r62695), autodoc now skips inherited members unless the
:inherited-members: flag option is given.

--
resolution:  - fixed
status: open - closed

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



[issue2748] ceil(), floor() and round() broken in Decimal

2008-05-04 Thread Raymond Hettinger

Raymond Hettinger [EMAIL PROTECTED] added the comment:

The patch basically looks good.  The signature for __round__() should 
not grow beyond the spec for the built-in round() function that calls 
it:  round(x[, n]).  The context and rounding arguments are not part of 
that API.  Just like __int__(), the __round__() method should stick to 
its basic purpose.

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



[issue2754] Mac version of IDLE doesn't scroll as expected

2008-05-04 Thread Alex Robinson

New submission from Alex Robinson [EMAIL PROTECTED]:

On a Mac running 10.5.2 in IDLE 1.2.1, the scroll bars don't move as 
expected  track pad/mouse scrolling is not enabled. I believe this is 
also the case on Tiger (10.4)

When using the scroll bar to scroll up through code, the scroll bar 
moves much faster than the mouse pointer. When scrolling down, the mouse 
pointer moves slightly faster.

Unlike Terminal, scrolling using a scroll wheel on a mouse or the two 
fingers on the trackpad doesn't work with IDLE.

I realize these are fairly minor UI issues, but they're still 
frustrating and slow down my workflow.

--
components: IDLE, Macintosh
messages: 66202
nosy: alextrob
severity: normal
status: open
title: Mac version of IDLE doesn't scroll as expected
type: behavior
versions: Python 2.5

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



[issue2748] ceil(), floor() and round() broken in Decimal

2008-05-04 Thread Mark Dickinson

Mark Dickinson [EMAIL PROTECTED] added the comment:

Here's a revised patch, with the following changes

 - no keyword arguments to round
 - check that the second argument to round is an integer.

Added file: http://bugs.python.org/file10188/decimal_ceilfloor2.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2748
__
___
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-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

BTW, the regression for not executing packages was intented. See #2751.

__
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



[issue2152] make sqlite.Row hashable correctly

2008-05-04 Thread Gerhard Häring

Gerhard Häring [EMAIL PROTECTED] added the comment:

I applied your second patch in r62701. Thanks again!

--
resolution:  - accepted

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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-04 Thread Martin McNickle

Martin McNickle [EMAIL PROTECTED] added the comment:

RFC2617 says that the authentication scheme should be case insensitive.
 Included is a patch which changes the string to uppercase before
comparison.

--
keywords: +patch
nosy: +BitTorment
Added file: http://bugs.python.org/file10189/case_insensitive_algorithm.patch

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



[issue2157] sqlite numeric type conversion problems

2008-05-04 Thread Gerhard Häring

Gerhard Häring [EMAIL PROTECTED] added the comment:

Implemented in r62702.

--
resolution:  - accepted
status: open - closed

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



[issue2127] sqlite3 docs should mention utf8 requirement

2008-05-04 Thread Gerhard Häring

Gerhard Häring [EMAIL PROTECTED] added the comment:

The implementation in SVN should in the meatntime behave like you expect
now. Look for database_utf8 = PyUnicode_AsUTF8String(database); in
connection.c to see the implementation.

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



[issue2755] IDLE ignores module change before restart

2008-05-04 Thread Mark Veldhuis

Changes by Mark Veldhuis [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10190/idleupdatebug.odt

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



[issue2755] IDLE ignores module change before restart

2008-05-04 Thread Mark Veldhuis

Changes by Mark Veldhuis [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file10191/idleupdatebug.odt

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



[issue2486] Decimal slowdown in 3.0 due to str/unicode changes

2008-05-04 Thread Facundo Batista

Facundo Batista [EMAIL PROTECTED] added the comment:

I like this path, also.

Beyond Deccoeff, this module could hold in the future other functions
that are speed critical.

Great work, Mark!

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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-04 Thread david reid

david reid [EMAIL PROTECTED] added the comment:

Looks like a sensible, simple fix to me :-)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2695
__
___
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-04 Thread david reid

New submission from david reid [EMAIL PROTECTED]:

In urllib2 when using reusing a Request calling add_header doesn't work
when an unredirected_header has been added. 

A good example (and the one that caught me out) is content-type. When
making a POST request with no content-type set the current code sets the
content-type as an unredirected_header to
'application/x-www-form-urlencoded' (line 1034 of urllib2.py) but in a
subsequent request, setting the content type via add_header will see
this ignored as unredirected_headers are appended after the headers.

A possible solution is to check whether the header being added already
exists in the requests undredirected_headers and remove it if it does.

--
components: Library (Lib)
messages: 66213
nosy: zathras
severity: normal
status: open
title: urllib2 add_header fails with existing unredirected_header
type: behavior
versions: Python 2.5

__
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



[issue2757] Little error in unittest documentation

2008-05-04 Thread Manuel Kaufmann

New submission from Manuel Kaufmann [EMAIL PROTECTED]:

I found a more Enter

--
assignee: georg.brandl
components: Documentation
files: unittest.diff
keywords: patch
messages: 66214
nosy: georg.brandl, humitos
severity: normal
status: open
title: Little error in unittest documentation
versions: Python 2.6
Added file: http://bugs.python.org/file10192/unittest.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2757
__
___
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-04 Thread Bob Ippolito

Bob Ippolito [EMAIL PROTECTED] added the comment:

Well, that's unfortunate. I found it very useful

__
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



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

2008-05-04 Thread atsuo ishimoto

atsuo ishimoto [EMAIL PROTECTED] added the comment:

New patch agaist current py3k branch.

All the regr tests faild by my patch is now fixed as far as I 
can run.
I also modified a doctest module a bit, so should be reviewed
by module owners.

Added file: http://bugs.python.org/file10193/diff3.txt

__
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



[issue2757] Little error in unittest documentation

2008-05-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Fixed in r62703. Thanks!

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2757
__
___
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-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

I've committed the reST docs. Bob, do you want to have a look?

__
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



[issue2758] arg 2 of PyErr_SetFromErrnoWithFilename should be const

2008-05-04 Thread Uwe Kleine-König

New submission from Uwe Kleine-König [EMAIL PROTECTED]:

Compiling an extension I get the warning:

warning: passing argument 2 of ‘PyErr_SetFromErrnoWithFilename’
discards qualifiers from pointer target type

I passed a const char *, which should be OK from looking at the
implementation of PyErr_SetFromErrnoWithFilename.

Attached is a patch.  I don't expect this to break any API or ABI, but
you might know better.

--
components: Interpreter Core
files: make_PyErr_SetFromErrnoWithFilename_filename_const
messages: 66220
nosy: ukleinek
severity: normal
status: open
title: arg 2 of PyErr_SetFromErrnoWithFilename should be const
type: behavior
versions: Python 2.5
Added file: 
http://bugs.python.org/file10194/make_PyErr_SetFromErrnoWithFilename_filename_const

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2758
__
___
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-04 Thread Terry J. Reedy

New submission from Terry J. Reedy [EMAIL PROTECTED]:

Filter() allows None as a stand-in for either the still-nonexistent
identity() or the now existent bool().  Removing the now redundant
option would slightly simplify the language.  It is certainly a glitch
for newcomers.  Would this option be included if filter were being added
now?

Fixer: I should think filter(None,it) = filter(bool,it) should be
sufficient as I expect filter(f_f_exp, it), where f_f_exp is a filter
function expression that sometimes gives None, should be fairly rare.

Efficiency: filter() could (if it does not now) avoid calling bool twice
internally by checking for bool instead of None).  Even if removing None
is rejected, filter should also check for bool (if it does not now) to
not penalize those who write the obvious filter(bool,it).

If this item is rejected, turn it into a doc item for PEP3099.

--
components: Interpreter Core
messages: 66219
nosy: tjreedy
severity: normal
status: open
title: Bool makes filter(None,it) redundant; remove None option?
type: behavior
versions: Python 3.0

__
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



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

2008-05-04 Thread Bob Ippolito

Bob Ippolito [EMAIL PROTECTED] added the comment:

They look good, but is there an easy way to look at them post-formatting
or do I have to install the sphinx toolchain myself?

I moved the command-line stuff to json.tool to get around the package
problem.

__
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



[issue2760] Recent change in socket.py breaks urllib2

2008-05-04 Thread Thomas Herve

New submission from Thomas Herve [EMAIL PROTECTED]:

The problematic change is here:
http://svn.python.org/view/python/trunk/Lib/socket.py?rev=62627r1=61008r2=62627

The following script shows the problem:


Python 2.6a2+ (trunk:62707, May  4 2008, 19:13:44) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type help, copyright, credits or license for more information.
 import urllib2
 r = urllib2.Request('http://pypi.python.org/simple')
 f = urllib2.urlopen(r)
 f.read()
Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/therve/.local/lib/python2.6/socket.py, line 326, in read
data = self._sock.recv(rbufsize)
  File /home/therve/.local/lib/python2.6/httplib.py, line 512, in read
return self._read_chunked(amt)
  File /home/therve/.local/lib/python2.6/httplib.py, line 548, in
_read_chunked
line = self.fp.readline()
  File /home/therve/.local/lib/python2.6/socket.py, line 391, in readline
assert buf.tell() == 0
AssertionError


--
components: Library (Lib)
messages: 66222
nosy: therve
severity: normal
status: open
title: Recent change in socket.py breaks urllib2
versions: Python 2.6

__
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



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

2008-05-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Benjamin, if you want you can send me the rst file for review. I tried
to checkout the bzr branch, but cancelled it after waiting for 25 minutes.

--
nosy: +georg.brandl

__
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-04 Thread Bob Ippolito

Bob Ippolito [EMAIL PROTECTED] added the comment:

I don't think that makes sense, tool makes it pretty clear that it's
something you use from the command-line rather than a module to import
and call functions from where pp does not.

I'd also rather call it pprint than pp if that were the decision.. EIBTI.

__
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



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

2008-05-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

FYI, filter() already special-cases bool. I think the discussion
whether to remove the None argument has been had, but I could be
mistaken. Guido, do you remember more?

--
assignee:  - gvanrossum
nosy: +georg.brandl, gvanrossum

__
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



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

2008-05-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Georg, I'm attaching json.rst.

Bob, I personally would prefer pprint, but it's your choice.

Added file: http://bugs.python.org/file10195/json.rst

__
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



[issue2761] Doc: built-in callables and map

2008-05-04 Thread Terry J. Reedy

New submission from Terry J. Reedy [EMAIL PROTECTED]:

StdLibMan Built-in Functions

I believe that at one time this section only contained functions.
But this has not been true since at least 2.2.

Please add and Classes to the title and first sentence.
Possibly add ('callables') after and classes in the sentence to
introduce the generic term.  This would at least slightly help the
sometimes confusion between 'function' as specific class and as generic
callable.

This change also applies to 2.6 (and earlier, but oh, well...).

3.0 entry for map() (now a class!) in this section.  Please add
With multiple iterables, stops when the shortest iterable is exhausted
.  (Copied from map.__doc__.)

What's New in 3.0: Stumbling Blocks: map entry: Add same sentence or
similar.  I only checked help(map) and discovered the change because of
reading about itertools.imap and knowing that 3.0 map was derived?
copied? from that.

--
assignee: georg.brandl
components: Documentation
messages: 66228
nosy: georg.brandl, tjreedy
severity: normal
status: open
title: Doc: built-in callables and map
type: behavior
versions: Python 3.0

__
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



[issue2761] Doc: built-in callables and map

2008-05-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Guido is doing 3.0 whatsnew.

--
nosy: +benjamin.peterson, gvanrossum

__
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



[issue1736190] asyncore/asynchat patches

2008-05-04 Thread Giampaolo Rodola'

Giampaolo Rodola' [EMAIL PROTECTED] added the comment:

In attachment the Josiah Carlson's patch who currently seems to have
problems in accessing the bug tracker.
It should address all the problems raised on python-dev related discussion:
http://groups.google.com/group/python-dev2/browse_thread/thread/eec1ddadefe09fd8/40e79742231076b9?lnk=gstq=asyncore#40e79742231076b9

Added file: http://bugs.python.org/file10196/full_async_patch.patch

_
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



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

2008-05-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

On Sun, May 4, 2008 at 12:56 PM, Bob Ippolito [EMAIL PROTECTED] wrote:

  Bob Ippolito [EMAIL PROTECTED] added the comment:

  They look good, but is there an easy way to look at them post-formatting
  or do I have to install the sphinx toolchain myself?

in the Doc directory, run make html.

  I moved the command-line stuff to json.tool to get around the package
  problem.

Why not json.pp (for pretty-print)?

__
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



[issue1736190] asyncore/asynchat patches

2008-05-04 Thread Brett Cannon

Brett Cannon [EMAIL PROTECTED] added the comment:

This is separate from issue1563, right?

--
nosy: +brett.cannon

_
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



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

2008-05-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

When we're ready, I'll merge this into the trunk and Py3k. (There are no
Py3k warnings on test, so it should only be a matter of running 2to3.)

--
assignee:  - benjamin.peterson

__
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-04 Thread Christian Heimes

Christian Heimes [EMAIL PROTECTED] added the comment:

The ref leak and unit tests are passing on Windows, too. I'm going to
change the import of the C extension and then you can commit the bzr
branch into the trunk.

For 3.0 the C module probably needs some changes. I'll look into it once
the code is merged into the trunk.

__
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



[issue1736190] asyncore/asynchat patches

2008-05-04 Thread Giampaolo Rodola'

Giampaolo Rodola' [EMAIL PROTECTED] added the comment:

Yes.

_
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



[issue2761] Doc: built-in callables and map

2008-05-04 Thread Raymond Hettinger

Raymond Hettinger [EMAIL PROTECTED] added the comment:

FWIW, I think the title is clearer as-is.  While it is technically true 
that some entries are callables of  various types, it is simpler to 
think of all of them as functions.  The proposed change makes the docs 
harder to understand and less usuable though technical more correct.

--
nosy: +rhettinger

__
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



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

2008-05-04 Thread Raymond Hettinger

Raymond Hettinger [EMAIL PROTECTED] added the comment:

It was deferred to me and I decided to keep the None argument as this 
is the standard way of spelling a missing argument.  Also, the None 
argument provides a pretty good clue that a special fast path is being 
taken.

--
nosy: +rhettinger

__
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



[issue2762] Language Reference: obsolute 2.x notes

2008-05-04 Thread Terry J. Reedy

New submission from Terry J. Reedy [EMAIL PROTECTED]:

The 3.0a4 docs have various obsolete references to 2.x not yet removed.
I found these and other items by searching for '2.' in each section

Lexical Analysis: Identifiers and Keywords
Please specify the legal ascii chars rather than referring back to the
2.5 doc!  I would delete the second sentence and add the reference to
PEP3131 to the end of the third.  As it is, 'additional characters' and
'other characters' seem like possibly two different sets.

Data Model: instance methods: 'changed in 2.6' delete

Data Model: New Style and Classic Classes
Probably this whole section should go.  I hope that the last sentence is
no longer true ;-)

Data Model: footnote 1 (which I believe came from above): delete

Simple Statements: Raise: several changes suggested.

The grammar is wrong.  There is only one optional expression.

PEP3131 does not mention .with_traceback.  It should if people are
referred to it.  But I would leave out the note and reference.  PEP3131
is irrelevant to anyone just learning Py3 and not useful to non-expert
Py2 users. Anyway, those who need it will find the reference in What's
New.  

The .with_traceback method has no doc string.  I presume it should say
Sets the __traceback__ attribute and returns self. 
 
The manual should also mention that the method returns the exception
instance (self) Suggestion: method (which returns the exception
instance), like so: (There stuff in parens is suggested addition.) I
think this is worth mentioning because mutators, including setters,
typically do *not* return 'self'.

Compound statements: Try 

Given my opinion that 3.0 documents (other that What's New and other
explicit transition docs) should stand on their own, I would also remove
the reference to PEP3110.  But at least it applies to most users.  But
again, I am not sure it adds very much.

The What's New/Exception Stuff entry for PEP3110 could usefully add You
must now use except SomeException as identifier: instead of except
Exception,identifier in parallel to the note for 3109 above it
(including the shading of code).

Compound statements: With: remove last two sentences

The Library Reference needs similar treatment.  There are several 2.
references just in Built-in Functions.

--
assignee: georg.brandl
components: Documentation
messages: 66237
nosy: georg.brandl, tjreedy
severity: normal
status: open
title: Language Reference: obsolute 2.x notes
versions: Python 3.0

__
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



[issue2748] ceil(), floor() and round() broken in Decimal

2008-05-04 Thread Raymond Hettinger

Raymond Hettinger [EMAIL PROTECTED] added the comment:

Thanks for the patch.  Please apply.

--
resolution:  - accepted

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



[issue1368312] fix for scheme identification in urllib2?

2008-05-04 Thread david reid

david reid [EMAIL PROTECTED] added the comment:

I've run into this as an issue with a server that replies with both
digest and basic auth.

When parsing the keys in the header it's possible to detect the start of
a different auth method, so I'd suggest parsing the www-authenticate
line and returning a dict for each type of auth containing the
appropriate key,value pairs.

This approach should allow every auth type to be catered for.

--
nosy: +zathras

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1368312
_
___
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-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

I agree with Raymond here.

--
resolution:  - rejected
status: open - closed

__
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



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

2008-05-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Okay, closing as won't fix.

--
assignee: gvanrossum - 
resolution:  - wont fix
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



[issue2762] Language Reference: obsolute 2.x notes

2008-05-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, this is very useful to me. I'll work through it soon.

__
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



[issue2695] Ignore case when checking algorithm in urllib2

2008-05-04 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Applied in r62713.

--
nosy: +georg.brandl
resolution:  - accepted
status: open - closed

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



[issue2763] A socket example code shown in doc doesn't work on FreeBSD

2008-05-04 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' [EMAIL PROTECTED]:

This is the result from executing the second IPv4/IPv6 server example
shown in socket module documentation on a FreeBSD-7 system.
http://docs.python.org/dev/library/socket.html#example


dhcppc1# cat server.py
# Echo server program
import socket
import sys

HOST = '' # Symbolic name meaning the local host
PORT = 50007  # Arbitrary non-privileged port
s = None
for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
socket.SOCK_STREAM, 0, socket.AI_PASSIVE):
af, socktype, proto, canonname, sa = res
try:
 s = socket.socket(af, socktype, proto)
except socket.error, msg:
 s = None
 continue
try:
 s.bind(sa)
 s.listen(1)
except socket.error, msg:
 s.close()
 s = None
 continue
break
if s is None:
print 'could not open socket'
sys.exit(1)
conn, addr = s.accept()
print 'Connected by', addr
while 1:
data = conn.recv(1024)
if not data: break
conn.send(data)
conn.close()

dhcppc1#
dhcppc1# uname -a
FreeBSD dhcppc1# 7.0-RC1 FreeBSD 7.0-RC1 #0 Mon Dec 24 12:18:24 UTC 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC   o386
dhcppc1#
dhcppc1# python2.5 server.py
Traceback (most recent call last):
  File server.py, line 8 in module
 for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC,
socket.SOCK_STREAM, 0, socket.AI_PASSIVE):
socket.gaierror: (8, 'hostname nor servname provided, or not known')
dhcppc1#

--
assignee: georg.brandl
components: Documentation
messages: 66244
nosy: georg.brandl, giampaolo.rodola
severity: normal
status: open
title: A socket example code shown in doc doesn't work on FreeBSD
versions: Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2763
__
___
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-04 Thread Giampaolo Rodola'

Giampaolo Rodola' [EMAIL PROTECTED] added the comment:

http://docs.python.org/dev/library/socket.html#example
The second example (the IPv4/IPv6 server) still reports the local interface.

__
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



[issue2752] Wrong comment in socket documentation

2008-05-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

The online docs probably haven't rebuilt yet.

--
nosy: +benjamin.peterson

__
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



[issue2761] Doc: built-in callables and map

2008-05-04 Thread Terry J. Reedy

Terry J. Reedy [EMAIL PROTECTED] added the comment:

To the best of my memory, the fact that
type(built_in_function_section_object) is sometimes 'type...' (soon to
be 'class...') rather than 'built-in function...' has been a point of
occasional confusion on c.l.p for years.  Such confusion was part of a
recent newbie post there.  I actually suggested, only half jokingly,
'Built-in callables' (and got at least one positive response) but
decided that that was both too general and maybe a bit obscure, even
though the Language Reference has a section on Callables.  Hence the
more specific suggestion.  Perhaps we need more newbie opinions as to
which they find clearer.

Even if the title is left alone, I urge the expansion of the first
sentence, though 'and callable classes' might be better.

The double use of 'function' is definitely an occasional point of
confusion in Python   I think the crux of our disagreement is alternate
parsings of 'built-in functions':
1) 'built-in' instances of generic concept 'function',
2) instances of specific class 'built-in function'.
Under 1) the current title is fine.  Under 2), it is not, and 'built-in
functions and classes', interpreted as parsing 2 of 'built-in functions
and [built-in] classes' is better.

The map doc issues are, of course, separate from the title and lead
sentence issue.

__
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



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-05-04 Thread Kurt B. Kaiser

Kurt B. Kaiser [EMAIL PROTECTED] added the comment:

Thanks for the patch, I'll look at it.

In the future, please send unified diffs (-u), not plain diffs.

--
assignee:  - kbk
nosy: +kbk
versions: +Python 2.6 -Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2704
__
___
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-04 Thread Giampaolo Rodola'

Giampaolo Rodola' [EMAIL PROTECTED] added the comment:

Fine. I just thought you had modified it only in one place.

__
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



[issue2708] IDLE subprocess error

2008-05-04 Thread Kurt B. Kaiser

Kurt B. Kaiser [EMAIL PROTECTED] added the comment:

1. Which version of Python / IDLE are you running?
2. Why do you have to kill IDLE instead of doing a normal quit?

--
nosy: +kbk

__
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



[issue2764] c_char doesn't implement py3k buffer interface

2008-05-04 Thread Christian Heimes

New submission from Christian Heimes [EMAIL PROTECTED]:

I'm currently merging changes from trunk to 3.0. One unit test is failing:

test test_ctypes failed -- Traceback (most recent call last):
  File Lib/ctypes/test/test_frombuffer.py, line 67, in
test_from_buffer_copy
x = (c_char * 16).from_buffer_copy(a * 16)
TypeError: expected an object with a buffer interface

--
assignee: theller
components: ctypes
messages: 66252
nosy: christian.heimes, theller
priority: critical
severity: normal
status: open
title: c_char doesn't implement py3k buffer interface
type: behavior
versions: Python 3.0

__
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



[issue2762] Language Reference: obsolute 2.x notes

2008-05-04 Thread Terry J. Reedy

Terry J. Reedy [EMAIL PROTECTED] added the comment:

Thanks again for your work on the docs.  If you would sometime prefer to 
receive a similar batch of comments but in a perhaps more useful form (ie, 
changes and comments in-line) let me know.  I am thinking of any of the 
following:
1) doc on the Guido's new code tracker (via null patch)
2) doc embedded in an OO .odf (or Word .doc) so as to use RecordChanges 
feature
3) .rst (?) with changes and embedded, to be removed, comment and 
questions that you can run a diff against.

Terry

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, this is very useful to me. I'll work through it soon.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2762
__

__
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



[issue2765] warnings: error in test_missing_filename_main_with_argv_empty_string

2008-05-04 Thread Christian Heimes

New submission from Christian Heimes [EMAIL PROTECTED]:

I'm currently merging code from the trunk into 3.0. One warnings test is
failing:

test test_warnings failed -- Traceback (most recent call last):
  File /home/heimes/dev/python/py3k/Lib/test/test_warnings.py, line
296, in test_missing_filename_main_with_argv_empty_stringt
self.assertEqual(w.filename, '__main__')
AssertionError: b'__main__' != '__main__'

--
assignee: brett.cannon
components: Extension Modules
messages: 66254
nosy: brett.cannon, christian.heimes
priority: critical
severity: normal
status: open
title: warnings: error in test_missing_filename_main_with_argv_empty_string
type: behavior
versions: Python 3.0

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



[issue2765] warnings: error in test_missing_filename_main_with_argv_empty_string

2008-05-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

This was a merge error. You must have merged the fix for #2743 and not
changed the PyString_FromString to PyUnicode_FromString. I'll commit a
fix shortly.

--
nosy: +benjamin.peterson

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



[issue2765] warnings: error in test_missing_filename_main_with_argv_empty_string

2008-05-04 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Fixed in r62717.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2765
__
___
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-04 Thread Philip Jenvey

Philip Jenvey [EMAIL PROTECTED] added the comment:

Bob, all of the simplejson tests have actually been passing on Jython 
trunk -- at least up until recently when you added a couple tests that 
utilize the 2.4 decimal module.

I can also import simplejson.scanner with a recent build of pypy, so it at 
least has those sre imports you're using.

--
nosy: +pjenvey

__
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