[issue2506] Add mechanism to disable optimizations
STINNER Victor added the comment: Have you considered whether the genererated PYC files need a different magic number or some other way to indicate that they aren't production code? Would it make sense to use a different sys.implementation.cache_tag? For example, the tag si currently cpython-35. We can use cpython-35P when peephole optimizations are disabled. So you can have separated .pyc and .pyo files and the disabling peephole optimizations is compatible with -O and -OO command line options. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2506] Add mechanism to disable optimizations
STINNER Victor added the comment: Oh, another option to solve the .pyc file issue is to *not* write .pyc files if the peephole optimizer is disabled. If you disable an optimizer, you probably don't care of performances. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2506] Add mechanism to disable optimizations
Ned Batchelder added the comment: I thought we were discussing this on Python-Ideas? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value
Jan-Philip Gehrcke added the comment: If you are thinking TL;DR: This fails on FreeBSD: signal.signal(signal.SIGRTMAX, lambda *a: None) Traceback (most recent call last): File stdin, line 1, in module ValueError: signal number out of range Although of infrequent use, I doubt that this is expected or desired behavior. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20584 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value
STINNER Victor added the comment: The current implementation of _signal requires a limit on the number of signals to its internal array used to store Python callback: static volatile struct { sig_atomic_t tripped; PyObject *func; } Handlers[NSIG]; If you want to kill the arbitrary limit, you need to change this structure. Maybe we need to find NSIG value differently on FreeBSD? For example try to use _SIG_MAXSIG. http://lists.freebsd.org/pipermail/freebsd-doc/2010-August/017500.html Please try attached on FreeBSD. -- keywords: +patch Added file: http://bugs.python.org/file35310/signal_nsig_freebsd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20584 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21545] Tutorial: examples and comment about mutation methods
David Harrigan added the comment: I've added the example and modified the final comment. -- keywords: +patch nosy: +David.Harrigan Added file: http://bugs.python.org/file35311/datastructures.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21545 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21552] String length overflow in Tkinter
New submission from Serhiy Storchaka: Tkinter converts str argument to C string and then pass it to Tcl. But Tcl handles string length as int and it can overflow if strlen() returns value INT_MAX. Proposed patch introduces special conversion functions which ensure that string length will not overflow. It also corrects error message in getint(), getdouble() and getboolean() methods (e.g. must be int or str instead of must be str) and adds tests for them. -- assignee: serhiy.storchaka components: Tkinter files: tkinter_strlen_overflow.patch keywords: patch messages: 218898 nosy: gpolo, loewis, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: String length overflow in Tkinter type: behavior versions: Python 2.7, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file35312/tkinter_strlen_overflow.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21552 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21552] String length overflow in Tkinter
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file35313/tkinter_strlen_overflow-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21552 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19662] smtpd.py should not decode utf-8
R. David Murray added the comment: Yes, this will be fixed in 3.5 one way or another. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19662 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19662] smtpd.py should not decode utf-8
Maciej Szulik added the comment: I'll try to take care of this issue in the following few days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19662 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21553] Behaviour of modules depends on how they where imported
New submission from mythsmith: I found a condition where different behaviour could be observed depending on how a module is imported. It seems to be different to write: import module # against: from package import module In the attachment you find a minimal package (imptest) with this organization: imptest |- __init__.py (empty) |- m.py (module which initializes a variable foo=0) |- sub (package) |- __init__.py (empty) |- subm.py (module which, upon import, changes m.foo=1) And two scripts which can be directly executed: |- run0.py (using import m) |- run1.py (using from imptest import m) Contents of the module m: # foo=0 def do(): global foo foo=1 print('doing foo=',foo) print(imported foo=,foo) Contents of module subm: ### from imptest import m from imptest import m print(imported sub, foo=,m.foo) Both run0.py and run1.py imports module m and calls the do() function, thus theoretically changing foo to 1. Both later import the subm module, which in turn imports again the m module. What I would expect is that, since m is already in memory, it is not really imported again: so foo remains equal to 1 also after subm import. I found that this actually depends on how I imported m in the script. Contents of run0.py: import m m.do() print(importing subm) from imptest.sub import subm Result: imported m; foo= 0 doing foo= 1 importing subm imported m; foo= 0 imported sub, foo= 0 As you can see from printout importing subm, the m module is imported again and thus foo is reset to 0. In run1.py, I changed the line import m to from imptest import m, and got the expected behaviour: Contents of run1.py: from imptest import m m.do() print(importing subm) from imptest.sub import subm Result: imported m; foo= 0 doing foo= 1 importing subm imported sub, foo= 1 I know that directly running a module in the first level of a package may seem strange or not correct, but could someone explain why this is happening? I would expect a module to be loaded in memory at the first import and then referred in any way I later or elsewhere in the program choose to import it. -- components: Interpreter Core files: imptest.zip messages: 218901 nosy: mythsmith priority: normal severity: normal status: open title: Behaviour of modules depends on how they where imported type: behavior versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file35314/imptest.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21553 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21553] Behaviour of modules depends on how they where imported
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21553 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20035] Clean up Tcl library discovery in Tkinter on Windows
Zachary Ware added the comment: Thank you, Serhiy; those are exactly the kinds of things I don't know enough about and had concerns about. I'll take another stab and see if I can come up with anything better. Suggestions welcome :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20035 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2506] Add mechanism to disable optimizations
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21553] Behaviour of modules depends on how they where imported
Peter Otten added the comment: Here's a simpler demo for what I believe you are experiencing: $ mkdir package $ cd package/ $ touch __ini__.py module.py $ export PYTHONPATH=.. $ python3 Python 3.3.2+ (default, Feb 28 2014, 00:52:16) [GCC 4.8.1] on linux Type help, copyright, credits or license for more information. import module, package.module module is package.module False Even though module and package.module correspond to the same file Python does not recognize that you intend the former to be part of a package. Your run0.py script goes through its sys.path entries and unfortunately the first entry points into a package so that all modules in that package become also visible as toplevel modules. A good way to avoid this trap is to use relative imports from . import module Traceback (most recent call last): File stdin, line 1, in module SystemError: Parent module '' not loaded, cannot perform relative import -- nosy: +peter.otten ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21553 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21554] Possible Error in Brief Tour of the Standard Library
New submission from Erik Kusko: In https://docs.python.org/3/tutorial/stdlib.html, there is an example: import shutil shutil.copyfile('data.db', 'archive.db') shutil.move('/build/executables', 'installdir') Should it not be: import shutil shutil.copyfile('data.db', 'archive.db') 'archive.db' shutil.move('/build/executables', 'installdir') 'installdir' ? I am run under Windows, so I don't know if the behavior is different than under Linux. Under Windows the destination file and destination directory, respectively, are echoed to stdout. -- assignee: docs@python components: Documentation messages: 218904 nosy: Pitmaster, docs@python priority: normal severity: normal status: open title: Possible Error in Brief Tour of the Standard Library type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21553] Behaviour of modules depends on how they where imported
Eric Snow added the comment: This is a consequence of a script's directory getting prepended to sys.path. See issue #13475. -- resolution: - duplicate stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21553 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21554] Possible Error in Brief Tour of the Standard Library
R. David Murray added the comment: Yes, this is a recent enhancement and the example was not updated to match. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions
Antoine Pitrou added the comment: You're right, CPU time is burnt by stackdepth_walk(). The underlying issue is that max stacksize is computed a bit pessimistically with the new opcodes (JUMP_IF_{TRUE,FALSE}_OR_POP). On normal functions there wouldn't be a sizable difference, but on pathological cases such as yours, a code object could end up claiming a large stack size (as large of the number of such opcodes) rather than a very small number. Still, of course, stackdepth_walk() should not blow up when computing a large stack size, but fixing the opcode's stack effect in compile.c seems to fix the issue anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21523 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15293] AST nodes do not support garbage collection
Charles-François Natali added the comment: Would it be possible to backport this to 2.7? We've been bitten by this at work (pyflakes introduces reference cycles in AST). -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15293 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file35315/stackdepth.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21523 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21455] add default backlog to socket.listen()
Roundup Robot added the comment: New changeset 09371221e59d by Charles-François Natali in branch 'default': Issue #21455: Add a default backlog to socket.listen(). http://hg.python.org/cpython/rev/09371221e59d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21455 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions
Antoine Pitrou added the comment: Updated patch adding some tests. -- stage: - patch review versions: -Python 3.3 Added file: http://bugs.python.org/file35316/stackdepth2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21523 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15293] AST nodes do not support garbage collection
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15293 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21555] gcmodule.c could use pytime.h
New submission from Antoine Pitrou: gcmodule.c is able to displayed elapsed time of garbage collection runs. It currently does it by poking inside the time module to call time.time() and convert it to a C double. It could instead use the new pytime.h facilities. -- components: Extension Modules, Library (Lib) keywords: easy messages: 218912 nosy: pitrou priority: low severity: normal stage: needs patch status: open title: gcmodule.c could use pytime.h type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21555 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value
Antoine Pitrou added the comment: If you want to kill the arbitrary limit, you need to change this structure. Or the structure could simply host up to 256 handlers, regardless of NSIG. I'm uncomfortable with tweaking NSIG specifically for FreeBSD. If the FreeBSD headers export the wrong value, it's not really Python's problem. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20584 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21555] gcmodule.c could use pytime.h
Changes by Sunny K sunfin...@gmail.com: -- nosy: +sunfinite ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21555 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value
Charles-François Natali added the comment: Or the structure could simply host up to 256 handlers, regardless of NSIG. I'm uncomfortable with tweaking NSIG specifically for FreeBSD. If the FreeBSD headers export the wrong value, it's not really Python's problem. Agreed. And the current code is already complicated enough: #ifndef NSIG # if defined(_NSIG) # define NSIG _NSIG/* For BSD/SysV */ # elif defined(_SIGMAX) # define NSIG (_SIGMAX + 1)/* For QNX */ # elif defined(SIGMAX) # define NSIG (SIGMAX + 1) /* For djgpp */ # else # define NSIG 64 /* Use a reasonable default value */ # endif #endif -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20584 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21534] 404 on documentation download links
Zachary Ware added the comment: Reports continue to pour in on docs@, 25 reports for 2.7.7rc1 and 3.4.1 so far by my count. Is there anything I can do to help on this? It looks to me like the files just haven't been uploaded, but I don't know where exactly they should be uploaded to, nor do I have the keys to do it. -- assignee: docs@python - priority: high - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21534 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value
STINNER Victor added the comment: Extract of system signal.h: #if __BSD_VISIBLE #define NSIG32 /* number of old signals (counting 0) */ #endif whereas sys/_sigset.h contains: #define _SIG_MAXSIG 128 In signalmodule.c, NSIG is still important in the function sigset_to_set(): we need to have the exact maximum signal number of a sigset. I prefer to make signalmodule.c a little big uglier to fix the NSIG value. I tested attached signal_nsig_freebsd-2.patch on FreeBSD 9. I suggest to backport this fix to Python 2.7 and 3.4. -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file35317/signal_nsig_freebsd-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20584 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21534] 404 on documentation download links
Ned Deily added the comment: At the moment, the links for 3.4.1 documentation downloads at https://docs.python.org/3/download.html appear to be working AFAICT; anyone see otherwise? However, the 2.7.7rc1 links are broken (https://docs.python.org/2/download.html). Benjamin? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21534 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21554] Possible Error in Brief Tour of the Standard Library
Changes by David Harrigan dharrigan...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file35318/stdlib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21534] 404 on documentation download links
Zachary Ware added the comment: You're right, Ned; 3.4.1 is working for me now, but 2.7.7rc1 is still broken. (Sorry for not checking again!) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21534 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21455] add default backlog to socket.listen()
Charles-François Natali added the comment: Committed, thanks! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21455 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21556] try to use hashtable in pickle
New submission from Charles-François Natali: This patch is an attempt at making pickle use Modules/hashtable.{h,c} instead of its hash table ad-hoc implementation for its memoization table. 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. If we manage to bring this on par with pickle's ad-hoc implementation, it would probably be interesting to replace it. If not, then we can just drop this patch :-) Also, there might be other places in the code base which might benefit from this generic hashtable, maybe. -- files: pickle_use_hashtable.diff keywords: patch messages: 218920 nosy: haypo, neologix, pitrou, serhiy.storchaka priority: normal severity: normal status: open title: try to use hashtable in pickle type: enhancement versions: Python 3.5 Added file: http://bugs.python.org/file35319/pickle_use_hashtable.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21556 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21555] gcmodule.c could use pytime.h
Changes by Maciej Szulik solt...@gmail.com: -- nosy: +maciej.szulik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21555 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21557] os.popen os.system lack shell-related security warnings
New submission from Chris Rebert: Since these functions run shell commands, which is a common vector for security-related bugs (see * http://cwe.mitre.org/data/definitions/78.html * http://cwe.mitre.org/data/definitions/88.html ), I suggest that they should have security warning boxes analogous to the one for the `subprocess` module: https://docs.python.org/2/library/subprocess.html#frequently-used-arguments -- assignee: docs@python components: Documentation messages: 218921 nosy: cvrebert, docs@python priority: normal severity: normal status: open title: os.popen os.system lack shell-related security warnings versions: Python 2.7, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21557 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16442] PATH_MAX vs MAXPATHLEN vs pathconf(..., _PC_PATH_MAX).
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16442 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18061] m68k Python 3.3 test results
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18061 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20260] Argument Clinic: add unsigned integers converters
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20260 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19463] assertGdbRepr depends on hash randomization / endianess
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19463 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20260] Argument Clinic: add unsigned integers converters
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20260 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15989] Possible integer overflow of PyLong_AsLong() results
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15989 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20015] Allow 1-character ASCII unicode where 1-character str is required
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20015 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19533] Unloading docstrings from memory if -OO is given
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19533 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21261] Teach IDLE to Autocomplete dictionary keys
Changes by Jason Browne thecodede...@gmail.com: -- nosy: +cdspace ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21261 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19531] Loading -OO bytecode files if -O was requested can lead to problems
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19531 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions
Raymond Hettinger added the comment: The patch looks like the correct solution. That said, I'm more impressed that you were able to test it so cleanly :-) -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21523 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2506] Add mechanism to disable optimizations
Raymond Hettinger added the comment: [Victor] Oh, another option to solve the .pyc file issue is to *not* write .pyc files if the peephole optimizer is disabled. If you disable an optimizer, you probably don't care of performances. That is an inspired idea and would help address one of the possible problems that could be caused by a new on/off switch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21554] Possible Error in Brief Tour of the Standard Library
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21383] make touch fails when the build directory is not the source directory
Roundup Robot added the comment: New changeset 1fd37eefa141 by Ned Deily in branch '2.7': Issue #21383: Allow make touch to work when building outside of the http://hg.python.org/cpython/rev/1fd37eefa141 New changeset 6f85967c908e by Ned Deily in branch '2.7': Issue #21383: OS X installer builds now use make touch. http://hg.python.org/cpython/rev/6f85967c908e New changeset 15b5559b1068 by Ned Deily in branch '3.4': Issue #21383: OS X installer builds now use make touch. http://hg.python.org/cpython/rev/15b5559b1068 New changeset 24f198c520c1 by Ned Deily in branch 'default': Issue #21383: OS X installer builds now use make touch. http://hg.python.org/cpython/rev/24f198c520c1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21383 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21383] make touch fails when the build directory is not the source directory
Changes by Ned Deily n...@acm.org: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21383 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21556] try to use hashtable in pickle
Changes by Ned Deily n...@acm.org: -- nosy: +alexandre.vassalotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21556 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21554] Possible Error in Brief Tour of the Standard Library
Roundup Robot added the comment: New changeset e07e347688a0 by Raymond Hettinger in branch '3.4': Issue 21554: Repair an out-of-date tutorial example to reflect changes in shutil. http://hg.python.org/cpython/rev/e07e347688a0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21554] Possible Error in Brief Tour of the Standard Library
Raymond Hettinger added the comment: Fixed. Thanks for the clear bug report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21554 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21545] Tutorial: examples and comment about mutation methods
Raymond Hettinger added the comment: That looks good and is ready to apply. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21545 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - duplicate status: open - closed superseder: - general pprint rewrite ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21542 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict
Ram Rachum added the comment: Maybe though this item should result in at least a test case for the future `pprint` redesign? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21542 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21027] difflib new cli interface
Raymond Hettinger added the comment: Sorry guys, I appreciate your enthusiasm, but when I designed the code, I intentionally put it in the Tools/scripts section rather than as a command-line option for a library module. As the author of the context_diff and unified_diff, I was concerned that wasn't competitive with a real diff tool in a numbers of ways. IIRC, Guido had problems with it and couldn't get it to work with patch and Uncle Timmy noted some algorithmic difference with other diffs. I'm going to close this because I think it is not a good idea to offer an attractive nuisance. Victor, I attended David's talk and enjoyed it thoroughly. However, if you thought he was arguing for the standard library to be turned into a suite of command-line unix replacements, you may have missed the point. In addition, most of his magic was done by writing scripts that incorporated the tools (for example, the diffs were part of a script that reconstructed the change history for a series of files). -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21027 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19361] Specialize exceptions thrown by JSON parser
Raymond Hettinger added the comment: Adding it to the stdlib is only matter of time. I think we can go forward with it right now. -- nosy: +bob.ippolito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19361 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21198] Minor tarfile documentation bug
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21198 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21198] Minor tarfile documentation bug
Roundup Robot added the comment: New changeset 630bc60cba04 by Raymond Hettinger in branch '3.4': Issue 21198: Minor tarfile documentation bug. http://hg.python.org/cpython/rev/630bc60cba04 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21198 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21198] Minor tarfile documentation bug
Roundup Robot added the comment: New changeset 5c1fb67f2edf by Raymond Hettinger in branch '2.7': Issue 21198: Minor tarfile documentation bug. http://hg.python.org/cpython/rev/5c1fb67f2edf -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21198 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21479] Document TarFile.open() as a classmethod
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21479 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21198] Minor tarfile documentation bug
Raymond Hettinger added the comment: Thanks for the report and the patch. Fixed now :-) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21198 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21555] gcmodule.c could use pytime.h
Changes by Nikolaus Rath nikol...@rath.org: -- nosy: +nikratio ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21555 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict
Raymond Hettinger added the comment: Please add a note to the other tracker item. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21542 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19361] Specialize exceptions thrown by JSON parser
Bob Ippolito added the comment: simplejson v3.5.1 is probably a good target, let me know if there's anything that you'd like me to merge back in from stdlib to make maintenance easier. I haven't been tracking stdlib except when I've been added to issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19361 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21553] Behaviour of modules depends on how they where imported
Changes by Berker Peksag berker.pek...@gmail.com: -- superseder: - Add '-p'/'--path0' command line option to override sys.path[0] initialisation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21553 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21481] Argpase Namespace object methods __eq__ and __ne__ raise TypeError when comparing to None
Raymond Hettinger added the comment: The equality and inequality tests need to return NotImplemented when comparing to an unknown type. -- assignee: - rhettinger nosy: +bethard, rhettinger priority: normal - low stage: - needs patch type: - behavior versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21481 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21198] Minor tarfile documentation bug
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21198 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21481] Argpase Namespace object methods __eq__ and __ne__ raise TypeError when comparing to None
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file35320/fix_argparse_eq.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21481 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21479] Document TarFile.open() as a classmethod
Roundup Robot added the comment: New changeset e6a9beaff8c9 by Raymond Hettinger in branch '2.7': Issue 21479: Fix markup for the TarFile.open() classmethod. http://hg.python.org/cpython/rev/e6a9beaff8c9 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21479 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21479] Document TarFile.open() as a classmethod
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21479 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21479] Document TarFile.open() as a classmethod
Roundup Robot added the comment: New changeset 37d2a6bcf7ae by Raymond Hettinger in branch '3.4': Issue 21479: Fix markup for the TarFile.open() classmethod. http://hg.python.org/cpython/rev/37d2a6bcf7ae -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21479 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21137] Better repr for threading.Lock()
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21137 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21479] Document TarFile.open() as a classmethod
Berker Peksag added the comment: Thanks for committing this, Raymond. -- stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21479 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21137] Better repr for threading.Lock()
Raymond Hettinger added the comment: The patch is just about ready to go but needs to address some failing tests: == FAIL: test_locked_repr (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests) -- Traceback (most recent call last): File /Users/raymond/cpython/Lib/test/lock_tests.py, line 91, in test_locked_repr self.assertRegex(repr(lock), locked .* object (.*)?at .*) AssertionError: Regex didn't match: 'locked .* object (.*)?at .*' not found in _ModuleLock('some_lock') at 4438138048 == FAIL: test_repr (test.test_importlib.test_locks.Frozen_ModuleLockAsRLockTests) -- Traceback (most recent call last): File /Users/raymond/cpython/Lib/test/lock_tests.py, line 85, in test_repr self.assertRegex(repr(lock), unlocked .* object (.*)?at .*) AssertionError: Regex didn't match: 'unlocked .* object (.*)?at .*' not found in _ModuleLock('some_lock') at 4439151784 == FAIL: test_locked_repr (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests) -- Traceback (most recent call last): File /Users/raymond/cpython/Lib/test/lock_tests.py, line 91, in test_locked_repr self.assertRegex(repr(lock), locked .* object (.*)?at .*) AssertionError: Regex didn't match: 'locked .* object (.*)?at .*' not found in _ModuleLock('some_lock') at 4438192312 == FAIL: test_repr (test.test_importlib.test_locks.Source_ModuleLockAsRLockTests) -- Traceback (most recent call last): File /Users/raymond/cpython/Lib/test/lock_tests.py, line 85, in test_repr self.assertRegex(repr(lock), unlocked .* object (.*)?at .*) AssertionError: Regex didn't match: 'unlocked .* object (.*)?at .*' not found in _ModuleLock('some_lock') at 4438192480 -- Ran 970 tests in 0.549s FAILED (failures=4, skipped=7, expected failures=1) test test_importlib failed 1 test failed: test_importlib -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21137 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21213] Memory bomb by incorrect custom serializer to json.dumps
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +bob.ippolito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21213 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10731] UnicodeDecodeError in OS X tkinter when binding to MouseWheel
Dougal Graham added the comment: I recenly encuntered this error in OSX 10.9.2, using pthon 3.3 and 3.4 from Homebrew. I tried installing activetcl 8.6 package, but it still fails dependably. -- nosy: +Dougal.Graham ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10731 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21137] Better repr for threading.Lock()
Berker Peksag added the comment: Here is a new patch. I've disabled test_repr and test_locked_repr tests in Lib/test/test_importlib/test_locks.py. -- Added file: http://bugs.python.org/file35321/issue21137_v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21137 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10731] UnicodeDecodeError in OS X tkinter when binding to MouseWheel
Dougal Graham added the comment: I have resolved this by using the official Python distribution, rather than Homebrew's. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10731 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21558] Fix a typo in the contextlib docs
New submission from Berker Peksag: From the code example at https://docs.python.org/3.5/library/contextlib.html#supporting-a-variable-number-of-context-managers if need_special resource: (see line 4) should be if need_special_resource:. Related changeset: http://hg.python.org/cpython/rev/5d91d87b5969 -- assignee: docs@python components: Documentation files: contextlib-typo.diff keywords: patch messages: 218944 nosy: berker.peksag, docs@python priority: normal severity: normal stage: patch review status: open title: Fix a typo in the contextlib docs versions: Python 3.4, Python 3.5 Added file: http://bugs.python.org/file35322/contextlib-typo.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21558 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21213] Memory bomb by incorrect custom serializer to json.dumps
Bob Ippolito added the comment: I agree with ebfe. It's a case that only comes up if you're writing your own default handlers, and there's not a reasonable solution to avoid this issue. You would've gotten a RuntimeError: maximum recursion depth exceeded if it wasn't for the behavior of repr here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21213 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21545] Tutorial: examples and comment about mutation methods
Roundup Robot added the comment: New changeset 6fc09f30b514 by Terry Jan Reedy in branch '2.7': Issue #21545: Add .pop example and tweak comment about pure mutation methods. http://hg.python.org/cpython/rev/6fc09f30b514 New changeset 3f2b6034b73a by Terry Jan Reedy in branch '3.4': Issue #21545: Add .pop example and tweak comment about pure mutation methods. http://hg.python.org/cpython/rev/3f2b6034b73a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21545 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21545] Tutorial: examples and comment about mutation methods
Terry J. Reedy added the comment: Thanks David. If this is not to be your last contribution, and we hope not, please fill out the contributor agreement, if you have hot already, at https://www.python.org/psf/contrib/contrib-form/ -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21545 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com