[issue19499] import this is cached in sys.modules

2013-11-05 Thread Georg Brandl
Georg Brandl added the comment: Whatever we decide to do here, it **must** also be done for antigravity.py. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19499 ___

[issue19502] Wrong time zone offset, when using time.strftime() with a given struct_time

2013-11-05 Thread Paweł Wroniszewski
New submission from Paweł Wroniszewski: I encountered the problem in logging module, but it is broader then that. Have a look at the following code: import time DATE_FORMAT = '%d/%b/%Y %H:%M:%S%z %Z' print(time.strftime(DATE_FORMAT)) print(time.strftime(DATE_FORMAT,time.localtime()))

[issue18345] logging: file creation options with FileHandler and friends

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5636366db039 by Vinay Sajip in branch '3.3': Issue #18345: Added cookbook example illustrating handler customisation. http://hg.python.org/cpython/rev/5636366db039 New changeset 388cc713ad33 by Vinay Sajip in branch 'default': Closes #18345: Merged

[issue18345] logging: file creation options with FileHandler and friends

2013-11-05 Thread Vinay Sajip
Vinay Sajip added the comment: When the online docs update, the cookbook entry should appear at http://docs.python.org/dev/howto/logging-cookbook.html#customising-handlers-with-dictconfig -- ___ Python tracker rep...@bugs.python.org

[issue2889] curses for windows (alternative patch)

2013-11-05 Thread Christoph Baumgartner
Changes by Christoph Baumgartner hydrotox...@gmail.com: -- nosy: +christoph.baumgartner ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___ ___

[issue19501] Buildbot testing of 3.2 broken

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

[issue19475] Add microsecond flag to datetime isoformat()

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

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc8f19b4b662 by Ned Deily in branch '2.7': Issue #15663: Revert OS X installer built-in Tcl/Tk support for 2.7.6. http://hg.python.org/cpython/rev/fc8f19b4b662 New changeset 268dc81c2527 by Ned Deily in branch '3.3': Issue #15663: Revert OS X

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2013-11-05 Thread Ned Deily
Ned Deily added the comment: Due to incompatibilities with some key third-party projects as documented in Issue 19490 and the urgency of getting new maintenance releases out, the best course of action is to revert built-in Tcl/Tk support for 3.3.3 and 2.7.6. With the knowledge gained, I will

[issue19490] Problem installing matplotlib 1.3.1 with Python 2.7.6rc1 and 3.3.3rc1

2013-11-05 Thread Ned Deily
Ned Deily added the comment: After further investigation and deliberation, I believe that we need to revert the built-in Tcl/Tk from the OS X installers for 2.7.6 and 3.3.3. The contributing factors: 1. As implemented, we now know that the built-in Tcl/Tk breaks source installs and/or

[issue19503] does gc_list_merge merge properly?

2013-11-05 Thread martenjan
New submission from martenjan: The code for gc_list_merge is given in gcmodule.c. I retrieved it from http://hg.python.org/cpython/file/tip/Modules/gcmodule.c#l287 The code seems to merge list `from` incompletely: the first entry of `from` is omitted in the merged list. The issue is in line

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2013-11-05 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't think you can provide a solution that's compatible with existing 3th-party extensions that use Tk and includes a private copy of Tcl/Tk. IMHO the best solution would be to provide the Tcl/Tk headers in the Python framework as well, to make it

[issue19347] PEP 453 implementation tracking issue

2013-11-05 Thread Bohuslav Slavek Kabrda
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com: -- nosy: +bkabrda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19347 ___ ___

[issue10197] subprocess.getoutput fails on win32

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0aa2aedc6a21 by Tim Golden in branch 'default': Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring. http://hg.python.org/cpython/rev/0aa2aedc6a21 --

[issue19503] does gc_list_merge merge properly?

2013-11-05 Thread Mark Dickinson
Mark Dickinson added the comment: The current code is correct. Note that `from` is the list header, and is not attached to a gc-tracked object. We want to splice the last non-header element of `to` (`to-gc.gc_prev`) to the first non-header element of `from` (`from-gc.gc_next`). Did you try

[issue19504] Change customise to customize.

2013-11-05 Thread Eric V. Smith
New submission from Eric V. Smith: The python source code usually uses customiz* (341 instances) over customis* (19 instance, 8 of which are in logging). I realize foolish consistency, and all that, but I think the documentation should all use the same conventions. I'd be happy to change the

[issue17828] More informative error handling when encoding and decoding

