New submission from jf:
when i use tkinter.font, i meet a error 'module' object has no attribute
'font'. if i add import tkinter.font, it's no error.
but when i use tkinter,messagebox, it's no error without import
tkinter.messagebox.
and, under the tkinter folder, messagebox.py and font.py
jf added the comment:
when i use tkinter.font, i meet a error 'module' object has no attribute
'font'. if i add import tkinter.font, it's no error.
but when i use tkinter,messagebox, it's no error without import
tkinter.messagebox.
and, under the tkinter folder, messagebox.py and font.py
Antoine Pitrou added the comment:
My vote is for won't fix. Systems without stat() or fstat() are clearly broken
from Python's point of view; at the very least, they aren't POSIX-compliant.
--
nosy: +pitrou
resolution: - wont fix
___
Python tracker
STINNER Victor added the comment:
Non-ASCII filenames were already supported with UTF-8 locale encoding.
Test the example in msg173373. It fails without fix.
Oh, I didn't understand that, sorry. I created #16444 to test also UTF-8 locale
encoding with undecodable filenames (undecodable
STINNER Victor added the comment:
The matter is not only in the fact that tests passed.
Right, but I don't want to introduce a regression :-)
They should fail if the original bug occurs again. Have you tried to restore
the bugs?
test_cmd_line_script.test_non_ascii() comes from the issue
Roundup Robot added the comment:
New changeset 6b8a8bc6ba9c by Victor Stinner in branch 'default':
Issue #16444, #16218: Use TESTFN_UNDECODABLE on UNIX
http://hg.python.org/cpython/rev/6b8a8bc6ba9c
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 6b8a8bc6ba9c by Victor Stinner in branch 'default':
Issue #16444, #16218: Use TESTFN_UNDECODABLE on UNIX
http://hg.python.org/cpython/rev/6b8a8bc6ba9c
--
nosy: +python-dev
___
Python tracker
STINNER Victor added the comment:
If there's not another revision of the test patch in the wings, can
56df0d4f0011 also be applied to 3.3, as tests are still failing on at least
koobs-freebsd and koobs-freebsd-clang buildbots.
I just applied the patch of the issue #16444. I will check 3.4
Serhiy Storchaka added the comment:
TESTFN_UNDECODABLE is not detected for cp1250, cp1251, cp1252, cp1254, cp1257
and cp1258. Just add b'\x81\x98\xae\xd5\xff', at leas one of this bytes
undecodable in some encoding which has any undecodable bytes.
--
R. David Murray added the comment:
This is a question more suited to be asked on python-list or python-tutor,
rather than a bug report.
I'll give you a clue while I'm closing the issue: in the font snippt you
reference the font attribute when your module is imported. In the messagebox
New submission from Phil Connell:
logging.handlers.RotatingFileHandler.doRollover fails on QNX /dev/shmem
filesystems (seen on a 6.4.0-based system).
QNX RAM filesystems don't support rename() (see
http://www.qnx.com/developers/docs/6.4.0/neutrino/sys_arch/fsys.html#DEVSHMEM -
it's a 'big
Changes by Phil Connell pconn...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16449
___
___
Python-bugs-list
New submission from Hans Mulder:
Due to a misconfiguration, urllib.thishost() raises an IOError
on my laptop. This causes urllib.urlopen to raise an exception.
A flaw in test_missing_localfile causes this exception to not be
reported. The problem happens at line 230-235:
try:
Roundup Robot added the comment:
New changeset 9214f8440c44 by Mark Dickinson in branch 'default':
Issue #14794: slice.indices no longer returns OverflowError for out-of-range
start, stop, step or length.
http://hg.python.org/cpython/rev/9214f8440c44
--
nosy: +python-dev
Mark Dickinson added the comment:
Committed the patch. I'll open a new issue for the refactoring. Many thanks
to Serhiy Storchaka for the thorough reviews.
Now if only we could fix len, too... :-)
Python 3.4.0a0 (default:f02555353544, Nov 4 2012, 11:50:12)
[GCC 4.2.1 (Apple Inc. build
New submission from Mark Dickinson:
(From #14794 ...)
compute_slice_indices in Objects/rangeobject.c and slice_indices in
Objects/sliceobject.c implement essentially the same algorithm. It would be
nice to refactor to avoid the repetition.
--
messages: 175281
nosy: mark.dickinson
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +serhiy.storchaka
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16451
___
Antoine Pitrou added the comment:
I'm not sure why you would setup logging on a RAM filesystem (I assume we're
talking about normal volatile RAM)?
But besides, the big point of using rename() is that it's fast, atomic and
won't disrupt existing file handlers pointing to that file. If
Serhiy Storchaka added the comment:
Here is a patch for right quoting of arguments before concatenation. Thanks
Bryan Oakley for the analysis.
--
keywords: +patch
Added file: http://bugs.python.org/file27942/tkinter_quoting.patch
___
Python tracker
R. David Murray added the comment:
I agree with Antoine. It seems to me that it is very important to the
semantics of rollover that the rename be atomic, even if we ignore the issue of
existing other readers. If it were not atomic, you might end up with lost log
messages. So I don't think
Michele Orrù added the comment:
done!
--
Added file: http://bugs.python.org/file27943/issue6584_6.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6584
___
Serhiy Storchaka added the comment:
Not all invalid gzip files raise BadGzipFile. Some of them raises ZlibError.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6584
Serhiy Storchaka added the comment:
Ezio, feel free to finalize this. For me all variants look good.
--
keywords: -patch
stage: patch review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16240
Jason R. Coombs added the comment:
Yes. Since Nick's comment , I've been using importlib for all programmatic
imports with great success.
--
resolution: - invalid
status: pending - closed
___
Python tracker rep...@bugs.python.org
Michele Orrù added the comment:
Well, I specified the word ``files`` everywhere for that reason. Looking at
Doc/library/zlib.rst I see:
For reading and writing .gz files see the gzip module.
Also, I specified 'the gzip module' on the whatsnew section.
Is there anything more specific I could
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +PyUnicode_FromFormat: implement width and precision for %s, %S,
%R, %V, %U, %A
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13349
Antoine Pitrou added the comment:
If there's not another revision of the test patch in the wings, can
56df0d4f0011 also be applied to 3.3, as tests are still failing on at
least koobs-freebsd and koobs-freebsd-clang buildbots.
Let me insist on what koobs just said. The Windows buildbots are
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
Added file: http://bugs.python.org/file27944/issue-13538-5-default.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13538
___
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
Removed file: http://bugs.python.org/file27939/issue-13538-4-default.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13538
___
Changes by Senthil Kumaran sent...@uthcode.com:
--
assignee: - orsenthil
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16450
___
Antoine Pitrou added the comment:
I suppose you noticed you broke a bunch of buildbots :)
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16444
___
Chris Jerdonek added the comment:
Attaching a proposed patch.
--
keywords: +patch
nosy: +ezio.melotti
Added file: http://bugs.python.org/file27945/issue-16400-1-default.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16400
Chris Jerdonek added the comment:
Proposed documentation patch attached.
--
assignee: - docs@python
components: +Documentation
keywords: +easy, patch
nosy: +docs@python, ezio.melotti
stage: - patch review
type: behavior - enhancement
versions: +Python 3.2, Python 3.3, Python 3.4
Added
Xavier de Gaye added the comment:
I cannot reproduce the problem on python 2.7. The example runs
without problem after fixing the example with the
following changes:
remove the call to pdb.set_trace(), the debugger is already
started with a call to pdb.run()
add the missing 'cls'
Jesús Cea Avión added the comment:
OpenIndiana 3.3 and 3.x buildbot broken too for a week.
I suggest to revert this patch and use the custom buildbots to debug it
before committing again. A week, and counting, it is about time.
Feel free to hammer my OpenIndiana custom buildbots.
--
Roundup Robot added the comment:
New changeset 398f8770bf0d by Victor Stinner in branch 'default':
Issue #16444: disable undecodable characters in test_non_ascii() test until
http://hg.python.org/cpython/rev/398f8770bf0d
--
___
Python tracker
Roundup Robot added the comment:
New changeset 19e6e32db5ec by Gregory P. Smith in branch '3.3':
Fixes issue #16409: The reporthook callback made by the legacy
http://hg.python.org/cpython/rev/19e6e32db5ec
New changeset 8c48eb0239ca by Gregory P. Smith in branch 'default':
Fixes issue #16409:
Changes by Gregory P. Smith g...@krypto.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16409
___
Gregory P. Smith added the comment:
yes please!
Any reason you're using an unsigned int in your loop instead of a Py_uhash_t?
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16427
Gregory P. Smith added the comment:
People have been posting micro-benchmarks (often run wrong) rather than actual
useful benchmarks. Running our real world benchmarks would be more interesting.
--
nosy: +gregory.p.smith
___
Python tracker
Changes by Gregory P. Smith g...@krypto.org:
--
assignee: gregory.p.smith -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue812369
___
___
Serhiy Storchaka added the comment:
Any reason you're using an unsigned int in your loop instead of a Py_uhash_t?
In fact, there is no serious reason. This should be the type aligned as minimal
alignment of void*, size_t and Py_hash_t. Since de facto Py_uhash_t is size_t,
then we can use
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file27920/fast_hash.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16427
___
Roundup Robot added the comment:
New changeset e19a6194aee4 by Gregory P. Smith in branch '3.3':
Fix test_urllib broken by my previous commits. The assumptions it was
http://hg.python.org/cpython/rev/e19a6194aee4
New changeset dcf9a07830a6 by Gregory P. Smith in branch 'default':
Fix
Antoine Pitrou added the comment:
The patch is too optimistic, it gives different results depending on the
alignment of the memory buffer:
b = babcd*100
hash(b[1:])
7264687738704559842
hash(memoryview(b)[1:])
9054791208347464792
memoryview(b)[1:] == b[1:]
True
--
nosy: +pitrou
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +mark.dickinson, skrah, tim_one
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16427
___
___
Antoine Pitrou added the comment:
Here is a test case for the hash/alignment issue.
--
Added file: http://bugs.python.org/file27948/test_hash_align.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16427
Changes by David Barnett davidbarne...@gmail.com:
--
nosy: +mu_mind
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1065986
___
___
Python-bugs-list
David Barnett added the comment:
I just ran into this, and I'd like to communicate how unfortunate it is that
it's not a priority to fix this fairly trivial (?) bug. It means there's no way
to define a unicode string literal with non-ascii characters that won't crash
the builtin help()
David Barnett added the comment:
Also, the resolution is still marked as fixed, which is not correct...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1065986
___
Roundup Robot added the comment:
New changeset f475332df9b5 by Antoine Pitrou in branch '3.2':
Issue #16357: fix calling accept() on a SSLSocket created through
SSLContext.wrap_socket().
http://hg.python.org/cpython/rev/f475332df9b5
New changeset 9510a9641c80 by Antoine Pitrou in branch '3.3':
Antoine Pitrou added the comment:
I've reworked the patch a bit and committed it. Thank you for reporting this!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 94256d7804b8 by Nadeem Vawda in branch '2.7':
Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in
decompressobj().flush().
http://hg.python.org/cpython/rev/94256d7804b8
New changeset 85886268c40b by Nadeem Vawda in branch
Nadeem Vawda added the comment:
New patch committed. Once again, thanks for all your work on this issue!
--
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16350
Roundup Robot added the comment:
New changeset c3828831861c by Nadeem Vawda in branch '2.7':
Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access
previously-freed memory.
http://hg.python.org/cpython/rev/c3828831861c
New changeset a1db815d0829 by Nadeem Vawda in
Roundup Robot added the comment:
New changeset be40a10d553a by Nadeem Vawda in branch '2.7':
Fix typo in backporting fix of issue #16411 to 2.7.
http://hg.python.org/cpython/rev/be40a10d553a
--
___
Python tracker rep...@bugs.python.org
Nadeem Vawda added the comment:
Ah, that's much nicer than either of my ideas. Patch committed. Thanks!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
It is not so much that it isn't a priority, as that no one has suggested a
working fix that is suitable for 2.7. Do you have a suggestion?
--
resolution: fixed -
___
Python tracker rep...@bugs.python.org
Changes by Gregory P. Smith g...@krypto.org:
--
assignee: gregory.p.smith -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8865
___
___
Jeff McNeil added the comment:
Reverting of the len(block) back to 'bs' here aside, does it even make sense to
include block information at all?
That's the attempted read size, so it might not be an accurate representation
of the size of the data actually read. Thus the reason for the
Roundup Robot added the comment:
New changeset ba45976c2801 by Gregory P. Smith in branch '3.2':
Fixes issue #9535: Fix pending signals that have been received but not
http://hg.python.org/cpython/rev/ba45976c2801
New changeset c7d6cd3c27b9 by Gregory P. Smith in branch '3.3':
Fixes issue
Roundup Robot added the comment:
New changeset 9b711422c98f by Gregory P. Smith in branch '2.7':
Fixes issue #9535: Fix pending signals that have been received but not yet
http://hg.python.org/cpython/rev/9b711422c98f
--
___
Python tracker
Changes by Gregory P. Smith g...@krypto.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9535
___
Jeff McNeil added the comment:
Ah, disregard. I followed up on the other bug. The legacy interface indeed
should have stayed consistant.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
Chris Rebert added the comment:
What about CityHash? (http://code.google.com/p/cityhash/ ; unofficial C port:
http://code.google.com/p/cityhash-c/ )
It's good enough for Google...
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
Sean Ochoa added the comment:
Updates after feedback from Serhiy.
--
Added file: http://bugs.python.org/file27949/issue13349.patch.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13349
___
Roundup Robot added the comment:
New changeset d478df13abde by Gregory P. Smith in branch '3.2':
Fixes issue #14396: Handle the odd rare case of waitpid returning 0 when
http://hg.python.org/cpython/rev/d478df13abde
New changeset 61a0eace0f2e by Gregory P. Smith in branch '3.3':
Fixes issue
Roundup Robot added the comment:
New changeset 82711f5ab507 by Gregory P. Smith in branch '2.7':
Fixes issue #14396: Handle the odd rare case of waitpid returning 0
http://hg.python.org/cpython/rev/82711f5ab507
--
___
Python tracker
Gregory P. Smith added the comment:
regardless of knowing how to reproduce this system call behavior, the changes
necessary to handle robustly it are easy enough. fixed.
3.3+ already handled it if a timeout was specified (new feature). I only had
to fix the default no timeout case.
Gregory P. Smith added the comment:
fyi - I agree with your comments about the test and assertRaises. This code is
old, there's a lot that could be improved in there. I chose to maintain a
style equivalent to the existing surrounding code.
Feel free to clean that up.
--
Gregory P. Smith added the comment:
Thanks! I'm looking into applying these tonight (including 3.2) with a couple
minor edits.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16327
___
Julian Berman added the comment:
test_issuewhatever is a bit indescriptive.
It'd be easier for someone glancing at the test to see what it claims to be
testing if there were a more descriptive name given, like perhaps
test_exception_message (or something even more verbose).
--
nosy:
Roundup Robot added the comment:
New changeset 63ff4c9a2ed2 by Gregory P. Smith in branch '3.2':
Fixes issue #16327: The subprocess module no longer leaks file descriptors
http://hg.python.org/cpython/rev/63ff4c9a2ed2
New changeset a6a6c349af7e by Gregory P. Smith in branch '3.3':
Fixes issue
Roundup Robot added the comment:
New changeset e67620048d2f by Gregory P. Smith in branch '2.7':
Fixes issue #16327: The subprocess module no longer leaks file descriptors
http://hg.python.org/cpython/rev/e67620048d2f
--
___
Python tracker
Changes by Gregory P. Smith g...@krypto.org:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16327
___
Serhiy Storchaka added the comment:
Or test_index()/test_remove(). In this case positive test cases (and may be
other exception types) should be added.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
76 matches
Mail list logo