[issue719888] tokenize module w/ coding cookie

2008-03-18 Thread Michael Foord
Michael Foord [EMAIL PROTECTED] added the comment: If you remove the following line from the tests (which generates spurious additional output on stdout) then the problem goes away: print('testing: %s' % path, end='\n') Tracker [EMAIL PROTECTED]

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-03-18 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: I know nothing about asyncore. Does this problem still exist in the trunk (2.6)? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2073 __

[issue2407] warnings.filterwarnings() not isolated between tests

2008-03-18 Thread Jerry Seutter
New submission from Jerry Seutter [EMAIL PROTECTED]: Some tests were not cleaning up warning filters. Fixed the problem by making regrtest.py restore default filters before each module is executed. This exposed other errors which are also fixed in the patch. The patch only affects test files.

[issue2402] get rid of warnings in regrtest with -3

2008-03-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: No, *correct usage* of the stdlib should not result in Py3k warnings. Old APIs should still be tested, which I suppose is part of the reason that there are so many warnings from testing. -- nosy: +benjamin.peterson

[issue2303] isinstance is 4x as slow as in 2.5 because the common case raises

2008-03-18 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: Yeah, but tp_ slots are expensive themselves (mostly in the amount of code that needs to be changed -- see typeobject.c). __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2303

[issue2408] types should expose cell object

2008-03-18 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: types currently exposes all types used by the interpreter except cell objects. This patch adds support for that and adds to the docs. I couldn't find a way to access the cell type through Python, so I added it to the _types module.

[issue2402] get rid of warnings in regrtest with -3

2008-03-18 Thread Steven Bethard
Steven Bethard [EMAIL PROTECTED] added the comment: Fair enough. I agree that the deprecated APIs should still be tested. But there are a lot of other warnings, e.g. where the standard lib uses ``has_key`` instead of ``in``. These should be removed. The only warnings should be those that are

[issue719888] tokenize module w/ coding cookie

2008-03-18 Thread Michael Foord
Michael Foord [EMAIL PROTECTED] added the comment: *Full* patch (excluding the new dependent test text files) for Python 3. Includes fixes for standard library and tools usage of tokenize. If it breaks anything blame Trent... ;-) -- versions: -Python 2.6 Added file:

[issue2303] isinstance is 4x as slow as in 2.5 because the common case raises

2008-03-18 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: No doubt it would take some work. IMO, code for a slot is worth it; otherwise, many apps will have to pay the price for ABCs even if they don't use the feature. For my company, that would deter an upgrade to 2.6.

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Neal Norwitz
New submission from Neal Norwitz [EMAIL PROTECTED]: Guido mentioned this in python-3000-checkins. I agree the problem should be fixed. I think the automatic skip on ImportError is harmful. We should add a helper function to test_support so that you can write foobar =

[issue2410] absolute import doesn't work for standard python modules

2008-03-18 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: Try this to reproduce error: $ mkdir -p test/email $ cd test $ touch __init__.py email/__init__.py $ cat ! foo.py from __future__ import absolute_import import smtplib ! $ python import foo ... File /usr/lib/python2.6/smtplib.py, line

[issue2402] get rid of warnings in regrtest with -3

2008-03-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I made a little decorator which silences py3k warnings. It could be useful for test.test_support. def silence_py3k(func): def decorator(*args, **kwargs): warnings.simplefilter(ignore, warnings.DeprecationWarning)

[issue2073] asynchat push always sends 512 bytes (ignoring ac_out_buffer_size)

2008-03-18 Thread Mike Coleman
Mike Coleman [EMAIL PROTECTED] added the comment: [Tracker bounced this the first time...] I haven't run it, but just browsing the trunk source, it appears to still be present. In fact, asynchat.py and asyncore.py have apparently not been changed in two years. Andrew Kuchling would seem

[issue2196] Fix hasattr's exception problems

2008-03-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Further comments? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2196 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2373] Raise Py3K warnings for comparisons that changed

2008-03-18 Thread Steven Bethard
Steven Bethard [EMAIL PROTECTED] added the comment: I took a closer look at sliceobject.c and it looks like both 2.6 and 3.0 compare them basically as tuples. So there don't need to be any warnings about using and since these are still well defined. I'll have a patch for codeobject.c and

[issue719888] tokenize module w/ coding cookie

