[issue22758] Regression in Python 3.2 cookie parsing

2015-09-02 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> commit review ___ Python tracker ___ ___

[issue24900] Raising an exception that cannot be unpickled causes hang in ProcessPoolExecutor

2015-09-02 Thread Benedikt Reinartz
Changes by Benedikt Reinartz : -- versions: +Python 2.7, Python 3.2, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___

[issue7175] Define a standard location and API for configuration files

2015-09-02 Thread flying sheep
flying sheep added the comment: of course if there is a chance that some specific config file exists at a known location, it’s the only sane choice to try and look for it there iff it isn’t in its preferred location. e.g. fontconfig made that switch some time ago: it used to be ~/.fonts.conf,

[issue24979] Allow timezone offsets greater than 24 hours

2015-09-02 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +belopolsky ___ Python tracker ___ ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: Larry Hasting wrote: >> too late for 3.5.0 > How's that? Well, for example... my change broke all buildbots. I don't think that it's good idea to rush to fix Python 3.5 :-) This part of Python (handling timestamps, especially the rounding mode) is complex, I

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30454ef98e81 by Victor Stinner in branch 'default': Backed out changeset b690bf218702 https://hg.python.org/cpython/rev/30454ef98e81 New changeset 700303850cd7 by Victor Stinner in branch 'default': Issue #23517: Fix _PyTime_ObjectToDenominator()

[issue12006] strptime should implement %G, %V and %u directives

2015-09-02 Thread Erik Cederstrand
Erik Cederstrand added the comment: The going's a bit tough here. I've spent at least 10 times as long on this bug than it took me to work around the fact that Python doesn't support ISO week number round-trip. Python puts a smile on my face every day and I enjoy giving back where I can. But

[issue24977] shutil copy to non-existant directory

2015-09-02 Thread eryksun
eryksun added the comment: Do you mean the dst path has a trailing slash, but the directory doesn't exist? shutil.copy doesn't check for a trailing slash, so it attempts to open dst as a regular file. On Linux, and probably most POSIX systems, this results in an EISDIR (is a directory) error.

[issue24979] Allow timezone offsets greater than 24 hours

2015-09-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: BTW, the specific issue that OP complains about is not a datetime issue: apparently pytz has an even tighter restriction on timezone offsets. I am going to close this as a third party issues, but those who support relaxing datetime.timezone restriction

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-02 Thread Tim Tisdall
New submission from Tim Tisdall: Currently https://docs.python.org/3.6/library/socket.html#socket-families only says "Certain other address families (AF_BLUETOOTH, AF_PACKET, AF_CAN) support specific representations." and there's a comment in the docs saying "document them!"... So, I'm

[issue2786] Names in function call exception should have class names, if they're methods

2015-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue4322. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread Yury Selivanov
Yury Selivanov added the comment: Yann, I'll commit this as soon as 3.5.0 and 3.4.4 are out. -- ___ Python tracker ___

[issue24979] Allow timezone offsets greater than 24 hours

2015-09-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The timezone offset range restriction is not arbitrary. It was discussed in issue 5094 (see msg107059 and responses to it.) Nevertheless, there is an open proposal to remove all restrictions on offset values and allow it to be an arbitrary timedelta.

[issue21590] Systemtap and DTrace support

2015-09-02 Thread cburroughs
Changes by cburroughs : -- nosy: +cburroughs ___ Python tracker ___ ___

[issue13405] Add DTrace probes

2015-09-02 Thread cburroughs
Changes by cburroughs : -- nosy: +cburroughs ___ Python tracker ___ ___

[issue22241] strftime/strptime round trip fails even for UTC datetime object

2015-09-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: patch review -> commit review ___ Python tracker ___

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0eb8c182131e by Victor Stinner in branch 'default': Issue #23517: datetime.timedelta constructor now rounds microseconds to nearest https://hg.python.org/cpython/rev/0eb8c182131e -- ___ Python tracker

[issue14350] Strange Exception from copying an iterator

