[issue21213] Memory bomb by incorrect custom serializer to json.dumps

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-22 Thread Terry J. Reedy
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 s

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-22 Thread Roundup Robot
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:

[issue21213] Memory bomb by incorrect custom serializer to json.dumps

2014-05-22 Thread Bob Ippolito
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

[issue21558] Fix a typo in the contextlib docs

2014-05-22 Thread Berker Peksag
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

[issue10731] UnicodeDecodeError in OS X tkinter when binding to

2014-05-22 Thread Dougal Graham
Dougal Graham added the comment: I have resolved this by using the official Python distribution, rather than Homebrew's. -- ___ Python tracker ___ __

[issue21137] Better repr for threading.Lock()

2014-05-22 Thread Berker Peksag
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

[issue10731] UnicodeDecodeError in OS X tkinter when binding to

2014-05-22 Thread Dougal Graham
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

[issue21213] Memory bomb by incorrect custom serializer to json.dumps

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +bob.ippolito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21137] Better repr for threading.Lock()

2014-05-22 Thread Raymond Hettinger
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)

[issue21479] Document TarFile.open() as a classmethod

2014-05-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for committing this, Raymond. -- stage: patch review -> resolved ___ Python tracker ___ ___ Py

[issue21137] Better repr for threading.Lock()

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue21479] Document TarFile.open() as a classmethod

2014-05-22 Thread Roundup Robot
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

[issue21479] Document TarFile.open() as a classmethod

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21479] Document TarFile.open() as a classmethod

2014-05-22 Thread Roundup Robot
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

[issue21481] Argpase Namespace object methods __eq__ and __ne__ raise TypeError when comparing to None

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file35320/fix_argparse_eq.diff ___ Python tracker ___ __

[issue21198] Minor tarfile documentation bug

2014-05-22 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue21481] Argpase Namespace object methods __eq__ and __ne__ raise TypeError when comparing to None

2014-05-22 Thread Raymond Hettinger
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

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread Berker Peksag
Changes by Berker Peksag : -- superseder: -> Add '-p'/'--path0' command line option to override sys.path[0] initialisation ___ Python tracker ___ __

[issue19361] Specialize exceptions thrown by JSON parser

2014-05-22 Thread Bob Ippolito
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. -- ___

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please add a note to the other tracker item. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue21555] gcmodule.c could use pytime.h

2014-05-22 Thread Nikolaus Rath
Changes by Nikolaus Rath : -- nosy: +nikratio ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue21479] Document TarFile.open() as a classmethod

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue21198] Minor tarfile documentation bug

2014-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report and the patch. Fixed now :-) -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue21198] Minor tarfile documentation bug

2014-05-22 Thread Roundup Robot
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 __

[issue21198] Minor tarfile documentation bug

2014-05-22 Thread Roundup Robot
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

[issue21198] Minor tarfile documentation bug

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue19361] Specialize exceptions thrown by JSON parser

2014-05-22 Thread Raymond Hettinger
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 ___

[issue21027] difflib new cli interface

2014-05-22 Thread Raymond Hettinger
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

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-22 Thread Ram Rachum
Ram Rachum added the comment: Maybe though this item should result in at least a test case for the future `pprint` redesign? -- ___ Python tracker ___ __

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> duplicate status: open -> closed superseder: -> general pprint rewrite ___ Python tracker ___ _

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: That looks good and is ready to apply. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bug

[issue21554] Possible Error in "Brief Tour of the Standard Library"

2014-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed. Thanks for the clear bug report. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue21554] Possible Error in "Brief Tour of the Standard Library"

2014-05-22 Thread Roundup Robot
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 __

[issue21556] try to use hashtable in pickle

2014-05-22 Thread Ned Deily
Changes by Ned Deily : -- nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21383] "make touch" fails when the build directory is not the source directory

2014-05-22 Thread Ned Deily
Changes by Ned Deily : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21383] "make touch" fails when the build directory is not the source directory

2014-05-22 Thread Roundup Robot
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 buil

[issue21554] Possible Error in "Brief Tour of the Standard Library"

2014-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread Raymond Hettinger
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 t

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-22 Thread Raymond Hettinger
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 __

[issue19531] Loading -OO bytecode files if -O was requested can lead to problems

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue21261] Teach IDLE to Autocomplete dictionary keys

2014-05-22 Thread Jason Browne
Changes by Jason Browne : -- nosy: +cdspace ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19533] Unloading docstrings from memory if -OO is given

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue15989] Possible integer overflow of PyLong_AsLong() results

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue20260] Argument Clinic: add unsigned integers converters

