New submission from Raymond Hettinger:
Add the standard hot keys for resizing fonts (i.e. on a Mac, CMD-plus and
CMD-minus).
--
components: IDLE
keywords: easy
messages: 186118
nosy: rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE add font
paul j3 added the comment:
I am working on an alternative solution that moves the '--' removal to the
consume_positionals() method, and only does it if there is a corresponding '-'
in the arg_strings_pattern.
--
___
Python tracker
Changes by Edmond Burnett eburn...@gmail.com:
--
nosy: +edmond.burnett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17642
___
___
Serhiy Storchaka added the comment:
See also the discussion at
http://comments.gmane.org/gmane.comp.python.ideas/15640 . I agree with
rejection. This is an implementation detail and different Python
implementations (including future CPython versions) can have different internal
string
Drekin added the comment:
Sorry for typos.
• interactive console doesn't use sys.stdin for input, why?
• it uses sys.stdin.encoding, shouldn't it rather use sys.__stdin__.encoding if
anything?
• input() and hence code.interact() uses sys.stdin
--
Changes by Georg Brandl ge...@python.org:
--
assignee: - pitrou
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17620
___
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17642
___
___
New submission from Mark Dickinson:
It would be nice to be able to access the callback of a weakref as an attribute
on the weakref itself. For example:
Python 3.4.0a0 (default:2bf154ca43c6+, Apr 6 2013, 13:31:29)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type help, copyright, credits or
Eli Bendersky added the comment:
A lot of the code in the tests is devoted to building the tested directory tree
and populating it ( _setUpDirectories and related functions). You keep building
and deleting this tree for every running test.
I think that a better idea would be to just create
Antoine Pitrou added the comment:
Sounds fine to me.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17643
___
___
Python-bugs-list
Benjamin Peterson added the comment:
Instead of a getset, I think you just use a read-only T_OBJECT member.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17643
Changes by Berker Peksag berker.pek...@gmail.com:
Added file: http://bugs.python.org/file29686/issue13477_v4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13477
___
Changes by Berker Peksag berker.pek...@gmail.com:
Removed file: http://bugs.python.org/file29311/issue13477_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13477
___
Antoine Pitrou added the comment:
Since protocol 0 is essentially dead in Python 3, I would like to propose
something simpler and safer: only optimize the binary protocols. If noone beats
me to it, I'll adapt Victor's patch for that.
--
___
Python
Roundup Robot added the comment:
New changeset 13e5664c5d19 by Benjamin Peterson in branch '3.2':
close search and replace dialog after it is used (closes #17625)
http://hg.python.org/cpython/rev/13e5664c5d19
New changeset 7746d238c4bb by Benjamin Peterson in branch '3.3':
close search and
Roundup Robot added the comment:
New changeset f45902f8c7d7 by Christian Heimes in branch '3.2':
Issue 17538: Document XML vulnerabilties
http://hg.python.org/cpython/rev/f45902f8c7d7
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 2ab2a09901f9 by Georg Brandl in branch '3.3':
fix variable reference to fix --enable-profiling (closes #17550)
http://hg.python.org/cpython/rev/2ab2a09901f9
--
stage: - committed/rejected
___
Python
New submission from Anton Poldnev:
Windows interpreter immediately crashes on this command:
{[{}]}.format({{}: 5})
--
messages: 186130
nosy: poldnev
priority: normal
severity: normal
status: open
title: str.format() crashes
type: crash
versions: Python 3.3
Ezio Melotti added the comment:
Confirmed on Linux too. This only affects 3.3+, on 2.7/3.2 it returns '5'.
--
components: +Interpreter Core, Unicode
nosy: +eric.smith, ezio.melotti, haypo, serhiy.storchaka
priority: normal - high
stage: - needs patch
versions: +Python 3.4
Mark Dickinson added the comment:
Ah yes; that's easier. New patch including doc updates.
--
Added file: http://bugs.python.org/file29687/weakref___callback__2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17643
Éric Araujo added the comment:
Christian: there are people strongly disagreeing with the description of
minidom as “lightweight”, could you edit the libary/xml.rst file you added to
say “minimal” instead? See c2ae1ed03853 and #11379 if you want more info.
--
Éric Araujo added the comment:
It seems to me that -m site is not a guaranteed API but just a way to
inspect/debug your installation/environment, so I wouldn’t add tests that make
it looks like behavior is more defined than “print stuff about site dirs”. I’d
commit this simple fix as is (but
New submission from Armin Rigo:
Run this example on a 32-bit machine with more than 2GB of addressable RAM
(e.g. by default, more or less anything but Windows).
On Python 2.7 it raises SystemError: Negative size passed to
PyString_FromStringAndSize. On a debug version, it causes an assert in
Changes by Armin Rigo ar...@users.sourceforge.net:
--
components: +Interpreter Core
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17645
___
Armin Rigo added the comment:
Modified the example to run in only 1+GB of RAM, so that it crashes also on
32-bit versions of the Python 2.7 interpreter in Windows (the most common
around, I suppose).
--
Added file: http://bugs.python.org/file29689/mem2x.py
Charles-François Natali added the comment:
I don't know how to handle this in a non-hackish way, except by just ignoring
the issue :-)
Sound fine to me :)
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python
Roger Serwy added the comment:
IdleX provides this with the ZoomFont.py extension. (See
http://idlex.sourceforge.net/extensions.html#Misc) It is useful for showing
code on a projector so that students can easily read the screen.
The implementation in ZoomFont.py does not change the font size
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15596
___
___
Python-bugs-list
Benjamin Peterson added the comment:
Here is a patch, which fixes the issue. This brings up rather subtle issues.
For example you can have {[{}]} but not {[{]} as a format string. I wonder
if having braces in the field name at all should be an error.
--
keywords: +patch
nosy:
Serhiy Storchaka added the comment:
- The tests with range(100) seems to duplicate those with recursion
limit.
Oh, I forgot to remove old tests when had moved them to special test class.
- zip_iter should would be simpler with a goto error;
Indeed. Thank you.
--
versions:
New submission from Martin Morrison:
traceback.py contains a lot of code duplication, which makes it fragile in the
face of changes (i.e. special cases) to the stack/traceback output (I am
separately working on just such a change).
The attached patch refactors the code to reduce to a single
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17646
___
___
Roundup Robot added the comment:
New changeset aaaf36026511 by Serhiy Storchaka in branch '3.3':
Issue #14010: Fix a crash when iterating or deleting deeply nested filters
http://hg.python.org/cpython/rev/aaaf36026511
New changeset 846bd418aee5 by Serhiy Storchaka in branch 'default':
Issue
Raymond Hettinger added the comment:
This patch didn't have my sign-off. Applying it was premature. It is a
somewhat heavy handed fix that slows all the common cases at the expense of an
exotic case.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset d17d10c84d27 by Serhiy Storchaka in branch '2.7':
Issue #14010: Fix a crash when iterating or deleting deeply nested filters
http://hg.python.org/cpython/rev/d17d10c84d27
--
___
Python tracker
Benjamin Peterson added the comment:
Here's a more comprehensive patch. It follows the PEP by allowing { and }
inside [] in the field name.
--
Added file: http://bugs.python.org/file29693/fix_format_spec.patch
___
Python tracker
Serhiy Storchaka added the comment:
Oh, shame on me. Do I have to immediately revert patches or wait for your
post-commit review?
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14010
Thomas Kluyver added the comment:
I've added docs and tests, and split the changes to test_peepholer into a
separate patch.
I haven't re-exposed details of the code object as attributes of Bytecode
instances, because they're already available as e.g. bytecode.codeobj.co_names
. I think it
Changes by Thomas Kluyver tak...@gmail.com:
Added file: http://bugs.python.org/file29695/test_peepholer.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Benjamin Peterson added the comment:
How much does this overlap with #17491?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17646
___
Roundup Robot added the comment:
New changeset 72f0fd0c4d90 by Antoine Pitrou in branch '3.3':
Issue #17645: convert an assert() into a proper exception in _Py_Mangle().
http://hg.python.org/cpython/rev/72f0fd0c4d90
New changeset 6e7c6c06f3ba by Antoine Pitrou in branch 'default':
Issue #17645:
Antoine Pitrou added the comment:
This should be fixed now, thank you!
--
nosy: +pitrou
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
del x will not be enough on non-refcounted implementations.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17643
___
Raymond Hettinger added the comment:
I would appreciate it if you would please revert this patch.
We need to search for a solution that isn't as fine grained (i.e. not doing
increments, decrements, and tests on every single call to iter_next). Ideally,
the checks can be confined to the
Mark Dickinson added the comment:
True: I'm not sure what to do about that---there are other tests in that test
module that also rely on del resulting in immediate cleanup. I'm not sure what
other implementations are currently doing with this test module.
I could mark the new test as
Antoine Pitrou added the comment:
Ah, then we can probably keep using the same style.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17643
___
Amaury Forgeot d'Arc added the comment:
Or you could try to create some general purpose stack overflow
protection that periodically makes sure there is enough stack remaining
for C Python to function correctly.
Isn't it exactly what Py_EnterRecursiveCall does?
--
Benjamin Peterson added the comment:
It has no notion of how big the C stack is.
2013/4/6 Amaury Forgeot d'Arc rep...@bugs.python.org:
Amaury Forgeot d'Arc added the comment:
Or you could try to create some general purpose stack overflow
protection that periodically makes sure there is
Raymond Hettinger added the comment:
Isn't it exactly what Py_EnterRecursiveCall does?
No, it isn't. Py_EnterRecursiveCall() counts calls and measures depth. It is
sprinked all over the source code, everywhere a potentially recursive call
could be made.
Instead, it would be nice if the
Roundup Robot added the comment:
New changeset e07e6d828150 by Serhiy Storchaka in branch '2.7':
Revert a premature patch for issue #14010 (changeset d17d10c84d27).
http://hg.python.org/cpython/rev/e07e6d828150
New changeset 7b75f0bd9a5e by Serhiy Storchaka in branch '3.3':
Revert a premature
Raymond Hettinger added the comment:
If someone wants whip-up a patch for str.iter_index(), I would be happy to
review it. Be sure to add a test case to make sure that the results are
non-overlapping: list(''.iter_index('aa')) == [0, 2]
--
assignee: - rhettinger
Serhiy Storchaka added the comment:
I apologize for my negligence.
--
stage: commit review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14010
___
Mark Dickinson added the comment:
msg137617
message 137617
message #137617
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
Mark Dickinson added the comment:
I wonder if having braces in the field name at all should be an error.
There's some discussion of this in issue #12014; e.g. msg137617. I'm not sure
what conclusion was reached. Eric?
--
nosy: +mark.dickinson
Changes by Phil Connell pconn...@gmail.com:
Removed file: http://bugs.python.org/file29679/zipimport_ns.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17633
___
Changes by Phil Connell pconn...@gmail.com:
Added file: http://bugs.python.org/file29679/zipimport_ns.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17633
___
Phil Connell added the comment:
Here's a test that fails without the patch and succeeds with the patch.
--
Added file: http://bugs.python.org/file29696/test.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17633
Kristian added the comment:
Here is the patch for this bug... Enjoy! I would be happy to work on this
further if there are any problems or questions! Thanks!
--
keywords: +patch
nosy: +ktran13
Added file: http://bugs.python.org/file29697/patch.diff
Martin Morrison added the comment:
I hadn't spotted that one!
My refactor goes further (consolidates all duplicates, not just the tb ones),
is implemented the way you suggested therein (print in terms of extract), and
is more efficient in that it uses generators for all intermediate
Phil Connell added the comment:
I happened to spot this issue languishing, and the markups looked pretty
straightforward, so I just went ahead and did them.
Updated patch attached.
--
nosy: +pconnell
Added file: http://bugs.python.org/file29698/minicompat_tests_markedup.diff
New submission from Caitlin Potter:
In migrating from GNU autoconf/automake build systems to a python-based build
system (Waf), I've been slightly annoyed that coloured text output from unit
test programs is lost on the windows platform (the gtest framework uses
::SetConsoleTextAttribute on
Roy Smith added the comment:
I'm the guy who was searching for astral characters in msg18597. I should
mention that while what I did was certainly inefficient, the database was so
much slower that it didn't have any observable impact on the overall process
time (a bit over 2 days to insert
Roy Smith added the comment:
Um, make that msg185972.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17629
___
___
Python-bugs-list mailing list
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: pitrou -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17620
___
___
Python-bugs-list
New submission from Senthil Kumaran:
Sometime back during an IRC conversation we realized that converting
test_urllib2 doctests to proper unittest may help in various ways.
a) Improve coverage report (?) Know what is covered and not.
b) Helps expand it further when new features are added.
Julian Berman added the comment:
Now that we have contextlib.ExitStack, I think we should consider that here.
I.e., I think ExitStack deserves a method that calls its __enter__ and
__exit__, say .enter() and .exit(), and then the idiom for this wouldn't
require anything on TestCase, it'd be:
Roundup Robot added the comment:
New changeset d7aa625147f7 by Roger Serwy in branch '2.7':
#16887: IDLE now accepts Cancel in tabify/untabify dialog box.
http://hg.python.org/cpython/rev/d7aa625147f7
New changeset 5451b82104f3 by Roger Serwy in branch '3.3':
#16887: IDLE now accepts Cancel in
Roger Serwy added the comment:
Closing the issue as fixed.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16887
___
Changes by Roger Serwy roger.se...@gmail.com:
--
nosy: +roger.serwy
title: Enhance import statement completion - IDLE: Enhance import statement
completion
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17238
Zbigniew Halas added the comment:
Thank you for the fix, attaching a patch for 2.7.
--
keywords: +patch
Added file:
http://bugs.python.org/file29701/python_2.7_fix_slot_sorting_v1.patch
___
Python tracker rep...@bugs.python.org
New submission from pfg:
This happens when I run configure for python 2.7.2 on FreeBSD
...
cc -c -fno-strict-aliasing -O2 -fno-strict-aliasing -pipe -march=nocona
-DNDEBUG -O2 -fno-strict-aliasing -pipe -march=nocona -I. -IInclude
-I./../Include -fPIC -DPy_BUILD_CORE -o Python/Python-ast.o
Kyle Roberts added the comment:
I made a change to the documentation to reflect PyUnicode_FromObject()'s change
in implementation details. Let me know if the wording is off or more
information is needed. Thanks!
--
keywords: +patch
nosy: +kyle.roberts
Added file:
72 matches
Mail list logo