[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

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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

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

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

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

[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

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

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

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

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

[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

[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

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

[issue22569] Add support for weakrefs to _socket.socket

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5688a94a56c by Benjamin Peterson in branch '2.7': make _socket.socket weakrefable (closes #22569) https://hg.python.org/cpython/rev/d5688a94a56c -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed

[issue22566] International keyboard makes IDLE crash on OSX

2014-10-06 Thread Ned Deily
Ned Deily added the comment: This crash behavior is due to an old bug in the OS X Cocoa implementation of Tk. It has been fixed in the most recent releases of Tk 8.5.x and 8.6.x but, unfortunately, Apple has not yet shipped the fix in any version of the OS X system Tk 8.5 (since OS X 10.6).

[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread Ned Deily
Ned Deily added the comment: Also note that there were major internal changes in Python strings for 3.3 (http://legacy.python.org/dev/peps/pep-0393/) so you might want to look at those especially if this worked OK with Python 3.2. Since it seems unlikely that there would be any further progre

[issue22559] [backport] ssl.MemoryBIO

2014-10-06 Thread Alex Gaynor
Alex Gaynor added the comment: New patch works and passes all tests. It's on top of issue22569. -- Added file: http://bugs.python.org/file36827/issue225593.diff ___ Python tracker __

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-10-06 Thread ddve...@ucar.edu
ddve...@ucar.edu added the comment: If no one is able to reproduce it, I guess we can close it. I am sure I can reproduce it if I run it in the same situation I ran it the first time. However, I initially reported the bug for python 2.7.6 i.e. two versions ago, so it might have been fixed by som

[issue10583] Encoding issue with chm help in 2.7.1

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: Agreed, closing. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

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

2014-10-06 Thread Shuhei Takahashi
Shuhei Takahashi added the comment: Hi karl, Of course it is correct that the user agent is redirected to http://example.com/bar#test when it got such response. However, it never means UA can send an HTTP request containing fragment part. In RFC7230 section 3.1.1, HTTP request line is defined

[issue7676] IDLE shell shouldn't use TABs

2014-10-06 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: In Lib\idlelib\PyShell.py, there are usetabs and indentwidth attributes in the PyShell class. Is there some reason that these settings cannot be reconfigured in the Options > Configure IDLE... menu? I just edited these to False and 4 respectively and am

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for adding convenience methods to Path objects, yes, I'm quite open to that. Best is to open an issue when you have a specific idea (and a patch :-)). -- ___ Python tracker ___

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: > That would be a rather horrible solution. I know :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I was about to suggest deriving your own Path class from Path and str That would be a rather horrible solution. It has already been suggested to create a "path protocol". I would suggest Barry tries to float and investigate the idea on python-ideas: https://m

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: I was about to suggest deriving your own Path class from Path and str, but got a base class layout conflict because Path objects define lots of __slots__ :( -- ___ Python tracker __

[issue22566] International keyboard makes IDLE crash on OSX

2014-10-06 Thread Mc128k
Mc128k added the comment: 2014-10-06 18:01:38.139 Python[13297:1294014] An uncaught exception was raised 2014-10-06 18:01:38.139 Python[13297:1294014] -[__NSCFConstantString characterAtIndex:]: Range or index out of bounds 2014-10-06 18:01:38.139 Python[13297:1294014] ( 0 CoreFoundatio

[issue19071] Documentation on what self is for module-level functions is misleading/wrong.

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59fe0ff02c90 by Georg Brandl in branch '2.7': Closes #19071: "self" argument is not the module for module functions in 2.x. https://hg.python.org/cpython/rev/59fe0ff02c90 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status:

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 06, 2014, at 03:43 PM, Georg Brandl wrote: >I'd rather write str(path) all over the place than having to look up in the >docs each time if that specific API happens to support passing Paths >directly. Have you tried to write a large-ish application usin

[issue16155] Some minor doc fixes in Doc/faq

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks! -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16155] Some minor doc fixes in Doc/faq

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96eab476d45e by Georg Brandl in branch '3.4': Closes #16155: fix a few errors in doctest output of the FAQ pages. https://hg.python.org/cpython/rev/96eab476d45e -- ___ Python tracker

[issue16155] Some minor doc fixes in Doc/faq

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09782fad1825 by Georg Brandl in branch '2.7': Closes #16155: fix a few errors in doctest output of the FAQ pages. https://hg.python.org/cpython/rev/09782fad1825 -- nosy: +python-dev resolution: -> fixed stage: patch review -> resolved statu

[issue17078] string.Template.safe_substitute hard-wires "braces" as {}

2014-10-06 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue17078] string.Template.safe_substitute hard-wires "braces" as {}

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: Done in 8a98ee6baa1e. Thanks! -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list maili

[issue17057] Data model documentation grammar

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset b6fab5c89ca9 by Georg Brandl in branch '2.7': Closes #17057: fix grammar in old-style vs new-style class docs. https://hg.python.org/cpython/rev/b6fab5c89ca9 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> clos

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: Since we're unlikely to ever change all the places, I'd say it's better to be consistent. I'd rather write str(path) all over the place than having to look up in the docs each time if that specific API happens to support passing Paths directly. However, Antoin

[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8a98ee6baa1e by Florent Xicluna in branch '2.7': Issue #1686: Fix string.Template when overriding the pattern attribute. https://hg.python.org/cpython/rev/8a98ee6baa1e -- nosy: +python-dev ___ Python trac

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue22570] Better stdlib support for Path objects

2014-10-06 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: pathlib is really nice, but currently it's rather inconvenient to use due to the lack of support in other parts of the stdlib for Path objects. For historical reasons, everything accepts string paths, but few places accept Paths. As an example: configpars

[issue19642] shutil to support equivalent of: rm -f /dir/*

2014-10-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Eric V. Smith
Eric V. Smith added the comment: You might want to check out https://bitbucket.org/ctismer/namelesstuple, which uses a similar approach. -- nosy: +eric.smith ___ Python tracker

[issue21072] Python docs and downloads not available for Egypt

2014-10-06 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> fixed status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue22292] pickle whichmodule RuntimeError

2014-10-06 Thread STINNER Victor
Changes by STINNER Victor : -- superseder: -> RuntimeError in pickle.whichmodule when sys.modules if mutated ___ Python tracker ___

[issue12148] Clarify "or-ing together" doctest option flags

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1439619daf42 by Georg Brandl in branch '3.4': Closes #12148: clarify "or's together option flags" in doctest docs. https://hg.python.org/cpython/rev/1439619daf42 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open ->

[issue18165] Add 'unexpected_type' to TypeError

2014-10-06 Thread Brett Cannon
Brett Cannon added the comment: There's actually nothing to remind here since there is no one waiting on input from anyone. Plus this particular issue is covered by http://legacy.python.org/dev/peps/pep-0473/ . -- ___ Python tracker

[issue21782] hashable documentation error: shouldn't mention id

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset bfaf434a6f10 by Georg Brandl in branch '3.4': Closes #21782: the default hash(x) is not exactly id(x) but derived from it. https://hg.python.org/cpython/rev/bfaf434a6f10 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status:

[issue13101] Module Doc viewer closes when browser window closes on Windows 8

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: pydoc.gui() no longer exists in supported versions. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker _

[issue21784] __init__.py can be a directory

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: I agree, closing. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker ___ __

[issue14303] Incorrect documentation for socket.py on linux

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e2a72e05b4f by Georg Brandl in branch '2.7': Closes #14303: socket.makefile() does not call dup() anymore on the socket fd. https://hg.python.org/cpython/rev/6e2a72e05b4f -- nosy: +python-dev resolution: -> fixed stage: -> resolved status

[issue22559] [backport] ssl.MemoryBIO

2014-10-06 Thread Alex Gaynor
Alex Gaynor added the comment: As suggested by Benjamin, I've filed issue22569 to add weakref support to _socket.socket; that will address this and further reduce teh diff with Python3. -- dependencies: +Add support for weakrefs to _socket.socket ___

[issue22569] Add support for weakrefs to _socket.socket

2014-10-06 Thread Alex Gaynor
New submission from Alex Gaynor: This is needed to keep the _ssl module reasonably in sync with it's Python3 counterpart. -- files: weakref-me-captain.diff keywords: needs review, patch messages: 228695 nosy: alex, benjamin.peterson priority: normal severity: normal status: open title:

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

2014-10-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue16518] add "buffer protocol" to glossary

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: Please open a new issue for those. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list

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

2014-10-06 Thread Geert Jansen
Geert Jansen added the comment: > +.. attribute:: SSLSocket.server_hostname > + > + A ``bytes`` instance (...) > > Ah, this is a mistake. It's actually always a str instance (on SSLObject as > well). It is indeed, I stand corrected. I was confused by the decode -> encode roundtrip that happe

[issue10031] Withdraw anti-recommendation of relative imports from documentation

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d321235f1f9 by Georg Brandl in branch '2.7': Closes #10031: overhaul the "imports" section of the programming FAQ. https://hg.python.org/cpython/rev/9d321235f1f9 -- ___ Python tracker

[issue10031] Withdraw anti-recommendation of relative imports from documentation

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c33440d1f64 by Georg Brandl in branch '3.4': Closes #10031: overhaul the "imports" section of the programming FAQ. https://hg.python.org/cpython/rev/8c33440d1f64 -- nosy: +python-dev resolution: -> fixed stage: patch review -> resolved sta

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

2014-10-06 Thread Jeffrey Armstrong
New submission from Jeffrey Armstrong: Under certain circumstances, Modules/posixmodule.c will fail to compile due to a number of utime-related functions using a variable named "utime" when a function named "utime" already exists in the compiler's C header files. Specifically, if the followin

[issue22526] file iteration SystemError for huge lines (2GiB+)

2014-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy's patch looks ok to me (haven't tested it). -- nosy: +pitrou ___ Python tracker ___ ___ Pytho

[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Leo
Leo added the comment: A use case for the singleton pattern arises when - field names are known only at runtime, and - you have a large number of instances with the same field names. An example is the storage of metadata for datasets when a hashable type is needed. I agree that it will generall

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

2014-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: +.. attribute:: SSLSocket.server_hostname + + A ``bytes`` instance (...) Ah, this is a mistake. It's actually always a str instance (on SSLObject as well). -- ___ Python tracker

[issue22567] doctest handle ignored execption

2014-10-06 Thread R. David Murray
R. David Murray added the comment: This tracker is not a place to get answers to questions, you should use the python-list mailing list for that. (That said, here's a hint: the only way to capture that message is to run it in a subprocess; the message is generated asynchronously, during garba

[issue1284316] Win32: Security problem with default installation directory

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

[issue8110] subprocess.py doesn't correctly detect Windows machines

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

[issue22567] doctest handle ignored execption

2014-10-06 Thread Yoav Caspi
New submission from Yoav Caspi: When implementing a class with a __del__ function that raise an exception the exception ignored. is it possible to add this printed message to be tested by doc test? something like when running this script the script will pass: """ Usage Example: >>> cls =

[issue22327] test_gdb failures on Ubuntu 14.10

2014-10-06 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: Suddenly started to see the same error on Fedora rawhide [0]. [0] https://kojipkgs.fedoraproject.org//work/tasks/3551/7773551/build.log -- nosy: +sYnfo ___ Python tracker

[issue16429] Emit SyntaxWarning for code that risks UnboundLocalError

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: I seem to recall that this was rejected into the realm of linters in a python-dev discussion. If there is a chance of false positives, having Python emit the warning would be annoying because there is no convenient way of telling it to shut up about it. At lea

[issue22292] pickle whichmodule RuntimeError

2014-10-06 Thread Attilio Di Nisio
Attilio Di Nisio added the comment: Duplicate of #21905 Fixed in https://hg.python.org/cpython/rev/86ba3bdfac15 -- resolution: -> duplicate status: open -> closed versions: +Python 3.5 ___ Python tracker _

[issue22563] namedtuple: raise an exception when the given class name would override an existing name

2014-10-06 Thread Leo
Leo added the comment: The idea was based on a misunderstanding of the typename argument. I had erroneously inferred that the namedtuple class object would be bound to some namespace whereas the only binding is achieved by the assignment to a local name which may be different from the typename. A

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

2014-10-06 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue22462] Modules/pyexpat.c violates PEP 384

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: Not sure how this can violate PEP 384, as it doesn't make it mandatory for builtin extensions to use the stable ABI. The other concerns seem valid, although I don't like how the patch includes an unrelated change to ctypes. -- nosy: +georg.brandl, pitro

[issue6359] pyexpat.c calls trace function incorrectly for exceptions

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: A more complete patch that also fixes up pyexpat's frame trickery is tracked in #22462. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> Modules/pyexpat.c violates PEP 384 ___ Pyt

[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread R. David Murray
R. David Murray added the comment: Agreed. If you want it to be a singleton in your code, use the singleton pattern in your code...but it is hard for me to see why that would be a good idea :) (ie: DRY). Globally, it does not seem to me that there are likely to be any significant number of i

[issue21480] A build now requires...

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: asdl.py is fixed to work with 2.7 as of 3b2af26f4638. -- nosy: +georg.brandl ___ Python tracker ___ __

[issue21480] A build now requires...

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset eefed1ecfd47 by Georg Brandl in branch '3.4': Closes #21480: better explanation of "hg touch" in the Makefile. https://hg.python.org/cpython/rev/eefed1ecfd47 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> clos

[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread STINNER Victor
STINNER Victor added the comment: > Shall I bounce this issue back to the LibreOffice folks and see if I can find > whoever owns that piece of code? (If anybody does...) For me, it's an issue in the uno module. -- ___ Python tracker

[issue9417] Declaring a class creates circular references

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: I don't think this can go somewhere useful. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ _

  1   2   >