[issue18216] gettext doesn't check MO versions

2014-10-06 Thread Aaron Hill
Changes by Aaron Hill : -- keywords: +patch nosy: +Aaron1011 Added file: http://bugs.python.org/file36828/gettext-mo-version.patch ___ Python tracker ___

[issue4832] IDLE does not supply a default ext of .py on Windows or OS X for new file saves

2014-10-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you. It was in particular the switching between a -> a.py and a -> a.txt that I described and wanted verified for linux. The fact that names with extensions are left unchanged is important too. I will have to think about how to describe this succinctly

[issue4832] IDLE does not supply a default ext of .py on Windows or OS X for new file saves

2014-10-06 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22566] International keyboard makes IDLE crash on OSX

2014-10-06 Thread Mc128k
Mc128k added the comment: Hi Thank you a lot for the help, installing ActiveTcl8.5.15.1.297588-macosx10.5-i386-x86_64-threaded solved the problem immediately. -- ___ Python tracker ___

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-06 Thread Larry Hastings
Larry Hastings added the comment: I don't understand. If utime is a *function*, then the local variable should simply take precedence. Do you possibly mean that utime is a *macro*? What compilation error do you get? -- ___ Python tracker

[issue7676] IDLE shell shouldn't use TABs

2014-10-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: They potentially could be. However, if the result is something like >>> if a: if b: print(a+b) or worse, with Lucida Sans Unicode, the visual equivalent of >>> if a: if b: print(a+b) then I do not find result very satisfactory. I think moving

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-06 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Maybe it is unnecessary strictness in Open Watcom compiler. If renaming was necessary, then I suggest utime_obj instead of ut. -- nosy: +Arfrever ___ Python tracker

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-06 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: Under the conditions I described in Modules/posixmodules.c on line 4815, the utime() function is called. With the current code, the following correct compiler error is emitted: ./Modules/posixmodule.c(4815): Error! E1012: Expression is not a function The

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-06 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: So in my original report, I actually got things backwards. The failure is because utime is a local variable, but a call to utime() is then attempted. Regardless, the code is still completely broken in Modules/posixmodule.c under the conditions I described.

[issue22571] Remove import * recommendations and examples in doc?

2014-10-06 Thread Terry J. Reedy
New submission from Terry J. Reedy: PEP 8 recommends against 'from mod import *' because it makes reading harder and is bad for code analysis. My experience with retrofitting tests to idlelib modules with tkinter * imports is that it also makes testing harder since the testing strategy depend

[issue7830] Flatten nested functools.partial

2014-10-06 Thread Josh Rosenberg
Josh Rosenberg added the comment: If it affects the decision, I just had to debug some code at work that triggered a "excessive recursion" bug because they used functools.partial over and over on the same base function, thinking they could safely replace some keyword bindings over and over. Th

[issue22559] [backport] ssl.MemoryBIO

2014-10-06 Thread Alex Gaynor
Alex Gaynor added the comment: New patch is the same, it just rebases the socket changes out since Benjamin landed that (thanks!) -- Added file: http://bugs.python.org/file36829/issue22559.diff ___ Python tracker

[issue7830] Flatten nested functools.partial

2014-10-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Josh, Would issue7830.diff solve your use-case as is? See msg108980 for the limitations. If so, I don't mind reopening this issue. -- ___ Python tracker __

[issue22462] Modules/pyexpat.c violates PEP 384

