[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

<    1   2