2008-03-18 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: All tests pass for me on OS X 10.5.2 and SuSE Linux 10.2 (32-bit)! Tracker [EMAIL PROTECTED] http://bugs.python.org/issue719888

[issue2196] Fix hasattr's exception problems

2008-03-18 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Tue, Mar 18, 2008 at 4:48 PM, Benjamin Peterson [EMAIL PROTECTED] wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: Further comments? I have not looked at the patch yet (and I don't know when I will get to it).

[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2171 __ ___ Python-bugs-list mailing list

[issue2373] Raise Py3K warnings for comparisons that changed

2008-03-18 Thread Steven Bethard
Steven Bethard [EMAIL PROTECTED] added the comment: Resolved in revision 61570. I can't get svnmerge block to work though. Since the code and method changes are just backports of Python 3, someone needs to run ``svnmerge.py block -r 61570``. __ Tracker [EMAIL

[issue2408] types module can be implemented only in Python

2008-03-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Okay, I removed the _types module in favor of your Python implementation. Here's the patch. -- title: types should expose cell object - types module can be implemented only in Python Added file:

[issue2405] Drop w9xpopen and all dependencies

2008-03-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Tim Peters once commented that w9xpopen cannot go away as long as people still use alternative shells (through COMSPEC) that still have the original issue that command.com had. I don't know how relevant that still is, and whether perhaps

[issue2074] pprint._safe_repr() unsafe on ordering differently types objects with same str represenation

2008-03-18 Thread Simon Percivall
Simon Percivall [EMAIL PROTECTED] added the comment: It's still a problem, as the test case demonstrates. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2074 __ ___

[issue2357] sys.exc_{type, values, traceback} should raise a Py3K warning

2008-03-18 Thread Jeff Balogh
Jeff Balogh [EMAIL PROTECTED] added the comment: Attaching a patch that provides fixers for sys.exc_ {type,value,traceback} Added file: http://bugs.python.org/file9749/issue2357.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2357

[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning

2008-03-18 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Checked-in r61576 -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __

[issue2349] Py3K warn against assigning to True/False

2008-03-18 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Back to Brett for application. -- assignee: rhettinger - brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2349 __

[issue2411] test_nis.py fails if NIS is not configured or used

2008-03-18 Thread Michael Bishop
New submission from Michael Bishop [EMAIL PROTECTED]: Instead of failing the test which is inaccurate, the test will return that it was skipped and what the msg is. -- components: Tests files: test_nis.patch keywords: patch messages: 64016 nosy: MichaelBishop severity: normal status:

[issue2412] Check 2to3 for support of print function.

2008-03-18 Thread Eric Smith
New submission from Eric Smith [EMAIL PROTECTED]: Issue 1633807 is a backport of the print function to 2.6, using a __future__ import. Once it is committed, we need to ensure that 2to3 does the right thing (namely, nothing) with print functions in modules that have the __future__ import.

[issue1751] Fast BytesIO implementation + misc changes

2008-03-18 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Here is a patch against the latest trunk (r61578) that includes the accelerator module of io.BytesIO with its test suite. The patch also changes the behavior of the truncate method to imply a seek(). Please review! Added file:

[issue1581] xmlrpclib.ServerProxy() doesn't use x509 data

2008-03-18 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: No test case. No provision for client validation of server certificate. -- resolution: - rejected __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1581 __

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-03-18 Thread Christopher Li
Christopher Li [EMAIL PROTECTED] added the comment: Hi, I am working on a patch to implement the https proxy support for urllib2. It works fine for me, but feel free to change the patch. Can any one take a look please? Thanks -- nosy: +chrisl Added file:

[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky [EMAIL PROTECTED]: -- components: +Extension Modules __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2413 __ ___ Python-bugs-list mailing

[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Alexander Belopolsky
Changes by Alexander Belopolsky [EMAIL PROTECTED]: Added file: http://bugs.python.org/file9755/posix-strerror.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2413 __ ___

[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Alexander Belopolsky
New submission from Alexander Belopolsky [EMAIL PROTECTED]: ISO/ANSI C strerror indicates out of range error by setting errno, but existing code incorrectly checks for NULL return value. Attached patch (tested n Mac OS X) makes os.strerror raise ValueError for out of range argument.

[issue2403] Add figleaf coverage metrics

2008-03-18 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: How will this work if I use a build directory? For example, my source is in ~/src/python/trunk. In there I create a build directory. When I run it I get % pwd /Users/skip/src/python/trunk/build % ./python.exe ../Tools/coverage/coverage.py

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh [EMAIL PROTECTED] added the comment: Attaching a patch that implements optional_import(). The only arg included from __import__ is fromfile, as it's the only one I needed to fix up the stdlib. -- keywords: +patch nosy: +jeff.balogh Added file:

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh [EMAIL PROTECTED] added the comment: Attaching a patch that removes ``from _winreg import *`` in test_winreg.py, which will allow usage of optional_import. Added file: http://bugs.python.org/file9757/winreg-refactor.diff __ Tracker [EMAIL PROTECTED]

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh [EMAIL PROTECTED] added the comment: Attaching a patch that refactors the test_sunaudiodev.py imports. Added file: http://bugs.python.org/file9758/sunaudiodev-refactor.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2409

[issue2416] % string formatting does not support %b

2008-03-18 Thread Eric Smith
New submission from Eric Smith [EMAIL PROTECTED]: PEP 3127 Integer Literal Support and Syntax says that % string formatting should support %b. This needs to be added to both 2.6 and 3.0. It needs to support the forms %b and %#b. -- assignee: eric.smith components: Interpreter Core

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9757/winreg-refactor.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2409 __ ___

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh [EMAIL PROTECTED] added the comment: The previous winreg refactor patch didn't catch all the changes; attaching a new patch that fixes everything, with help from Trent Nelson. Added file: http://bugs.python.org/file9759/winreg-refactor.diff __

[issue1811] True division of integers could be more accurate

2008-03-18 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: To my mind, the inaccurate result is a bug that should be fixed. Note: (3.0a3) 10e40/10e39 10.0 The rationale for the division change is that (as far as reasonably possible) arithmetic operations with same values should give same result

[issue2409] regrtest should not just skip imports that fail

2008-03-18 Thread Jeff Balogh
Jeff Balogh [EMAIL PROTECTED] added the comment: Attaching a patch, based on the previous patches, that fixes the stdlib to use optional_import where ImportError was raised. These need testing on various platforms to make sure all the ImportErrors are caught. I'm on x86 Linux. Added file:

[issue2400] from .foo import * should work

2008-03-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This is now fixed in r61595. -- nosy: +loewis resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2400 __

[issue2417] Integer floor division (//): small int check omitted

2008-03-18 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: Python 3.0a3 (r30a3:61161, Mar 1 2008, 22:51:17) [MSC v.1500 32 bit (Intel)] on win32 a,b=1,1//1 a is b False IDLE 3.0a3 a,b=1,1//1 a is b True ditto for 2.5.2 interpreter On c.l.p, Duncan Booth wrote I've had a look to see why

[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-03-18 Thread Terry J. Reedy
Changes by Terry J. Reedy [EMAIL PROTECTED]: -- title: Integer floor division (//): small int check omitted - [py3k] Integer floor division (//): small int check omitted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2417

[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread David Wolever
David Wolever [EMAIL PROTECTED] added the comment: Ok, checked in the last piece -- fixer for filter -- in r61598. -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2171 __

[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Terry J. Reedy
Changes by Terry J. Reedy [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9754/posix-strerror.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2413 __ ___

[issue2413] os.strerror does not check for out of range argument

2008-03-18 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: Removed earlier version -- nosy: +tjreedy __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2413 __ ___

[issue1631171] implement warnings module in C

2008-03-18 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9490/c_warnings.diff _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1631171 _ ___

[issue1631171] implement warnings module in C

2008-03-18 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9667/c_warnings.diff _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1631171 _ ___

[issue1631171] implement warnings module in C

2008-03-18 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Attached is what I think is a completely working version of warnings implemented in a mixture of C and Python. I am not worrying about documenting the new C APIs I had to add since they are pretty specific to internal stuff. Probably should

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-03-18 Thread Paul Winkler
Paul Winkler [EMAIL PROTECTED] added the comment: The attached patch implements a command-line option to disable loading of $HOME/.pydistutils.cfg. After talking to Martin Loewis, I decided not to implement the override part, because if it's a one-time thing you can just pass the settings on

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-03-18 Thread Paul Winkler
Changes by Paul Winkler [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9762/python_distutils_1180.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1180 __ ___

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-03-18 Thread Paul Winkler
Changes by Paul Winkler [EMAIL PROTECTED]: Added file: http://bugs.python.org/file9763/python_distutils_1180.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1180 __ ___

<    1   2