2015-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually the tp_new field of list iterator class is NULL. Unpickler raises other error in such case (see issue24900 for example). UnpicklingError: NEWOBJ class argument has NULL tp_new Backported to 2.7 the part of the patch for issue22995 fixes this

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread David Unric
David Unric added the comment: Oops, this was the strict version. The lazy method call version behaves exactly like property getter. So there is probably no implementation bug, but not too well thought out decision design, making debugging AttributeError exceptions in properties difficult

[issue24989] scan_eol() Buffer Over-read

2015-09-02 Thread John Leitch
Changes by John Leitch : Added file: http://bugs.python.org/file40327/scan_eol_Buffer_Over-read.py ___ Python tracker ___

[issue24989] scan_eol() Buffer Over-read

2015-09-02 Thread John Leitch
New submission from John Leitch: Python 3.5 suffers from a vulnerability caused by the behavior of the scan_eol() function. When called, the function gets a line from the buffer of a BytesIO object by searching for a newline character starting at the position in the buffer. However, if the

[issue24707] Assertion failed in pymonotonic_new

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: I removed the assertion. Thanks for your report! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue24990] Foreign language support in turtle module

2015-09-02 Thread Al Sweigart
Al Sweigart added the comment: I volunteer to produce the patch. I know Bryson's "Teach Your Kids to Code" book (which features Python's turtle module) hasn't been translated to other languages yet. It would be nice to get this committed sooner rather than later. I'm open to ideas for

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: > Revision c1396d28c440 looks like it may help. Possibly with the 3.5+ > assertWarns() half of the problem; I’ll have to have a closer look later. Oh, I wasn't aware of this issue. Good to know that I contributed to it :-) -- nosy: +haypo

[issue24989] scan_eol() Buffer Over-read

2015-09-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo, serhiy.storchaka ___ Python tracker ___

[issue24990] Foreign language support in turtle module

2015-09-02 Thread Al Sweigart
New submission from Al Sweigart: I'd like to propose adding foreign language names for the names in the turtle module. This would effectively take this code: import turtle t = turtle.Pen() t.pencolor('green') t.forward(100) ...and have this code in French be completely

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-09-02 Thread Christoph Gohlke
Christoph Gohlke added the comment: > Do you know where that time is being spent? The incremental linker. > I'd guess it's probably O(N**2) with the number of obj file Doesn't seem so. For example the pyrxp 2.1 package contains only 23 C files and takes minutes to link. Most packages compile

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-09-02 Thread Steve Dower
Steve Dower added the comment: It may be possible to dynamically link the Fortran library in a similar fashion, though it depends on what code the compiler generates. For Python's purposes, statically linking it probably isn't a bad idea. I'll have to check out whether the FLS limitation

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-09-02 Thread Cory Benfield
Cory Benfield added the comment: Martin: as noted in the comments on this issue, I believed the specific test case did not match any of the problems people were encountering: it was just the least bad way to trigger the specific flow that was being encountered. In practice for these issues

[issue24989] scan_eol() Buffer Over-read

2015-09-02 Thread Martin Panter
Martin Panter added the comment: Simpler test case, which might find a place somewhere like /Lib/test/test_memoryio.py: >>> from io import BytesIO >>> b = BytesIO() >>> b.seek(1) 1 >>> b.readlines() # Should return an empty list Segmentation fault (core dumped) [Exit 139] The patch looks

[issue24989] scan_eol() Buffer Over-read

2015-09-02 Thread John Leitch
John Leitch added the comment: We based our fix on the check in write_bytes: if (endpos > (size_t)PyBytes_GET_SIZE(self->buf)) { if (resize_buffer(self, endpos) < 0) return -1; } I see now that our casting was extraneous. As for the macro, it was suspected that

[issue24989] scan_eol() Buffer Over-read

