Changes by Brett Cannon :
--
dependencies: +Replace __import__ w/ importlib.__import__
___
Python tracker
<http://bugs.python.org/issue667770>
___
___
Python-bug
Changes by Brett Cannon :
--
dependencies: +Usefulness of the Misc/Vim/ files?
___
Python tracker
<http://bugs.python.org/issue7620>
___
___
Python-bugs-list m
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
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 (
Brett Cannon added the comment:
Patch looks good to me.
--
stage: needs patch -> commit review
___
Python tracker
<http://bugs.python.org/issue9254>
___
___
Py
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
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
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
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
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
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
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
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
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
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
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
Brett Cannon added the comment:
Thanks for the info, Nadeem.
--
assignee: -> orsenthil
nosy: +orsenthil
___
Python tracker
<http://bugs.python.org/issu
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
Changes by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<http://bugs.python.org/issue12701>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
Changes by Brett Cannon :
--
keywords: +easy
___
Python tracker
<http://bugs.python.org/issue9893>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
+1
--
Added file: http://bugs.python.org/file23005/unnamed
___
Python tracker
<http://bugs.python.org/issue12409>
___+1
___
Pytho
Changes by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<http://bugs.python.org/issue12844>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Brett Cannon :
--
nosy: +brett.cannon
resolution: fixed ->
stage: committed/rejected -> needs patch
___
Python tracker
<http://bugs.python.org/
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
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
Changes by Brett Cannon :
--
dependencies: +"coverage" of Python regrtest cannot see initial import of libs
___
Python tracker
<http://bugs.python.o
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
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
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
Changes by Brett Cannon :
--
dependencies: +Update test coverage devguide page
___
Python tracker
<http://bugs.python.org/issue12908>
___
___
Python-bugs-list m
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
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
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
Changes by Brett Cannon :
--
assignee: -> brett.cannon
___
Python tracker
<http://bugs.python.org/issue9572>
___
___
Python-bugs-list mailing list
Unsubscri
Brett Cannon added the comment:
Without looking closer at it, don't do that. =)
--
___
Python tracker
<http://bugs.python.org/issue9573>
___
___
Pytho
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
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
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
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/
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
Brett Cannon added the comment:
Fixed in r84304. Thanks for catching that, Łukasz.
--
___
Python tracker
<http://bugs.python.org/issue9572>
___
___
Python-bug
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
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
Changes by Brett Cannon :
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue5362>
___
___
Python-bugs-
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
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
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
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
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
Brett Cannon added the comment:
r84500
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue9766>
___
___
Pyth
Changes by Brett Cannon :
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/issue9813>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
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
Brett Cannon added the comment:
Done in r84855.
--
assignee: -> brett.cannon
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.o
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
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
Brett Cannon added the comment:
Fixed in r84908.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue9252>
___
__
Changes by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<http://bugs.python.org/issue6608>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Brett Cannon :
--
assignee: brett.cannon ->
___
Python tracker
<http://bugs.python.org/issue8787>
___
___
Python-bugs-list mailing list
Unsubscri
Brett Cannon added the comment:
Fixed in r85043.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue7397>
___
__
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
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
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
Changes by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<http://bugs.python.org/issue9437>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
OK, so who's messing up: subprocess or Py_main()?
--
___
Python tracker
<http://bugs.python.org/issue9988>
___
___
Pytho
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
Changes by Brett Cannon :
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue10081>
___
___
Python-bugs-
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
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
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
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
Changes by Brett Cannon :
--
Removed message: http://bugs.python.org/msg118702
___
Python tracker
<http://bugs.python.org/issue10106>
___
___
Python-bugs-list m
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
Changes by Brett Cannon :
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/issue10106>
___
___
Python-bugs-list mailing list
Unsubscri
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
Changes by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<http://bugs.python.org/issue10130>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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.
>
>
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
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
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
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
Changes by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<http://bugs.python.org/issue8678>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Brett Cannon added the comment:
Reviewed at http://codereview.appspot.com/2759042/
--
assignee: -> pitrou
___
Python tracker
<http://bugs.python.org/issu
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
Changes by Brett Cannon :
--
assignee: -> brett.cannon
nosy: +brett.cannon
___
Python tracker
<http://bugs.python.org/issue10271>
___
___
Python-bugs-list mai
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
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
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
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
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
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
201 - 300 of 5934 matches
Mail list logo