[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-08-06 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: The documentation and Py3k warning will be ready for the third beta next week (the remaining part is a lot easier than the initial fix). ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-08-11 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Py3k warnings for this have been checked in on the trunk as r65642. There's an unfortunate problem with having to define a fixed stack level for the warnings - for classes with a metaclass implemented in Python, the warning message

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-08-11 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: I still intend to do the necessary documentation updates for this, but they're going to be delayed a bit since getting the warnings right took much longer than I expected. ___ Python trac

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-08-18 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: numbers.Number change forward ported to Py3k in r65808 Docs updated for 2.6 and 3.0 in r65810 and r65811 respectively. Which means I can finally close this one :) -- resolution: -> fixed status: open

[issue3589] Misleading names for multiprocessing "convenience" functions

2008-08-18 Thread Nick Coghlan
New submission from Nick Coghlan <[EMAIL PROTECTED]>: The package level imports from the new multiprocessing package exhibit some very strange behaviour because they are actually functions pretending to be classes: Python 2.6b1+ (trunk:64945, Jul 14 2008, 20:00:46) [GCC 4.1.3 20

[issue3589] Misleading names for multiprocessing "convenience" functions

2008-08-18 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Setting to deferred blocker, since this really needs to be dealt with for RC1 (probably too close to b3 to get it discussed and dealt with for that). -- priority: critical -> deferre

[issue3352] Deficiencies in multiprocessing/threading API

2008-08-18 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: I created issue 3589 to cover the problem I mentioned above with the very misleading names for the package level functions in multiprocessing. ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3352] Deficiencies in multiprocessing/threading API

2008-08-19 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: is_alive appears to be a potentially expensive check for the multiprocessing side of things, which is why I'm inclined to leave it as a method. "if t.is_alive():" actually reads better to me than

[issue3352] Deficiencies in multiprocessing/threading API

2008-08-19 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: My preference actually isn't particularly strong either way, so I suggest asking Barry for a casting vote. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3352] Deficiencies in multiprocessing/threading API

2008-08-19 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Just saw a couple of docs checkins go by suggesting that the camelCase names will be unavailable in 3.x. Remember that the intent *isn't* to remove the old names from threading.py - we're just adding the PEP 8 names so that mul

[issue3352] Deficiencies in multiprocessing/threading API

2008-08-19 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Note regarding those comments - only the exitcode one is something we should try to get sorted for the beta. Backing out the deprecation warnings and cleaning up the documentation can wait for the first release can

[issue3445] Ignore missing attributes in functools.update_wrapper

2008-08-21 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: If the object being wrapped isn't a plain vanilla function, then the odds are *very* good that __doc__ cannot be copied to the new function and still be correct. This is definitely the case for both modules and partial objects. So f

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-08-28 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Reopening - still need to fix the Python level docs for hash() and __hash__(). -- resolution: fixed -> status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> <h

[issue643841] New class special method lookup change

2008-08-31 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Docs updated for 3.0 in r66084 (and I was right in thinking the automatic merge didn't have a hope of getting this right - there were conflicts all the way through the file). Closing this issue after a mere 5 years and 9 months - a

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-08-31 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: __hash__() documentation fixed for 2.6 in r66085 and for 3.0 in r66086. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3747] Fix caching in ABCMeta.__subclasscheck__

2008-09-01 Thread Nick Coghlan
New submission from Nick Coghlan <[EMAIL PROTECTED]>: Two of the return paths from ABCMeta.__subclasscheck__ store the subclass being checked in _abc_registry instead of _abc_cache. The attached patch corrects the issue. -- files: meta_subclass_fix.diff keywords: needs review,

[issue3747] Fix caching in ABCMeta.__subclasscheck__

2008-09-01 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: -- priority: critical -> release blocker ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: I found further PEP 8 non-compliances in the multiprocessing API while working on a patch for issue 3589, mainly in the area of function names that start with a capital letter, making them look like classes when they definitely are not.

[issue3589] Misleading names for multiprocessing "convenience" functions

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Patch attached that removes the misleading "convenience" functions, replacing them with explicit imports of the appropriate names. The patch also adds docstrings to some of the original class definitions that were missing t

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Benjamin's patch was applied in r65982 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3352> ___ ___

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Patch added that removes the incorrect Py3k warnings from the threading module (also restores the methods to the same __name__ attributes as they had in 2.5). Added file: http://bugs.python.org/fil

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Second patch added that removes the deprecation warnings from the Py3k version of the threading module. Added file: http://bugs.python.org/file11326/issue3352_remove_threading_deprecation_warning

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: -- keywords: +needs review -patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3352> ___

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: -- assignee: jnoller -> ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3352> ___ ___

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: -- keywords: +patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3352> ___ __