2015-09-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka priority: normal -> high versions: +Python 3.6 ___ Python tracker

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-09-02 Thread Cory Benfield
Cory Benfield added the comment: Ok, new patch now attached. -- Added file: http://bugs.python.org/file40328/readline_2.patch ___ Python tracker ___

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2015-09-02 Thread Martin Panter
Martin Panter added the comment: Okay so I take back my first proposal of restoring the filters in the test suite, which would bring us back to . Also, my second proposal of setting a flag doesn’t look so easy either. The “_warnings” C module

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-09-02 Thread Christoph Gohlke
Christoph Gohlke added the comment: I have now recompiled hundreds of Python packages and C/C++/Fortran libraries with the `/MT /GL /LTCG /NODEFAULTLIB:libucrt.lib ucrt.lib` flags. Many packages test OK, only few crashes. Some more findings: The /MT flag forces to also statically link the

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, can you check this Idle-Mac patch? I presume the same code is used elsewhere. It might be nice to encapsulate it sometime, though I am not sure where to put a context-bind function. -- nosy: +ned.deily stage: -> patch review

[issue21192] Idle: Print filename when running a file from editor

2015-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Larry, please pull @restart.diff into 3.5.0. I have already applied it to 2.7, 3.4, 3.5.1, and 3.6, so I will null merge from 3.5.0 into 3.5.1 and 3.6. Reason. Aside from Raymond's request above, I was reminded about a week ago that a) when Idle runs in one

[issue24913] deque.index() overruns deque boundary

2015-09-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Brett :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Goto source line' works on Win7. Show stackframe does not do anything that I can see, and seems perhaps redundant. -- ___ Python tracker

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-09-02 Thread Steve Dower
Steve Dower added the comment: The FLS limit is definitely still there, and it still seems to be 127, which would explain the issues. Best fix I have for this is to build with /MD and force vcruntimeXXX.dll to always be copied alongside builds. That will solve the installation issue and the

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-02 Thread Zachary Ware
Zachary Ware added the comment: As far as I can tell, this patch fixes the issue and doesn't break anything. Independent verification of that assertion would be lovely :) For the record, I was able to reproduce the issue on one of the Windows Server 2012 R2 machines after installing ICC

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-09-02 Thread Martin Panter
Martin Panter added the comment: I still don’t think the test case is a reasonable example. According to , HTTP 0.9 only supported GET, not CONNECT, and doesn’t include any header fields in the protocol (such as your X-Foo: bar). It would

[issue21192] Idle: Print filename when running a file from editor

2015-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69ea73015132 by Terry Jan Reedy in branch '2.7': Issue #21192: Change 'RUN' back to 'RESTART' when running editor file. https://hg.python.org/cpython/rev/69ea73015132 New changeset 130a3edcac1d by Terry Jan Reedy in branch '3.4': Issue #21192:

[issue24912] The type of cached objects is mutable

2015-09-02 Thread Nick Coghlan
Nick Coghlan added the comment: I've reviewed the patch, and it looks good to me. Key additions: * truly immutable types (instances of which may be cached) are now explicitly checked in the test suite to ensure they don't support __class__ assignment, even to a subclass * the check for

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread David Unric
David Unric added the comment: This looks a bit inconsistent. See following version with "manual" getter definition: class MyClass(object): def __init__(self, *args, **kwargs): # setting access to getter by attribute # without use of property decorator

[issue24975] Python 3.5 can't compile AST involving PEP 448 unpacking

2015-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9df8543d7bc by Yury Selivanov in branch '3.5': Issue #24975: Fix AST compilation for PEP 448 syntax. https://hg.python.org/cpython/rev/e9df8543d7bc New changeset ea79be5b201e by Yury Selivanov in branch '3.5': Merge 3.5 heads (issue #24975)

[issue24985] Python install test fails - OpenSSL - "dh key too small"

2015-09-02 Thread John Nagle
New submission from John Nagle: Installing Python 3.4.3 on a new CentOS Linux release 7.1.1503 server. Started with source tarball, did usual ./configure; make; make test SSL test fails with "dh key too small". See below. OpenSSL has recently been modified to reject short keys, due to a

[issue23639] Not documented special names

2015-09-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Clarify documentation of __getinitargs__, __self__ on built-in functions is not as documented ___ Python tracker

[issue14776] Add SystemTap static markers

