[issue14960] about the slowly HTTPServer

2012-05-30 Thread Charles-François Natali
Charles-François Natali 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 lag

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

2012-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-05-30 Thread Serhiy Storchaka
Serhiy Storchaka 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: self._out.write(text.encode(se

[issue14796] Calendar module test coverage improved

2012-05-30 Thread STINNER Victor
STINNER Victor 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 test_yeardatescalendar(self): +def shr

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

2012-05-30 Thread Vladimir Berkutov
New submission from Vladimir Berkutov : 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. # proposed methods usage:

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

2012-05-30 Thread Ramchandra Apte
New submission from Ramchandra Apte : 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: IDLE messages: 161936

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

2012-05-30 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- 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 added the comment: Sorry, small mistake. Actually all the other Python 2.x releases are in security-fix mode. -- ___ Python tracker ___ _

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

2012-05-30 Thread Ramchandra Apte
Ramchandra Apte 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 is not possible because

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

2012-05-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: Sorry, To clarify: Python 2.7 is in bug-fix mode which means only minor enhancements are allowed. -- ___ Python tracker ___ __

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

2012-05-30 Thread Robert Lehmann
Robert Lehmann 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 http://docs.python.org/py3k/library/functions.html#map and htt

[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 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 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. There seem to be two op

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

2012-05-30 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- nosy: +kbk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2012-05-30 Thread Nick Coghlan
Nick Coghlan 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 expressions: i

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

2012-05-30 Thread Nick Coghlan
New submission from Nick Coghlan : 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 statements. It would be ni

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

2012-05-30 Thread Roundup Robot
Roundup Robot 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: -> fixed stage: -> committed/reject

[issue14428] Implementation of the PEP 418

2012-05-30 Thread STINNER Victor
STINNER Victor 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 = time.process_time() ti

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

2012-05-30 Thread Matt Joiner
Changes by Matt Joiner : -- nosy: +anacrolix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14796] Calendar module test coverage improved

2012-05-30 Thread Roundup Robot
Roundup Robot 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 tracker

[issue14947] Missing cross reference in types.new_class documentation

2012-05-30 Thread Roundup Robot
Roundup Robot 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 http://hg.python.org/cpython/rev/a5e621

[issue14796] Calendar module test coverage improved

2012-05-30 Thread R. David Murray
R. David Murray added the comment: The buildbots seem happy. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue14948] setup.cfg - rename home_page to homepage

2012-05-30 Thread anatoly techtonik
anatoly techtonik 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 ___ Pytho

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-30 Thread David Beck
David Beck 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 Scrollbar "persists" w

[issue14959] ttk.Scrollbar in Notebook widget freezes

2012-05-30 Thread Ronald Oussoren
Ronald Oussoren 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 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 think

[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 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 extension modu

[issue14948] setup.cfg - rename home_page to homepage

2012-05-30 Thread Éric Araujo
Éric Araujo 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 it. I have no per

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Éric Araujo
Éric Araujo 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 in good faith t

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Jan Kratochvil
Jan Kratochvil 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 ___ __

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

2012-05-30 Thread Brett Cannon
Brett Cannon 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 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. -- ___ Python tracker

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw 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 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 -- ___ 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 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 Apple's toolchain it is be

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw 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 _

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

2012-05-30 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

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

2012-05-30 Thread Ronan Lamy
Ronan Lamy 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 finder needs to know what

[issue14673] add sys.implementation

2012-05-30 Thread Barry A. Warsaw
Barry A. Warsaw 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, that doesn't bother

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

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2012-05-30 Thread STINNER Victor
STINNER Victor 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 ___ __

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

2012-05-30 Thread Georg Brandl
Georg Brandl added the comment: This should block beta1. -- nosy: +georg.brandl priority: normal -> release blocker ___ Python tracker ___ __

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

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2012-05-30 Thread STINNER Victor
Changes by STINNER Victor : -- title: Bug in tarfile -> tarfile does not support timestamp older 1970-01-01 ___ Python tracker ___ ___

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

2012-05-30 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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. -- ___ Pyt

[issue14673] add sys.implementation

2012-05-30 Thread Nick Coghlan
Nick Coghlan 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

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Nick Coghlan
Nick Coghlan 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 : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14942] add PyType_New()

2012-05-30 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly : Added file: http://bugs.python.org/file25761/python-py3k-20120318-MINGW-330a2.patch ___ Python tracker ___ ___ Pytho

[issue3754] cross-compilation support for python build

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly : Added file: http://bugs.python.org/file25762/python-py3k-20120318-CROSS-330a2.patch ___ Python tracker ___ ___ Pytho

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

2012-05-30 Thread alon horev
alon horev 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 ___ Py

[issue3754] cross-compilation support for python build

2012-05-30 Thread Ray Donnelly
Ray Donnelly 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 appreciate your effort

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

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly : Added file: http://bugs.python.org/file25764/python-py3k-20120318-MINGW-330a2.patch ___ Python tracker ___ ___ Pytho

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

2012-05-30 Thread Ray Donnelly
Changes by Ray Donnelly : Removed file: http://bugs.python.org/file25764/python-py3k-20120318-MINGW-330a2.patch ___ Python tracker ___ ___ Pyt

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

2012-05-30 Thread Ray Donnelly
Ray Donnelly 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: http://mingw-and-ndk.googlecode.com/files/multiarch-darwin11-cctools127.2-gcc42-5666.3-llvmgcc42-2336.1-L

[issue14964] distutils2.utils.resolve_name cleanup

2012-05-30 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt : 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, tarek priority: normal severity

[issue14964] distutils2.utils.resolve_name cleanup

2012-05-30 Thread Éric Araujo
Éric Araujo 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 added the comment: Thanks for your work Ray, but as your patch adds a feature to distutils it cannot be accepted. -- ___ Python tracker ___ _

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

2012-05-30 Thread Ray Donnelly
Ray Donnelly 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 07:33:03.320855811 +010

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

2012-05-30 Thread Nick Coghlan
Nick Coghlan 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 exception occurs in anot

[issue7897] Support parametrized tests in unittest

2012-05-30 Thread R. David Murray
R. David Murray 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 that turned out to be t

[issue14965] super() and property inheritance behavior

2012-05-30 Thread 猫 黒
New submission from 猫 黒 : 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 fixing" >>> class Ba

[issue14965] super() and property inheritance behavior

2012-05-30 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue14673] add sys.implementation

2012-05-30 Thread Eric Snow
Eric Snow added the comment: Thanks for taking the time for the review, Barry. Again, sorry I broke the review link. It shouldn't be a problem any more. > Barry A. Warsaw added the comment: > > I'm inclined to go with the as_simple_namespace patch.  As you say, > the pro are that this is a

[issue14673] add sys.implementation

2012-05-30 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file25768/issue14673_docs_and_tests_2.diff ___ Python tracker ___ ___ Python-bugs-li

[issue14673] add sys.implementation

2012-05-30 Thread Eric Snow
Eric Snow 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? Test added. Here's what happens: >>> cls = type(sys.implementation) >>> cls() namespace() >>> cls(x

[issue14673] add sys.implementation

2012-05-30 Thread Eric Snow
Eric Snow added the comment: @Barry: FWIW, the kwds passed to namespace_init was NULL when no keyword arguments were used. Easy enough to handle though. -- ___ Python tracker

[issue14966] Fully document subprocess.CalledProcessError

2012-05-30 Thread Nick Coghlan
New submission from Nick Coghlan : CalledProcessError provides a nice encapsulation for a returncode, the original command and any partial output. The API should be officially documented so that third party subprocess.Popen convenience wrappers can use it easily. -- assignee: docs@pyth