Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21213
___
Changes by Tobias Oberstein tobias.oberst...@tavendo.de:
--
nosy: +oberstet
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
___
Antoine Pitrou added the comment:
I'm saying attempt, because although it works correctly, some benchmarks are
actually slower.
I didn't profile it, so I don't know if it's due to the hashtable
implementation, function call overheads, etc.
It probably shows that Python dicts (which the
STINNER Victor added the comment:
_Py_hashtable_hash_ptr is quite crude in that it doesn't even try to
compensate for pointer alignment, so there will automatically be many
collisions. Only one hash bucket every 8 or 16 will be used, at best.
I chose to use _Py_HashPointer() to drop (shift)
Antoine Pitrou added the comment:
_Py_hashtable_hash_ptr is quite crude in that it doesn't even try to
compensate for pointer alignment, so there will automatically be many
collisions. Only one hash bucket every 8 or 16 will be used, at best.
I chose to use _Py_HashPointer() to drop
STINNER Victor added the comment:
And the straightforward collision resolution in hashtable.c is much less
efficient at mitigating collisions than a Python dict's.
Modules/hashtable.c comes from http://sourceforge.net/projects/libcfu/ (cfuhash
type). I adapted the code for my needs (the
Antoine Pitrou added the comment:
I didn't want to use the Python dict type for tracemalloc because this
type may use the Python memory allocator which would lead to reentrant
calls to tracemalloc.
Ah, so this means CF's patch will make the pickle memotable invisible to
tracemalloc?
It
STINNER Victor added the comment:
Ah, so this means CF's patch will make the pickle memotable invisible to
tracemalloc?
Currently, _Py_hashtabe uses PyMem_RawMalloc and PyMem_RawFree by default
(realloc is not needed, we need to keep the previous buckets on rehash). Using
Jan-Philip Gehrcke added the comment:
We should match the unit test with the documentation for signal.NSIG. Either
the code or the docs or both need to change.
Currently the docs say that signal.NSIG is One more than the number of the
highest signal number.
Roundup Robot added the comment:
New changeset cd62cc331572 by Antoine Pitrou in branch '3.4':
Issue #21523: Fix over-pessimistic computation of the stack effect of some
opcodes in the compiler.
http://hg.python.org/cpython/rev/cd62cc331572
New changeset e61462e18112 by Antoine Pitrou in
Antoine Pitrou added the comment:
This should be fixed now!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21523
New submission from theme:
From the documentation at
https://docs.python.org/3.4/library/exceptions.html#OverflowError all integer
operations should not throw OverflowError no matter what. However, there are
so many issues here that describe library functions and built-in functions
doing
Changes by theme theemat...@gmail.com:
--
components: +Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21559
___
___
Python-bugs-list
Steffen Daode Nurpmeso added the comment:
Salut!, amis français! (Und auch sonst so, natürlich.)
POSIX has recently standardized a NSIG_MAX constant in limits.h [1]:
The value of {NSIG_MAX} shall be no greater than the number of signals that
the sigset_t type (see [cross-ref to signal.h])
Roundup Robot added the comment:
New changeset 9ab1225b6cc5 by Serhiy Storchaka in branch '2.7':
Issue #20635: Added tests for Tk geometry managers.
http://hg.python.org/cpython/rev/9ab1225b6cc5
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset a7082e2898aa by Serhiy Storchaka in branch '2.7':
Issue #21522: Added Tkinter tests for Listbox.itemconfigure(),
http://hg.python.org/cpython/rev/a7082e2898aa
New changeset f7c012ff33cb by Serhiy Storchaka in branch '3.4':
Issue #21522: Added
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21558
___
___
Python-bugs-list mailing list
New submission from Wolfgang Maier:
I ran into this:
gzout = gzip.open('test.gz','wb')
gzout.write('abcdefgh') # write expects bytes not str
Traceback (most recent call last):
File pyshell#2, line 1, in module
gzout.write('abcdefgh')
File /usr/lib/python3.4/gzip.py, line 343, in write
Stefan Krah added the comment:
This might be out of date: _decimal has never implemented alternate
formatting and so far there have been no reported issues.
Another data point: Go apparently implements alternate formatting
only for octal, hex and strings:
http://golang.org/pkg/fmt/
So I'm
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20635
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21522
___
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
stage: - needs patch
versions: +Python 2.7, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21560
___
Wolfgang Maier added the comment:
ok, this seems to be really easy:
patch attached
--
keywords: +patch
Added file: http://bugs.python.org/file35323/GzipFile_write.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21560
Wolfgang Maier added the comment:
or not - my patch just causes a different error in my example :(
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21560
___
Claudiu.Popa added the comment:
Moving `self.crc = zlib.crc32(data, self.crc) 0x` before `self.size =
self.size + len(data)` should be enough. Also, your patch needs a test.
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
Wolfgang Maier added the comment:
isn't this exactly what I did in my patch ?
actually, it is working, I just had an error in my preliminary test script.
I may be able to work on an official test at some point, but definitely not
over the next week
--
Changes by Geoffrey Spear geoffsp...@gmail.com:
--
nosy: +geoffreyspear
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21555
___
___
David Harrigan added the comment:
Thanks for the info, I've signed the agreement.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21545
___
___
Roundup Robot added the comment:
New changeset f0452bc62cc3 by Serhiy Storchaka in branch '3.4':
Issue #21538: The plistlib module now supports loading of binary plist files
http://hg.python.org/cpython/rev/f0452bc62cc3
New changeset b2c5d0cba5fd by Serhiy Storchaka in branch 'default':
Issue
Geoffrey Spear added the comment:
Attached patch replaces call to Python time.time() with _PyTime_gettimeofday()
call.
--
keywords: +patch
Added file: http://bugs.python.org/file35324/issue21555.patch
___
Python tracker rep...@bugs.python.org
ingrid added the comment:
I tried the same script in Python 2.7 and Python 3.4.1 on OSX and had the same
results.
--
nosy: +ingrid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16428
___
Serhiy Storchaka added the comment:
Thank you John for your report.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21538
___
___
Geoffrey Spear added the comment:
revised patch; thanks to berkerpeksag's code review.
--
Added file: http://bugs.python.org/file35325/issue21555-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21555
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21538
Changes by Sergey Vilgelm ser...@vilgelm.info:
--
nosy: +svilgelm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9253
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
When someone reads file in locale encoding (either as str or unicode in 2.7),
he gets printable result. When someone lists directory, he gets printable
result (str or unicode). When someone enter string literal (either str or
unicode) in interactive mode,
Serhiy Storchaka added the comment:
May be move implementations to parent class? In any case the patch LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21513
___
Xavier de Gaye added the comment:
Commands that silently fail when an object is not printable: p, pp
Commands that crash when an object is not printable:
args, retval
Python 3: display
Python 2: on a 'return' trace event when the return value is not printable
The attached script
Brett Cannon added the comment:
Set to pending while I wait to hear back from Francisco on the review
comments.
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14019
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
stage: test needed - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21474
___
Changes by Brett Cannon br...@python.org:
--
title: pkgutil.get_loader is broken - pkgutil.get_loader and find_loader fail
when module is missing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14710
Changes by Brett Cannon br...@python.org:
--
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14710
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 660c82192c69 by Brett Cannon in branch '3.4':
Issue #14710: Fix both pkgutil.find_loader() and get_loader() to not
http://hg.python.org/cpython/rev/660c82192c69
New changeset 1adc8eb362f0 by Brett Cannon in branch 'default':
Merge for issue #14710
Brett Cannon added the comment:
Thanks for the bug report, Pavel. It turned out pkgutil.find_loader is broken
as well as pkgutil.get_loader in different ways.
--
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Andy Maier:
Using the enum34 backport of enums, the help() function on an enum class Colors
displays only:
---
Help on class Colors in module __main__:
Colors = enum 'Colors'
---
Source code to reproduce:
---
from enum import Enum # enum34 package
class
Terry J. Reedy added the comment:
Deleting the function and calls to it would be easy. But my memory, which could
be off, is that I left fixwordbreaks(root) in the test function now called
_editor_window (at the end of the file) because the test did not work right
without it. I willhave to
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +jesstess
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21477
___
___
Python-bugs-list
Eric Snow added the comment:
@Brett: Did those last two messages (and the patch) get on the wrong issue.
The issue of module_from_spec() or the like seems somewhat orthogonal to a spec
argument to ModuleType. Perhaps you meant issue #21436 or #21235?
Otherwise, I have a few comments. :)
Ethan Furman added the comment:
Good work.
This bug was fixed in 3.4 with the inclusion of enum.
It would definitely be good to fix in 2.7 as well.
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21561
Lita Cho added the comment:
I tested the patch and it looks correct upon inspection. It looks like it
applies cleanly and a straight forward solution.
I made a slight change so that when the Demo exits, it has a better message. I
also added the change to the NEWS.txt file.
I also ran the
Charles-François Natali added the comment:
Jan-Philip Gehrcke added the comment:
Currently the docs say that signal.NSIG is One more than the number of the
highest signal number.
(https://docs.python.org/3.4/library/signal.html#signal.NSIG).
In case of FreeBSD's _SIG_MAXSIG (128) the
Changes by Lita Cho lita@gmail.com:
--
nosy: +Lita.Cho, jesstess
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3015
___
___
Python-bugs-list
Charles Merriam added the comment:
Some more information to just nail this thing that's been here forever.
1. This has been an issue in Python since at least 2001.
2. It is a duplicate of the item 441129 which was closed as won't fix.
3. It is bug in curses implementations.
4. This occurs
New submission from Charles Merriam:
https://docs.python.org/3/library/curses.html#curses.cursxy
The symbol 'getsxy' does not exist in the curses library. The correct symbol
is 'getxy'.
--
assignee: docs@python
components: Documentation
messages: 218986
nosy: Charles.Merriam,
Terry J. Reedy added the comment:
I wonder if we should consider extracting the body of
if isinstance(source, types.UnicodeType):
as a function, call it ufix_latin1; add one or more alterntives, ufix_utf8,
ufix_locale, ufix_irdb(?); keep ufix_latin1 as default; but switch to an
New submission from Robert Snoeberger:
While embedding the Python 2.7 interpreter in an application, I have
encountered a crash when the built-in function 'execfile' is invoked with one
argument.
A file is attached, execfile_invoke.c, that reproduces the crash. The
reproduction steps on my
Ned Deily added the comment:
Failing tests with Tk 8.4 (Carbon Tk 8.4.20 on OS X):
==
ERROR: test_paneconfigure_hide
(tkinter.test.test_tkinter.test_widgets.PanedWindowTest)
Changes by Ned Deily n...@acm.org:
--
nosy: +gregorlingl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16428
___
___
Python-bugs-list mailing list
Ned Deily added the comment:
If the problem reported here applies only to the 2.7 backport of enum, which is
not part of the Python standard library, shouldn't this issue be closed?
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
Ned Deily added the comment:
FTR, the previous issue is Issue441429. A documentation patch would be
welcomed.
--
assignee: - docs@python
components: +Documentation
keywords: +easy
nosy: +docs@python, ned.deily
stage: - needs patch
versions: +Python 3.5 -Python 3.2, Python 3.3
Changes by Ned Deily n...@acm.org:
--
keywords: +easy
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21562
___
___
Serhiy Storchaka added the comment:
word.tcl in Tcl library contains following lines:
if {$::tcl_platform(platform) eq windows} {
# Windows style - any but a unicode space char
set ::tcl_wordchars {\S}
set ::tcl_nonwordchars {\s}
} else {
# Motif style - any unicode word char
Ethan Furman added the comment:
The problem will affect anything that uses the same mechanism as enum. It also
affects (not verified) all versions of python up to 3.4 where it was fixed
because enum exposed it.
Besides which, I did not think a bug had to affect stdlib code in order to be
Ned Deily added the comment:
Sorry, I skimmed over the issue and didn't notice that the fix applied to
pydoc.py, not enum.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21561
___
Changes by Lita Cho lita@gmail.com:
--
nosy: +Lita.Cho, jesstess
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: docs@python - terry.reedy
nosy: +terry.reedy
stage: - commit review
versions: +Python 2.7, Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21533
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21235
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - `int()`, `float()`, etc think python strings are null-terminated
type: - behavior
___
Python tracker
New submission from Ryan Calhoun:
OpenSSL, specifically libcrypto, includes functions EVP_MD_CTX_create() and
EVP_MD_CTX_destroy(), such that the application code only needs to forward
declare the EVP_MD_CTX* pointer type.
Declaring the EVP_MD_CTX variable type directly requires compile-time
Charles Merriam added the comment:
My typo. Documentation verbiage was included in the bug report.
Submitting a patch to the documentation is a harder than just
rewriting the library. I speak English, MarkDown, HTML, JavaScript,
and even RST. I don't speak Sphinx, DocBook, or TeX.
On Fri,
Roundup Robot added the comment:
New changeset c7ee46ed2d70 by Serhiy Storchaka in branch '2.7':
Fixed new Tkinter tests added in issue #21522 with Tk 8.4.
http://hg.python.org/cpython/rev/c7ee46ed2d70
New changeset 854404294f34 by Serhiy Storchaka in branch '3.4':
Fixed new Tkinter tests added
Terry J. Reedy added the comment:
Replacing 2061 with the following should work for all versions.
desc = module.__doc__.splitlines()[0] if module.__doc__ else ''
--
nosy: +terry.reedy
type: - behavior
versions: +Python 2.7, Python 3.5
___
Python
Changes by Lita Cho lita@gmail.com:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21558
___
___
Python-bugs-list
Antoine Pitrou added the comment:
May be move implementations to parent class?
Docstrings are different, though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21513
___
Serhiy Storchaka added the comment:
Thank you Ned. My fault.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21522
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 7a28ab8f012f by Antoine Pitrou in branch 'default':
Issue #21513: Speedup some properties of IP addresses (IPv4Address,
IPv6Address) such as .is_private or .is_multicast.
http://hg.python.org/cpython/rev/7a28ab8f012f
--
nosy: +python-dev
Antoine Pitrou added the comment:
Committed, thanks.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21513
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +christian.heimes, gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21564
___
___
New submission from Charles-François Natali:
This patch updates multiprocessing to use context-manager for locks,
conditions, etc.
--
components: Library (Lib)
files: multiprocessing_context_manager.diff
keywords: needs review, patch
messages: 219003
nosy: neologix, sbt
priority:
Terry J. Reedy added the comment:
In 2.7, it was only *long integers* that could not overflow. In both python 2
and 3, the comment only applys to operations on integers and not to integers
converted to floats. Perhaps that could be clarified. If have any example from
running Python where
New submission from Charles-François Natali:
Follow-up to issue #21455: we can now update the stdlib to rely on the default
socket listen backlog, instead of having a bazillion different values (which
range from 1 to 100!).
--
components: Library (Lib)
files:
Antoine Pitrou added the comment:
This looks fine to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21566
___
___
Python-bugs-list mailing
STINNER Victor added the comment:
Maybe we should keep listen(1) in some cases.
For socketpair() of asyncio.windows_utils, it makes sense to use sock.listen(1)
since we expect exactly one request from one client. The listening socket is
closed just after sock.accept().
--
Charles-François Natali added the comment:
Maybe we should keep listen(1) in some cases.
For socketpair() of asyncio.windows_utils, it makes sense to use
sock.listen(1) since we expect exactly one request from one client. The
listening socket is closed just after sock.accept().
Yeah, I
New submission from Viktor Szépe:
Python 2.7.6 (default, May 22 2014, 00:19:36)
[GCC 4.7.2] on linux2
Type help, copyright, credits or license for more information.
from email.mime.multipart import MIMEMultipart
new_msg = MIMEMultipart('alternative')
new_msg.set_charset('us-ascii')
Traceback
Viktor Szépe added the comment:
Sorry!
How come that
new_msg.set_charset('utf-8')
works?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21567
___
Francisco Freire added the comment:
Hi, I signed the contributor agreement. Thank you for your review comments. I
did these tests about one year ago and right now I don't have much time to look
at it again. I hope to do so in the next months.
--
status: pending - open
Lita Cho added the comment:
I am in the process of reviewing this patch, but I don't know what
wantobjects does. I can make a guess, I think it is a hack to make tcl
objects work in Python. I am guessing this is less needed in Python 3.4, but
still has some dependencies.
If we can add in
Lita Cho added the comment:
I was looking at this more, and from my understanding, the turtle code is
continuing to run even when the TK window is destroyed. Thus the crash.
It looks like the drawing functions are being made on the fly with the
following method:
for methodname in
Raymond Hettinger added the comment:
Berker, feel free to assign all these micro-doc fixes to me. Also, if you
want to combine a number of clear-cut, non-controversial fixes into just one
patch and tracker item, that might save us both some time.
--
assignee: docs@python -
Raymond Hettinger added the comment:
Attaching patch
--
Added file: http://bugs.python.org/file35333/fix_triangular.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13355
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17172
___
___
Raymond Hettinger added the comment:
So I'm unsure if anyone is actually using alternate formatting.
That makes sense. Any further effort should wait until there is known demand.
Otherwise, we risk growing the API with codes that aren't used.
--
resolution: - later
versions:
Berker Peksag added the comment:
+@property
+def is_global(self):
+return (not self in IPv4Network('100.64.0.0/10') and
Can IPv4Network('100.64.0.0/10') moved to the _IPv4Constants class (e.g.
_IPv4Constants._global_network = IPv4Network('100.64.0.0/10')) after
New submission from 勇刚 罗:
I want to directly copy python as a portable version.
But the pip always point to the place where it installed,
So I am asking pip use relative to found site-packages under win32.
--
messages: 219018
nosy: 勇刚.罗
priority: normal
severity: normal
status: open
Serhiy Storchaka added the comment:
So now triangular(10, 10, 20) will always return 10?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13355
___
Roundup Robot added the comment:
New changeset fef11a65a5e5 by Ned Deily in branch '2.7':
Issue #18604: Skip the Tk instantiation test on OS X because it can
http://hg.python.org/cpython/rev/fef11a65a5e5
--
___
Python tracker rep...@bugs.python.org
Saimadhav Heblikar added the comment:
Posting a cumulative patch of all htest written so far.
They include IOBinding, Tooltips, MultiStatusbar, tabbedpages, objectbrowser,
scrolledlist, dynOptionWidget, treewidget, widgetredirector,
colordelegator, calltip and multicall, besides aboutDialog,
1 - 100 of 108 matches
Mail list logo