2015-09-02 Thread cburroughs
Changes by cburroughs : -- nosy: +cburroughs ___ Python tracker ___ ___

[issue4111] Add Systemtap/DTrace probes

2015-09-02 Thread cburroughs
Changes by cburroughs : -- nosy: +cburroughs ___ Python tracker ___ ___

[issue24975] Python 3.5 can't compile AST involving PEP 448 unpacking

2015-09-02 Thread Larry Hastings
Larry Hastings added the comment: Merged. Please forward-merge to 3.5.1 and 3.6, thanks! -- ___ Python tracker ___

[issue24986] It should be possible to build successfully without external libraries

2015-09-02 Thread Zachary Ware
Zachary Ware added the comment: This also changes the behavior of the '-e' flag on build.bat a bit, leaving off '-e' means there will be no attempt to build the modules that require external sources even if the sources are already there. Adding '-e' means building those modules will be

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-02 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I'm attaching a patch to update the stdtypes.rst documentation according to our discussion. I've replaced the table explanation to "equivalent to adding s to itself n times" and added a link to the FAQ entry. I'm not sure, however, where to put the

[issue22699] cross-compilation of Python3.4

2015-09-02 Thread William Scullin
Changes by William Scullin : -- type: resource usage -> compile error ___ Python tracker ___

[issue24975] Python 3.5 can't compile AST involving PEP 448 unpacking

2015-09-02 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks Nick and Larry for code reviews and merge! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24913] deque.index() overruns deque boundary

2015-09-02 Thread Larry Hastings
Larry Hastings added the comment: Assigning to Brett, who has agreed to do the merge to 3.5.0 that Raymond has declined to do. -- assignee: larry -> brett.cannon nosy: +brett.cannon ___ Python tracker

[issue23965] test_ssl failure on Fedora 22

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: test_ssl is still failing on Fedora 22. I updated Nick's patch (I worked on the default branch). With the patch, test_ssl pass. I didn't try it on other platforms. -- nosy: +haypo Added file:

[issue23965] test_ssl failure on Fedora 22

2015-09-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: As I already said, patch looks fine assuming you've checked it doesn't break mainstream platforms :) -- ___ Python tracker

[issue24986] It should be possible to build successfully without external libraries

2015-09-02 Thread Zachary Ware
New submission from Zachary Ware: We do have the option of leaving out all extension modules ("/p:IncludeExtensions=false"), but it would be nice to be able to build everything that doesn't require external libs. This also be adds an option to skip only Tkinter (analogous to

[issue24986] It should be possible to build successfully without external libraries

2015-09-02 Thread Zachary Ware
Changes by Zachary Ware : Added file: http://bugs.python.org/file40323/3.5_external_build_handling.diff ___ Python tracker ___

[issue24987] subprocess.Popen with shell=True doesn't create socket

2015-09-02 Thread asduj
New submission from asduj: I want to run the next command subprocess.Popen("soffice --accept='socket,host=localhost,port=8100;urp;'", shell=True) to make soffice listen localhost:8100. It is work in python 2.7.9, but doesn't in python 3.4.3. I control it by netstat -a | grep 8100

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-02 Thread Mark Roseman
New submission from Mark Roseman: Right menu button to invoke context menu (as well as alternative control-click) not set up correctly for Mac in the debugger. Patch attached. -- components: IDLE files: debug-mac-context-menu.patch keywords: patch messages: 249582 nosy: kbk,

[issue24707] Assertion failed in pymonotonic_new

2015-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c90b4a4fffa by Victor Stinner in branch '3.5': Issue #24707: Remove assertion in monotonic clock https://hg.python.org/cpython/rev/4c90b4a4fffa -- nosy: +python-dev ___ Python tracker

[issue24987] subprocess.Popen with shell=True doesn't create socket

2015-09-02 Thread Martin Panter
Martin Panter added the comment: Can you explain what is working in Python 2.7 that is not working in 3.4? Do you have an exception, error message, relevant netstat output, etc. What platform? I don’t have Open Office on this computer, but I tried the following (Linux) command lines and both

