[issue19906] Typo in urllib documentation

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ac7551986ba by Ezio Melotti in branch '2.7': #19906: clarify note in urllib docs. http://hg.python.org/cpython/rev/2ac7551986ba -- nosy: +python-dev ___ Python tracker

[issue19906] Typo in urllib documentation

2014-02-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the initial patch! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue19871] json module won't parse a float that starts with a decimal point

2014-02-10 Thread Ezio Melotti
Ezio Melotti added the comment: I missed this comment from Serhiy: > There are too many cases where json and Python syntax differ. How many differences there are between the two? I think we might add notes to the table at http://docs.python.org/3/library/json.html#encoders-and-decoders (either

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2014-02-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch versions: +Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ _

[issue9694] argparse required arguments displayed under "optional arguments"

2014-02-10 Thread Martin Panter
Martin Panter added the comment: A new “required arguments” section seems too arbitrary to me. It would clash with the “positional arguments” heading, since those are also required by default. I would go with the heading “options”, as a noun. That term seems to be well used, at least on Linux

[issue12296] Minor clarification in devguide

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ce6bfb27267 by Ezio Melotti in branch 'default': #12296: clarify paragraph about backward-compatibility. Patch by Moritz Neeb, Jyrki Pulliainen, and Éric Araujo. http://hg.python.org/devguide/rev/4ce6bfb27267 -- nosy: +python-dev ___

[issue12296] Minor clarification in devguide

2014-02-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patches! -- assignee: eric.araujo -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -3rd party ___ Python tracker

[issue18234] Unicodedata module should provide access to codepoint aliases

2014-02-10 Thread Ezio Melotti
Ezio Melotti added the comment: See also #20433. -- stage: -> needs patch versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ __

[issue20433] add aliasedname() and namedaliases() methods to unicodedata module

2014-02-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue20351] Add doc examples for DictReader and DictWriter

2014-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19871] json module won't parse a float that starts with a decimal point

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My point is that Python and JSON are two different languages which have different syntaxes. JSON is not Python and Python is not JSON. We can't enumerate all differences unless to cite Python [1] and JSON [2] specifications. For differences from JSON specifi

[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2014-02-10 Thread Martin Panter
Martin Panter added the comment: The server in question is sending a chunked response, but seems to be closing the connection when it is done, without sending a zero-length chunk (which I understand it is meant to according to the HTTP protocol). My Firefox shows the XML without any indication

[issue19974] tarfile doesn't overwrite symlink by directory

2014-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20517] Support errors with two filenames for errno exceptions

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: Why did you add so many versions of the same functions? Only PyErr_SetExcFromWindowsErrWithFilenameObjects() and PyErr_SetFromErrnoWithFilenameObjects() are used. The Py_UNICODE type is deprecated, you should not add new functions using it in Python 3.4. +Py

[issue20579] OS X IDLE keyboard accelerators fail or misbehave with Cocoa Tk

2014-02-10 Thread Ned Deily
New submission from Ned Deily: On OS X, most of the IDLE command keyboard accelerators that use the OS X modifier key do not work correctly with Cocoa Tk, the current native version of Tk 8.5 and 8.6 used on OS X 10.6 and later releases (and with the 64-/32-bit OS X binary installers from pyt

[issue20580] IDLE should support platform-specific default config defaults

2014-02-10 Thread Ned Deily
New submission from Ned Deily: There is a need for IDLE to provide different default settings depending on which platform it is running, e.g. Windows, OS X, or other UNIX. That need need has been most acute for OS X where, for various reasons, tailoring of default key bindings for IDLE comman

[issue19871] json module won't parse a float that starts with a decimal point

2014-02-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, the JSONDecoder doc at the top of this section http://docs.python.org/3/library/json.html#encoders-and-decoders is unclear about decoding process and timing of application and the signature of all 5 hook functions. The timing and signature issues are rela

[issue20517] Support errors with two filenames for errno exceptions

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: The family of "PyErr_SetExcFrom..." functions was used when there were various kind of exceptions: select.error, mmap.error, OSError, IOError, socket.error, etc. The "PEP 3151: Reworking the OS and IO exception hierarchy" has been implemented in Python 3.3. I'

[issue9694] argparse required arguments displayed under "optional arguments"

2014-02-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19871] json module won't parse a float that starts with a decimal point