2014-10-06 Thread Mark Shannon
Mark Shannon added the comment: W.r.t PEP 384: Every module, except pyexpat, in the stdlib library treats frames as opaque objects, as PEP 384 requires. (I'm exempting builtins and sys here) I think it is unreasonable to expect authors of 3rd party modules to respect PEP 384 if the standard lib

[issue22462] Modules/pyexpat.c violates PEP 384

2014-10-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review type: -> behavior versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs

[issue22462] Modules/pyexpat.c violates PEP 384

2014-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: FWIW, I think the patch's approach is ok. I just did a small comment on the review UI. -- ___ Python tracker ___ __

[issue22462] Modules/pyexpat.c violates PEP 384

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: > I think it is unreasonable to expect authors of 3rd party modules to respect > PEP 384 if the standard library does not. I don't understand why you think that. PEP 384 is intended to provide the means to maintain binary compatibility of extension modules so t

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-06 Thread STINNER Victor
STINNER Victor added the comment: > However I think that in theory SSLSocket.server_hostname could be a bytes, if > a bytes was passed into the constructor. newPySSLSocket() expects a char* string and use PyUnicode_Decode() to decode bytes. -- ___

[issue22572] NoneType object is not iterable error when asyncio Server.close() called

2014-10-06 Thread R. David Murray
New submission from R. David Murray: I'm writing a little web server using aiohttp. I tried to write a unit test...since this is a client server situation I launched the asyncio program in a thread and did a urlopen from the main thread. That all works fine...the problem is in the cleanup co

[issue7830] Flatten nested functools.partial

2014-10-06 Thread Josh Rosenberg
Josh Rosenberg added the comment: The use case in question, simplified, was: from functools import partial class Foo: Bar = othermodule.Bar def __new__(cls, ...): ... cls.Bar(...) ... def bind_stuff(cls, *args, **kwargs): cls.Bar = partial(Bar, *arg

[issue18119] urllib.FancyURLopener does not treat URL fragments correctly

2014-10-06 Thread karl
karl added the comment: Takahashi-san, Ah sorry misunderstood which part your were talking about. I assume wrongly you were talking about navigation. Yes for the request which is sent to the server it should be http://tools.ietf.org/html/rfc7230#section-5.3.1 So refactoring your example. 1st

[issue22572] NoneType object is not iterable error when asyncio Server.close() called

2014-10-06 Thread Yury Selivanov
Yury Selivanov added the comment: I think that the main problem is that '_stop_server' is called from a main thread (by unittest machinery via addCleanup), whereas the loop is in the other thread. asyncio code is not thread-safe in general. If I change your code slightly to avoid using addClea

[issue21072] Python docs and downloads not available for Egypt

2014-10-06 Thread Leo Butcher
Leo Butcher added the comment: Yes, all subdomains are working now for me -- status: pending -> open ___ Python tracker ___ ___ Python

[issue7830] Flatten nested functools.partial

2014-10-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would say that getting "maximum recursion depth exceeded" error from evaluating a deeply nested partial is a bug, but I am not sure we should fix it by flattening partial objects in the constructor or by being smarter at evaluation time. -- co

[issue18119] urllib.FancyURLopener does not treat URL fragments correctly

2014-10-06 Thread karl
karl added the comment: In class urlopen_HttpTests https://hg.python.org/cpython/file/4f314dedb84f/Lib/test/test_urllib.py#l191 there is a test for invalid redirects def test_invalid_redirect(self): https://hg.python.org/cpython/file/4f314dedb84f/Lib/test/test_urllib.py#l247 And one for fragme

[issue21072] Python docs and downloads not available for Egypt

2014-10-06 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue22573] AttributeErrors in long lines showing 'wrong' line in error message

2014-10-06 Thread dingo_dasher
New submission from dingo_dasher: I am using Flask, and I had the following code: modules = models.Module.query.join(models.ModuleAccess).\ filter(models.Model.owner_id == current_user.id).\ filter(models.ModuleAccess.user_id == current_

[issue22573] AttributeErrors in statements split up into multiple linse with \ showing 'wrong' line as being responsible in error message

2014-10-06 Thread dingo_dasher
Changes by dingo_dasher : -- title: AttributeErrors in long lines showing 'wrong' line in error message -> AttributeErrors in statements split up into multiple linse with \ showing 'wrong' line as being responsible in error message ___ Python tracke

[issue22572] NoneType object is not iterable error when asyncio Server.close() called

2014-10-06 Thread R. David Murray
R. David Murray added the comment: The 'Server did not stop' error was lying in wait for the NoneType bug to be fixed :) So, if you didn't the NoneType, my test case isn't reproducing the problem for you, which is odd. Using call_soon_threadsafe from an addCleanup in the _server method makes

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-10-06 Thread Ben Hoyt
Ben Hoyt added the comment: Attaching my first patch here. It includes docs, the implementation of scandir and DirEntry in posixmodule.c, and tests in test_scandir.py. It does not yet include the changes for os.walk() to use scandir; I'm hoping to do that in a separate patch for easier code re

[issue22573] AttributeErrors in statements split up into multiple linse with \ showing 'wrong' line as being responsible in error message

2014-10-06 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 12458. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Tracebacks should contain the first line of continuation lines ___ Pyt

[issue12458] Tracebacks should contain the first line of continuation lines

2014-10-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +dingo_dasher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22564] ssl: post-commit review of the new memory BIO API

2014-10-06 Thread Geert Jansen
Geert Jansen added the comment: > newPySSLSocket() expects a char* string and use PyUnicode_Decode() to decode > bytes. Yup, and this value is available as SSLSocket._sslobj.server_hostname. But SSLSocket.server_hostname is not this, it is what was passed to the constructor which can be a byt

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2014-10-06 Thread Akira Li
Changes by Akira Li <4kir4...@gmail.com>: -- nosy: +akira ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue18216] gettext doesn't check MO versions

2014-10-06 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: Patch LGTM. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

<    1   2