[issue4322] function with modified __name__ uses original name when there's an arg error

2015-09-02 Thread Martin Panter
Martin Panter added the comment: Issue 2786 currently proposes to pass __qualname__; if accepted that might also satisfy this report. -- dependencies: +Names in function call exception should have class names, if they're methods nosy: +martin.panter

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2015-09-02 Thread Georges Racinet
Georges Racinet added the comment: Hi, I have the same symptoms and noticed by accident that you can somewhat workaround it by running pyvenv twice: pyvenv /path/to/env && pyvenv --system-site-packages /path/to/env The first provides pip, the second does not destroy it. At least this works

[issue23406] interning and list comprehension leads to unexpected behavior

2015-09-02 Thread Martin Panter
Martin Panter added the comment: Left some review comments. The positioning of the link to the FAQ entry seems sensible to me, just that the markup could be better :) -- nosy: +martin.panter stage: needs patch -> patch review versions: +Python 3.6

[issue24707] Assertion failed in pymonotonic_new

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: It occurred on more time on the same buildbot: http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/2569/steps/test/logs/stdio -- ___ Python tracker

[issue24984] document AF_BLUETOOTH socket address formats

2015-09-02 Thread Martin Panter
Martin Panter added the comment: Thanks for the patch and the archeological research. I made some minor grammar nitpicks in the code review. Documentation typically gets applied to all the open branches. In this case 3.4–3.6 should be applicable. Maybe 2.7 also if you are interested; it may

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2015-09-02 Thread Martin Panter
Martin Panter added the comment: Revision c1396d28c440 looks like it may help. Possibly with the 3.5+ assertWarns() half of the problem; I’ll have to have a closer look later. -- ___ Python tracker

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread David Unric
David Unric added the comment: Thanks for the comprehensive response. I did suspected the 2nd call is caused how it has been described in paragraph 4. And you are probably right. Only think exception instance raised in __getattr__ should not lead to its another call but propagated to outer

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread eryksun
eryksun added the comment: > exception instance raised in __getattr__ should not lead > to its another call but propagated to outer level In this case the next outer level is your descriptor implementation. You have to ensure it doesn't leak the AttrubuteError. Otherwise the associated

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59185ef69166 by Victor Stinner in branch 'default': Issue #23517: test_time, skip a test checking a corner case on floating point https://hg.python.org/cpython/rev/59185ef69166 -- ___ Python tracker

[issue24974] ICC on Windows 8.1: _decimal fails to compile with default fp model

2015-09-02 Thread Stefan Krah
Stefan Krah added the comment: Also note that ICC <= 11.0 did not handle __GNUC__ inline asm correctly, see the comment: Modules/_decimal/libmpdec/umodarith.h:391 I've disabled asm for Linux/ICC in setup.py. I don't know how the situation is with MASM inline asm, but I'd recommend to test

[issue24982] shutil.make_archive doesn't archive empty directories

2015-09-02 Thread R. David Murray
R. David Murray added the comment: See also issue 22219. I think we should fix this in shutil as well. -- nosy: +r.david.murray, serhiy.storchaka stage: -> needs patch versions: +Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue12006] strptime should implement %G, %V and %u directives

2015-09-02 Thread Ashley Anderson
Ashley Anderson added the comment: Haha, thanks Erik. It seems you know my tastes enough to not offer a chocolate-based reward. =) I was actually set to "ping" to request a patch review today, as it's been one month since my last submission. Please let me know if I need to update the patch

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: > The only remaining question is is it OK that we can specify more than one > host but only one port? Guido, Victor? I can be convenient to have a single Server object with *all* listening sockets. So I like the idea of supporting multiple ports. It's very

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread Martin Panter
Martin Panter added the comment: First of all, I think your a.py line 74 corresponds to the top-level print() call. My version of the output: >>> print(my_inst.myproperty) __getattr__ << missing_attribute __getattr__ << myproperty Traceback (most recent call last): File "", line 1, in