2013-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: New and improved implementation attached that extracts the exception chaining to a helper functions and calls it only when it is the call in to the codecs machinery that failed (eliminating the need for the output flag, and covering decoding as well as

[issue17828] More informative error handling when encoding and decoding

2013-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: Checking the other binary-binary and str-str codecs with input type and value restrictions: - they all throw TypeError and get wrapped appropriately when asked to encode str input (rot_13 throws the output type error) - rot_13 throws an appropriately wrapped

[issue19499] import this is cached in sys.modules

2013-11-05 Thread R. David Murray
R. David Murray added the comment: It seems to me that having import this work more than once would teach a beginner the *wrong* lesson about how python import works. So I agree that it should be a teaching moment, not a bug to be fixed. -- nosy: +r.david.murray

[issue19502] Wrong time zone offset, when using time.strftime() with a given struct_time

2013-11-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +belopolsky, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19502 ___ ___

[issue15216] Support setting the encoding on a text stream after creation

2013-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: It would be good to have this addressed in Python 3.4 (I'm following up on a few other encoding related issues at the moment). Is that a reasonable possibility before beta 1, or do we need to bump this one to 3.5? --

[issue17828] More informative error handling when encoding and decoding

2013-11-05 Thread Nick Coghlan
Nick Coghlan added the comment: Updated patch adds systematic tests for the new error handling to test_codecs.TransformTests I also moved the codecs changes up to a Codec handling improvements section. My rationale for doing that is that this is actually a pretty significant usability

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba31940588b6 by Ned Deily in branch '2.7': Issue #15663: Revert OS X installer built-in Tcl/Tk support for 2.7.6. http://hg.python.org/cpython/rev/ba31940588b6 -- ___ Python tracker

[issue19502] Wrong time zone offset, when using time.strftime() with a given struct_time

2013-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I cannot reproduce this and I suspect that the problem shows up only in certain times. I believe this is related to the long-standing issue that was fixed in 3.3. See issue 1667546. In Python prior to 3.3, time_struct did not store timezone

[issue19503] does gc_list_merge merge properly?

2013-11-05 Thread martenjan
martenjan added the comment: Thanks for your explanation -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19503 ___ ___ Python-bugs-list mailing

[issue19502] Wrong time zone offset, when using time.strftime() with a given struct_time

2013-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The documentation for time.strftime(format[, t]) reads: If t is not provided, the current time as returned by localtime() is used but apparently there must be something extra going on under the hood. Yes, the C implementation uses tm_zone and tm_gmtoff

[issue19475] Add microsecond flag to datetime isoformat()

2013-11-05 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19475 ___ ___

[issue19475] Add microsecond flag to datetime isoformat()

2013-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +1 on adding an option to isoformat(). We already have an optional sep argument, so the symmetry with __str__ is not complete. To make this option more useful, rather than implementing always_emit_microseconds=False flag, I would add a keyword

[issue19505] OrderedDict views don't implement __reversed__

2013-11-05 Thread ThiefMaster
New submission from ThiefMaster: The view objects for `collections.OrderedDict` do not implement `__reversed__` so something like this fails: from collections import OrderedDict od = OrderedDict() reversed(od.viewvalues()) Traceback (most recent call last): File stdin,

[issue19499] import this is cached in sys.modules

2013-11-05 Thread Mark Lawrence
Mark Lawrence added the comment: If it ain't broke don't fix it. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19499 ___ ___

[issue15216] Support setting the encoding on a text stream after creation

2013-11-05 Thread STINNER Victor
STINNER Victor added the comment: Is that a reasonable possibility before beta 1, or do we need to bump this one to 3.5? My patch was not reviewed yet and must be reimplemented in C. I will not have time before the beta1 to finish the work. --

[issue19504] Change customise to customize.

2013-11-05 Thread Cameron Allan
Cameron Allan added the comment: Done using Notepad++ and regex as needed. Also changed file name appropriately. -- nosy: +c3n9 Added file: http://bugs.python.org/file32510/customize.diff ___ Python tracker rep...@bugs.python.org

[issue19437] More failures found by pyfailmalloc

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset b93614f7ed83 by Victor Stinner in branch 'default': Issue #19437: Fix pysqlite_cursor_iternext() of sqlite3, handle http://hg.python.org/cpython/rev/b93614f7ed83 New changeset 00ee08fac522 by Victor Stinner in branch 'default': Issue #19437: Fix

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2013-11-05 Thread Claudiu.Popa
Changes by Claudiu.Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745 ___ ___ Python-bugs-list

[issue19504] Change customise to customize.

2013-11-05 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Not a foolish consistency; Guido ruled long ago that American spellings should be used. -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19504

[issue19499] import this is cached in sys.modules

2013-11-05 Thread Eric Snow
Eric Snow added the comment: +0 to just doing a reload. At the point you show someone import this, it may be premature to be explaining reloading to them. Python is great because you usually don't have to hand-wave through some concepts in order to explain others. [1] Also, under Python 3

[issue19085] Add tkinter basic options tests

2013-11-05 Thread Zachary Ware
Zachary Ware added the comment: Looks like the last commit broke 8.5.15 on Windows; in particular, on line 25 of widget_tests.py, int_round doesn't exist. Replacing 'int_round' with 'round' allows most tests to pass, but I still get these two failures:

[issue19499] import this is cached in sys.modules

2013-11-05 Thread Georg Brandl
Georg Brandl added the comment: IMO the fact that importing happens only once is also a very important one, so much the better this helps in learning it early. The bad thing is that opening this.py to see what's happening will not really enlighten the beginner :) --

[issue19085] Add tkinter basic options tests

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5d0356ba5ac by Serhiy Storchaka in branch '3.3': Fix typo in tkinter tests (issue #19085). http://hg.python.org/cpython/rev/d5d0356ba5ac New changeset fc4ef17c7db8 by Serhiy Storchaka in branch 'default': Fix typo in tkinter tests (issue #19085).

[issue19085] Add tkinter basic options tests

2013-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zachary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19085 ___ ___ Python-bugs-list mailing

[issue19085] Add tkinter basic options tests

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb126f976fa2 by Serhiy Storchaka in branch '2.7': Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel = 8.5.12 (issue #19085). http://hg.python.org/cpython/rev/eb126f976fa2 New changeset 21fbe3ec90dc by Serhiy Storchaka in branch '3.3':

[issue19085] Add tkinter basic options tests

2013-11-05 Thread Zachary Ware
Zachary Ware added the comment: Working from ce08158e3f6c with 8.5.15 on Windows, I get the same failures with a different AssertionError: == FAIL: test_insertwidth (tkinter.test.test_tkinter.test_widgets.EntryTest)

[issue18923] Use the new selectors module in the subprocess module

2013-11-05 Thread Charles-François Natali
Charles-François Natali added the comment: Here's an updated patch with a better logic: in the previous version - based on current poll-based implementation, the FD was inferred from the event (i.e. read ready - stdout/stderr, write ready - stderr). The new version directly checks the ready

[issue19085] Add tkinter basic options tests

2013-11-05 Thread Zachary Ware
Zachary Ware added the comment: FTR, both 8.5.11 and 8.6.1 pass all tests on Windows from ce08158e3f6c (with unrelated modifications required to build and use 8.6.1). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19085

[issue19085] Add tkinter basic options tests

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset c97600bdd726 by Serhiy Storchaka in branch '2.7': Revert wrong change in previous commit (issue #19085). http://hg.python.org/cpython/rev/c97600bdd726 New changeset bec6df56c053 by Serhiy Storchaka in branch '3.3': Revert wrong change in previous

[issue19085] Add tkinter basic options tests

2013-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My fault. I missed that here is simple checkParam() instead of checkPixelsParam(). Thank you Zachary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19085

[issue19475] Add microsecond flag to datetime isoformat()

2013-11-05 Thread Andrei Dorian Duma
Andrei Dorian Duma added the comment: I would like to implement this feature. I already wrote the Python part. Is there anything else to decide? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19475

[issue19475] Add microsecond flag to datetime isoformat()

2013-11-05 Thread STINNER Victor
STINNER Victor added the comment: 2013/11/5 Alexander Belopolsky rep...@bugs.python.org: +1 on adding an option to isoformat(). We already have an optional sep argument, so the symmetry with __str__ is not complete. To make this option more useful, rather than implementing

[issue19506] subprocess.communicate() should use a memoryview

2013-11-05 Thread STINNER Victor
New submission from STINNER Victor: The following code copies data, whereas the copy can be avoided using a memory view: chunk = self._input[self._input_offset:self._input_offset + _PIPE_BUF] self._input_offset += os.write(key.fd, chunk) It should be replaced with: input_view =

[issue19506] subprocess.communicate() should use a memoryview

2013-11-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19506 ___ ___

[issue18923] Use the new selectors module in the subprocess module

2013-11-05 Thread STINNER Victor
STINNER Victor added the comment: subprocess_selectors-3.diff looks good to me (this patch does not remove any test :-)) I created the issue #19506 for the memoryview optimization. -- ___ Python tracker rep...@bugs.python.org

[issue19505] OrderedDict views don't implement __reversed__

2013-11-05 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19505 ___

[issue19505] OrderedDict views don't implement __reversed__

2013-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka, stutzbach versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19505

[issue15411] os.chmod() does not follow symlinks on Windows

2013-11-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15411 ___

[issue9949] os.path.realpath on Windows does not follow symbolic links

2013-11-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware stage: needs patch - patch review versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9949 ___

[issue19475] Add microsecond flag to datetime isoformat()

2013-11-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +1 on all Victor's points. I like 'resolution' because this is the term that datetime module uses already: from datetime import * datetime.resolution datetime.timedelta(0, 0, 1) There is a slight chance of confusion stemming from the fact that

[issue19475] Add microsecond flag to datetime isoformat()

2013-11-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.11.2013 21:31, STINNER Victor wrote: 2013/11/5 Alexander Belopolsky rep...@bugs.python.org: +1 on adding an option to isoformat(). We already have an optional sep argument, so the symmetry with __str__ is not complete. To make this option

[issue19507] ssl.wrap_socket() with server_hostname should imply match_hostname()

2013-11-05 Thread Christian Heimes
New submission from Christian Heimes: I find it surprising that wrap_socket() doesn't verify the server name with match_hostname() when it is called with a server_name argument. The check should be done by default. I suggest: - add validate_hostname=True flag to wrap_socket() and functions

[issue19508] Add warning that Python doesn't verify SSL certs by default

2013-11-05 Thread Christian Heimes
New submission from Christian Heimes: Developers are still surprised that Python's ssl library doesn't validate SSL certs by default. We should add a *big* warning to the SSL module as well as to all consumers (http, ftp, imap, pop, smtp, nntp ...) that neither the CA cert chain nor the

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-05 Thread Christian Heimes
New submission from Christian Heimes: None of the TLS/SSL classes for ftp, imap, nntp, pop and smtp have support for match_hostname() in order to verify that the SSL cert matches the host name. I'm not sure how we can handle the problem without creating backwards incompatibilities.

[issue19505] OrderedDict views don't implement __reversed__

2013-11-05 Thread Eric Snow
Eric Snow added the comment: The view objects aren't sequences. od.items() and od.keys() implement Set. od.values() doesn't even do that much, only implementing __len__(), __iter__(), and __contains__(). The glossary implies that you should use reversed(list(view)). [1] More information

[issue19510] lib2to3.fixes.fix_import gets confused if implicit relative imports and absolute imports are on the same line

2013-11-05 Thread Augie Fackler
New submission from Augie Fackler: While tinkering (again) with Mercurial Python 3 messes, I ran across this gem: import error, osutil, encoding, collections (http://selenic.com/hg/file/e1317d3e59e1/mercurial/util.py#l17) That import statement contains 3 relative imports (that is,

[issue19497] selectors and modify()

2013-11-05 Thread Arnaud Faure
Arnaud Faure added the comment: Corrected and cleaned -- Added file: http://bugs.python.org/file32512/modify_data_use_a_shortcut.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19497 ___

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-11-05 Thread Chris Cooper
Chris Cooper added the comment: Here's a patch that focuses on the json module, with a smaller pickle section including the warning from the pickle docs. -- nosy: +ChrisCooper Added file: http://bugs.python.org/file32513/issue18840 ___ Python

[issue19490] Problem installing matplotlib 1.3.1 with Python 2.7.6rc1 and 3.3.3rc1

2013-11-05 Thread Piet van Oostrum
Piet van Oostrum added the comment: I think future versions of Python should add the relevant information about how they are linked to Tcl/Tk in sysconfig. This would include the path of the include files, the shared libraries and the tcl files. Or a framework location on OS X if this is

[issue19490] Problem installing matplotlib 1.3.1 with Python 2.7.6rc1 and 3.3.3rc1

2013-11-05 Thread Ned Deily
Ned Deily added the comment: Piet, yes, I've been thinking of how to do that. Unfortunately, it can only be a hint since, in the case of an installer Python, there is no guarantee that the header files on the build machine are available on the installed machine in the same location or even

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-11-05 Thread Jason Myers
Jason Myers added the comment: This is a patch based on terry.reedy 's suggestion -- keywords: +patch nosy: +Jason.Myers Added file: http://bugs.python.org/file32514/docstring.patch ___ Python tracker rep...@bugs.python.org

[issue19439] Build _testembed on Windows

2013-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99640494ca7f by Zachary Ware in branch 'default': #19439: Update PCbuild/readme.txt with new sub-project http://hg.python.org/cpython/rev/99640494ca7f -- ___ Python tracker rep...@bugs.python.org