[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-05-30 Thread Ned Deily
Ned Deily n...@acm.org added the comment: It turns out that the previous and current versions of IDLE syntax highlighting did not recognize literals with valid two-character prefixes, like ur or br. Besides restoring ur, 3.3 also added rb to the existing br prefixes. The applied patch

[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-05-30 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14958 ___ ___ Python-bugs-list mailing

[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-05-30 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Should the patch be partially back-ported to 2.7 as well given that IDLE 2 doesn't highlight two-character prefixes? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14958

[issue14958] IDLE 3 and PEP414 - highlighting unicode literals

2012-05-30 Thread Ned Deily
Ned Deily n...@acm.org added the comment: It could be. But perhaps its absence will be another incentive to move to Python 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14958 ___

[issue14960] about the slowly HTTPServer

2012-05-30 Thread Fan Li
New submission from Fan Li m4.li...@gmail.com: first, i'm sorry about my english. when i test the HTTPServer lib local, it's fast. but when i run the test script on another PC, i found it very slow, response for a request cost about 4s. then, i walk into the source about HTTPServer and found

[issue14960] about the slowly HTTPServer

2012-05-30 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It's actually a duplicate of #6085 (already fixed). Cheers! -- nosy: +neologix resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Logging in BaseHTTPServer.BaseHTTPRequestHandler causes

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___ ___ Python-bugs-list

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-05-30 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Oh, I see XMLGenerator completely outdated. It even has not been ported to Python 3. See function _write: def _write(self, text): if isinstance(text, str): self._out.write(text) else:

[issue14796] Calendar module test coverage improved

2012-05-30 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: New changeset 98bc9e357f74 by R David Murray in branch 'default': #14796: improve calendar test coverage. http://hg.python.org/cpython/rev/98bc9e357f74 The following added test fails on Windows: ... +def

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Vladimir Berkutov
New submission from Vladimir Berkutov dair.t...@gmail.com: It might be useful to introduce a new map() and filter() methods to iterators and iterables. Both methods should accept lambda/function which transforms a single argument into value. Both methods should return another iterator. #

[issue14962] When changing IDLE configuration all text in editor window loses highlighting

2012-05-30 Thread Ramchandra Apte
New submission from Ramchandra Apte maniandra...@gmail.com: When applying or okaying IDLE configuration (Options- Configure IDLE) all text in the shell window loses highlighting. Text in the shell window created after the configuration is applied is highlighted though. -- components:

[issue14962] When changing IDLE configuration all text in shell window loses highlighting

2012-05-30 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: When changing IDLE configuration all text in editor window loses highlighting - When changing IDLE configuration all text in shell window loses highlighting ___ Python tracker

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Sorry, small mistake. Actually all the other Python 2.x releases are in security-fix mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14961

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: I think this is quite a major change to Python and this needs a PEP BTW issue912738 and therefore this bug no longer applies to Python 3. In Python 3 map returns an iterator. Even if you wanted to implement this feature in Python 2, it

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: Sorry, To clarify: Python 2.7 is in bug-fix mode which means only minor enhancements are allowed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14961

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Robert Lehmann
Robert Lehmann lehman...@gmail.com added the comment: Your proposal seems two-fold: (a) make map/filter lazy and (b) have them as methods instead of functions. It seems Tim borrowed Guido's time machine and already implemented (a) in Python 3.x, see

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: s7v7nislands: you cannot use Xcode-select to fix this, xcode-select is used to switch between 2 or more installed versions of Xcode. -- nosy: +ronaldoussoren ___ Python tracker

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The issue is more annoying than the change of location of the SDK, the path to the compiler has also changed unless users manually install the Unix command-line tools, either using a button in the GUI or by installing a separate DMG.

[issue14962] When changing IDLE configuration all text in shell window loses highlighting

2012-05-30 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14962 ___ ___ Python-bugs-list

[issue14961] map() and filter() methods for iterators

2012-05-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As Robert noted, the map() and filter() builtins in Python 3 are already lazy and there's no reason to expand the iterator protocol for this functionality. Map and filter also have dedicated syntax in the form of comprehensions and generator

[issue14963] Use an iterative implementation for contextlib.ExitStack.__exit__

2012-05-30 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: The current implementation of contextlib.ExitStack [1] actually creates a nested series of frames when unwinding the callback stack in an effort to ensure exceptions are chained correctly, just as they would be if using nested with

[issue14690] Use monotonic time for sched, trace and subprocess modules

2012-05-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1345cf58738d by Victor Stinner in branch 'default': Close #14690: Use monotonic clock instead of system clock in the sched, http://hg.python.org/cpython/rev/1345cf58738d -- nosy: +python-dev resolution: -

[issue14428] Implementation of the PEP 418

2012-05-30 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: It really looks like seconds to me, definitely not jiffies ;-) time.process_time() uses maybe seconds on Linux, but it doesn't include time elapsed during sleep. See the test: def test_process_time(self): start =

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2012-05-30 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652 ___ ___ Python-bugs-list

[issue14796] Calendar module test coverage improved

2012-05-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d3321c010af5 by R David Murray in branch 'default': #14796: fix failure of new calendar test on windows. http://hg.python.org/cpython/rev/d3321c010af5 -- ___ Python

[issue14947] Missing cross reference in types.new_class documentation

2012-05-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a5e621c8dd44 by Nick Coghlan in branch 'default': Close #14947: add missing cross-reference to Language Definition from the new dynamic type creation functions. Also cleaned up the general wording of the docs

[issue14796] Calendar module test coverage improved

2012-05-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The buildbots seem happy. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___

[issue14948] setup.cfg - rename home_page to homepage

2012-05-30 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: 1. Why not to add aliases? 2. Why not to postpone it to 3.4? 3. Why PEP change is a heavy process? Can we lighten it? (where is the description is PEP change process at all) -- status: closed - pending

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-30 Thread David Beck
David Beck db...@ualberta.ca added the comment: After playing around with this a bit more, I've found that if the Scrollbars on the different tabs are not aligned (that is, they don't occupy the same EW position in the frame) the effect disappears. I thought that might mean that the last

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree with Ned that this is a bug in Tk, especially because the problem goes away with small changes to the layout of the UI. -- status: open - pending ___ Python tracker

[issue6721] Locks in python standard library should be sanitized on fork

2012-05-30 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Is there any particular reason not to merge Charles-François's reinit_locks.diff? Reinitialising all locks to unlocked after a fork seems the only sane option. I agree with this. I haven't looked at the patch very closely. I

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I've been working on this and it does need to be thoroughly fixed. There are two different aspects to it: (1) being able to build Python using any of the supported development environment options; and (2) support in Distutils and packaging to build

[issue14948] setup.cfg - rename home_page to homepage

2012-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t believe aliases would help, on the contrary. There already are a good number of fields to remember. Anyway I expect people to use “pysetup create” or copy-pasting, so the spelling is not important: nobody will really have to remember

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I fully agree with site.py/os.py/spam.py but I find it offtopic for this Issue. I don’t understand this message :) There is nothing to agree with or judge on or off-topic; I was trying to understand the root of the bug and really asking you

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Jan Kratochvil
Jan Kratochvil jan.kratoch...@redhat.com added the comment: While it should be documented this is not only a docs issue. It should be solved in some way during runtime. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14956

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-30 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: If you directly import __init__ then it would just be a module within the package (the magic of packages should stay with the implicit interpretation of __init__). -- ___ Python tracker

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No it shouldn't. As mentioned in the Fedora thread you linked, this is no different than the user setting LD_LIBRARY_PATH to something that screws up a system installed program. -- ___

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: One small test that I think is missing is a test that sys.implementation.version and sys.implementation.hexversion are equal (modulo format differences). -- ___ Python tracker

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-05-30 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 20b8f0ee3d64 by Eli Bendersky in branch 'default': Issue #14007: implemented the 'element_factory' feature of TreeBuilder in http://hg.python.org/cpython/rev/20b8f0ee3d64 --

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: What I'd prefer to look for the compiler: * in distutils: if $CC is an absolute path and exists, use that * look for clang on $PATH, use it if found (default configure looks for GCC in preference of other compilers, but with

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I'm not a fan of using a module, and less of a fan of structseq, so I think I'll discount those two. I'll play with namespace and type next. -- ___ Python tracker rep...@bugs.python.org