2014-02-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: > My point is that Python and JSON are two different languages which have > different syntaxes. That is also the point of the generic note I suggested, which explains the consequence of the difference (rejection by JSON parser before calling Python constructo

[issue17654] IDLE only customizes correctly for OS X when using framework build

2014-02-10 Thread Ned Deily
Ned Deily added the comment: Here's a patch that refactors many of the OS X customizations in IDLE based on more granular criteria, e.g. those that should apply to all Tk implementations vs those that depend on specific ones (Cocoa Tk, Carbon Tk, or X11 Tk) rather than the bogus current framew

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I have to reopen this topic again, a buildbot failed :-( Builds 10136, 10134 and 10131 failed on "failure x86 XP-4 3.x" buildbot. It's sporadic probably because the test fails sometimes depending how the timing is rounded. http://buildbot.python.org/all

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32dc137f5e26 by Victor Stinner in branch 'default': Issue #20505: Add debug info to analyze sporaric failures of http://hg.python.org/cpython/rev/32dc137f5e26 -- ___ Python tracker

[issue17654] IDLE only customizes correctly for OS X when using framework build

2014-02-10 Thread Ned Deily
Ned Deily added the comment: (Just to be clear, the Tk situation on OS X has changed substantially since the original customizations were added by Ronald. So the checks weren't bogus initially. And I've modified some of them subsequently before understanding some of the "nuances" of the vari

[issue20517] Support errors with two filenames for errno exceptions

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: "And you should avoid passing raw bytes string to build an error message, you probably has the Python object version of the filename somewhere in your code." Oh, I remember the reason why char* must not be used to build an OSError: on Windows, you should never

[issue4356] Add "key" argument to "bisect" module functions

2014-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19871] json module won't parse a float that starts with a decimal point

2014-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > - 'Simple JSON decoder.' > + 'A simple JSON decoder that splits JSON strings into JSON substrings > that represent programming objects and then converts the substrings > into Python objects.' Please let's keep the description simple. Everyone is able to unders

[issue20517] Support errors with two filenames for errno exceptions

2014-02-10 Thread Larry Hastings
Larry Hastings added the comment: Talked it over with Victor in IRC. I agree it's best to only add the WithFilenameObjects functions, as best practice requires using the original PyObject * passed in when creating the OSError. The attached patch removes all the new WithFilenames and WithUnico

[issue20517] Support errors with two filenames for errno exceptions

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: I applied larry.oserror.remove.with.filenames.etc.1.diff on default: On Windows, the code compiles fine and test_os pass. -- ___ Python tracker __

[issue20145] unittest.assert*Regex functions should verify that expected_regex has a valid type

2014-02-10 Thread Michael Foord
Michael Foord added the comment: Agreed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-10 Thread Jérémie Detrey
New submission from Jérémie Detrey: Dear all, I've been noticing a strange (and probably incorrect) behaviour of the super() function when using a metaclass in order to automatically replace a class declaration by a subclass of itself. In the attached test case, the function `wrap' is used to

[issue1243678] httplib gzip support

2014-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20517] Support errors with two filenames for errno exceptions

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6343bdbb7085 by Larry Hastings in branch 'default': Issue #20517: Removed unnecessary new (short-lived) functions from PyErr. http://hg.python.org/cpython/rev/6343bdbb7085 -- ___ Python tracker

[issue20517] Support errors with two filenames for errno exceptions

2014-02-10 Thread Larry Hastings
Larry Hastings added the comment: Buildbots are basically happy with it. It's checked in. This was the last checkin before 3.4.0rc1 was tagged! -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-10 Thread Larry Hastings
Larry Hastings added the comment: This isn't a release blocker. And it's not really viable to remove it. Since it's been in several releases, I suspect our only option is to throw a deprecation warning. And, since deprecations aren't turned on by default, maybe the best thing would be to als

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Since it's been in several releases AFAICT only 3.3. Reid, are you willing to provide a patch? -- ___ Python tracker ___

[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-10 Thread Jérémie Detrey
Changes by Jérémie Detrey : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19021] AttributeError in Popen.__del__

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which implements Richard's suggestion: _active now contains pid-s instead of Popen instances. But this doesn't fix this issue. Patches for issue19255 and issue12085 fixes it. -- Added file: http://bugs.python.org/file34021/subprocess_

[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2014-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka type: -> behavior versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ __

[issue1573931] WSGI, cgi.FieldStorage incompatibility

2014-02-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-10 Thread R. David Murray
R. David Murray added the comment: I don't think we should document it as deprecated except in What's New. But a code deprecation in 3.4 would be a good idea. -- ___ Python tracker ___

[issue19157] ipaddress.IPv6Network.hosts function omits network and broadcast addresses

2014-02-10 Thread Michiel
Michiel added the comment: Hey Peter, Cool, thanks for the feedback! Looks like my email replies didn't get attached to the bug tracker.. I've just signed the form. Regarding the .broadcast* question, I think that's probably best handled in a separate issue, but I think there are two other op

[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-10 Thread R. David Murray
R. David Murray added the comment: I don't think you can successfully use the no-argument version of super in this context. The no-argument form depends on compile-time magic, and you are mucking about with what object is what during the compilation phase. But I'm no expert on how super works

[issue20582] socket.getnameinfo() does not document flags

2014-02-10 Thread Roy Smith
New submission from Roy Smith: http://docs.python.org/2/library/socket.html The description for getnameinfo() says, "... Depending on the settings of flags, the result can contain a fully-qualified domain name or numeric address representation in host.", but does not say what to pass for flags

[issue20582] socket.getnameinfo() does not document flags

2014-02-10 Thread R. David Murray
R. David Murray added the comment: Like the other socket functions, you have to look it up in the man page. A number of the other functions that take a flag argument mention this in their description, so a similar mention should be added to the getnameinfo entry. -- nosy: +r.david.mur

[issue20572] subprocess.Popen.wait() undocumented "endtime" parameter

2014-02-10 Thread Larry Hastings
Larry Hastings added the comment: My suggestion for documenting it was to document the fact that it's unsupported, unrecommended, deprecated, has poor semantics, etc. If a user discovers it, and finds it's not documented, they'll probably think they can get away with using it. If we explicit

[issue20582] socket.getnameinfo() does not document flags

2014-02-10 Thread Roy Smith
Roy Smith added the comment: What might make sense is for all of those, document the function call as taking "native_flags" (or something like that), with a single note at the top of the page saying, "native_flags means look up the specific values in the man page" and link to that note each ti

[issue20583] Hide underscored parameters

2014-02-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Underscored parameters of functions sometimes are used for different purposes. For example see random.Random.randrange(), subprocess.Popen.__del__() or codecs.CodecInfo.__new__(). These parameters are not a part of public API and should be excluded from he

[issue20582] socket.getnameinfo() does not document flags

2014-02-10 Thread R. David Murray
R. David Murray added the comment: I thought about that, but different functions refer to different man pages, and it isn't always obvious from the function name which one. -- ___ Python tracker __

[issue20583] Hide underscored parameters

2014-02-10 Thread R. David Murray
R. David Murray added the comment: This is not universally true. Both namedtuple (for good reason) and email (for not-so-good reasons) have _ parameters that are part of the public API. -- nosy: +r.david.murray ___ Python tracker

[issue4356] Add "key" argument to "bisect" module functions

2014-02-10 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue19255] Don't "wipe" builtins at shutdown

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is backported to 3.3 patch. It includes: 1. Operates not with sys.modules['builtins'].__dict__ and sys.modules['sys'].__dict__, but with cached interp->builtins and interp->sysdict, because sys.modules['builtins'] and sys.modules['sys'] can be changed,

[issue20583] Hide underscored parameters

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: They can be explicitly mentioned in docstrings. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue19255] Don't "wipe" builtins at shutdown

2014-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not convinced this should be backported. It's always a bit risky to change interpreter shutdown, and it fixes an issue which has been well-known (and worked around) for many years. -- ___ Python tracker

[issue19255] Don't "wipe" builtins at shutdown

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a1711c96fa6 by Serhiy Storchaka in branch 'default': Issue #19255: The builtins module is restored to initial value before http://hg.python.org/cpython/rev/6a1711c96fa6 -- nosy: +python-dev ___ Python tr

[issue19255] Don't "wipe" builtins at shutdown

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that it is risky and don't insist. We can return to this patch when encounter more serious bug. Last commit breaks test_create_at_shutdown_without_encoding in test_io for Python implementation of io. This happens because Python implementation of Tex

[issue19255] Don't "wipe" builtins at shutdown

2014-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This happens because Python implementation of TextIOWrapper.__init__() > imports the locale module if encoding is not specified. Then > _find_spec() in Lib/importlib/_bootstrap.py iterates sys.meta_path, > but "meta_path" is one of names cleared in sys in PyImp

[issue19255] Don't "wipe" builtins at shutdown

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa160c8145e5 by Serhiy Storchaka in branch 'default': Temporary silence test broken by issue19255. http://hg.python.org/cpython/rev/fa160c8145e5 -- ___ Python tracker

[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 734da14489c1 by Serhiy Storchaka in branch '2.7': issue12085: Use more Pythonic way to check _child_created. http://hg.python.org/cpython/rev/734da14489c1 New changeset 79a6300f6421 by Serhiy Storchaka in branch '3.3': issue12085: Use more Pythonic

[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I excluded from patches caching of SubprocessError and OSError, because it shouldn't be an issue after committing issue19255. I also removed caching of _active because it is explicitly checked for None and it is set to None on shutdown with a purpose. -

[issue6815] UnicodeDecodeError in os.path.expandvars

2014-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-02-10 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: On FreeBSD, signal.NSIG is smaller than what the documentation promises: "One more than the number of the highest signal number". On Linux, the highest numerical signal value is smaller/equal signal.NSIG (expected behavior): >>> import signal >>> signal

[issue19856] shutil.move() can't move a directory in non-empty directory on Windows

2014-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list ma

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, I reproduced the issue on my Windows 7 after enabling HPET: == CPython 3.4.0b3+ (default:1b96d08c3895, Feb 10 2014, 18:44:24) [MSC v.1600 32 bit (Intel)] == Windows-7-6.1.7601-SP1 little-endian [1/1] test_asyncio test_timeout_rounding (test.test_asyncio.t

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: On the same Windows 7 virtual machine, but with HPET disabled, the test pass. [1/1] test_asyncio test_timeout_rounding (test.test_asyncio.test_events.ProactorEventLoopTests) ... GetQueuedCompletionStatus(2 ms)->None took 4.350 ms (monotonic: 16.000 ms) GetQueue

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 20dc8d6430eb by Victor Stinner in branch 'default': Issue #20505: Use even shorter sleep in test_timeout_rounding() to make the http://hg.python.org/cpython/rev/20dc8d6430eb -- ___ Python tracker

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: Here is clock_resolution.patch: reintroduce the old "granularity" but only use the resolution of the clock (expect the selector to round away from zero). clock_resolution.patch fixes test_timeout_rounding() on my Windows 7 with HPET enabled, even with my more

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread Guido van Rossum
Guido van Rossum added the comment: How do you know that the timer used by the select/poll/etc. call has the same resolution? The variable 'now' should probably be given a more suitable name. Can the clock resolution be zero? If not, I recommend adjusting the comparisons so that an event sche

[issue20585] urllib2 unrelease KQUEUE on Mac OSX 10.9+

2014-02-10 Thread Andrew Gross
New submission from Andrew Gross: In the latest OSX, 10.9, it looks like there have been some security changes related to inheriting file descriptors from parent to child processes. While in the past it would allow you to inherit the parents open FDs, now it will kill the process. It looks

[issue20167] Exception on IDLE closing

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changes for _SimpleBinder.__del__ look doubtful. Any TclError exception is suppressed and "if" statement does nothing. Perhaps you forgot "else: raise"? And may be in other places too. -- ___ Python tracker

[issue20585] urllib2 unrelease KQUEUE on Mac OSX 10.9+

2014-02-10 Thread Andrew Gross
Andrew Gross added the comment: For some additional context on how I came across this bug, check out https://github.com/coderanger/pychef/issues/29 -- ___ Python tracker ___ ___

[issue20515] Null pointer dereference in tkinter module

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, in 2.7 varname converter doesn't accept unicode. Good catch Christian. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue17671] io.BufferedRWPair can use uninitialized members

2014-02-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list ma

[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-02-10 Thread Zachary Ware
New submission from Zachary Ware: Builtins with a valid signature embedded in the docstring, but with no other docstring content are not picked up by the __text_signature__ getter because the docstring ends with ")\n--" rather than ")\n--\n\n". The attached patch adjusts clinic.CLanguage.docs

[issue19966] Wrong mtimes of Include/Python-ast.h and Python/Python-ast.c in tarballs

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab0b9107628f by Georg Brandl in branch '3.3': Closes #19966: allow hgtouch to operate on a base dir that is != the repo root. http://hg.python.org/cpython/rev/ab0b9107628f -- ___ Python tracker

[issue20374] Failure to compile with readline-6.3-rc1

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7e048674fef by Ned Deily in branch '3.3': Issue #20374: Avoid compiler warnings when compiling readline with libedit. http://hg.python.org/cpython/rev/a7e048674fef New changeset de02d414590d by Ned Deily in branch '3.3': Issue #20374: delete spurio

[issue16042] smtplib: unlimited readline() from connection

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d62a67318023 by Georg Brandl in branch '3.3': #16042: CVE-2013-1752: smtplib fix for unlimited readline() from socket http://hg.python.org/cpython/rev/d62a67318023 -- ___ Python tracker

[issue20311] epoll.poll(timeout) and PollSelector.select(timeout) must round the timeout to the upper bound

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d393df09e139 by Georg Brandl in branch '3.3': #20311: revert changes to 3.3 branch for now until experts have decided how to resolve the issue. http://hg.python.org/cpython/rev/d393df09e139 -- ___ Python

[issue20284] patch to implement PEP 461 (%-interpolation for bytes)

2014-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-02-10 Thread Zachary Ware
Zachary Ware added the comment: Forgot to mention, there are no current examples of this checked in. winreg.HKEYType has a couple of methods with no docstring (__enter__ and __exit__), and _winapi has several docstring-less functions, though. -- __

[issue20583] Hide underscored parameters

2014-02-10 Thread Yury Selivanov
Yury Selivanov added the comment: I'm -1 on this. Yes, there is a convention in Python that _names are kind of private, but it's just a convention, and not everybody follow it. Making this change would just break too many things. As for the code in question: Random.randrange -- why does it ha

[issue20583] Hide underscored parameters

2014-02-10 Thread Georg Brandl
Georg Brandl added the comment: -1 as well. Yury: it's a micro-optimization, the slow builtin lookup becomes a fast local lookup. -- nosy: +georg.brandl ___ Python tracker ___

[issue20167] Exception on IDLE closing

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9e124851e47 by Terry Jan Reedy in branch 'default': Issue #20167: Add missing else: break in 3 places as noticed by Serhiy. http://hg.python.org/cpython/rev/b9e124851e47 -- ___ Python tracker

[issue20587] sqlite3 converter not being called

2014-02-10 Thread Kathryn M Kowalski
New submission from Kathryn M Kowalski: I have a timestamp converter that works on 2.5 but doesn't on 2.7.2 (ActiveState 2.7.2.5 Attached is some pared down test code and output from a machine running 2.5 and one running 2.7. At one point I even put print statements in the converter - they s

[issue19856] shutil.move() can't move a directory in non-empty directory on Windows

2014-02-10 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: First I've reviewed #msg205585 again (no patch applied). Notice that Traceback was not accurate: test_A: >>> os.makedirs('foo') >>> os.makedirs('bar/foo') >>> shutil.move('foo/', 'bar/') Traceback (most recent call last): File "", line 1, in s

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: > How do you know that the timer used by the select/poll/etc. call has the same > resolution? If I understood correctly, there a 3 kind of clocks on Windows: - kernel heartbeat: GetSystemTimeAdjustment() gives the resolution (a few milliseconds) - multimedia

[issue19856] shutil.move() can't move a directory in non-empty directory on Windows

2014-02-10 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've applied the patch manually to 2.7. Then I've done the tests again (notice test_A traceback): test_A: >>> import os, shutil >>> os.makedirs('foo') >>> os.makedirs('bar/foo') >>> shutil.move('foo/', 'bar/') Traceback (most recent call last): File

[issue19856] shutil.move() can't move a directory in non-empty directory on Windows

2014-02-10 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: And finally the test runs: 1) The original. No new tests, no new patch. == CPython 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] == Windows-7-6.1.7601-SP1 little-endian == c:\users\brugue\appdata\local\temp\test_python_5444 Tes

[issue20587] sqlite3 converter not being called

2014-02-10 Thread R. David Murray
R. David Murray added the comment: Can you pare it down further so that it only uses stdlib code? -- nosy: +r.david.murray ___ Python tracker ___

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread Guido van Rossum
Guido van Rossum added the comment: OK, since the resolution is 1 nsec on my Ubuntu and OSX systems and 15.6 msec on my Windows box, this patch looks fine. -- ___ Python tracker ___

[issue20583] Hide underscored parameters

2014-02-10 Thread Nick Coghlan
Nick Coghlan added the comment: For context, codecs.CodecInfo now takes an undocumented "_is_text_encoding" keyword-only argument to blacklist codecs from TextIOWrapper, str.encode, bytes.decode etc. Serhiy expressed some concern that users would see that via Pydoc, believe it was a public API, a

[issue20583] Hide underscored parameters

2014-02-10 Thread Yury Selivanov
Yury Selivanov added the comment: > Yury: it's a micro-optimization, the slow builtin lookup becomes a fast local > lookup. That's what I thought, thank you. I think we should discourage use of this pattern (at least in the stdlib). There is small to no performance benefit to do that. And if

[issue20583] Hide underscored parameters

2014-02-10 Thread Yury Selivanov
Yury Selivanov added the comment: We can *probably* make a convention, that "dunder" parameters are hidden from the pydoc. like 'func(a, b, *, c, __hidden__=True, __int__=int)' Or simply those that start with '__'. I'd be -0 on that ;) -- ___ Pytho

[issue14130] memoryview: add multi-dimensional indexing and slicing

2014-02-10 Thread Ian Beaver
Ian Beaver added the comment: Its not multi-dimensional slicing to get a subset of objects as in Numpy, but more the ability to slice a buffer containing a multi-dimensional array as raw bytes. Buffer objects in Python2.7 are dimensionality naive so it works fine. You were correct that I wa

[issue20405] Add io.BinaryTransformWrapper and a "transform" parameter to open()

2014-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b850722849e by Victor Stinner in branch 'default': Issue #20505: BaseEventLoop uses again the resolution of the clock to decide if http://hg.python.org/cpython/rev/6b850722849e -- ___ Python tracker

[issue18956] Document useful functions in ‘pydoc’ module

2014-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread STINNER Victor
STINNER Victor added the comment: > OK, since the resolution is 1 nsec on my Ubuntu Yeah, Linux always announce 1 nanosecond, even the real resolution is not so good: https://lkml.org/lkml/2012/2/9/100 On Mac OS X, the resolution is also probably hardcoded to 1 nanosecond. (Python reads the r

[issue12916] Add inspect.splitdoc

2014-02-10 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-10 Thread Guido van Rossum
Guido van Rossum added the comment: Please, no. This has to stop. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

  1   2   >