Changes by Charles-François Natali neolo...@free.fr:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13453
___
___
Python-bugs-list
The current docstring for dict.update shows:
help(dict.update)
Help on method_descriptor:
update(...)
D.update(E, **F) - None. Update D from dict/iterable E and F.
If E has a .keys() method, does: for k
Antoine Pitrou pit...@free.fr added the comment:
To make sure we are on the same page, here is what I changed it to:
https://github.com/jango/PC/blob/test/pc/pc.py
- lines 47-50 commented out (init of PC class that initialises threads);
- lines 64, 65, 77, 78 getLogger within the PC class
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f82ebf9b3a52 by Florent Xicluna in branch 'default':
Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's
DeprecationWarning (cgi, importlib, nntplib, smtpd).
http://hg.python.org/cpython/rev/f82ebf9b3a52
Antoine Pitrou pit...@free.fr added the comment:
Wow, the error description (Non-recoverable failure in name resolution) is as
useful as a Windows error message.
Ok for the patch.
--
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
This paper might be of interest:
http://www.siam.org/meetings/alenex05/papers/13gheileman.pdf
Basically, it concludes that most of the time, there's no speedup to be gained
from the increased cached locality incurred by linear probing
Charles-François Natali neolo...@free.fr added the comment:
Here's a patch to help nail this down.
--
Added file: http://bugs.python.org/file23896/debug_stuck.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11870
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5ba1a22c8988 by Charles-François Natali in branch '2.7':
Issue #13453: Catch EAI_FAIL in support.transient_internet.
http://hg.python.org/cpython/rev/5ba1a22c8988
New changeset c998c6f5464b by Charles-François
Charles-François Natali neolo...@free.fr added the comment:
Thanks, here's a patch updated accordingly.
--
Added file: http://bugs.python.org/file23897/event_wait_cleared-1.diff
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
Le 09/12/2011 22:12, Stefan Krah a écrit :
The bottleneck in _decimal is (res is ascii):
PyUnicode_FromString(res);
PyUnicode_DecodeASCII(res) has the same performance.
With this function ...
static PyObject*
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13559
___
___
Charles-François Natali neolo...@free.fr added the comment:
The test_poplib failures are likely due to this obvious race:
def setUp(self):
[...]
threading.Thread(target=self.server, args=(self.evt,self.sock)).start()
time.sleep(.1)
[...]
def server(self, evt, serv):
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13564
___
___
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13530
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset e37a7dc8944e by Victor Stinner in branch 'default':
Issue #11886: Fix also test_time for the non-DST timezone name (EST/AEST)
http://hg.python.org/cpython/rev/e37a7dc8944e
--
Nikita Pchelin nikita.pche...@gmail.com added the comment:
(note these aren't threads, but processes)
Fair enough, I should be more careful with terminology.
Ok, can you try to move the getLogger call from _Producer.__init__
to, _Producer.run?, (same for _Consumer)
Yes, that seems to work
New submission from STINNER Victor victor.stin...@haypocalc.com:
http://www.python.org/dev/buildbot/all/builders/ARM%20Ubuntu%203.x/builds/143/steps/test/logs/stdio
---
test test_curses crashed -- Traceback (most recent call last):
File
STINNER Victor victor.stin...@haypocalc.com added the comment:
The compilation of the module failed for the same reason:
building '_curses' extension
gcc -pthread -fPIC -Wno-unused-result -g -O0 -Wall -Wstrict-prototypes
-DHAVE_NCURSESW=1 -I/usr/include/ncursesw -IInclude -I. -I./Include
Charles-François Natali neolo...@free.fr added the comment:
And I assume that the test_telnetlib failure on the OpenIndiana
buildbot is due to a broken name resolution service, as in issue
#11812.
Here's a patch bumping the timeout to 60s, which should be enough to
resolve localhost...
STINNER Victor victor.stin...@haypocalc.com added the comment:
The problem comes maybe from the name of a curses key, keyname().
PyInit__curses() gets the name of all keys (KEY_MIN..KEY_MAX).
--
___
Python tracker rep...@bugs.python.org
Stefan Krah stefan-use...@bytereef.org added the comment:
I prefer to not expose such function or someone will use it without
understanding exactly how dangerous it is.
OK. - I'm afraid that I made an error in the benchmarks, since I
accidentally used a changed version of telco.py, namely:
R. David Murray rdmur...@bitdance.com added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13502
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13544
___
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the detailed bug report. I thought the normalization performed by
the codec lookup system would convert 'cp-1252' to 'cp1252' (its “real” name,
i.e. the name of the module implementing the codec), but it does not. I’m +1
to
Éric Araujo mer...@netwok.org added the comment:
Confirmed (3.2):
def func():
... t = collections.namedtuple('t', 'a')
... instance = t(1)
... print(instance)
... return pickle.dumps(instance)
func()
t(a=1)
Traceback (most recent call last):
File stdin, line 1, in module
Éric Araujo mer...@netwok.org added the comment:
A note in the docs (without note/warning directives, just a note) and maybe the
docstring would be good. It should better explain that str has two uses:
converting anything to a str (using __str__ or __repr__), decode buffer to str
(with
Changes by Éric Araujo mer...@netwok.org:
--
title: Docstring of str() and/or behavior - Improve doc for str(bytesobject)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13538
___
Éric Araujo mer...@netwok.org added the comment:
maniram: We try to keep bug reports focused on one thing, and we don’t
generally collect votes (we prefer that people vote with patches, tests and
messages with content—for example, saying exactly what “more robust” should
be). Here I think
Éric Araujo mer...@netwok.org added the comment:
Good catch. The code doesn’t break because there is a check for None later on
(certainly because getlocale may return None, but here __enter__ always returns
None). How did you find this? If you have a code snippet that reproduces the
bug
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +bethard, eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13540
___
___
Éric Araujo mer...@netwok.org added the comment:
On #13550 I asked Guido about the Thing/_Thing function/class indirection and
use of _Verbose; the reply:
IIRC:
The design started out this way because it predates new-style classes. When
this was put in one
couldn't subclass extension
Éric Araujo mer...@netwok.org added the comment:
So, is there a code or documentation bug in any version?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13551
___
Changes by Éric Araujo mer...@netwok.org:
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3786
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Would you like to make a doc patch?
--
assignee: - docs@python
components: +Documentation
keywords: +easy
nosy: +docs@python, eric.araujo
resolution: invalid -
stage: - needs patch
versions: +Python 2.7, Python 3.3
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13559
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, haypo, loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13561
___
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch, I will make a few wording/markup editions if you don’t
mind and post the edited version.
--
nosy: +eric.araujo
versions: +Python 3.3 -Python 2.6, Python 3.1
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
deciding whether using sendfile() should probably be done silently (no
explicit argument)
As an optimization taking advantage from OS support, I think this should be
automatic too. But if there are too many issues, then explicit argument
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, ezio.melotti
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13567
___
Éric Araujo mer...@netwok.org added the comment:
Note sure about icon vs. text (“Warning:”) vs. colors. I think an icon would
be as scary as the current big color boxes. I like Ezio’s change + Antoine’s
indenting suggestion.
--
nosy: +eric.araujo
Nam Nguyen bits...@gmail.com added the comment:
That would be great. Thank you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13562
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Having both is fine.
I just noticed that the 3.2 docs are different[0], so I tried to merge them:
3.2 says:
List comprehensions provide a concise way to create lists from sequences.
Common applications are to make lists where each
Changes by Ezio Melotti ezio.melo...@gmail.com:
Added file: http://bugs.python.org/file23901/issue13549-3-py32.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13549
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
I think an icon would be as scary as the current big color boxes.
Especially if I design it.
Georg, is the patch ok if I add a bit of indentation as suggested by Antoine?
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
One thing, however, that this would mean
that I would have to declare logger in any method outside of __init__,
like in shutdown() for example.
If you only use the logger from the child process, you can declare and store it
in the run()
Nikita Pchelin nikita.pche...@gmail.com added the comment:
Fair enough. Thanks for help with investigating this issue!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13569
___
Antoine Pitrou pit...@free.fr added the comment:
Note sure about icon vs. text (“Warning:”) vs. colors. I think an
icon would be as scary as the current big color boxes. I like Ezio’s
change + Antoine’s indenting suggestion.
An icon will only be scary if you chopse a scary one. A warning
Georg Brandl ge...@python.org added the comment:
I don't really like the combination of the left bar and the background color.
What about making the left bar thicker, and leaving out the background color?
--
___
Python tracker
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
The csv.writer needs a special case for floats to print them to full precision.
See http://stackoverflow.com/a/8455313/1001643
In Py2.7, the csv.writer converts floats to strings using str(). This will
store
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 899a8c7b2310 by Lars Gustäbel in branch 'default':
Issue #5689: Add support for lzma compression to the tarfile module.
http://hg.python.org/cpython/rev/899a8c7b2310
--
nosy: +python-dev
Lars Gustäbel l...@gustaebel.de added the comment:
Thanks for the review, guys! I can't close this issue yet because it depends on
#6715.
--
resolution: - fixed
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
New submission from Florent Xicluna florent.xicl...@gmail.com:
The example uses PyInstanceObject which is Python 2 only (old-style classes).
http://docs.python.org/dev/extending/newtypes.html#weak-reference-support
--
assignee: docs@python
components: Documentation, Extension Modules
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Great stuff! I'll close this issue along with issue 6715 once the buildbot
stuff is all sorted out.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5689
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6cd736239b8a by Giampaolo Rodola' in branch 'default':
fix #13563: make use of with statement in ftplib.py where needed
http://hg.python.org/cpython/rev/6cd736239b8a
--
nosy: +python-dev
Giampaolo Rodola' g.rod...@gmail.com added the comment:
That's why I nosyed you. Thanks. ;)
--
assignee: - giampaolo.rodola
components: +Library (Lib)
keywords: +easy -patch
resolution: - fixed
status: open - closed
___
Python tracker
Florent Xicluna florent.xicl...@gmail.com added the comment:
Of course it's better to have someone else to review the patch.
However in this case, I'm not sure it is a major feature.
BTW, I noticed that effbot is currently marked as *inactive* maintainer
New submission from Florent Xicluna florent.xicl...@gmail.com:
there are still some leftovers of Python 2 old-style classes.
See attached patch.
--
components: Interpreter Core, Library (Lib)
files: oldstyle_leftovers.diff
keywords: patch
messages: 149188
nosy: flox
priority: low
Florent Xicluna florent.xicl...@gmail.com added the comment:
Off course the leftovers are mainly in comments and documentation.
See also issue #13574.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13575
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
priority: low - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13575
___
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Updated patch adding a synchronized argument to scheduler class and updating
doc is in attachment.
--
Added file: http://bugs.python.org/file23903/sched-thread-safe.patch
___
Python tracker
Torsten Landschoff t.landsch...@gmx.net added the comment:
Attached patch makes Python throw an exception in the case above.
It also adds a test case for that case.
--
keywords: +patch
nosy: +torsten
Added file: http://bugs.python.org/file23904/issue_8931.diff
Florent Xicluna florent.xicl...@gmail.com added the comment:
I know it won't be committed as-is, but this is the patch with most of the
deprecated things removed.
I skipped all the modules where a veto has been pronounced explicitly.
--
keywords: +patch
Added file:
Filip Gruszczyński grusz...@gmail.com added the comment:
Patch with tests.
--
keywords: +patch
nosy: +gruszczy
Added file: http://bugs.python.org/file23906/13544.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13544
Filip Gruszczyński grusz...@gmail.com added the comment:
c.execute(insert into testdate values ('now'))
This works, but you actually are putting string now into a field with DATE
type. When conversion occurs after retrieving data, there is an error. Also if
you use datetime() function
Jesús Cea Avión j...@jcea.es added the comment:
Eric, overload __hash__() and check that is only called once, while now would
be called twice.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13521
Jesús Cea Avión j...@jcea.es added the comment:
Changes look good.
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13575
___
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13574
___
___
Python-bugs-list mailing list
Meador Inge mead...@gmail.com added the comment:
I don't really know that much about pickle, but Antoine mentioned that
'bytearray'
works fine going from 3.2 to 2.7. Given that, can't we just compose 'bytes'
with
'bytearray'? Something like:
Python 3.3.0a0 (default:aab45b904141+, Dec 10
Torsten Landschoff t.landsch...@gmx.net added the comment:
I offer the attached patch as a starting point to fulfill this feature request.
The patch changes the output to insert the disassembly of local code objects on
the referencing line.
As that made the output unreadable to me, I added
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Thank you :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11822
___
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
You shouldn't need to pickle loggers, because loggers just represent where in
your application something happens (that being determined by the logger name).
The logger name is just a string, and if you need to communicate that across
e.g.
Barry A. Warsaw ba...@python.org added the comment:
Fails in exactly the same way when built from my shell account using current hg
head. Does not fail on same version of OS on amd64.
--
___
Python tracker rep...@bugs.python.org
Nikita Pchelin nikita.pche...@gmail.com added the comment:
Here is a link for example in question:
https://github.com/jango/calculon/blob/master/calculon/calculon.py
Previously, I would pass logger instance from Calculon class to
_Producer and _Consumer classes. In the current revision, I
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11564
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9269
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4727
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4331
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1398
___
___
Python-bugs-list mailing list
Jesús Cea Avión j...@jcea.es added the comment:
I am evaluating the use of __qualname__ in my dtrace probes (issue #13405)
and I see things like this:
def a() :
... class b() :
... pass
... return b()
...
c=a()
c
__main__.a.locals.b object at 0xfe37f3ac
c.__qualname__
Traceback
New submission from Ezio Melotti ezio.melo...@gmail.com:
The attached patch adds a few tests about the handling of broken conditional
comments (condcoms).
A valid condcom looks like !--[if ie 6]...![endif]--.
An invalid one looks like ![if ie 6]...![endif].
This seems a common mistake, and it's
Nick Coghlan ncogh...@gmail.com added the comment:
No, it's only class objects that have __name__ and __qualname__, not class
instances.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
Gianluigi Tiesi sher...@gmail.com added the comment:
I've made a simplified testcase, my problem is importing from a sql dump with
dates in the format '10-OCT-11', so if I understand 'DATE' in sqlite is fake
and really a string? I have no way to control this behavior if my dump is text?
Gianluigi Tiesi sher...@gmail.com added the comment:
So I suppose I have to blame sqlite3 and not fill a bug here
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13568
Meador Inge mead...@gmail.com added the comment:
Filip, with the exception of some minor whitespace problems (remember to run
'make patchcheck') and a missed testcase in 'TestWraps.test_default_update',
this looks good to me. I was just about to attach a similar patch. Here is
an updated
New submission from Meador Inge mead...@gmail.com:
I was recently experimenting with the new PEP 3155 '__qualname__ implementation
and noticed that '__qualname__' is not present on builtin methods and functions:
[meadori@motherbrain cpython]$ ./python
Python 3.3.0a0 (default:aab45b904141+,
New submission from Nick Coghlan ncogh...@gmail.com:
subprocess.check_output() is nice, but doesn't help if you want to process the
piped data line-by-line.
Currently, that means you have to do the full Popen dance if you want access to
each line of output as it becomes available.
This RFE
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13578
___
___
Jesús Cea Avión j...@jcea.es added the comment:
Alan, I would open a new issue tracking this one and posting a patch there, if
I were you.
Previous DTRACE attempts failed because trying to make everybody happy. I don't
want to repeat the mistake.
I am open to modify this code to satisfy
Roger Serwy roger.se...@gmail.com added the comment:
Attached is a patch to correct the existing bug as-is.
Should the behavior of IDLE be changed as Tal suggests?
--
keywords: +patch
nosy: +serwy
Added file: http://bugs.python.org/file23911/issue6698.patch
Jesús Cea Avión j...@jcea.es added the comment:
Pending work yet: (documented to avoid forgeting it)
- Performance hit because trying to determine the source line in each function
call. To be solved with ¿tolerable? memory overhead. Would be acceptable to
sacrifice x2/x4 time the pyc filesize
New submission from Nick Coghlan ncogh...@gmail.com:
As the subject line says:
fmt = {0!a}
fmt.format(10)
'10'
import string
string.Formatter().format(fmt, 10)
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python3.2/string.py, line 180, in format
Nick Coghlan ncogh...@gmail.com added the comment:
You can see a version of this here:
https://bitbucket.org/ncoghlan/shell_command/src/2b1988b072aa/shell_command.py#cl-157
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@gmail.com added the comment:
The PyPI package to prototype the API details is now available:
http://pypi.python.org/pypi/shell_command
http://shell-command.readthedocs.org
https://bitbucket.org/ncoghlan/shell_command/
--
___
94 matches
Mail list logo