2014-05-22 Thread Josh Rosenberg
Changes by Josh Rosenberg : -- nosy: +josh.rosenberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19463] assertGdbRepr depends on hash randomization / endianess

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue20260] Argument Clinic: add unsigned integers converters

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue18061] m68k Python 3.3 test results

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue16442] PATH_MAX vs MAXPATHLEN vs pathconf(..., _PC_PATH_MAX).

2014-05-22 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue21557] os.popen & os.system lack shell-related security warnings

2014-05-22 Thread Chris Rebert
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

[issue21555] gcmodule.c could use pytime.h

2014-05-22 Thread Maciej Szulik
Changes by Maciej Szulik : -- nosy: +maciej.szulik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21556] try to use hashtable in pickle

2014-05-22 Thread Charles-François Natali
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 pr

[issue21455] add default backlog to socket.listen()

2014-05-22 Thread Charles-François Natali
Charles-François Natali added the comment: Committed, thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue21534] 404 on documentation download links

2014-05-22 Thread Zachary Ware
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 ___ _

[issue21554] Possible Error in "Brief Tour of the Standard Library"

2014-05-22 Thread David Harrigan
Changes by David Harrigan : -- keywords: +patch Added file: http://bugs.python.org/file35318/stdlib.patch ___ Python tracker ___ ___ P

[issue21534] 404 on documentation download links

2014-05-22 Thread Ned Deily
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:

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread STINNER Victor
STINNER Victor added the comment: Extract of system signal.h: #if __BSD_VISIBLE #define NSIG32 /* number of old signals (counting 0) */ #endif whereas contains: #define _SIG_MAXSIG 128 In signalmodule.c, NSIG is still important in the function sigset_to_set(): we need

[issue21534] 404 on documentation download links

2014-05-22 Thread Zachary Ware
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

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread Charles-François Natali
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 cod

[issue21555] gcmodule.c could use pytime.h

2014-05-22 Thread Sunny K
Changes by Sunny K : -- nosy: +sunfinite ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread Antoine Pitrou
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 val

[issue21555] gcmodule.c could use pytime.h

2014-05-22 Thread Antoine Pitrou
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: Extensio

[issue15293] AST nodes do not support garbage collection

2014-05-22 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-22 Thread Antoine Pitrou
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 ___

[issue21455] add default backlog to socket.listen()

2014-05-22 Thread Roundup Robot
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

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file35315/stackdepth.patch ___ Python tracker ___ __

[issue15293] AST nodes do not support garbage collection

2014-05-22 Thread Charles-François Natali
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 __

[issue21523] quadratic-time compilation in the number of 'and' or 'or' expressions

2014-05-22 Thread Antoine Pitrou
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 pathologica

[issue21554] Possible Error in "Brief Tour of the Standard Library"

2014-05-22 Thread R. David Murray
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 ___ ___

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread Eric Snow
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

[issue21554] Possible Error in "Brief Tour of the Standard Library"

2014-05-22 Thread Erik Kusko
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

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread Peter Otten
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 "l

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2014-05-22 Thread Zachary Ware
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 t

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue21553] Behaviour of modules depends on how they where imported

2014-05-22 Thread mythsmith
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 organi

[issue19662] smtpd.py should not decode utf-8

2014-05-22 Thread Maciej Szulik
Maciej Szulik added the comment: I'll try to take care of this issue in the following few days. -- ___ Python tracker ___ ___ Python-b

[issue19662] smtpd.py should not decode utf-8

2014-05-22 Thread R. David Murray
R. David Murray added the comment: Yes, this will be fixed in 3.5 one way or another. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue21552] String length overflow in Tkinter

2014-05-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file35313/tkinter_strlen_overflow-2.7.patch ___ Python tracker ___ ___ Python

[issue21552] String length overflow in Tkinter

2014-05-22 Thread Serhiy Storchaka
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

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-22 Thread David Harrigan
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

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread STINNER Victor
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 limi

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread Jan-Philip Gehrcke
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 "", line 1, in ValueError: signal number out of range Although of infrequent use, I doubt that this is expected

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread Ned Batchelder
Ned Batchelder added the comment: I thought we were discussing this on Python-Ideas? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread STINNER Victor
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

[issue2506] Add mechanism to disable optimizations

2014-05-22 Thread STINNER Victor
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 "cpyt