[issue24900] Raising an exception that cannot be unpickled causes hang in ProcessPoolExecutor

2015-09-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch for issue22995 disallows default pickling objects with tp_new == NULL. -- nosy: +alexandre.vassalotti, pitrou, serhiy.storchaka ___ Python tracker

[issue23517] datetime.utcfromtimestamp rounds results incorrectly

2015-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset df074eb2a5be by Victor Stinner in branch 'default': Issue #23517: Try to fix test_time on "x86 Ubuntu Shared 3.x" buildbot https://hg.python.org/cpython/rev/df074eb2a5be -- ___ Python tracker

[issue24983] Wrong AttributeError propagation

2015-09-02 Thread David Unric
New submission from David Unric: Hello, it seems python interpreter improperly handles AttributeError exception raised in __getattr__ method, after called by unresolved attribute inside a property. Bellow is a simple Python2 example of a class which defines __getattr__ method and a property,

[issue7175] Define a standard location and API for configuration files

2015-09-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The XDG standard seems to focus on desktop GUI applications and that's also where it's mostly used. Python has it's own installation scheme, which is documented at the top of sysconfig.py and which we've had ever since distutils became part of the stdlib.

[issue24297] Lib/symbol.py is out of sync with Grammar/Grammar

2015-09-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf7ef3bd9a09 by Victor Stinner in branch 'default': Issue 24297: Fix test_symbol on Windows https://hg.python.org/cpython/rev/bf7ef3bd9a09 -- ___ Python tracker

[issue24929] _strptime.TimeRE should not enforce range in regex

2015-09-02 Thread R. David Murray
R. David Murray added the comment: A unit test in test_strptime. -- ___ Python tracker ___ ___

[issue7175] Define a standard location and API for configuration files

2015-09-02 Thread Steve Dower
Changes by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___

[issue12006] strptime should implement %G, %V and %u directives

2015-09-02 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> patch review ___ Python tracker ___

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: Since the consensus on python-dev looks more to keep the provisional API for asyncion in Python 3.5, I propose to even modify Python 3.4 to not add too many "if python >= 3.5..." checks in asyncio source code. If you really prefer to keep Python 3.4

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread Yury Selivanov
Yury Selivanov added the comment: > I can be convenient to have a single Server object with *all* listening > sockets. So I like the idea of supporting multiple ports. It's very cheap to > support it. I like the idea too, but I'm not sure how to redesign the function's signature to accept

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread Yann Sionneau
Yann Sionneau added the comment: About the function's signature to accept multiple hosts & ports, we could - accept host and port arguments being sequences and then we bind to all host:port combinations. Like if len(host) == N and len(port) == M, we bind to N*M sockets. or - accept host

[issue7175] Define a standard location and API for configuration files

2015-09-02 Thread flying sheep
flying sheep added the comment: hi mark, i’ve just lengthily replied to you on python-ideas. in short: nope! many command line tools that are relatively new (among them your examples git and pip) honor the specs, my ~/.cache, ~/.config, and ~/.local/share is full of things belonging to

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: > Let's not extend the API with support for multiple ports. Nobody has asked > for it, and clearly the API design is not so simple. Ok. Anyway, the user of the API call call create_server() multiple times, even with the current code. So it's fine. --

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread STINNER Victor
STINNER Victor added the comment: "So I like the idea of supporting multiple ports. It's very cheap to support it." Oh, I had an example in my head: listening on tcp/80 for HTTP and tcp/443 for HTTPS... but it doesn't work. The problem is that the proposed API doesn't allow to specify a

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread Guido van Rossum
Guido van Rossum added the comment: Let's not extend the API with support for multiple ports. Nobody has asked for it, and clearly the API design is not so simple. -- ___ Python tracker

[issue23630] support multiple hosts in create_server/start_server

2015-09-02 Thread Yury Selivanov
Yury Selivanov added the comment: > - accept host and port arguments being sequences and then we bind to all > host:port combinations. Like if len(host) == N and len(port) == M, we bind to > N*M sockets. I can't think of a real life example for this. But if you need that, you can always