[issue3589] Misleading names for multiprocessing "convenience" functions

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Interesting - in some of the other work I was doing regarding the PEP 8 compliant alternative threading API, I noticed that the threading module contains similar gems such as: def Event(*args, **kwds): return _Event(*args, **kwds) U

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: It turns out threading uses the odd "class-that-is-not-a-class" naming scheme as well: threading.Lock threading.RLock threading.Condition threading.Semaphore threading.BoundedSemaphore threading.Event

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Patch added to tone down note regarding the PEP 8 compliant aliases that have been added to the threading module. Added file: http://bugs.python.org/file11327/issue3352_tone_down_26_threading_doc

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: And one last patch to adjust the threading docs in Py3k to reflect the fact that the 2.x API is still supported, even if it is no longer documented. Added file: http://bugs.python.org/file11328/issue3352_update_30_threading_doc

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11324/issue3352_remove_threading_py3k_warnings.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Updated the 2.6 threading patch to also remove the warnings from the methods that are being replaced by properties. Added file: http://bugs.python.org/file11329/issue3352_remove_threading_py3k_warning

[issue3589] Misleading names for multiprocessing "convenience" functions

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Given how long I've been using the threading module without realising it does the same thing, I'm actually prepared to live with the wrapper functions rather than messing with this so close to release. As Fredrik noted in the p

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Regarding the factory functions that are named as if they were classes, Fredrik noted on python-dev that the ones from the threading module are explicitly documented as being factory functions, and the multiprocessing API really just f

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-01 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Ben, if you get a chance to apply those patches, feel free, otherwise I should be able to get to them this evening (my time - about 10 hours from now). ___ Python tracker <[EMAIL PROTECTE

[issue3352] Deficiencies in multiprocessing/threading API

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Thanks! ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3352> ___ ___ Python-bugs

[issue3747] Fix caching in ABCMeta.__subclasscheck__

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: 2.6 fixed in r66144, merged to 3.0 in r66147 -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3589] Misleading names for multiprocessing "convenience" functions

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Not so much "too complicated" as "potentially touches a lot of code and not something I want to fiddle with this close to release". As I noted on python-dev, it's actually a change that can easily be handled thr

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

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Looks like we'll be living with the slowdown for 3.0, so marking this as a high priority item for 3.1. (Given that the API doesn't change, I wonder if this could be included in a 3.0.1 release?) -- priority: -> hig

[issue2690] Precompute range length

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: This issue was missing a priority setting. Alexander's range-sequence patch still applies cleanly to the Py3k branch, and "make test" still runs correctly after applying it. As Alexander notes above, range_contains doe

[issue2690] Precompute range length

2008-09-02 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11345/issue2690-range-sequence-ncoghlan.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2690] Precompute range length

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: My initial patch had a few problems - I removed it and uploaded a corrected version. Added file: http://bugs.python.org/file11346/issue2690-range-sequence-ncoghlan.diff ___ Python tracker <[EMAIL

[issue2690] Precompute range length

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Good catch Antoine (I missed that in Alexander's patch) - working on that now. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2690] Precompute range length

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: v2 of my updated patch attached to fix the issue Antoine noted. Also gets rid of some tab-instead-of-spaces indenting issues in the file, and avoids hardcoding PyRange_Type when creating new instances. However, the patch still has issu

[issue2690] Precompute range length

2008-09-02 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Given the problems with it, I'm dropping this to normal priority and punting to 3.1. (the release blocker status was just temporary to ensure we got a decision on it before rc1 - it previously didn't have a priority set) ---

[issue3769] Deprecate bsddb for removal in 3.0

2008-09-04 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Raymond Hettinger wrote: > I think this should be deferred to Py3.1. > This decision was not widely discussed and I think it likely that some > users will > be surprised and dismayed. The release > candidate seems to

[issue3776] deprecate bsddb/dbhash in 2.6 for removal in 3.0

