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
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
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
___
___
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
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
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
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
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
___
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
___
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
___
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
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
___
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
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2506
___
___
Python-bugs-list
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
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')
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
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
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
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
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
___
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
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
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15293
___
___
Python-bugs-list
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:
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
Changes by Sunny K sunfin...@gmail.com:
--
nosy: +sunfinite
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21555
___
___
Python-bugs-list mailing
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
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
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
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:
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
___
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
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
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
Changes by Maciej Szulik solt...@gmail.com:
--
nosy: +maciej.szulik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21555
___
___
Python-bugs-list
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
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16442
___
___
Python-bugs-list
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18061
___
___
Python-bugs-list
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20260
___
___
Python-bugs-list
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19463
___
___
Python-bugs-list
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com:
--
nosy: +josh.rosenberg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20260
___
___
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15989
___
___
Python-bugs-list
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20015
___
___
Python-bugs-list
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19533
___
___
Python-bugs-list
Changes by Jason Browne thecodede...@gmail.com:
--
nosy: +cdspace
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21261
___
___
Python-bugs-list
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: -skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19531
___
___
Python-bugs-list
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
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
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
___
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
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
Changes by Ned Deily n...@acm.org:
--
nosy: +alexandre.vassalotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21556
___
___
Python-bugs-list
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
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
___
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
___
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
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
___
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
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
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
___
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
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
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
___
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
___
Changes by Nikolaus Rath nikol...@rath.org:
--
nosy: +nikratio
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21555
___
___
Python-bugs-list
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
___
___
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.
--
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
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
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: patch review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21198
___
___
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
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
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21479
___
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
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21137
___
___
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
___
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)
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
nosy: +bob.ippolito
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21213
___
___
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
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
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
___
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:
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
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
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
86 matches
Mail list logo