[issue14962] When changing IDLE configuration all text in shell window loses highlighting

2012-05-30 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- nosy: +serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14962 ___ ___ Python-bugs-list mailing

[issue14938] 'import my_pkg.__init__' creates duplicate modules

2012-05-30 Thread Ronan Lamy
Ronan Lamy ronan.l...@gmail.com added the comment: Reverting to the previous behaviour, then? OK. As I understand it, the issue comes from a DRY violation: both FileFinder.find_loader() and _LoaderBasics.is_package() have their own notion of what is a package and they disagree. Since the

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I'm inclined to go with the as_simple_namespace patch. As you say, the pro are that this is a much better fit for this use case, while the con is that this does kind of sneak in a new type. Given that the type is not exposed in the API,

[issue10053] Don’t close fd when FileIO.__init__ fails

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10053 ___ ___ Python-bugs-list

[issue14955] hmac.secure_compare() is not time-independent for unicode strings

2012-05-30 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I'm not sure that encoding to UTF-8 is time indenpendant. You may try UTF-32-LE or unicode-internal? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue14952] Cannot run regrtest with amd64/debug on windows

2012-05-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This should block beta1. -- nosy: +georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14952 ___

[issue14909] Fix incorrect use of *Realloc() and *Resize()

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14909 ___ ___ Python-bugs-list

[issue14810] tarfile does not support timestamp older 1970-01-01

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Bug in tarfile - tarfile does not support timestamp older 1970-01-01 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14810 ___

