[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-06 Thread Charles-François Natali
Charles-François Natali added the comment: Note that I'm not fussed about it: far from simplifying the code, it will make it more complex, thus more error-prone. -- ___ Python tracker __

[issue21905] RuntimeError in pickle.whichmodule when sys.modules if mutated

2014-10-06 Thread Olivier Grisel
Olivier Grisel added the comment: No problem. Thanks Antoine for the review! -- ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2014-10-06 Thread Mark Dickinson
Mark Dickinson added the comment: IMO, this is a horrible idea. I'd hate for creation of a `namedtuple` class to fail just because there happened to be an existing (perhaps in an as-yet uncollected garbage `namedtuple` class with the same name). That's the kind of spooky "action at a distanc

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

2014-10-06 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

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

2014-10-06 Thread Martin Pitt
Martin Pitt added the comment: > I now raised it to 4 GB for python2.7 This is *still* not enough; I got a success with 6 GB. But this is really demanding.. -- ___ Python tracker _

[issue22482] logging: fileConfig doesn't support formatter styles

2014-10-06 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker ___ __

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

2014-10-06 Thread Martin Panter
Martin Panter added the comment: Perhaps Leo doesn’t understand that the name passed to “namedtuple” is just an indicator for debugging etc, and it doesn’t really have to be unique or even correspond with what it is assigned to. I do remember finding it a bit odd that I had to give it a name w

[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread STINNER Victor
STINNER Victor added the comment: It looks like a bug in the uno module, nobody reports this issue with the vanilla Python. The gdb traceback is incomplete: function parameters are missing, there are some unknown frames ("??"): #0 0x011c118d in PyUnicode_InternInPlace () from /Applicatio

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

2014-10-06 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: I will try to describe the behavior on linux: (Format used is "what i type in file name" -> "name which gets written to disk") 1. When files of type is: Python Files a -> a.py b.py -> b.py c.py.py -> c.py.py d.py.abc -> d.py.abc (!) e.abc ->

[issue22560] Add loop-agnostic SSL implementation to asyncio

2014-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Or perhaps the code can be kept identical with the exception of the > sslproto.py file, and conditional import of the latter? I think that's reasonable, yes. The _SelectorSslTransport is still there and can be used if the ssl module is not recent enough. --

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

2014-10-06 Thread STINNER Victor
New submission from STINNER Victor: Hi, I just saw that the changeset a79003f25a41 was merged and it adds support for memory BIO to the Python ssl module, great! It's a nice addition, especially because it becomes possible to implement SSL for IOCP event loop in asyncio (#22560). I read the

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

2014-10-06 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +geertj, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue21965] Add support for Memory BIO to _ssl

2014-10-06 Thread STINNER Victor
STINNER Victor added the comment: I have some comments and suggestions to enhance the new API. I chose to open a new issue: #22564. -- ___ Python tracker ___ ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2014-10-06 Thread STINNER Victor
STINNER Victor added the comment: The Linux kernel 3.17 has been released with the new getrandom() syscall. glibc request to implement the function in the C library: https://sourceware.org/bugzilla/show_bug.cgi?id=17252 "Bug 17252 - getrandom and getentropy syscall" It looks like nobody asks fo

[issue18348] Additional code pages for EBCDIC

2014-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I don't think we should add more EBCDIC codecs to Python's stdlib. It would be better to put a Python package on PyPI which people using these encodings can use. -- ___ Python tracker

[issue22565] missing const in declaration of PyErr_WarnEx in C-API docs

2014-10-06 Thread Lars Buitinck
New submission from Lars Buitinck: The declaration for PyErr_WarnEx in Doc/c-api/exceptions.rst is missing a const compared to Include/warnings.h. -- assignee: docs@python components: Documentation files: pyerr_warnex_const.patch keywords: patch messages: 228657 nosy: docs@python, larsm

[issue22565] missing const in declaration of PyErr_WarnEx in C-API docs

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 554152c317b4 by Georg Brandl in branch '3.4': Closes #22565: fix argument types of PyErr_WarnEx. https://hg.python.org/cpython/rev/554152c317b4 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed __

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

2014-10-06 Thread Mark Dickinson
Mark Dickinson added the comment: Right; the underlying problem of having objects that appear to be instances of the wrong class has nothing to do with namedtuples. After this sequence: >>> class A: pass ... >>> a = A() >>> >>> class A: pass ... We get the following somewhat confusing res

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

2014-10-06 Thread karl
karl added the comment: This is the correct behavior GET http://example.com/foo with a response containing 302 and Location: /bar#test must trigger http://example.com/bar#test Location is defined in http://tools.ietf.org/html/rfc7231#section-7.1.2 7.1.2. Location The "Location" h

[issue22562] Singleton pattern for namedtuple

2014-10-06 Thread Mark Dickinson
Mark Dickinson added the comment: I don't think this is a good idea. Remember that Python classes are themselves mutable objects, so if a library that you happen to import creates a "Point" namedtuple with fields "x" and "y" and class-level modifications (extra attributes, patched-in methods)

[issue18216] gettext doesn't check MO versions

2014-10-06 Thread Jakub Wilk
Jakub Wilk added the comment: I believe so, yes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

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

[issue22566] International keyboard makes IDLE crash on OSX

2014-10-06 Thread Mc128k
New submission from Mc128k: When using OSX 10.9 or 10.10 with the latest version of python, if I type ' or " with the international keyboard enabled (dead keys), the program crashes immediately. This can be reproduced in any occasion. -- messages: 228663 nosy: mc128k priority: normal s

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

2014-10-06 Thread Geert Jansen
Geert Jansen added the comment: Hi Victor, see below my comments: * SSLSocket.read(), SSLOBject.read() and _ssl._SSLSocket.read() taking a buffer as the second positional argument. Both SSLSocket.read() and _SSLSocket.read() already accepted two arguments so I went for consistency. The forme

[issue22562] Singleton pattern for namedtuple

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

[issue22187] commands.mkarg() buggy in East Asian locales

2014-10-06 Thread Jakub Wilk
Jakub Wilk added the comment: Something like this should be safe: def mkarg(x): ' ' + pipes.quote(x) -- ___ Python tracker ___ __

[issue22187] commands.mkarg() buggy in East Asian locales

2014-10-06 Thread Jakub Wilk
Jakub Wilk added the comment: Err, with return of course. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2014-10-06 Thread STINNER Victor
STINNER Victor added the comment: On Fedora 20/x86_64, running test_file2k takes up to 4.8 GB (5114316 kB) of RSS memory (VmPeak in /proc/pid/status). It looks like readahead_get_line_skip() has an efficient code to handle buffer. It uses recursive calls: --- readahead: allocate 0.0 MB readahe

[issue22507] PyType_IsSubtype doesn't call __subclasscheck__

2014-10-06 Thread Georg Brandl
Georg Brandl added the comment: This is indeed intended. I'll update the docs. -- nosy: +georg.brandl resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue22507] PyType_IsSubtype doesn't call __subclasscheck__

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbf2a52575ee by Georg Brandl in branch '3.4': Closes #22507: document that PyType_IsSubtype does not call __subclasscheck__. https://hg.python.org/cpython/rev/dbf2a52575ee -- nosy: +python-dev resolution: not a bug -> fixed stage: -> resolv

[issue22507] PyType_IsSubtype doesn't call __subclasscheck__

2014-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset af18f1e1ade2 by Georg Brandl in branch '2.7': Closes #22507: document that PyType_IsSubtype does not call __subclasscheck__. https://hg.python.org/cpython/rev/af18f1e1ade2 -- ___ Python tracker

[issue18348] Additional code pages for EBCDIC

2014-10-06 Thread STINNER Victor
STINNER Victor added the comment: If more users request this codec, we may integrate it later. Right now, maintain a package on PyPI is enough. It's easy to register a "custom" codec from a third-party codec: use https://docs.python.org/dev/library/codecs.html#codecs.register -- resolu

[issue22566] International keyboard makes IDLE crash on OSX

2014-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Run following command in a terminal: python -c 'import tkinter; tkinter.Text().pack(); tkinter.mainloop()' and type your dead keys in created window. What happened? -- assignee: -> ronaldoussoren components: +IDLE, Macintosh nosy: +ronaldoussore

[issue22561] PyUnicode_InternInPlace crashes

2014-10-06 Thread Jens Troeger
Jens Troeger added the comment: Thanks Victor. I had the suspicion that UNO might set up somewhat incorrectly, and consequently cause this problem. To answer your questions: - Debug symbols: agreed. I haven't built a vanilla Python with symbols yet. I'm using MacPorts default Python 3.3. - Y

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

[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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

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

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

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

[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

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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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 Georg Brandl
Georg Brandl added the comment: Thanks! -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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

[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

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

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

[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

[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

[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

[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

[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

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

[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

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

[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

  1   2   >