[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

[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

[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 __

[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

[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

[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

[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

[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 __

[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]

[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

[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

[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

[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 __

[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 __

[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:

[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 __

[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]

[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 __ ___

[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 __ ___

[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

[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

[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

[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

[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

[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:

[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 __

[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 __ ___

[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

[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

[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. __

[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)]

[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]

[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

[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

[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]

[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

[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 __

[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:

[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

[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 _

[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

[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

[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:

[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

[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:

[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

[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 __

[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

[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 __

[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 __

[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 __ ___

[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 __

[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

[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

[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 __

[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

[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]

[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 __ ___

[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

[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 *

[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

[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

[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

[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 __

[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