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

2008-09-07 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- assignee: -> brett.cannon ___ 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-07 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: The new patch ditches the WarningsRecorder class and just returns a list that is directly mutated. I also removed all uses of test.test_support.catch_warning() and moved them over. Docs have been thoroughly updated to give example usag

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

2008-09-07 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11382/catch_warnings_atts.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

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

2008-09-08 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Mon, Sep 8, 2008 at 3:12 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > Benjamin Peterson <[EMAIL PROTECTED]> added the comment: > > The patch mostly looks good. However, all the w[-1] logic looks rather

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

2008-09-08 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Covered by r66321 in the trunk. Now I just need to merge into 3.0. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

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

2008-09-08 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: r66322 has the fix in 3.0. -- resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs

[issue3809] test_logging leaving a 'test.blah' file behind

2008-09-08 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: test_logging is leaving behind a file named 'test.blah' after every run. -- assignee: vsajip components: Tests messages: 72818 nosy: brett.cannon, vsajip priority: deferred blocker severity: normal status: open tit

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

2008-09-09 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: I can understand the amount of time it might take to revert this; merging was horrendous and stuff was partially combined into single patches as to get a review done for all related changes instead of doing more atomic commits if a revi

[issue3809] test_logging leaving a 'test.blah' file behind

2008-09-09 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Tue, Sep 9, 2008 at 6:43 AM, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > Vinay Sajip <[EMAIL PROTECTED]> added the comment: > > Fix checked into trunk - revision 66337. > Did

[issue3809] test_logging leaving a 'test.blah' file behind

2008-09-09 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Tue, Sep 9, 2008 at 3:00 PM, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > Vinay Sajip <[EMAIL PROTECTED]> added the comment: > > Sorry, no - whoops. It was a minor test data change which introduced the > prob

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

2008-09-09 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Tue, Sep 9, 2008 at 3:13 PM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > > Nick Coghlan <[EMAIL PROTECTED]> added the comment: > > No worries - the only reason I suggested full reversion at all is > because I

[issue3827] memoryview.size is redundant

