[issue667770] import C API mess

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Replace __import__ w/ importlib.__import__ ___ Python tracker <http://bugs.python.org/issue667770> ___ ___ Python-bug

[issue7620] Vim syntax highlight

2011-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Usefulness of the Misc/Vim/ files? ___ Python tracker <http://bugs.python.org/issue7620> ___ ___ Python-bugs-list m

[issue2377] Replace __import__ w/ importlib.__import__

2011-06-26 Thread Brett Cannon
Brett Cannon added the comment: OK, so first step is to simply replace __import__ w/ importlib.__import__ using builtins.__import__ in order to make sure that all tests pass as expected. Can probably do this by doing the switch in Py_Initialize() somewhere. Next step after that will be

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-07-11 Thread Brett Cannon
Brett Cannon added the comment: Which I have not forgotten about. Just waiting until I have the time to get to this. On Mon, Jul 11, 2011 at 08:50, Éric Araujo wrote: > > Éric Araujo added the comment: > > Thanks for your work on this. I made some minor comments on Rietveld (

[issue9254] __import__ docstring should recommend importlib.import_module()

2011-07-12 Thread Brett Cannon
Brett Cannon added the comment: Patch looks good to me. -- stage: needs patch -> commit review ___ Python tracker <http://bugs.python.org/issue9254> ___ ___ Py

[issue1559549] ImportError needs attributes for module and file name

2011-07-13 Thread Brett Cannon
Brett Cannon added the comment: No, we don't need attribute_name as that is getting too specific. Your example is simply importing validmodule.name_with_typo which happens to possibly be an attribute on the module instead of another module or subpa

[issue10271] warnings.showwarning should allow any callable object

2011-07-17 Thread Brett Cannon
Brett Cannon added the comment: Committed in 3.3. This cannot be backported as it widens the API and those could lead to subtle incompatibilities. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.p

[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Brett Cannon
Brett Cannon added the comment: The problem with this request is it is practically unworkable. For instance, the missing __init__.py already exists as an ImportWarning. The circular import is a problem as Python would have to detect circular imports which is hard, else we would have a

[issue12583] More detailed ImportError messages

2011-07-19 Thread Brett Cannon
Brett Cannon added the comment: Doing a stack walk to try to determine if an import failure was from a circular import would be costly, a little complicated (since you cannot simply look at import statements but also various kinds of functions that can do an equivalent job of importing) and

[issue12583] More detailed ImportError messages

2011-07-20 Thread Brett Cannon
Brett Cannon added the comment: For the ImportWarning docs, there could stand to be more; patches welcome. =) As for ImportError being postmortem on an error, that is not always true as plenty of people use the trick, e.g.: try: import json except ImportError: import simplejson as json As

[issue11049] add tests for test.support

2011-07-25 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Jul 22, 2011 at 22:47, Eli Bendersky wrote: > > Eli Bendersky added the comment: > > Brett, what do you mean by "listed as an essential test in regrtest". The > regrtest.STDTESTS list? > Yes -- Added file: http

[issue8914] Run clang's static analyzer

2011-07-27 Thread Brett Cannon
Brett Cannon added the comment: I don't feel comfortable changing what is defined in a header file in a point release, so I am not going to backport the fix. -- ___ Python tracker <http://bugs.python.org/i

[issue12647] Add __bool__ to None

2011-07-27 Thread Brett Cannon
Brett Cannon added the comment: It all sounds good to me. Less magic behind the scenes is good. -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue12

[issue12682] Meaning of 'accepted' resolution as documented in devguide

2011-08-02 Thread Brett Cannon
Brett Cannon added the comment: I say just go ahead and change it. I was probably just thinking how I wish we would use it when I wrote that. -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue12

[issue12692] test_urllib2net is triggering a ResourceWarning

2011-08-04 Thread Brett Cannon
New submission from Brett Cannon : Specifically, test.test_urllib2net.OtherNetworkTests.test_sites_no_connection_close is leaving a socket open somewhere, but tracking down exactly whom is to blame is a mess since socket.SocketIO.close() explicitly relies on refcounting to shut down a socket

[issue12693] test.support.transient_internet prints to stderr when verbose is false

2011-08-04 Thread Brett Cannon
New submission from Brett Cannon : When verbose mode if OFF, test.support.transient_internet prints out what resource was unavailable before raising the ResourceDenied exception. Not sure if this is a bug (since it has existed for a while) or it is on purpose and just happens to seem counter

[issue12692] test_urllib2net is triggering a ResourceWarning

2011-08-05 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the info, Nadeem. -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issu

[issue12693] test.support.transient_internet prints to stderr when verbose is false

2011-08-05 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Aug 5, 2011 at 04:33, R. David Murray wrote: It just seems odd to print when verbosity is off, but not when it is on. I don't have the repo in front of me right now, but is there some other mechanism which prints out similar info when verbosity

[issue12701] Apple's clang 2.1 (xcode 4.1, OSX 10.7) optimizer miscompiles intobject.c

2011-08-08 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue12701> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Brett Cannon
Brett Cannon added the comment: @Victor it doesn't really matter why since it is an incorrect classification. This issue in no way involves Python 2.7 since we will not backport any modules to Python 2.7. -- versions: +Python 3.3 -Python 2.7, Pytho

[issue12693] test.support.transient_internet prints to stderr when verbose is false

2011-08-14 Thread Brett Cannon
Brett Cannon added the comment: The line from the source I am talking about is http://hg.python.org/cpython/file/49e9e34da512/Lib/test/support.py#l943 . And as for the output: > ./python.exe -m test -uall test_ssl > [1/1] test_ssl Re

[issue12756] datetime.datetime.utcnow should return a UTC timestamp

2011-08-16 Thread Brett Cannon
Brett Cannon added the comment: This is for backwards-compatibility as the UTC object did not come into existence until (I believe) Python 2.7. The docs for utcnow() explicitly state that if you want a timezone-aware UTC datetime object that you should use now() w/ the UTC object passed in

[issue1559549] ImportError needs attributes for module and file name

2011-08-16 Thread Brett Cannon
Brett Cannon added the comment: I have a use for this in my bootstrapping for importlib, so I am assigning this to myself in order to make sure that at least ImportError grows the needed keyboard argument and attribute. I will probably not bother with tweaking import.c, though

[issue9893] Usefulness of the Misc/Vim/ files?

2011-08-16 Thread Brett Cannon
Brett Cannon added the comment: OK, I like Eric's idea of the README.vim file explaining where to grab the community-maintained files and how to get set up. Anyone care to take a stab at writing the file? -- ___ Python tracker

[issue9893] Usefulness of the Misc/Vim/ files?

2011-08-16 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +easy ___ Python tracker <http://bugs.python.org/issue9893> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12409] Moving "Documenting Python" to Devguide

2011-08-22 Thread Brett Cannon
Brett Cannon added the comment: +1 -- Added file: http://bugs.python.org/file23005/unnamed ___ Python tracker <http://bugs.python.org/issue12409> ___+1 ___ Pytho

[issue12844] Support more than 255 arguments

2011-08-30 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue12844> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-31 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon resolution: fixed -> stage: committed/rejected -> needs patch ___ Python tracker <http://bugs.python.org/

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2011-08-31 Thread Brett Cannon
Brett Cannon added the comment: This is now generating a compiler warning under OS X because the older POSIX standard is followed where socklen_t can be unsigned. Attached is a patch to cast msg_controllen to a size big enough to hold either signed 2**31-1 or unsigned 2**32-1 (i.e., long

[issue12117] Failures with PYTHONDONTWRITEBYTECODE: test_importlib, test_imp, test_distutils, test_packaging, test_runpy, test_import

2011-09-02 Thread Brett Cannon
Brett Cannon added the comment: Unless someone cares enough to decorate the tests that should not write the bytecode (I think I have one such decorator in the importlib tests, but I think it is more for other VMs than for this situation) then I wouldn't worry about

[issue12907] Update test coverage devguide page

2011-09-05 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +"coverage" of Python regrtest cannot see initial import of libs ___ Python tracker <http://bugs.python.o

[issue12907] Update test coverage devguide page

2011-09-05 Thread Brett Cannon
New submission from Brett Cannon : The devguide needs to be updated with new coverage.py instructions. It seems that the script in issue11561 has been integrated into coverage.py's own repo, which means we now have a way to get much more complete coverage of the stdlib. But it also means

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-09-05 Thread Brett Cannon
Brett Cannon added the comment: Brandon, can I go ahead and close this and consider the script you and Ned have in the coverage.py repo to be the canonical script to use? -- status: open -> pending ___ Python tracker <http://bugs.pyth

[issue12908] Update dev-in-a-box for new coverage steps

2011-09-05 Thread Brett Cannon
New submission from Brett Cannon : Once the devguide has been updated, dev-in-a-box needs to be tweaked to follow the new instructions on how to generate a coverage report. -- assignee: brett.cannon components: None messages: 143583 nosy: brett.cannon priority: normal severity: normal

[issue12908] Update dev-in-a-box for new coverage steps

2011-09-05 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Update test coverage devguide page ___ Python tracker <http://bugs.python.org/issue12908> ___ ___ Python-bugs-list m

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-09-06 Thread Brett Cannon
Brett Cannon added the comment: Going to close this and open a separate feature request to better control what module is imported first. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12919] Control what module is imported first

2011-09-06 Thread Brett Cannon
New submission from Brett Cannon : Issue11561 had a use case for controlling what module is imported first (along with a patch to use a module other than 'os' to control finding the stdlib). There have been others who could use this feature as well. -- components: Interp

[issue12937] Support install options as found in distutils

2011-09-08 Thread Brett Cannon
New submission from Brett Cannon : Distutils2/packaging does not support all the flags provided in distutils (e.g., --user, --prefix, etc.). It would be good to provide the same level of install control (or at least support the --user flag). -- assignee: tarek components: Distutils2

[issue9572] IOError in test_multiprocessing

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

[issue9573] imporing a module that executes fork() raises RuntimeError

2010-08-11 Thread Brett Cannon
Brett Cannon added the comment: Without looking closer at it, don't do that. =) -- ___ Python tracker <http://bugs.python.org/issue9573> ___ ___ Pytho

[issue9572] IOError in test_multiprocessing

2010-08-20 Thread Brett Cannon
Brett Cannon added the comment: I think what I need to do is greatly simplify the directory creation code in set_data and make it much more robust against potential race conditions against other Python processes. I think as long as I just stop trying to make a directory when it is found to

[issue9662] ctypes not building under OS X because of ffi_closure_free not being defined early enough

2010-08-22 Thread Brett Cannon
Brett Cannon added the comment: It might as well be. OS X ships with it and is working towards making it their default compiler over gcc. Unladen also relies on it. This compiler issue is a fairly new one (I would guess past week or so), so making sure LLVM can compile Python shouldn't

[issue9662] ctypes not building under OS X because of ffi_closure_free not being defined early enough

2010-08-22 Thread Brett Cannon
New submission from Brett Cannon : When I build under OS X 10.6 with LLVM I get four warnings of the type: /Users/brett/Dev/python/3.x/scratch/Modules/_ctypes/callbacks.c:20:9: warning: implicit declaration of function 'ffi_closure_free' is invalid in C99 [-Wimplici

[issue9572] IOError in test_multiprocessing

2010-08-22 Thread Brett Cannon
Brett Cannon added the comment: Fixed in r84271. I will open another issue for the locking stuff. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue9663] importlib should exclusively open bytecode files

2010-08-22 Thread Brett Cannon
New submission from Brett Cannon : Importlib does not use any OS-level protections to gain exclusivity when opening a file like import.c does through open_exclusive. It probably should, though, when writing bytecode else one might end up with corrupt code. That's bad as bad marshal data

[issue9572] IOError in test_multiprocessing

2010-08-24 Thread Brett Cannon
Brett Cannon added the comment: Fixed in r84304. Thanks for catching that, Łukasz. -- ___ Python tracker <http://bugs.python.org/issue9572> ___ ___ Python-bug

[issue9677] "Global Module Index" link dead

2010-08-24 Thread Brett Cannon
New submission from Brett Cannon : When you build the HTML docs the "Global Module Index" link does not work while the "modules" link in the upper-right corner does. -- assignee: d...@python components: Documentation messages: 114832 nosy: brett.cannon, d...@p

[issue9572] IOError or OSError in test_multiprocessing

2010-08-26 Thread Brett Cannon
Brett Cannon added the comment: r84329 has the fix. I decided to catch IOError and OSError separately rather than EnvironmentError as a blanket 'except' clause; explicit is better than implicit and all. -- status: open -> closed ___ P

[issue5362] Add configure option to disable Py3k warnings

2010-09-01 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/issue5362> ___ ___ Python-bugs-

[issue2340] Backport PEP 3132 (extended iterable unpacking)

2010-09-01 Thread Brett Cannon
Brett Cannon added the comment: No, only bugfixes can go into Python 2.7. -- ___ Python tracker <http://bugs.python.org/issue2340> ___ ___ Python-bugs-list mailin

[issue9761] stale .pyc files aren't cleaned out

2010-09-03 Thread Brett Cannon
Brett Cannon added the comment: So are you installing new versions of a package you already have installed using ``python setup.py install``? Exactly what command are you using to do the install? -- nosy: +brett.cannon ___ Python tracker <h

[issue9766] warnings has "onceregistry" and "once_registry"

2010-09-03 Thread Brett Cannon
Brett Cannon added the comment: "defaultaction" and "default_action" is in the same situation. I think there may have been a circular import/ref problem as _warnings pulls from warnings the objects to use for the variables in question. Or at least that's what makes

[issue9761] stale .pyc files aren't cleaned out

2010-09-03 Thread Brett Cannon
Brett Cannon added the comment: This could still be an issue with the .pyc files being set with permissions that prevent them from being re-generated. Double-check the .pyc files are read-write and have the proper owners to allow them to be overwritten

[issue9766] warnings has "onceregistry" and "once_registry"

2010-09-03 Thread Brett Cannon
Brett Cannon added the comment: OK, so I will fix this in 3.2 but not any other versions as someone might be foolishly relying on the name. Hopefully I can get to this over the weekend. -- keywords: +easy versions: -Python 2.7, Python 3.1

[issue9766] warnings has "onceregistry" and "once_registry"

2010-09-04 Thread Brett Cannon
Brett Cannon added the comment: r84500 -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue9766> ___ ___ Pyth

[issue9813] Module Name Changed

2010-09-09 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue9813> ___ ___ Python-bugs-list mailing list Unsubscri

[issue9716] The inittab modules cannot be packages

2010-09-12 Thread Brett Cannon
Changes by Brett Cannon : -- versions: +Python 3.2, Python 3.3 -Python 2.7 ___ Python tracker <http://bugs.python.org/issue9716> ___ ___ Python-bugs-list mailin

[issue9716] The inittab modules cannot be packages

2010-09-13 Thread Brett Cannon
Brett Cannon added the comment: Both David and Nick are correct as to why I did what I did. -- ___ Python tracker <http://bugs.python.org/issue9716> ___ ___ Pytho

[issue9848] setup.py contains needless references to built-in _weakref module

2010-09-14 Thread Brett Cannon
Brett Cannon added the comment: Fixed in r84819 for 3.2. No point in backporting since it doesn't hurt anything. Thanks for the report! -- assignee: -> brett.cannon nosy: +brett.cannon resolution: -> fixed status: open -> closed

[issue5629] PEP 0 date and revision not being set

2010-09-16 Thread Brett Cannon
Brett Cannon added the comment: Yes, it's just a question of how to interpret it. If we bother keeping the info in there, should it be for all updates to PEPs, or just when a PEP is added? -- ___ Python tracker <http://bugs.python.org/i

[issue5629] PEP 0 date and revision not being set

2010-09-16 Thread Brett Cannon
Brett Cannon added the comment: Done in r84855. -- assignee: -> brett.cannon resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

[issue9893] Usefulness of the Misc/Vim/ files?

2010-09-18 Thread Brett Cannon
Brett Cannon added the comment: So the irony of saying that the files are poor is that I took that code from the highlight file from Vim itself and simply automated the creation of the files. As for the more proper way of selecting when to apply the highlights, I would not be surprised that

[issue2090] __import__ with fromlist=

2010-09-19 Thread Brett Cannon
Brett Cannon added the comment: I replied to the Stack Overflow question. I should also mention that importlib is on PyPI and compatible back to PYthon 2.3. I still plan to get to this some day, but I don't view this as a critical fix, just a nice thing to do for

[issue9252] PyImport_Import calls __import__ with dummy fromlist

2010-09-19 Thread Brett Cannon
Brett Cannon added the comment: Fixed in r84908. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue9252> ___ __

[issue6608] asctime does not check its input

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

[issue8787] warnings inside PyRun_SimpleString() display argv[1]

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

[issue7397] __import__ docs should reference importlib.import_module

2010-09-27 Thread Brett Cannon
Brett Cannon added the comment: Fixed in r85043. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue7397> ___ __

[issue9082] warnings.filterwarnings doesn't work with -O

2010-09-27 Thread Brett Cannon
Brett Cannon added the comment: What specific failures are you talking about, Michael? I just ran regrtest with -O and had no (unexpected) failures. -- ___ Python tracker <http://bugs.python.org/issue9

[issue9963] test_sysconfig when LDFLAGS defined in the user's environment

2010-09-27 Thread Brett Cannon
New submission from Brett Cannon : test_sysconfig.test_ldshared_value is failing for me on Mac because my LDFLAGS environment variable is being defined twice in what sysconfig.get_config_var('LDFLAGS') returns. This fails in a comparison against sysconfig.get_config_var('LD

[issue9082] warnings.filterwarnings doesn't work with -O

2010-09-27 Thread Brett Cannon
Brett Cannon added the comment: I'm going to close this as I don't think any of the failures are because of the asserts, else -O would pick them up just as well as -OO. -- resolution: -> invalid status: open -> closed ___ Pytho

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-09-29 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue9437> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-09-29 Thread Brett Cannon
Brett Cannon added the comment: OK, so who's messing up: subprocess or Py_main()? -- ___ Python tracker <http://bugs.python.org/issue9988> ___ ___ Pytho

[issue10081] 'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows)

2010-10-13 Thread Brett Cannon
Brett Cannon added the comment: This is a duplicate of 9425 -- nosy: +brett.cannon superseder: -> Rewrite import machinery to work with unicode paths ___ Python tracker <http://bugs.python.org/issu

[issue10081] 'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows)

2010-10-13 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/issue10081> ___ ___ Python-bugs-

[issue2775] Implement PEP 3108

2010-10-13 Thread Brett Cannon
Brett Cannon added the comment: The reorganization is over short of one or two lasting changes that may not even be made now. New suggestions are not directly being discussed here and would have to be taken up on python-dev. -- ___ Python tracker

[issue2775] Implement PEP 3108

2010-10-14 Thread Brett Cannon
Brett Cannon added the comment: No. Best I can do is suggest you perform an internet search on the term as it makes it obvious what python-dev is. -- ___ Python tracker <http://bugs.python.org/issue2

[issue10106] missing packages

2010-10-14 Thread Brett Cannon
Brett Cannon added the comment: Double-check your install. Errors like this typically means that your Python executable is not able to read the standard library files. Either that or something got moved and so the files are not where Python expects them to be. -- nosy: +brett.cannon

[issue10106] missing packages

2010-10-14 Thread Brett Cannon
Brett Cannon added the comment: I'm now a Windows user, so there might be a better way to solve this, but... Run ``python -v`` and see what it says about why 'site' was not imported. You can also verify that site.py is readable by Python by checking that its directory locati

[issue10106] missing packages

2010-10-14 Thread Brett Cannon
Changes by Brett Cannon : -- Removed message: http://bugs.python.org/msg118702 ___ Python tracker <http://bugs.python.org/issue10106> ___ ___ Python-bugs-list m

[issue10106] missing packages

2010-10-14 Thread Brett Cannon
Brett Cannon added the comment: I'm not a Windows user, so there might be a better way to solve this, but... Run ``python -v`` and see what it says about why 'site' was not imported. You can also verify that site.py is readable by Python by checking that its directory locati

[issue10106] missing packages

2010-10-14 Thread Brett Cannon
Changes by Brett Cannon : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue10106> ___ ___ Python-bugs-list mailing list Unsubscri

[issue2775] Implement PEP 3108

2010-10-17 Thread Brett Cannon
Brett Cannon added the comment: If any action regarding your patch takes place there will be a comment here about it. Until then assume nothing has happened. -- ___ Python tracker <http://bugs.python.org/issue2

[issue10130] Create epub format docs and offer them on the download page

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

[issue10093] Warn when files are not explicitly closed

2010-10-21 Thread Brett Cannon
Brett Cannon added the comment: After thinking about what warning to go with, I take back my python-dev suggestion of ResourceWarning and switch to DebugWarning. It is in fact harder to add in DebugWarning as a superclass to ResourceWarning than the other way around, especially once people

[issue10093] Warn when files are not explicitly closed

2010-10-22 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Oct 22, 2010 at 12:49, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> After thinking about what warning to go with, I take back my python-dev >> suggestion of ResourceWarning and switch to DebugWarning. > >

[issue10093] Warn when files are not explicitly closed

2010-10-22 Thread Brett Cannon
Brett Cannon added the comment: But this is meant to be an optional warning; users will never see it. Me as a developer, I would like to know when I leave a file open as that is a waste of resources, plus with no guarantee of everything being flushed to disk. Besides, the context manager for

[issue2775] Implement PEP 3108

2010-10-26 Thread Brett Cannon
Brett Cannon added the comment: profile and cProfile could still conceivably be merged, even if it is under a new name if someone found the time to do the compatibility work. -- status: pending -> open ___ Python tracker <http://bugs.pyth

[issue10093] Warn when files are not explicitly closed

2010-10-28 Thread Brett Cannon
Brett Cannon added the comment: If a new, unbound socket uses some form of OS resource, then a warning is needed. Is their an equivalent limitation like there is with file descriptors as to how many an OS can possibly have open at once

[issue10093] Warn when files are not explicitly closed

2010-10-28 Thread Brett Cannon
Brett Cannon added the comment: That's what I thought. So if socket.socket() alone is enough to consume an fd then there should be a warning. -- ___ Python tracker <http://bugs.python.org/is

[issue8678] crashers in rgbimg

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

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2010-10-29 Thread Brett Cannon
New submission from Brett Cannon : I get the following output related to the build failure: /var/folders/MN/MN-E3HgoFXSKDXb9le7FQTI/-Tmp-/cc-MxvLE7.s:153:2: error: unrecognized instruction cmovnz %rax, %rdx ^ /var/folders/MN/MN-E3HgoFXSKDXb9le7FQTI/-Tmp-/cc-MxvLE7.s:154:2: error

[issue10233] fix test_tarfile ResourceWarnings

2010-10-29 Thread Brett Cannon
Brett Cannon added the comment: Reviewed at http://codereview.appspot.com/2759042/ -- assignee: -> pitrou ___ Python tracker <http://bugs.python.org/issu

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-31 Thread Brett Cannon
Brett Cannon added the comment: On Sat, Oct 30, 2010 at 06:04, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Committed in r85975 (3.2). I guess we'll do a big svnmerge to other branches > later. Or not at all. I honestly have not been worrying about bac

[issue10271] warnings.showwarning should allow any callable object

2010-10-31 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue10271> ___ ___ Python-bugs-list mai

[issue10271] warnings.showwarning should allow any callable object

2010-10-31 Thread Brett Cannon
Changes by Brett Cannon : -- versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue10271> ___ ___ Python-bugs-list mailin

[issue10273] Clean-up Unittest API

2010-11-01 Thread Brett Cannon
Brett Cannon added the comment: Just sent an email to python-dev, but since this issue sparked it, I might as well comment here: unittest shouldn't be made back into a single module. Ignoring the fact that the file structure has nothing to do with the public API and so is orthogonal t

[issue10294] Lib/test/test_unicode_file.py contains dead code

2010-11-02 Thread Brett Cannon
Brett Cannon added the comment: Committed in r86125 -- assignee: -> brett.cannon nosy: +brett.cannon resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10342] trace module cannot produce coverage reports for zipped modules

2010-11-07 Thread Brett Cannon
Brett Cannon added the comment: The handling of __loader__ looks fine to me, although I don't quite see the point of the get_source call as it isn't returned or used. -- ___ Python tracker <http://bugs.python.o

[issue10401] Globals / builtins cache

2010-11-13 Thread Brett Cannon
Brett Cannon added the comment: Unladen actually has something like this in place for performance optimizations. Not sure how Antoine's approach differs, though. -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/is

[issue10399] AST Optimization: inlining of function calls

2010-11-13 Thread Brett Cannon
Brett Cannon added the comment: While I have nothing to say directly about the inline optimization, I do have some stuff to say about moving to AST optimizations. First, doing in Python is a good thing. It not only makes prototyping easier, but it allows other VMs to use the optimizations w

<    1   2   3   4   5   6   7   8   9   10   >