2008-09-04 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Attached patch raises Py3k warnings rather than plain deprecation warnings, so it looks good to me (some of the discussions on python-dev gave the impression that may have been getting full deprecation warnings, implying its potential r

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-05 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Patch looks good to me (I've only looked at the patch - not the other possible misuses of PyByteArray_ that Amaury noted) -- nosy: +ncoghlan ___ Python tracker <[EMAIL PRO

[issue3776] deprecate bsddb/dbhash in 2.6 for removal in 3.0

2008-09-05 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: I was actually pretty sure the intention was to add Py3k warnings, but the exact phrase being used in the python-dev thread was "deprecation warnings" which made folks a little nervous. __

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Reopening this because I disagree with the fix - I would prefer to see catch_warnings() reverted back to the API and implementation* it used prior to the test_support->warnings migration. That version had perfectly clear semantic

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: As far as the use cases go, it was moved out of test.test_support to warnings SOLELY due to the requests from the twisted folks for assistance in testing their generation of warnings. The fact that it is also useful for suppressing warni

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: It turns out the warnings.catch_warnings version has re-entrancy issues due to the fact that it can't use @contextmanager: Python 2.6b3+ (trunk:66143M, Sep 2 2008, 20:04:43) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: I also have to comment on the "makes the API simpler to use" note in the checkin message. No, no it doesn't. See all those "warning[-1]" calls in the current unit tests? They're all unhelpful, because if

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: -- assignee: -> ncoghlan ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3781> ___ ___

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: test.test_support *is* a public API (it's even documented). ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: In working on the reversion patch, I just noticed that r66321 also incorrectly removed a whole pile of w.reset() calls. When using a single catch_warning() context to test two or more operations which may raise the same warning, you

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: I will put together two patches: one that reverts all the way back to what we had in the betas, and another which just reverts the Python test suite changes in the most recent checkin (instead modifying test_support.catch_warning to u

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Fully reverting the relocation also required reverting r66197 (a belated checkin of test_py3kwarn for the r66135 changes). There was also a change to test_warnings that had to be reverted (it appeared to have been mistakenly checked in a

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Reversion patch attached - it does indeed recreate some nasty dependencies from the main areas of the standard library on to the regression test suite. That's enough to kill the idea of a complete reversion as far as I'm conc

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: No worries - the only reason I suggested full reversion at all is because I had temporarily forgotten why the relocation had become so necessary (i.e. we needed the feature ourselves in the main part of the standard library to avoid em

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-10 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Not quite that basic for the warnings.catch_warnings() part. I plan to leave the current warnings.catch_warnings() alone (aside from adding some re-entrancy checks), and add back a test.test_support.check_warnings() that uses a WarningsRe

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-10 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Cleanup patch now attached. Details of changes: - warnings.catch_warnings() now has reentry guards (and associated tests) to prevent silent errors when misused - added back a test_support.check_warnings() convenience wrapper (delibe

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-11 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Applied to trunk for 2.6 in r66386. -- priority: release blocker -> deferred blocker ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-11 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Blocked merge in the py3k branch since it requires some fiddling to handle the change from test.test_support to test.support. I'll post a new patch here for the py3k forward port when I can (I may not make it before 3.0b4 though, so

[issue3111] multiprocessing ppc Debian/ ia64 Ubuntu compilation error

2008-09-14 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Setting this to a release blocker, because it is affecting Neal's automated execution of the regression test suite with a debug build. -- nosy: +ncoghlan priority: -> release blocker

[issue3111] multiprocessing ppc Debian/ ia64 Ubuntu compilation error

2008-09-14 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Scratch that - it's more likely to be Neal's setup which is at fault, which I will be questioning on python-dev shortly (there are 3 other tests which are failing/getting skipped in Neal's regression test suite) ---

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-14 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: 3.0 version of the patch attached (it turned that it wasn't so much test_support itself that caused the forward port problems, as the fact that most of the tests that use this feature in 2.x are testing specifically for Py3k warni

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-14 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: -- keywords: +needs review ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3781> ___ __

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

2008-09-15 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: This is the kind of project where the sandbox is useful - Facundo's original decimal work was done there, as was the attempt at a complete rewrite of the decimal module in C (which turned out to be a less than optimal approach t

[issue3885] errors on _bsddb creation and dealloc

2008-09-22 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Patch comments: - the test suite section of the diff appears to have a number of changes that are unrelated to this issue - the purpose of the new do_not_close flag (i.e. avoiding the crash) could use a comment at the point where

[issue3885] errors on _bsddb creation and dealloc

2008-09-23 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: All of those explanations sound fair to me - with those questions answered, the patch looks good to me. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-24 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: The 3.0 forward port of r66386 still needs a once over before being committed (there were enough differences that I don't think the review of the 2.6 version is enough to cover the 3.0 version as well). Once that is done, then thi

[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2008-09-26 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Looking at mp.synchronize, the whole module really does depend on a working _multiprocessing.SemLock instance. If these platforms don't have a native semaphore implementation, what is their basic inter-process synchronisation primi

[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2008-09-27 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Jesse, how much (if any) of the rest of the package will work without the synchronize module? If it isn't a lot, then it may be a matter of just making this a cleaner ImportError and an expected test suite skip on OpenBSD

[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2008-09-29 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Agreed - Jesse, can you work up a patch that generates a clean import error when _multiprocessing.SemLock can't be defined (due to HAVE_SEM_OPEN=0 or a single-threaded build), adds test_multiprocessing to the expected skips for

[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2008-09-29 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Could use confirmation from Damien and Andrew that they now see the expected skips with the patch applied, but otherwise looks good to me. ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4082> ___ ___ Python-bugs-list mailing list

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4082> ___ ___ Python-bugs-list mailing list

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4082> ___ ___ Python-bugs-list mailing list

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Hmm, that makes for absolutely identical base systems except that mine is i686 where yours is x86_64. What do you see if you stick some debugging messages at module level in site.py? (e.g. printing out __name__) (I'll be going offl

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: I'm setting up a 2.6 working area now - we'll see what's to be seen once I have that up and running. None of the runpy or pkgutil stuff has been touched in months though (since PEP 366 was implemented), so I'm a litt

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: No joy. 32-bit Ubuntu here, and "./python -m site" works fine on the 2.6 branch, as does "python2.6 -m site" after a "make altinstall". Is this an installation you built yourself

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-09 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Platform? It works fine for me (system python is 2.5, local python is trunk - the tildes aren't actually in the printout, I subbed them in for my home directory): ~/devel/python$ python -m site sys.path = [ '~/devel/python

[issue2751] Regression for executing packages

2008-10-13 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: (Adding some additional details regarding the reasons why this became an error again in 2.6) The ImportError when attempting to execute a package was lost during the conversion from the C-based implementation in 2.4 to the runpy module

[issue7794] Document zipfile and directory execution in What's New for 2.6/3.1

2010-01-27 Thread Nick Coghlan
New submission from Nick Coghlan : As discussed recently on python-dev, issue 1739468 deserves a mention in the What's New for the relevant Python releases. -- assignee: ncoghlan components: Documentation keywords: easy messages: 98420 nosy: akuchling, ncoghlan priority: n

[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-01-29 Thread Nick Coghlan
Nick Coghlan added the comment: If I ever clear all the other issues off my list, I may get a chance to have a closer look at this one :) -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue1681

[issue7813] Bug in command-line module launcher

2010-01-30 Thread Nick Coghlan
Nick Coghlan added the comment: Since import and direct execution will cope with files that don't end with a blank line, changing the first argument to "source + '\n'" in the pkgutil compile call seems like a reasonable workaround for the limitation in

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-01-31 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue6760> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file16098/subprocess.rst.patch ___ Python tracker <http://bugs.python.org/issue6760> ___ ___ Python-bug

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-04 Thread Nick Coghlan
Nick Coghlan added the comment: Committed for 2.7 as r77959. Still needs to be merged to the other branches. -- resolution: -> accepted status: open -> pending ___ Python tracker <http://bugs.python.org/

[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-02-11 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue4037> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7794] Document zipfile and directory execution in What's New for 2.6/3.1

2010-02-22 Thread Nick Coghlan
Nick Coghlan added the comment: As RDM said, it is AMK's What's New that is missing a description of this new feature. A lot of Python developers just read that document rather than trawling through the whole NEWS file for each major release. I actually thought I had got AMK t

[issue2001] Pydoc interactive browsing enhancement

2010-03-02 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue2001> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8155] Incompoatible change to test.test_support.check_warnings behaviour

2010-03-16 Thread Nick Coghlan
New submission from Nick Coghlan : A bug report for the incompatibility I was trying to explain on the checkins list. The test_support module is the only part of the regression test suite that is officially documented, so we can't go changing behaviour that is visible to third parties at

[issue8155] Incompatible change to test.test_support.check_warnings behaviour

2010-03-16 Thread Nick Coghlan
Changes by Nick Coghlan : -- title: Incompoatible change to test.test_support.check_warnings behaviour -> Incompatible change to test.test_support.check_warnings behaviour ___ Python tracker <http://bugs.python.org/iss

[issue8155] Incompatible change to test.test_support.check_warnings behaviour

2010-03-17 Thread Nick Coghlan
Nick Coghlan added the comment: On a quick read through, the patch looks fine to me. I actually agree it would be nice if we could keep the "quiet=True" default (since it is a better match for the feature set we want in our own tests), but I see the compatibility issue as a deal b

[issue8155] Incompatible change to test.test_support.check_warnings behaviour

2010-03-17 Thread Nick Coghlan
Nick Coghlan added the comment: On a second look, there are a couple of things missing: - the default value didn't actually get changed! - we should add an explicit test that the no argument behaviour doesn't raise a warning by default Since we don't really have an existing tes

[issue8155] Incompatible change to test.test_support.check_warnings behaviour

2010-03-17 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I didn't notice that there were already tests for this in test_warnings (that's what I get for commenting late at night). Updated patch looks good. -- ___ Python tracker <http://bugs.python.

<    5   6   7   8   9   10   11   12   13   14   >