2008-09-09 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Since this is a 3.0 thing I am dropping it down to a deferred blocker. -- nosy: +brett.cannon priority: release blocker -> deferred blocker ___ Python tracker <[EMAIL PROTE

[issue1717] Get rid of more refercenes to __cmp__

2008-09-09 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Since we are making 3.0 issues deferred blockers dropping the priority. -- nosy: +brett.cannon priority: release blocker -> deferred blocker ___ Python tracker <[EMAIL PROTE

[issue3642] Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type

2008-09-09 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Going with what Martin suggested, the attached patch reverts what Christian did and adds an #ifdef sizeof(uint) <= sizeof(uint) around the PY_SIZE_MAX check. Someone should obviously test on an AMD64 machine (I have a Core 2 Mac, bu

[issue3629] Python won't compile a regex that compiles with 2.5.2 and 30b2

2008-09-09 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Patch seems okay and passes regrtest, although I have to admit I am not intimately familiar with sre or the new validator. -- nosy: +brett.cannon ___ Python tracker <[EMAIL PROTECTE

[issue3642] Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type

2008-09-10 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Patch looks good to me and Martin's analysis of the test being useless on a platform where size_t > uint_t makes sense. -- keywords: -needs review ___ Python tracker <[EMAIL

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

2008-09-10 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Code looks good. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3781> ___ ___ Python

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

2008-09-11 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- keywords: +patch -needs review ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3781> ___

[issue3884] turtle in the tkinter package?

2008-09-16 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: As Benjamin said, it's too late in the release cycle to change this. Plus turtle is entirely Tk-dependent so putting in the package makes sense to me. It also isn't important enough to be a top-level package. Finally, I disagre

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-16 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: CVE-2008-2316 (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2316) notes that _hashopenssl.c has a potential integer overflow. Attached is the patch sent to PSRT. -- components: Extension Modules files: CVE-200

[issue2620] Multiple buffer overflows in unicode processing

2008-09-16 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- resolution: -> fixed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2620> ___ ___

[issue3894] imageop issue

2008-09-17 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: http://psf.upfronthosting.co.za/roundup/security/issue2 -- components: Extension Modules messages: 73355 nosy: brett.cannon severity: normal status: open title: imageop issue type: crash versions: Pyth

[issue3894] imageop issue

2008-09-17 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- priority: -> deferred blocker ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3894> ___ _

[issue3895] _lsprof issue

2008-09-17 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: http://psf.upfronthosting.co.za/roundup/security/issue3 -- components: Extension Modules messages: 73356 nosy: brett.cannon priority: deferred blocker severity: normal status: open title: _lsprof issue type: crash versions:

[issue2210] Nested module import clutters package namespace

2008-09-17 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: The reason this happens is to support ``import pack.y``. When you reference the module in this way it is accessing the 'y' attribute on the 'pack' module. If import didn't set it this form of importing would nev

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-18 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Sorry about missing your work, Ralf. In the rush to getting a fix in for 2.6rc2 we went with the patch Apple sent to the security mailing list when the CVE was reported to us. And 2.5 has already been patched by r66497, so removing tha

[issue586680] -S hides standard dynamic modules

2008-09-18 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: If we think once can reliably add the directory based purely on whether it starts with "build/lib.", and then potentially check for a suffix of "-pydebug" if we are in a debug build, I will support adding this

[issue586680] -S hides standard dynamic modules

2008-09-18 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Thu, Sep 18, 2008 at 6:58 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: > > Brett Cannon <[EMAIL PROTECTED]> added the comment: > > If we think once can reliably add the directory based purely on whether > it s

[issue3787] Make PyInstanceMethod_Type available or remove it

2008-09-20 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Is this really meant to be for 3.1, or should this be a 3.0 blocker? -- nosy: +brett.cannon ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3984] python interpreter import dependency with disutils/util

2008-09-28 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: I can't find the bug right now, but this has been brought up before. Since it is only on posix systems and only when running in a code checkout, no one has worried about it enough to change it. And I am not sure if it is necess

[issue3895] _lsprof issue

2008-09-28 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- assignee: -> brett.cannon ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3895> ___ __

[issue3895] _lsprof issue

2008-09-28 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: 2.6 is fixed in r66677 and 2.5 in r66678. 3.0 has not been applied yet as test_cProfile is still currently listed as a broken test. So I am blocking 66677 on py3k for now. -- priority: release blocker -> deferred blocker

[issue3910] 2.6 regression in socket.ssl method

2008-09-28 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: It looks like no one objected. Can you check this in, Bill? -- nosy: +brett.cannon ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2008-09-28 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Well, even if 2.6 slipped (which it is looking probably won't happen), how much time would you need to deal with this? Sounds like you just won't be able to get to it even with an extra week. So that means multiprocessing is ju

[issue3894] imageop issue

2008-09-29 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3984] python interpreter import dependency with disutils/util

2008-09-29 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Sun, Sep 28, 2008 at 7:56 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > > Benjamin Peterson <[EMAIL PROTECTED]> added the comment: > > Brett, are you looking for #58

[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2008-09-29 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Mon, Sep 29, 2008 at 11:20 AM, Jesse Noller <[EMAIL PROTECTED]> wrote: > > Jesse Noller <[EMAIL PROTECTED]> added the comment: > > Hows this error look: > >>>> import multiprocessing > Trace

[issue3988] Byte warning mode and b'' != ''

2008-09-29 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Setting as a deferred blocker since this is a 3.0 thing and not a 2.6 thing. -- nosy: +brett.cannon priority: release blocker -> deferred blocker ___ Python tracker <[EMAIL PROTE

[issue4003] Reference leak in test_cprofile

2008-09-30 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Amaury's fix works for me; since this is an edge case situation anyway, I am not terribly worried about some fancy error message. Fixed in r66700 for 2.6, r66701 for 2.5. -- resolution: -> accepted status:

[issue3895] _lsprof issue

2008-09-30 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: See the fix in r66700 for the change to _lsprof.c to use. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4010] configure options don't trickle down to distutils

2008-10-01 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Well, all of my modules are in a non-standard location and I have no build issues on OS X 10.5. If you look at PyBuildExt.detect_modules() you will see that the paths are at least added for the search path from LDFLAGS and CP

[issue4011] Create DAG for PEP 101

2008-10-01 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: PEP 101 says it would be nice to have a dependency graph that showed what could and could not be done in parallel when cutting a release. Should throw one together using OmniGraffle or Graphviz. -- assignee: brett.cannon me

[issue4010] configure options don't trickle down to distutils

2008-10-02 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Thu, Oct 2, 2008 at 1:57 PM, Roumen Petrov <[EMAIL PROTECTED]> wrote: > > Roumen Petrov <[EMAIL PROTECTED]> added the comment: > > One of the problems that I see in that LDFLAGS is Makefile variable and > Mak

[issue3758] "make check" suggest a testing target under GNU coding standards

2008-10-03 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3758> ___ ___

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: But why does iso-8859-1 need to be treated as a special case? UTF-8 is special because it is the default encoding for source. But iso-8859-1 really shouldn't be special, IMO. Your patch does exactly what happens lower when s

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Sorry, I mis-spoke: your patch, Victor, doesn't change the state to NORMAL. But my worry still stands; why does iso-8859-1 need to be special-cased? It suggests to me that some more fundamental needs to be dealt with instead of ju

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-03 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Thanks for finding that, Victor! I will do a patch review when I have a chance (it won't be until after the weekend). -- assignee: -> brett.cannon ___ Python tracker <[EMAIL

[issue3758] "make check" suggest a testing target under GNU coding standards

2008-10-06 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: 2.7 through r66819, 2.6 through r66820, and 3.0 through r66821. -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-06 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: So I tried the patch (I attached my version with different comments in the header file and removed some redundant change in whitespacing), and test_sys consistently fails for me: test_current_frames (__main__.SysModuleTest) Assertio

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-06 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11722/alt_latin_1.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-10 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Yep, it passes for me now. Martin, have any objection to this patch? -- assignee: -> loewis ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4111] Add DTrace probes

2008-10-12 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: At one point we were told Apple would try to backport their dtrace instrumentation. I don't know what the status of that is, but it obviously has not happened. -- nosy: +brett.cannon ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2010-01-17 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <http://bugs.python.org/issue7092> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7319] Silence DeprecationWarning by default

2010-02-02 Thread Brett Cannon
Brett Cannon added the comment: On Tue, Feb 2, 2010 at 19:00, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > Has enough time elapsed yet for py3k merging? Sure. I will try to do it before or at PyCon. -- ___ Py

[issue7361] importlib not checking bytecode length

2010-02-03 Thread Brett Cannon
Brett Cannon added the comment: I can't reproduce the failure as running test_multiprocessing and then test_importlib does not show any left over stuff in the interpreter what would lead to importlib being used for __import__. But as the IndexError part is a valid issue I am renamin

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-02-03 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> low stage: -> needs patch ___ Python tracker <http://bugs.python.org/issue7829> ___ ___ Python-bugs-list

[issue2874] Remove use of the stat module in the stdlib

2010-02-03 Thread Brett Cannon
Brett Cannon added the comment: OK, this ain't ever going to happen, so I am just going to close this issue. -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bugs.python

[issue7849] Improve "test_support.check_warnings()"

2010-02-03 Thread Brett Cannon
Brett Cannon added the comment: In other words you want a way to limit what the context manager catches and records while allowing all other warnings to propagate. That seems fine. I didn't do much of a code review, but there is a grammatical error in the docstring: change "a fi

[issue7875] test_multiprocessing / importlib failure

2010-02-07 Thread Brett Cannon
Brett Cannon added the comment: I don't know who is doing this, but from what I can tell it isn't test_imoprtlib; running with -i shows __import__ to still be the built-in one along with no new sys.path_hooks entries or stale entries in sys.path_importer_cache. Same goes for

[issue7875] test_multiprocessing / importlib failure

2010-02-07 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker <http://bugs.python.org/issue7875> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7875] test_multiprocessing / importlib failure

2010-02-07 Thread Brett Cannon
Brett Cannon added the comment: OK, I figured this one out. Someone is using importlib.import_module() which uses importlib itself to do the import and not builtins.__import__. That has the side-effect of importlib replacing all None entries in sys.path_importer_cache with the finder that

[issue7875] test_multiprocessing / importlib failure

2010-02-07 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +importlib not checking bytecode length ___ Python tracker <http://bugs.python.org/issue7875> ___ ___ Python-bugs-list m

[issue7361] importlib not checking bytecode length

2010-02-07 Thread Brett Cannon
Brett Cannon added the comment: issue #7875 brought up the original failure that caused the creation of this bug again and led to me finally diagnosing the problem. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7878] regrtest should check for changes in import machinery

2010-02-07 Thread Brett Cannon
New submission from Brett Cannon : The saved_test_environment context manager should check that sys.path_hooks, sys.path_importer_cache, and __import__ have not changed. The thing that is tricky, though, is that sys.path_importer_cache is legitimately mutated by other tests simply because

[issue7361] importlib not checking bytecode length

2010-02-07 Thread Brett Cannon
Brett Cannon added the comment: A quick check of things shows that a totally empty file, a missing timestamp, or no marshalled code triggers the use of source. I still need to check what happens when the magic number is truncated by a byte or so along with the timestamp. Any screw-up with

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread Brett Cannon
Brett Cannon added the comment: So option 3 would marginalize __import__ testing as importlib's finders and loaders as pulled from sys.path_importer_cache would be used over __import__'s own implicit importers that it contains. As for test.support.import_module being the culprit,

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread Brett Cannon
Brett Cannon added the comment: Importlib actually already can do this: importlib.test.regrtest. It runs regrtest after importlib has been set for __import__. It also skips tests known to fail for stupid reasons (typically they don't expect __loader__ to be defined). You can also ru

[issue7902] relative import broken

2010-02-10 Thread Brett Cannon
Brett Cannon added the comment: So doing the import manually through __import__('os', globals(), locals(), ['walk'], 1) does not work. My guess is it has something to do with the IMPORT_FROM opcode (or something related), but I don't have time

[issue7980] time.strptime not thread safe

2010-02-22 Thread Brett Cannon
Brett Cannon added the comment: Lib/_strptime.py itself should be thread-safe. I am guessing that it has something to do with the way the C code in time.c imports _strptime.py. A possible solution if it is the C code's import stuff is to create a time.py that imports a _time.c, but tha

[issue7984] missing dependencies using cProfile

2010-02-23 Thread Brett Cannon
Brett Cannon added the comment: That's a package decision by Ubuntu, not Python, and thus not a bug on our end. Thanks for the report anyway. -- nosy: +brett.cannon resolution: -> invalid status: open -> closed ___ Python tra

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-23 Thread Brett Cannon
Brett Cannon added the comment: Now that Dino has commit privileges and I just gave him the coordinator role, he can do the commit himself. =) Went ahead and assigned this issue to him. And Dino, it would be helpful if you changed your username on the tracker to match your username on python

[issue7319] Silence DeprecationWarning by default

2010-03-06 Thread Brett Cannon
Brett Cannon added the comment: So it isn't really unexpected as -Q uses DeprecationWarning which is being silenced by default. So either -Q has to turn DeprecationWarning back on or a new subclass of DeprecationWarning (say IntegerDivisionWarning) needs to be introduced that -Q use

[issue7319] Silence DeprecationWarning by default

2010-03-06 Thread Brett Cannon
Brett Cannon added the comment: Posted to python-dev to solicit feedback on how to handle this. -- stage: commit review -> needs patch versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/iss

[issue8100] `configure` incorrectly handles empty OPT variable

2010-03-09 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> low stage: -> patch review type: -> behavior ___ Python tracker <http://bugs.python.org/issue8100> ___ ___ P

[issue8119] Minor comment error in configure.in ("malloc support" appears twice)

2010-03-11 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> low ___ Python tracker <http://bugs.python.org/issue8119> ___ ___ Python-bugs-list mailing list Unsubscri

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-03-12 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: georg.brandl -> brett.cannon ___ Python tracker <http://bugs.python.org/issue7997> ___ ___ Python-bugs-list mai

[issue8126] Python 3.1.2rc1 doesn't compile using the 10.4 sdk on a 10.6 Mac

2010-03-12 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> ronaldoussoren components: +Macintosh -Build nosy: +ronaldoussoren priority: -> normal stage: -> needs patch ___ Python tracker <http://bugs.python.o

[issue8143] urlparse has a duplicate of urllib.unquote

2010-03-15 Thread Brett Cannon
Brett Cannon added the comment: So David's right that local commits are bad from a threading perspective. If you happen to have an import trigger a thread which itself triggers an import you will lock up the interpreter. Typically this is avoided by not importing anything in a thread an

[issue8143] urlparse has a duplicate of urllib.unquote

2010-03-15 Thread Brett Cannon
Brett Cannon added the comment: You could break it out into a module, but that feels like overkill for some minor code duplication that is not going to be a problem once we stop caring about Python 2.x. I personally wouldn't bother going that far. -- priority: normal -

[issue8133] test_imp fails on OS X 10.6; filename normalization issue.

2010-03-16 Thread Brett Cannon
Brett Cannon added the comment: Trying to get this right is nasty as mixed filesystem stuff is always tricky, especially since NFD is still UTF-8 as is NFC so sys.getdefaultencoding() doesn't help. Without some way to get that extra bit of info about what form of UTF-8 encoding is

[issue8133] test_imp fails on OS X; filename normalization issue.

2010-03-20 Thread Brett Cannon
Brett Cannon added the comment: Patch works for me as well. Go ahead and commit it, Florent, with the comment fix as a separate commit as Mark suggested. -- assignee: brett.cannon -> flox stage: patch review -> commit review ___ Python t

[issue8183] warn crashes if warning's __str__ returns Unicode

2010-03-20 Thread Brett Cannon
Brett Cannon added the comment: Can't reproduce under OS X with Python 2.6.5. Closing as out of date. -- nosy: +brett.cannon resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python

[issue8202] sys.argv[0] and python -m package

2010-03-22 Thread Brett Cannon
Brett Cannon added the comment: Nick is right that importing package.__main__ requires importing package.__init__ first. But it sounds like Michael really just wants some way to know when runpy is being used over something else. Could a special string token like "" or "<

[issue8220] site.py's Quitter pollutes builtins with exit and quit for non-interactive use

2010-03-24 Thread Brett Cannon
Brett Cannon added the comment: While technically site.py could probably detect it is running in an interactive session, changing this behaviour now would be backwards-incompatible and break pre-existing code that relies on this behaviour (which has been around for a long time

[issue8273] move test_support into the unittest package

2010-03-31 Thread Brett Cannon
Brett Cannon added the comment: I take the blame on documenting the handful of things in test.support; I thought it was a good idea to expose the handful of things that had an actual design to them. =) But yes, we should probably shift to test.support to being private and simply exposing

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-12 Thread Brett Cannon
Brett Cannon added the comment: Your assessment of what is going on, Andy, is correct; the peephole optimizer for bytecode optimizes away the `if __debug__` section of the `if` statement for .pyo files. But that is actually a reasonable thing for the compiler to do as you are not supposed

[issue1722344] Thread shutdown exception in Thread.notify()

2010-04-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <http://bugs.python.org/issue1722344> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-13 Thread Brett Cannon
Brett Cannon added the comment: So technically Python does not know that some bytecode was compiled with optimization flags on; that is simply not carried in the bytecode format. You also cannot rely on file name extensions as the bytecode could have been generated by an interpreter that

[issue8389] Incomprehensible import error

2010-04-14 Thread Brett Cannon
Brett Cannon added the comment: First off, the 'as' clause is not influencing anything; simply try to assign ``t = a.b.t`` and you still get the error. Second, you are trying to reference a.b in a.b.c through your a.b.t import before a.b has finished importing. This is causing

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-14 Thread Brett Cannon
Brett Cannon added the comment: On Wed, Apr 14, 2010 at 18:35, R. David Murray wrote: > > R. David Murray added the comment: > > No, Brett said he thought it was not a bug. If Raymond disagrees, he'll > say so. If I may attempt to channel Brett, I suspect his logic for

[issue2090] __import__ with fromlist=[''] causes double initialization of modules

2010-04-15 Thread Brett Cannon
Brett Cannon added the comment: If you want a justification, think of it as undefined behavior. When you use an empty string in fromlist you are essentially simulating ``from pkg import`` which makes absolutely no sense, so no one has cared enough to try to fix this. It's such a hack t

[issue2090] __import__ with fromlist=

2010-04-15 Thread Brett Cannon
Brett Cannon added the comment: On Thu, Apr 15, 2010 at 14:56, Éric Araujo wrote: That's fine with me if someone wrote a patch that did that. -- title: __import__ with fromlist=[''] causes double initialization of modules -> __import__ with fromlist

[issue2090] __import__ with fromlist=

2010-04-15 Thread Brett Cannon
Brett Cannon added the comment: Although now that I think about it, there is a slightly sticky situation of someone using '' or some name with a slash for a key in __dict__. The usage in fromlist would then be "reasonable", but the semantics would be somewhat odd as fro

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-04-17 Thread Brett Cannon
Brett Cannon added the comment: Attached is a patch I wrote entirely independently of this issue (Mercurial's test suite trigger it for me). I go further in terms of caching items than the original patch as I still got failures even when I stored just a reference to os (might be an

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-04-18 Thread Brett Cannon
Brett Cannon added the comment: Let's try this again... -- Added file: http://bugs.python.org/file16976/subprocess__del__.diff ___ Python tracker <http://bugs.python.org/i

[issue2090] __import__ with fromlist=

2010-04-18 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, George. I will get it when I can. And this make me even more glad that we removed the file path import from 3.x. -- ___ Python tracker <http://bugs.python.org/issue2

[issue7319] Silence DeprecationWarning by default

2010-04-23 Thread Brett Cannon
Changes by Brett Cannon : -- priority: critical -> release blocker ___ Python tracker <http://bugs.python.org/issue7319> ___ ___ Python-bugs-list mai

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2010-04-23 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> normal ___ Python tracker <http://bugs.python.org/issue7997> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8523] shutil.rmtree and os.listdir cannot recover on error conditions

2010-04-25 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> tarek nosy: +tarek ___ Python tracker <http://bugs.python.org/issue8523> ___ ___ Python-bugs-list mailing list Un

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-04-25 Thread Brett Cannon
Brett Cannon added the comment: New patch updated to at least r80476. -- Added file: http://bugs.python.org/file17080/subprocess_shutdown.diff ___ Python tracker <http://bugs.python.org/issue5

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