Georg Brandl ge...@python.org added the comment:
I've now split the mode table in two tables, one describing base modes,
and one the possible modifiers. See r72000.
--
resolution: - fixed
status: open - closed
___
Python tracker
New submission from Nicolas Dumazet nicd...@gmail.com:
Hello!
gc.set_debug is provided to help debugging a leaking program. That tool
can be very useful indeed.
Debugging information, however, is written to sys.stderr, and there are
cases where this behavior can be a problem: chances are that
New submission from winterTTr winter...@gmail.com:
I want to list the file with glob .
The path( which is a directory ) is contain square bracket as [ab]xxx
. However , i can't find how to do it rightly with glob .
with the coding :
{{{
import glob
glob.glob('[ab]xxx' )
}}}
and with the
Eric Smith e...@trueblade.com added the comment:
I agree this is a feature request. It comes down to:
What should the format specifier mini-language for complex numbers look
like?
Should it look like the existing mini-language for floats, but have the
format specified twice, with some sort of
New submission from djc dirk...@ochtman.nl:
I've got hgweb (the Mercurial web app) crashing on guess_type() in
2.6.2, but not in 2.5.4. I'm passing in a filename like
'/home/djc/src/hg/crew/templates/static/hglogo.png'. Doesn't happen on
the REPL, but happens in side the hg serve web server.
Mark Dickinson dicki...@gmail.com added the comment:
What should the format specifier mini-language for complex numbers look
like?
Should it look like the existing mini-language for floats, but have
the format specified twice, with some sort of delimiter?
This sounds clumsy to me. I'd
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The bug tracker is not here to get help.
Please ask this kind of question on the comp.lang.python newsgroup.
(they will tell you that [ is a special character for glob(), and how to
escape it)
--
nosy: +amaury.forgeotdarc
R. David Murray rdmur...@bitdance.com added the comment:
The addition of __all__ was made by raymond.hettinger in r60851. 'from
xxx import *' is not a recommended style, but irregardless of that
__all__ certainly should list all of the public APIs.
--
keywords: +easy
nosy:
djc dirk...@ochtman.nl added the comment:
georg.brandl remarked it might be due to demandimport. That doesn't seem
to be the case:
from mercurial import demandimport
demandimport.enable()
import mimetypes
mimetypes.guess_type('/home/djc/src/hg/crew/templates/static/hglogo.png')
New submission from Floris Bruynooghe floris.bruynoo...@gmail.com:
The logging module in Python 2.6 has started to use the __all__ method.
However it does not list all the symbols that are described in the
documentation. Most notably the getLogger function is not in the
__all__ list, but there
Eric Smith e...@trueblade.com added the comment:
Mark Dickinson wrote:
What should the format specifier mini-language for complex numbers look
like?
Should it look like the existing mini-language for floats, but have
the format specified twice, with some sort of delimiter?
This sounds
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - vsajip
nosy: +vsajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5854
___
___
Eric Smith e...@trueblade.com added the comment:
Checked in for trunk (r71938) and py3k (r71989).
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5835
Changes by Eric Smith e...@trueblade.com:
--
assignee: - eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1588
___
___
Python-bugs-list
New submission from sjohn sebastianj...@gmx.net:
To flatten lists of lists, e.g. [[0], [1], [2], ...], I found the short
and quite python-like one-liner sum(listoflists, []). This, however,
has absolutely awful performance: while the equivalent way of iterating
by hand and extending a flat list
Changes by Eric Smith e...@trueblade.com:
--
assignee: jafo - eric.smith
versions: +Python 2.7 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1467929
___
Antoine Pitrou pit...@free.fr added the comment:
No wonder it's quadratic (rather than exponential), since summing will
invoke the + operator and therefore produce a new list object at every
iteration.
If you use f = f + l in your explicit version, it becomes quadratic too.
--
nosy:
Antoine Pitrou pit...@free.fr added the comment:
He, adding completion is also something I find myself adding on every
box on which I use Python...
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5845
Ross Peoples deejr...@users.sourceforge.net added the comment:
I just did a fresh install of Ubuntu Jaunty in a virtual machine, copied
and pasted the code. It ran the first time without a problem. But the
second time I ran it, the application would not exit and IDLE is frozen.
So I still have
New submission from Niels de Vos niels.de...@wincor-nixdorf.com:
The last example of traceback (found on
http://docs.python.org/library/traceback.html release 2.6.2) contains
a typo.
theError = IndexError('tuple indx out of range')
traceback.format_exception_only(type(theError), theError)
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Fix checked in to trunk, release26-maint and py3k.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5854
djc dirk...@ochtman.nl added the comment:
This could well be due to the SocketServer.ThreadingMixIn that's being
used by the hg serve built-in web server (since it doesn't show on REPL
or, as far as I can see, when used from within Apache + mod_wsgi).
--
Antoine Pitrou pit...@free.fr added the comment:
The function monkeypatching hack should be replaced with something more
robust.
(what might happen here is that init() is first called from another
thread, sets `inited` to True and then crashes for whatever reason, so
guess_type() isn't actually
Antoine Pitrou pit...@free.fr added the comment:
The plan is to replace init() with something like:
_db = None
def init():
global _db
db = ...
# initialize database
# set it to global only when it's fully ready
_db = db
and guess_type() with:
def guess_type():
if
Antoine Pitrou pit...@free.fr added the comment:
In the meantime, hgweb could probably call mimetypes.init() at the
beginning (before spawning threads).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5853
Eric Smith e...@trueblade.com added the comment:
I'll implement this by adding a pyctype.h and pyctype.c, mimicking
ctype.h. I'll essentially copy and rename the methods in
bytes_methods.[ch], then change bytes_methods.h to refer to the new
versions, for backward compatibility.
--
DSM dsm...@users.sourceforge.net added the comment:
There's more than a typo wrong with the example there-- import
traceback doesn't bring format_list into scope, and so it should be
traceback.format_list.
Patch attached which turns the example into something which passes a
doctest.
--
Mark Dickinson dicki...@gmail.com added the comment:
Bob, can you still reproduce the originally reported SIGFPE?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1496032
___
Eric Smith e...@trueblade.com added the comment:
The patch incorrectly raises an exception for:
'%(a)s %%' % {'a':'xyz'}
I'll look into fixing it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1467929
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: - marketdickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1496032
___
___
Bob Ippolito b...@redivi.com added the comment:
I don't even recall where I had access to a FreeBSD 6.0 Alpha machine,
sorry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1496032
___
Georg Brandl ge...@python.org added the comment:
Fixed in r72007, thanks!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5856
___
Georg Brandl ge...@python.org added the comment:
Okay, as the original submitter I withdraw this request.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2572
Robin Dunn ro...@alldunn.com added the comment:
Update: I finally worked out what needed to be done for wxPython and
while simply changing Python's manifest would have been immensely easier
what I have does seem to work well so I thought I should give some info
here for posterity.
I went back
Mark Dickinson dicki...@gmail.com added the comment:
No problem! I'll close this as out of date, then.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1496032
Mark Dickinson dicki...@gmail.com added the comment:
Done in r71967 (py3k), r71969 (trunk).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5836
Mark Dickinson dicki...@gmail.com added the comment:
I agree issue 1087418 is related, but why is it marked as a dependency for
this issue? It seems to me that either of these feature requests could be
implemented independently of the other: this one applies only to 2.x
ints, while issue
Mark Dickinson dicki...@gmail.com added the comment:
How about this:
- we have a single specifier with the same format as floats
- we force the sign on the imaginary part to be '+', no
matter what was specified
- we add a 'j' after the imaginary part
This sounds good to me. I assume a
Eric Smith e...@trueblade.com added the comment:
I don't see any problem with dealing with width, alignment
and padding with a user-specified fill character; I think we
should keep these if possible. It's just zero padding where
it's not clear what should happen.
You're correct. It's just
Mark Dickinson dicki...@gmail.com added the comment:
More specifically, how about allowing widths, and the
'', '' and '^' alignment specifiers, but not '=', or
'0' for zero-padding.
I suppose that thousands separators should be permitted
here too? Though it's difficult to imagine anyone
Eric Smith e...@trueblade.com added the comment:
This sounds good to me. I assume a '+' would still affect
the sign of the real part?
Forgot to reply to this part.
Yes, a '+', '-', or ' ' would still affect the real part, but the
imaginary part would always use '+'.
--
Mark Dickinson dicki...@gmail.com added the comment:
I think a ValueError would be best. That way if we decide to give it
some meaning in the future, we know it won't change any working code.
Agreed. It also fits with the way that other non-numeric types seem to
behave, as in:
Georg Brandl ge...@python.org added the comment:
Committed as r72036.
--
nosy: +georg.brandl
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5848
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I think we've got this covered with the examples for the collections
module ABCs. We have one for ListBasedSet and are adding a link for to
an OrderedSet recipe. The ABCs themselves provide a clear path on how
to implement
Eric Smith e...@trueblade.com added the comment:
More specifically, how about allowing widths, and the
'', '' and '^' alignment specifiers, but not '=', or
'0' for zero-padding.
That sounds correct.
I suppose that thousands separators should be permitted
here too? Though it's difficult
Georg Brandl ge...@python.org added the comment:
I guess adding a standard DeprecationWarning is fine in these cases.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5846
Georg Brandl ge...@python.org added the comment:
Committed init.rst.diff in r72037. Next step: document TLS APIs.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5840
___
Georg Brandl ge...@python.org added the comment:
Actually, seeing that other macro docs do that as well, I'm okay with it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4385
___
Ilan idji...@yahoo.com added the comment:
I basically have been running IDLE without the subprocess.
(In C:\Python24\Lib\idlelib\PyShell.py and at line 1272 change
use_subprocess = True
to
use_subprocess = False
Save PyShell.py, restart IDLE, and you will see a message in the shell
window
New submission from Vaibhav Mallya mally...@umich.edu:
Returning an anonymous 5-tuple seems like a suboptimal interface since
it's so easy to accidentally confuse, for example, the indices of start
and end. I've used tokenize.py for several scripts in the past few weeks
and I've always ended up
New submission from Mark Dickinson dicki...@gmail.com:
In all current versions of Python, the str or repr of a float always
includes *either* an exponent, or a decimal point and at least one digit
after the decimal point.
I propose making the str or repr of a complex number behave in the same
New submission from Mark Dickinson dicki...@gmail.com:
Currently, Python switches from %f to %g formatting at 1e50. This
applies both to the old-style percent formatting, and to the newer PEP
3101-style formatting:
'%f' % 2.**166
'93536104789177786765035829293842113257979682750464.00'
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
This should probably be discussed somewhat that all the numpy/numeric
folks can see it (since they likely comprise the largest group of users
of complex numbers).
Also note that any changes to representations tend to break
Antoine Pitrou pit...@free.fr added the comment:
For the record, here is a test script showcasing the problem.
--
Added file: http://bugs.python.org/file13798/mimetest.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5853
Antoine Pitrou pit...@free.fr added the comment:
Committed a fix in r72045. Thanks for the report!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5853
Mark Dickinson dicki...@gmail.com added the comment:
This should probably be discussed somewhat that all the numpy/numeric
folks can see it.
Good point; I'll post something to the numpy/scipy mailing list and see if
I can get some reactions.
Also note that any changes to representations
Eric Smith e...@trueblade.com added the comment:
Checked in to trunk (rr72040) and py3k (r72044).
Windows buildbots look okay, closing.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Comments on the earlier patch:
* No need for an inner row/col namedtuple. That would add little value.
* The name Token is already used in the module for a different purpose.
* The wrapper is nice looking, but it is better to
New submission from Antoine Pitrou pit...@free.fr:
Opening an existing file in read-only text mode and trying to write to it:
f = open(LICENSE)
f.write()
Traceback (most recent call last):
File stdin, line 1, in module
SystemError: null argument to internal routine
Binary files get it
Vaibhav Mallya mally...@umich.edu added the comment:
Well, the reason I put in the inner row/col namedtuple initially was
because the first mistake I made with the original module was mixing up
the row/col indices for a particular case. It certainly caused all sorts
of weird headaches. :o)
I
Trundle andy-pyt...@hammerhartes.de added the comment:
See also issue #1694663.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5322
___
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I strongly prefer that there not be inner named tuples. That is going
overboard. FWIW, row/col order is very common convention especially
when the row refers to a line number in a text block and column refers
to a character
Changes by Daniel Diniz aja...@gmail.com:
--
priority: normal - critical
stage: test needed - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5844
___
DSM dsm...@users.sourceforge.net added the comment:
See also http://bugs.python.org/issue5844 , which contains a patch to test.
--
nosy: +dsm001
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5860
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5860
___
Antoine Pitrou pit...@free.fr added the comment:
Committed in r72054, r72055. Thanks for the patch!
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1734234
Changes by Daniel Diniz aja...@gmail.com:
--
nosy: +jjlee
stage: - patch review
type: - feature request
versions: +Python 2.7 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1755841
Daniel Diniz aja...@gmail.com added the comment:
Patch in issue 1755841.
--
dependencies: +Patch for [ 735515 ] urllib2 should cache 301 redir
nosy: +ajaksu2
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
Daniel Diniz aja...@gmail.com added the comment:
Maybe something useful for 2.7?
--
components: +Unicode -None
nosy: +ajaksu2, ezio.melotti, haypo
stage: - test needed
type: - feature request
versions: +Python 2.7
___
Python tracker
Daniel Diniz aja...@gmail.com added the comment:
Bryan: can you provide a test case without external dependencies? If
not, confirming this is still valid in 2.6 would also help.
--
nosy: +ajaksu2
stage: - test needed
___
Python tracker
Daniel Diniz aja...@gmail.com added the comment:
Could this be useful for the make other Python implementors lives
easier plan?
--
nosy: +ajaksu2
stage: - test needed
type: - feature request
versions: +Python 2.7, Python 3.1 -Python 3.0
___
Python
Benjamin Peterson benja...@python.org added the comment:
I'm afraid it's too late for this.
--
nosy: +benjamin.peterson
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1522
Changes by Daniel Diniz aja...@gmail.com:
--
stage: - test needed
versions: +Python 3.1 -Python 2.4, Python 2.5, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1677
___
Changes by Daniel Diniz aja...@gmail.com:
--
nosy: +ezio.melotti, haypo
stage: - test needed
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
Changes by Daniel Diniz aja...@gmail.com:
--
versions: +Python 2.7, Python 3.1 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1524938
___
Changes by Daniel Diniz aja...@gmail.com:
--
stage: - patch review
versions: +Python 2.7, Python 3.1 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1763
___
Changes by Daniel Diniz aja...@gmail.com:
--
stage: - test needed
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1707753
___
Daniel Diniz aja...@gmail.com added the comment:
Cannot reproduce the hang in 2.6.2 (Windows XP) for nul (opening and
reading returns an empty string), prn or coml. Reading from con.xxx
hangs, but it looks like it's waiting for data and Ctrl+C interrupts it.
--
nosy: +ajaksu2
priority:
Changes by Daniel Diniz aja...@gmail.com:
--
components: +IO
stage: - patch review
versions: +Python 3.1 -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2091
___
Changes by Daniel Diniz aja...@gmail.com:
--
nosy: +benjamin.peterson, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2091
___
___
Changes by Daniel Diniz aja...@gmail.com:
--
nosy: +michael.foord
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2223
___
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1755841
___
___
Python-bugs-list
Bryan Silverthorn bc...@cornell.edu added the comment:
Well, there's no Python bug per se, hence no test case; this patch just
adds a single additional assert that might catch a particular extension
implementation mistake. It was prompted by tracking down the bug in
pygtk mentioned above.
I've
Changes by Bryan Silverthorn bc...@cornell.edu:
Removed file: http://bugs.python.org/file8998/bcs_typeobject_assert.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1662
___
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
Hello. I noticed test_urllib fails on windows.
==
ERROR: test_copy (__main__.urlretrieve_FileTests)
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Python 2.7a0 (trunk, Apr 28 2009, 10:23:56) [MSC v.1200 32 bit (Intel)]
on win32
Type help, copyright, credits or license for more information.
import urllib
urllib.pathname2url(c:/foo)
'///C|//foo'
When | above is quoted,
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
dependencies: +urllib doesn't correct server returned urls
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5861
___
New submission from R. David Murray rdmur...@bitdance.com:
The 'Using a remote manager' section of the multiprocessing docs has an
example of calling the (documented) 'from_address' class method of
BaseManager. However, no such method appears to exist. I don't know if
this is a doc bug or a
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5857
___
Changes by Benjamin Peterson benja...@python.org:
--
assignee: georg.brandl - jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5862
___
___
New submission from MizardX miza...@gmail.com:
bz2.BZ2File should, like gzip.GzipFile, accept a fileobj argument.
If implemented, you could much more easily pipe BZ2-data from other
sources, such as stdin or a socket.
--
components: IO, Library (Lib)
messages: 86716
nosy: MizardX
91 matches
Mail list logo