[issue14909] Fix incorrect use of *Realloc() and *Resize()

2012-05-30 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Since this is a trivial patch I'm going to go ahead and apply it. I was just waiting for the ability to run the full test suite in 64 bits, but that is currently broken due to some other issues. --

[issue14673] add sys.implementation

2012-05-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: History with dictproxy means I'm also OK with new type by stealth. Perhaps add some tests to check type(sys.implementation)() does something sane? -- ___ Python tracker rep...@bugs.python.org

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: If we don't expose the mechanism behind -E to embedding applications via the C API, then a non-docs change may be needed. However, writing (or at least trying to write) the relevant docs is a good way to check whether or not that is the case.

[issue14904] test_unicode_repr_oflw (in test_bigmem) crashes

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14904 ___ ___ Python-bugs-list

[issue14942] add PyType_New()

2012-05-30 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14942 ___ ___ Python-bugs-list mailing

[issue3871] cross and native build of python for mingw32 with packaging

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly mingw.andr...@gmail.com: Added file: http://bugs.python.org/file25761/python-py3k-20120318-MINGW-330a2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

[issue3754] cross-compilation support for python build

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly mingw.andr...@gmail.com: Added file: http://bugs.python.org/file25762/python-py3k-20120318-CROSS-330a2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___

[issue14963] Use an iterative implementation for contextlib.ExitStack.__exit__

2012-05-30 Thread alon horev
alon horev alo...@gmail.com added the comment: The iterative approach turned out elegant and concise. It actually now resembeles the implementation of nested's __exit__. -- keywords: +patch nosy: +alonho Added file: http://bugs.python.org/file25763/14963.patch

[issue3754] cross-compilation support for python build

2012-05-30 Thread Ray Donnelly
Ray Donnelly mingw.andr...@gmail.com added the comment: Hi Roumen, Many thanks for your patches, I've been using a 2.7.1 version of your patches for Python integration with GDB (pretty-printing) of my own version of the Android NDK for ages now (part of the Necessitas Qt project) and I really

[issue3871] cross and native build of python for mingw32 with packaging

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly mingw.andr...@gmail.com: Added file: http://bugs.python.org/file25764/python-py3k-20120318-MINGW-330a2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

[issue3871] cross and native build of python for mingw32 with packaging

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly mingw.andr...@gmail.com: Removed file: http://bugs.python.org/file25764/python-py3k-20120318-MINGW-330a2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

[issue3871] cross and native build of python for mingw32 with packaging

2012-05-30 Thread Ray Donnelly
Ray Donnelly mingw.andr...@gmail.com added the comment: Although mainly focussed on MinGW, I've begun adding Darwin cross support. I've also built Darwin cross compilers. The latest Linux version can be found at:

[issue14964] distutils2.utils.resolve_name cleanup

2012-05-30 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt ronny.pfannschm...@gmail.com: this patch simplifies and cleans up the resolve_name function -- assignee: eric.araujo components: Distutils2 files: resolve_name.patch keywords: patch messages: 161974 nosy: Ronny.Pfannschmidt, alexis, eric.araujo,

[issue14964] distutils2.utils.resolve_name cleanup

2012-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks! I would love to get your review on #12703 (not sure if this bug is a duplicate or an unrelated cleanup). -- stage: - patch review versions: +3rd party, Python 3.3 ___ Python tracker

[issue3871] cross and native build of python for mingw32 with packaging

2012-05-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for your work Ray, but as your patch adds a feature to distutils it cannot be accepted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue3871] cross and native build of python for mingw32 with packaging

2012-05-30 Thread Ray Donnelly
Ray Donnelly mingw.andr...@gmail.com added the comment: Hi Éric, Do you mean this bit?: diff -urN a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py --- a/Lib/distutils/cygwinccompiler.py 2012-05-30 07:33:00.234438631 +0100 +++ b/Lib/distutils/cygwinccompiler.py 2012-05-30

[issue14963] Use an iterative implementation for contextlib.ExitStack.__exit__

2012-05-30 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Sorry, I wasn't clear on what I meant by chained correctly, and that's the part that makes this trickier than the way contextlib.nested did it. I'm referring to the __context__ attribute on exceptions that is set automatically when an

[issue7897] Support parametrized tests in unittest

2012-05-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: People interested in this issue might be interested in changeset e6a33938b03f. I use parameterized unit tests in email a lot, and was annoyed by the fact that I couldn't run the tests individually using the unittest CLI. The fix for

[issue14965] super() and property inheritance behavior

2012-05-30 Thread 猫 黒
New submission from 猫 黒 cyberdup...@gmail.com: super() objects allow access to inherited properties fget() but not fset() or fdel(), resulting in unexpected behavior. Today on pydev thread 'Property inheritance in Python' GvR said I don't see the need for a Python-Ideas detour. It seems worth

[issue14965] super() and property inheritance behavior

2012-05-30 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14965 ___ ___ Python-bugs-list mailing