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

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Francisco! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue20583] Hide underscored parameters

2014-02-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this issue is based on Nick's intention in msg206515. Since this issue was rejected, my objection against adding new underscored parameters in issue19619 remain in force. -- ___ Python tracker

[issue20585] urllib2 unrelease KQUEUE on Mac OSX 10.9+

2014-02-10 Thread Ned Deily
Ned Deily added the comment: It looks like the culprit is _scproxy, an internal C extension, that urllib2 (py2) and urllib.request (py3) use on OS X to access the system configuration for network proxies. If you aren't using any proxies, a workaround is to define an environment variable:

[issue2771] Test issue

2014-02-10 Thread Ezio Melotti
Ezio Melotti added the comment: another test -- assignee: -> ezio.melotti nosy: +python-dev priority: low -> normal ___ Python tracker ___ ___

[issue20588] Code generated by asdl_c.py not C89-compliant

2014-02-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b3bb4bda9cb by Benjamin Peterson in branch '3.3': don't put runtime values in array initializer for C89 compliance (closes #20588) http://hg.python.org/cpython/rev/5b3bb4bda9cb New changeset cdaf7b38bb2c by Benjamin Peterson in branch 'default': me

[issue20590] spam

2014-02-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- Removed message: http://bugs.python.org/msg210897 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue20590] spam

2014-02-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed title: Download Talkray... -> spam ___ Python tracker ___ ___

[issue20590] Download Talkray...

2014-02-10 Thread Alfonso Andalon Jr.
New submission from Alfonso Andalon Jr.: Download this http://talkray.com/dl/ee -- messages: 210897 nosy: Alfonso.Andalon.Jr. priority: normal severity: normal status: open title: Download Talkray... ___ Python tracker

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2014-02-10 Thread Vajrasky Kok
Changes by Vajrasky Kok : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2014-02-10 Thread James Skinner
New submission from James Skinner: When using the Path class in Lib/pathlib.py under Windows, calling p.owner() or p.group() fails with an ImportError due to importing the pwd and grp modules respectively, as neither of those exist. The documentation doesn't mention this behaviour. The preced

[issue20588] Code generated by asdl_c.py not C89-compliant

2014-02-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue894936] Have a split corresponding with os.path.join

2014-02-10 Thread R. David Murray
R. David Murray added the comment: I agree that that is a superseder, although it sounds like it may not be needed since pathlib is part of 3.4 (albeit provisional). -- resolution: -> duplicate stage: test needed -> committed/rejected status: languishing -> closed superseder: -> Add o

[issue20588] Code generated by asdl_c.py not C89-compliant

2014-02-10 Thread Jeffrey Armstrong
New submission from Jeffrey Armstrong: The code within Python/Python-ast.c does not currently conform to C89 standard. Within the function PyAST_obj2mod(), the array 'req_type' is initialized using runtime values, which is not allowed by the standard, causing building to fail on a C89 compile

[issue894936] Have a split corresponding with os.path.join

2014-02-10 Thread Martin Panter
Martin Panter added the comment: I suggest closing this in favour of issue 11344, “Add os.path.splitpath(path) function”, which has a more complete patch ready. -- nosy: +vadmium ___ Python tracker __

[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

2014-02-10 Thread Garrett Cooper
Changes by Garrett Cooper : Removed file: http://bugs.python.org/file33986/patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue20587] sqlite3 converter not being called

2014-02-10 Thread R. David Murray
R. David Murray added the comment: Hmm. Looks like I would need a copy of your database to be able to run this? Maybe you could add something to create the schema and add the rows to be queried? There are tests for the converter/adapter functionality, so it must be something specific about

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

2014-02-10 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: As a follow-up, relevant output from FreeBSD 9: $ python Python 2.7.5 (default, Dec 20 2013, 21:12:37) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type "help", "copyright", "credits" or "license" for more information. >>> import signal >>> signals = [

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-02-10 Thread Matej Cepl
Changes by Matej Cepl : Removed file: http://bugs.python.org/file32835/test_create_1.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-02-10 Thread Matej Cepl
Matej Cepl added the comment: This is the suggested patch for this issue. Just adding new http_request method of HTTPBasicAuthHandler which adds Authorization header to the initial request. Patch is now just for python 2.7, but it may be trivially ported to any other version of Python as it us

[issue20361] -W command line options and PYTHONWARNINGS environmental variable should not override -b / -bb command line options

2014-02-10 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

2014-02-10 Thread Garrett Cooper
Garrett Cooper added the comment: Updated patch to incorporate Vinay's comments. Thanks :)! -- Added file: http://bugs.python.org/file34030/patch ___ Python tracker ___ _

[issue20585] urllib2 unrelease KQUEUE on Mac OSX 10.9+

2014-02-10 Thread Ned Deily
Changes by Ned Deily : -- nosy: +orsenthil priority: normal -> high versions: +Python 3.3, Python 3.4 ___ Python tracker ___ ___ Pytho

[issue2771] Test issue

2014-02-10 Thread Ezio Melotti
Ezio Melotti added the comment: test message via email -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20587] sqlite3 converter not being called

2014-02-10 Thread Kathryn M Kowalski
Changes by Kathryn M Kowalski : Added file: http://bugs.python.org/file34029/check_with_output.txt ___ Python tracker ___ ___ Python-bugs-list

[issue2771] Test issue

2014-02-10 Thread Ezio Melotti
Ezio Melotti added the comment: test after roundup upgrade -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[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

[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

[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

[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

[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

[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

[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

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

[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 ___

[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 ___

[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

[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

[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: 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

[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

[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

[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 ___

[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

[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. -- __

[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

[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

[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

[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

[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

[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

[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

[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

[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 ___ ___

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

[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

[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 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: 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 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

[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

[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

[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:/

[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. -

[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

[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

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

[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 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,

[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

[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

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

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

[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

[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

[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

[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 ___

[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

[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 ___ __

[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_

[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

[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 ___

[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

[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

[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

[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

[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

[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

[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 __

[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

[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

[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

  1   2   >