[issue16448] 'module' object has no attribute 'font' when import tkinter only.
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 have the same hierarchical filesystem. why they have different import method? here is my code: 1)tkinter.font -- only use import tkinter meet a error, must add import tkinter.font.code is below: import tkinter #import tkinter.font root = tkinter.Tk() ft = tkinter.font.Font(family = 'Fixdsys',size = 20,weight = tkinter.font.BOLD) tkinter.Label(root,text = 'hello sticky',font = ft ).grid() root.mainloop() 2)tkinter.messagebox -- only use import tkinter is all ok.code is below: import tkinter def callback(): if tkinter.messagebox.askokcancel(Quit, Do you really wish to quit?): root.destroy() root = tkinter.Tk() root.protocol(WM_DELETE_WINDOW, callback) root.mainloop() i am a beginner on python. if have a reply, please email me. thinks. -- components: Tkinter messages: 175267 nosy: zaazbb priority: normal severity: normal status: open title: 'module' object has no attribute 'font' when import tkinter only. type: compile error versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16448 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16448] 'module' object has no attribute 'font' when import tkinter only.
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 have the same hierarchical filesystem. why they have different import method? here is my code: 1)tkinter.font -- only use import tkinter meet a error, must add import tkinter.font.code is below: import tkinter #import tkinter.font root = tkinter.Tk() ft = tkinter.font.Font(family = 'Fixdsys',size = 20,weight = tkinter.font.BOLD) tkinter.Label(root,text = 'hello sticky',font = ft ).grid() root.mainloop() 2)tkinter.messagebox -- only use import tkinter is all ok.code is below: import tkinter def callback(): if tkinter.messagebox.askokcancel(Quit, Do you really wish to quit?): root.destroy() root = tkinter.Tk() root.protocol(WM_DELETE_WINDOW, callback) root.mainloop() i am a beginner on python. if have a reply, please email me. thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16448 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT
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 rep...@bugs.python.org http://bugs.python.org/issue12082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16218] Python launcher does not support unicode characters
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 from UTF-8 in *strict* mode, not by os.fsencode() which uses surrogateescape). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16444] Use support.TESTFN_UNDECODABLE on UNIX
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 #16218, changeset 23ebe277e982. I checked this issue: support_undecodable.patch checks for non-regression with UTF-8 (and ASCI and ISO-8859-1) locale encoding on UNIX. test_genericpath.test_non_ascii() comes from the issue #3426, this fix comes from the issue #3187, changeset 8a7c930abab6. I don't want to spend time on trying the new test on this issue because this 8a7c930abab6 is a major change, I don't see how to revert it just to test the issue. I consider the issue has fixed, and the new test should not reduce the test coverage, but just increase it ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16444 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16218] Python launcher does not support unicode characters
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 http://bugs.python.org/issue16218 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16444] Use support.TESTFN_UNDECODABLE on UNIX
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 rep...@bugs.python.org http://bugs.python.org/issue16444 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16218] Python launcher does not support unicode characters
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 buildbots, and then backport to older Python versions (at least 3.3). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16444] Use support.TESTFN_UNDECODABLE on UNIX
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16444 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16448] 'module' object has no attribute 'font' when import tkinter only.
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 snippet, you reference the messagebox attribute inside a callback which is *not* executed when your module is imported. So while the file hierarchy structure is analogous in the two cases, your *code* is not. When you close the window, you will see your messagebox attribute error when the callback is called. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16448 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16449] RotatingFileHandler rollover doesn't work on QNX shmem filesystems
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 filesystem' feature). So for example, rename(/dev/shmem/foo, /dev/shmem/bar) fails with EXDEV. This is easily fixed by using shutils.move rather than os.rename where appropriate, falling back to copying if a rename() fails. It's not sufficient to set the rotator attribute, since there are other os.rename calls in in doRollover. -- components: Library (Lib) files: rfh_rename_fix.patch keywords: patch messages: 175277 nosy: pconnell, vinay.sajip priority: normal severity: normal status: open title: RotatingFileHandler rollover doesn't work on QNX shmem filesystems versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file27941/rfh_rename_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16449 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16449] RotatingFileHandler rollover doesn't work on QNX shmem filesystems
Changes by Phil Connell pconn...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16449 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16450] test_missing_localfile masks problems in urlopen
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: self.assertTrue(os.path.exists(tmp_file)) fp = urllib.urlopen(tmp_fileurl) finally: os.close(fd) fp.close() On my laptop, urllib.urlopen raises a socket.gaierror. This means that the variable fp is never set, and the fp.close() at line 235 raises an UnboundLoccalError, masking the socket error. A quick fix would be: try: self.assertTrue(os.path.exists(tmp_file)) fp = urllib.urlopen(tmp_fileurl) fp.close() finally: os.close(fd) That way, the .close is only attempted if the open succeeds. -- components: Tests messages: 175278 nosy: HansM priority: normal severity: normal status: open title: test_missing_localfile masks problems in urlopen versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16450 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14794] slice.indices raises OverflowError
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14794 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14794] slice.indices raises OverflowError
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 5664)] on darwin Type help, copyright, credits or license for more information. len(range(10**20)) Traceback (most recent call last): File stdin, line 1, in module OverflowError: Python int too large to convert to C ssize_t [68571 refs] -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14794 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16451] Remove duplication between slice_indices and compute_slice_indices
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 priority: normal severity: normal status: open title: Remove duplication between slice_indices and compute_slice_indices type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16451] Remove duplication between slice_indices and compute_slice_indices
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +serhiy.storchaka stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16449] RotatingFileHandler rollover doesn't work on QNX shmem filesystems
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 RotatingFileHandler may resort to copying by mistake, it may cause other issues down the line. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16449 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15861] ttk.Treeview unmatched open brace in list
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 rep...@bugs.python.org http://bugs.python.org/issue15861 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16449] RotatingFileHandler rollover doesn't work on QNX shmem filesystems
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 there is anything to do here: you just can't use rollover on a filesystem that doesn't support atomic rename. I'll leave it Vinay to close the issue if he agrees with us. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16449 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6584] gzip module has no custom exception
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6584] gzip module has no custom exception
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16240] Document a way to escape metacharacters in glob/fnmatch
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13912] ImportError using __import__ and relative level 1
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 http://bugs.python.org/issue13912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6584] gzip module has no custom exception
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 have done? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6584 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13349] Non-informative error message in index() and remove() functions
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16218] Python launcher does not support unicode characters
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 still broken on 3.3, so this either needs fixing or reverting. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13538] Improve doc for str(bytesobject)
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13538] Improve doc for str(bytesobject)
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16450] test_missing_localfile masks problems in urlopen
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16450 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16444] Use support.TESTFN_UNDECODABLE on UNIX
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16400] update default PyPI behavior in docs re: listing versions
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16418] argparse with many choices can generate absurdly long usage message
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 file: http://bugs.python.org/file27946/issue-16418-1-default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16418 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14196] Unhandled exceptions in pdb return value display
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' parameter in the call to __new__() in: return super(A, cls).__new__() -- nosy: +xdegaye ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14196 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16218] Python launcher does not support unicode characters
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16444] Use support.TESTFN_UNDECODABLE on UNIX
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 rep...@bugs.python.org http://bugs.python.org/issue16444 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16409] urlretrieve regression: first call returns block size as 0
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: The reporthook callback made by the legacy http://hg.python.org/cpython/rev/8c48eb0239ca -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16409 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16409] urlretrieve regression: first call returns block size as 0
Changes by Gregory P. Smith g...@krypto.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16409 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16427] Faster hash implementation
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14621] Hash function is not randomized properly
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 rep...@bugs.python.org http://bugs.python.org/issue14621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue812369] module shutdown procedure based on GC
Changes by Gregory P. Smith g...@krypto.org: -- assignee: gregory.p.smith - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue812369 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16427] Faster hash implementation
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 size_t. -- Added file: http://bugs.python.org/file27947/fast_hash_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16427 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16427] Faster hash implementation
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10050] urllib.request still has old 2.x urllib primitives
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 test_urllib broken by my previous commits. The assumptions it was http://hg.python.org/cpython/rev/dcf9a07830a6 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16427] Faster hash implementation
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 stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16427 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16427] Faster hash implementation
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson, skrah, tim_one ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16427 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16427] Faster hash implementation
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1065986] Fix pydoc crashing on unicode strings
Changes by David Barnett davidbarne...@gmail.com: -- nosy: +mu_mind ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1065986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1065986] Fix pydoc crashing on unicode strings
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() command. I ran into this with the desktop package (http://pypi.python.org/pypi/desktop) where the only useful documentation right now is the source code and the docstrings. Apparently the author, who has non-ascii characters in his name, did me a favor by using broken encoding on the doc string so that at least I could read everything except for his name in the help. I tried to correct the encoding and found I get a nice traceback instead of help. And to top it all off, googling for things like help unicode docstring and python help ascii codec turns up nothing. I only found this issue once I thought to include pipepager in the search... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1065986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1065986] Fix pydoc crashing on unicode strings
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile
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': Issue #16357: fix calling accept() on a SSLSocket created through SSLContext.wrap_socket(). http://hg.python.org/cpython/rev/9510a9641c80 New changeset 5fc30f0277a5 by Antoine Pitrou in branch 'default': Issue #16357: fix calling accept() on a SSLSocket created through SSLContext.wrap_socket(). http://hg.python.org/cpython/rev/5fc30f0277a5 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16357 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile
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 http://bugs.python.org/issue16357 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data
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 '3.2': Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush(). http://hg.python.org/cpython/rev/85886268c40b New changeset 654eb5163ba1 by Nadeem Vawda in branch '3.3': Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush(). http://hg.python.org/cpython/rev/654eb5163ba1 New changeset 4440e45c10f9 by Nadeem Vawda in branch 'default': Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush(). http://hg.python.org/cpython/rev/4440e45c10f9 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it
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 branch '3.2': Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory. http://hg.python.org/cpython/rev/a1db815d0829 New changeset a7934fe2927e by Nadeem Vawda in branch '3.3': Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory. http://hg.python.org/cpython/rev/a7934fe2927e New changeset d63c751e9f01 by Nadeem Vawda in branch 'default': Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory. http://hg.python.org/cpython/rev/d63c751e9f01 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16411 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it
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 http://bugs.python.org/issue16411 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16411] zlib.Decompress.decompress() retains pointer to input buffer without acquiring reference to it
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 http://bugs.python.org/issue16411 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1065986] Fix pydoc crashing on unicode strings
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 http://bugs.python.org/issue1065986 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8865] select.poll is not thread safe
Changes by Gregory P. Smith g...@krypto.org: -- assignee: gregory.p.smith - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8865 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10050] urllib.request still has old 2.x urllib primitives
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 initial change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9535] Pending signals are inherited by child processes
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 #9535: Fix pending signals that have been received but not http://hg.python.org/cpython/rev/c7d6cd3c27b9 New changeset 41280973921a by Gregory P. Smith in branch 'default': Fixes issue #9535: Fix pending signals that have been received but not http://hg.python.org/cpython/rev/41280973921a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9535] Pending signals are inherited by child processes
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 rep...@bugs.python.org http://bugs.python.org/issue9535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9535] Pending signals are inherited by child processes
Changes by Gregory P. Smith g...@krypto.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10050] urllib.request still has old 2.x urllib primitives
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14621] Hash function is not randomized properly
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 http://bugs.python.org/issue14621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13349] Non-informative error message in index() and remove() functions
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14396] Popen wait() doesn't handle spurious wakeups
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 #14396: Handle the odd rare case of waitpid returning 0 http://hg.python.org/cpython/rev/61a0eace0f2e New changeset 512c1120332f by Gregory P. Smith in branch 'default': Fixes issue #14396: Handle the odd rare case of waitpid returning 0 http://hg.python.org/cpython/rev/512c1120332f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14396 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14396] Popen wait() doesn't handle spurious wakeups
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 rep...@bugs.python.org http://bugs.python.org/issue14396 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14396] Popen wait() doesn't handle spurious wakeups
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. -- resolution: - fixed status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14396 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16114 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13349] Non-informative error message in index() and remove() functions
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: +Julian ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure
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 #16327: The subprocess module no longer leaks file descriptors http://hg.python.org/cpython/rev/a6a6c349af7e New changeset a9e238168588 by Gregory P. Smith in branch 'default': Fixes issue #16327: The subprocess module no longer leaks file descriptors http://hg.python.org/cpython/rev/a9e238168588 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16327 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure
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 rep...@bugs.python.org http://bugs.python.org/issue16327 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13349] Non-informative error message in index() and remove() functions
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 http://bugs.python.org/issue13349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com