[issue22546] Wrong default precision in documentation for format

2014-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tommy, thanks for reporting this. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue22546] Wrong default precision in documentation for format

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 041d0752171a by Terry Jan Reedy in branch '3.4': Issue #22546: update doc for mini-language float None presentation type. https://hg.python.org/cpython/rev/041d0752171a -- nosy: +python-dev ___ Python tra

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

2014-10-05 Thread Martin Pitt
Martin Pitt added the comment: > How much memory does that whatever is running that test have? Our default is 1 GB for our test runner VMs. I now raised it to 4 GB for python2.7, but we can only do that for our x86 VMs. For other architectures (ppc64el and ARM) the test VMs just don't have tha

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

2014-10-05 Thread Leo
New submission from Leo: The nametuple function creates classes dynamically. The caller must provide the class name thus overriding any existing object name. An overridden object may be garbage-collected or survive depending on its reference count. While this behavior is not new to Python, I a

[issue22562] Singleton pattern for namedtuple

2014-10-05 Thread Leo
New submission from Leo: Each call of namedtuple will create a new class object even if an equal class, i.e. for the same fields has been created before. Applying the singleton pattern would be more efficient at least in two respects: * it would reduce the number of class objects. * checking f

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

2014-10-05 Thread anand jeyahar
anand jeyahar added the comment: Hi, This will need latest kernel to develop, fix and test. I (on Debian 7) couldn't find the latest kernel, but picked up ubuntu kernel from here http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.17-rc7-utopic/. I picked up the latest i.e: linux-image-3.17.

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

2014-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Better late than never. At least on Windows, with has defaultextension = '', changeing "Save as type" to "Text files" changes the default to ".txt". I presume that this bonus feature is not available on OSX, where defaultextension = '.py'. Before I update t

[issue3832] add force_shared Library option to create shared lib even with use_stub=False

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69cdf71bda12 by Terry Jan Reedy in branch '2.7': Issue #3832: backport 677a9326b4d4 to 2.7 (and delete some obsolete code). https://hg.python.org/cpython/rev/69cdf71bda12 -- nosy: +python-dev ___ Python t

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-10-05 Thread Jurko Gospodnetić
Changes by Jurko Gospodnetić : Removed file: http://bugs.python.org/file36823/218ef482e1e4.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-10-05 Thread Jurko Gospodnetić
Changes by Jurko Gospodnetić : Added file: http://bugs.python.org/file36823/218ef482e1e4.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-10-05 Thread Jurko Gospodnetić
Jurko Gospodnetić added the comment: Here's another patch fixing the Visual Studio Express edition issue plus some minor related code-cleanup. See the Hg repo at: https://bitbucket.org/jurko/cpython branch: jurko/distutils_msvc_express_fix direct link: https://bitbucket.org/jurko/cpython

[issue22561] PyUnicode_InternInPlace crashes

2014-10-05 Thread Jens Troeger
New submission from Jens Troeger: This might be an issue with Python, or an issue with Libre/OpenOffice not setting up the UNO environment correctly. The crash happens during "import uno" of Python 3.3 in the PyUnicode_InternInPlace function. I've done some digging and posted more information

[issue22560] Add loop-agnostic SSL implementation to asyncio

2014-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: This is awesome news! Since this is 3.5 only, I guess this means the end of my attempts to keep the asyncio source code identical in the Tulip repo (from which I occasionally create builds that work with Python 3.3) and in the 3.4 and 3.5 branches. I guess

[issue18494] PyType_GenericSet/GetDict functions misnamed in docs?

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9dbd7d34cbcf by Benjamin Peterson in branch '3.4': PyObject not PyType (closes #18494) https://hg.python.org/cpython/rev/9dbd7d34cbcf New changeset ec3077e23b7d by Benjamin Peterson in branch 'default': merge 3.4 (#18494) https://hg.python.org/cpyth

[issue22560] Add loop-agnostic SSL implementation to asyncio

2014-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a proof-of-concept patch. I've only tested it under Linux, but it should be possible to write a simple _make_ssl_transport() for the BaseProactorEventLoop. -- keywords: +patch nosy: +sbt Added file: http://bugs.python.org/file36821/sslproto.pat

[issue22559] [backport] ssl.MemoryBIO

2014-10-05 Thread Geert Jansen
Geert Jansen added the comment: > In Python2 socket._socketobject composes with _socket.socket, so we pass > "self._sock", that way it has teh right C-level fields. Unfortunately taking > a weakref of _socket.socket is not allowed. I see, and agree that making it weakref-able would be a bad id

[issue22559] [backport] ssl.MemoryBIO

2014-10-05 Thread Alex Gaynor
Alex Gaynor added the comment: Unfortunately it can't be a weakref in python2 :-( In Python3 socket._socketobject *subclasses* _socket.socket, so when we pass "self" to stuff, it's has the right C-level fields but it's also a Python-levle object so it can have a weakref. In Python2 socket._so

[issue22559] [backport] ssl.MemoryBIO

2014-10-05 Thread Geert Jansen
Geert Jansen added the comment: > Right, socket._socketobject mearly nulls out the reference to _socket.socket, > and lets reference counting take care of the rest. Ugh this is bad... I thought close() was exactly there when you don't want to depend on refcounting for cleanup. > * When do_han

[issue22560] Add loop-agnostic SSL implementation to asyncio

2014-10-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +asyncio type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue22560] Add loop-agnostic SSL implementation to asyncio

2014-10-05 Thread Antoine Pitrou
New submission from Antoine Pitrou: Now that #21965 is implemented, it is possible to improve SSL support in asyncio by making it independent of how the underlying event loop works (e.g. whether it is a Unix-like reactor or a proactor). -- messages: 228628 nosy: geertj, giampaolo.rodol

[issue22559] [backport] ssl.MemoryBIO

2014-10-05 Thread Alex Gaynor
Alex Gaynor added the comment: Right, socket._socketobject mearly nulls out the reference to _socket.socket, and lets reference counting take care of the rest. I've more of less got this figured out: * When do_handshake() raises an exception (say, a CertificateError), then a reference to a tr

[issue21965] Add support for Memory BIO to _ssl

2014-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm closing this issue, and will open a new one for asyncio and/or SSLPipe. Thank you very much, Geert! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue22559] [backport] ssl.MemoryBIO

2014-10-05 Thread Geert Jansen
Geert Jansen added the comment: It seems that SSLSocket.close() doesn't actually close the socket, and that's why the server side read() blocks. It's a bit of a mystery to me how socket.close(), which is called by SSLSocket to do the actual close, is supposed to work. I don't see any calls to

[issue21965] Add support for Memory BIO to _ssl

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8da1aa71cd73 by Antoine Pitrou in branch 'default': Remove unused "block" argument in SSLObject.do_handshake() (issue #21965) https://hg.python.org/cpython/rev/8da1aa71cd73 -- ___ Python tracker

[issue21965] Add support for Memory BIO to _ssl

2014-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 05/10/2014 23:24, Geert Jansen a écrit : > > Yes, it could be done quite easily. SslPipe has no dependency on > other parts of Gruvi and if this is for Python 3.5 only then you don't need sslcompat either. Yes, it works. Note that I had to modify SSLPipe to

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From Doc/c-api/gcsupport.rst: > Constructors for container types must conform to two rules: > > #. The memory for the object must be allocated using :c:func:`PyObject_GC_New` >or :c:func:`PyObject_GC_NewVar`. > > #. Once all the fields which may contain

[issue21965] Add support for Memory BIO to _ssl

2014-10-05 Thread Geert Jansen
Geert Jansen added the comment: Thanks Antoine for merge! > SSLPipe looks interesting. I wonder if it can be used to reimplement > _SelectorSslTransport in asyncio.selector_events (at least as an experiment). Yes, it could be done quite easily. SslPipe has no dependency on other parts of Gruv

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2014-10-05 Thread STINNER Victor
STINNER Victor added the comment: I don't know the PyObject_GC_Track() function. Why is it an issue to not call it? Can you elaborate Christian? What do you suggest? -- ___ Python tracker _

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2014-10-05 Thread STINNER Victor
STINNER Victor added the comment: Le 5 oct. 2014 20:04, "Mark Lawrence" a écrit : > > > Mark Lawrence added the comment: > > @Christian/Victor could either of you provide a patch for this, it's way beyond my knowledge I'm afraid. I agree with Benjamin. Asking directly two developers to write a

[issue22559] [backport] ssl.MemoryBIO

2014-10-05 Thread Geert Jansen
Changes by Geert Jansen : -- nosy: +geertj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22559] [backport] ssl.MemoryBIO

2014-10-05 Thread Alex Gaynor
New submission from Alex Gaynor: Attached patch is a first-cut at a backport patch. Note that it is not quite a 1-1 with the original: The SSL module backport added a new field for the Python-level "SSLSocket" reference (ssl_sock), which was a different object from the _socket.socket (PySocke

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2014-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, I also appreciate your efforts, as I hope should be obvious from my prior responses to many of your other posts. I also agree that somewhat fewer, higher quality posts would be even more helpful. Please do not slip into a 'confrontational' mode, as you

[issue22351] NNTP constructor exception leaves socket for garbage collector

2014-10-05 Thread Rishi
Rishi added the comment: patch updated to use just plain exception -- Added file: http://bugs.python.org/file36819/issue22351_1.patch ___ Python tracker ___ _

[issue18494] PyType_GenericSet/GetDict functions misnamed in docs?

2014-10-05 Thread eryksun
eryksun added the comment: See changeset 78f93eb7dd75. The names in the docs are wrong. -- nosy: +eryksun ___ Python tracker ___ ___ P

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2014-10-05 Thread Berker Peksag
Changes by Berker Peksag : -- components: +Tests nosy: +berker.peksag stage: needs patch -> patch review versions: +Python 3.5 ___ Python tracker ___

[issue21965] Add support for Memory BIO to _ssl

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset a79003f25a41 by Antoine Pitrou in branch 'default': Issue #21965: Add support for in-memory SSL to the ssl module. https://hg.python.org/cpython/rev/a79003f25a41 -- nosy: +python-dev ___ Python tracker <

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Sorry but no, when I started out on this a couple of months ago there were over 600 issues that nobody had even bothered to reply to. That number is now down to 369. I believe that around 200 issues have been closed as a result of my efforts. Do you have a p

[issue18494] PyType_GenericSet/GetDict functions misnamed in docs?

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone with knowledge of the C code associated with the object/type system comment on this please. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4343] tkinter: add _get_master() and use it consistently

2014-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The new function should be private. I closed #18131 as partially a duplicate of this. It has a couple of other suggested wordings for the exception. I consider the current behavior, in particular the failure of Variable and subclasses when the supposedly opti

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2014-10-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: Mark, could you please stop touching every issue on the tracker? I appreciate the effort, but giving thoughtful feedback, patches, or reviews on a just a few issues would be much more helpful. -- nosy: +benjamin.peterson ___

[issue18493] make profile-opt fails with pre-existing python2.7 in path

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Can somebody please take a look at the inline patch in msg193313. -- nosy: +BreamoreBoy type: -> behavior versions: +Python 3.4, Python 3.5 ___ Python tracker _

[issue18459] readline: libedit support on non-apple platforms

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle reminder. -- components: +Extension Modules nosy: +BreamoreBoy versions: +Python 2.7, Python 3.5 ___ Python tracker ___ ___

[issue18348] Additional code pages for EBCDIC

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently Python includes codecs for cp037, cp273, and cp500. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue21173] WeakKeyDictionary.__len__ fragile w/ _IterationGuards

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 657d21b4b121 by Antoine Pitrou in branch '3.4': Closes #21173: Fix len() on a WeakKeyDictionary when .clear() was called with an iterator alive. https://hg.python.org/cpython/rev/657d21b4b121 New changeset 27533444b964 by Antoine Pitrou in branch '

[issue19380] Optimize parsing of regular expressions

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which addresses Yury's and Josh's comments. Also discarded few minor changes. -- Added file: http://bugs.python.org/file36818/re_parse_4.patch ___ Python tracker

[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: @Christian/Victor could either of you provide a patch for this, it's way beyond my knowledge I'm afraid. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue12957] mmap.resize changes memory address of mmap'd region

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: @Michael can you provide a patch to this effect? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker ___ _

[issue18348] Additional code pages for EBCDIC

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: What do our unicode experts think about this enhancement request? -- nosy: +BreamoreBoy versions: +Python 3.5 ___ Python tracker ___

[issue18319] gettext() cannot find translations with plural forms

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: @Martin can you comment on this please. -- nosy: +BreamoreBoy, loewis type: -> behavior versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue17580] ctypes: ARM hardfloat argument corruption calling functions with many float arguments

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Could we have a reply to this from our ctypes experts, thanks. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___

[issue22364] Improve some re error messages using regex for hints

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > As for #14, either UNICODE and LOCALE *are* compatible (for re) or this is > buggy. This is buggy (issue22407). -- title: Unify error messages of re and regex -> Improve some re error messages using regex for hints ___

[issue18173] Add MixedTypeKey to reprlib

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle reminder guys. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ _

[issue15729] PyStructSequence_NewType enhancement

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: I'm uncertain as to whether or not the patch can be considered stand alone, or whether the pep3121 keyword is also relevant here. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue16518] add "buffer protocol" to glossary

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are other unfixed messages (may be introduced after 3.3): >>> b''.join(['']) Traceback (most recent call last): File "", line 1, in TypeError: sequence item 0: expected bytes, bytearray, or an object with the buffer interface, str found >>> str(42, '

[issue18299] Change script_helper to use universal_newlines=True in _assert_python

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle reminder guys. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ _

[issue18166] 'value' attribute for ValueError

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle reminder guys. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ _

[issue18165] Add 'unexpected_type' to TypeError

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle reminder guys. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ _

[issue14303] Incorrect documentation for socket.py on linux

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Shane, there are major differences between the makefile docs versions 2 and 3, so could you prepare a patch for this addressed at version 2 only? -- nosy: +BreamoreBoy versions: -Python 2.6 ___ Python tracker

[issue18161] call fchdir if subprocess.Popen(cwd=integer|fileobject)

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: mmarkk we're sorry about the delay in getting back to you. Who is best placed to reply to this enhancement request, the only name on the experts list is inactive? -- nosy: +BreamoreBoy versions: -Python 3.3, Python 3.4 ___

[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C

2014-10-05 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> out of date status: languishing -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue2552] test_ctypes failed Python 2.6a2 Solaris 10 SUN C

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Can we close this as I cannot see how a test failure against a 6.5 year old alpha build can still be relevant? -- ___ Python tracker ___

[issue4343] New function in Tkinter.py: setup_master

2014-10-05 Thread R. David Murray
R. David Murray added the comment: Changing status back to 'needs patch' per Terry's comment that the patch needs to be updated (now for 3.5). -- assignee: gpolo -> nosy: +r.david.murray stage: commit review -> needs patch versions: +Python 3.5 -Python 3.4

[issue22324] Use PyUnicode_AsWideCharString() instead of PyUnicode_AsUnicode()

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > In which use case do you think that the overhead of not using the cache would > be important enough? I suppose in the same use case that memory overhead of using the cache is important enough. We need results of performance and memory consumption effect o

[issue16518] add "buffer protocol" to glossary

2014-10-05 Thread R. David Murray
R. David Murray added the comment: Committed the message changes to 3.5 only, since it will probably cause tests to fail in various projects, despite messages not being a formal part of the python API. Per IRC conversation with Ezio and Antoine, I posted a note to python-dev to let people k

[issue22324] Use PyUnicode_AsWideCharString() instead of PyUnicode_AsUnicode()

2014-10-05 Thread STINNER Victor
STINNER Victor added the comment: > The cache is released when the string is released. While the string exists > it's wchar_t representation can be needed again. That is for what the cache > exists. I know. But I don't want to waste memory for this cache. I want to stop using it. IMO the perf

[issue16518] add "buffer protocol" to glossary

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7e8a218737a by R David Murray in branch 'default': #16518: Bring error messages in harmony with docs ("bytes-like object") https://hg.python.org/cpython/rev/e7e8a218737a -- ___ Python tracker

[issue22390] test.regrtest should complain if a test doesn't remove temporary files

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8cf8bff3569e by Victor Stinner in branch '3.4': Issue #22390: Remove files created by tests https://hg.python.org/cpython/rev/8cf8bff3569e -- nosy: +python-dev ___ Python tracker

[issue21965] Add support for Memory BIO to _ssl

2014-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: SSLPipe looks interesting. I wonder if it can be used to reimplement _SelectorSslTransport in asyncio.selector_events (at least as an experiment). I'll take a look at the cumulated patch soon, thank you. -- ___ Pytho

[issue22290] "AMD64 OpenIndiana 3.x" buildbot: assertion failed in PyObject_Call() in test_subprocess.test_preexec()

2014-10-05 Thread STINNER Victor
STINNER Victor added the comment: I hope that my fix will be enough to fix the issue. Since it was only seen once, I prefer to close the issue. By the way, it would be nice to give more memory to this buildbot! -- resolution: -> fixed status: open -> closed __

[issue22290] "AMD64 OpenIndiana 3.x" buildbot: assertion failed in PyObject_Call() in test_subprocess.test_preexec()

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0455cbfd7ae6 by Victor Stinner in branch '3.4': Issue #22290: Fix error handling in the _posixsubprocess module. https://hg.python.org/cpython/rev/0455cbfd7ae6 New changeset a74c73477a64 by Victor Stinner in branch 'default': (Merge 3.4) Issue #2229

[issue22222] dtoa.c: remove custom memory allocator

2014-10-05 Thread STINNER Victor
STINNER Victor added the comment: I was no aware of the performance degradation when I created the issue. 18 KB of memory is too low to invest effort on optimizing the generic Python memory allocator, I prefer to keep the heavily optimized allocator in dtoa.c. -- resolution: -> not a

[issue22332] test_multiprocessing_main_handling fail on buildbot "x86 FreeBSD 6.4 3.x"

2014-10-05 Thread STINNER Victor
STINNER Victor added the comment: The test_multiprocessing_main_handling test is now skipped, as expected, on on the buildbot "x86 FreeBSD 6.4 3.x". -- ___ Python tracker ___ __

[issue21965] Add support for Memory BIO to _ssl

2014-10-05 Thread Geert Jansen
Geert Jansen added the comment: Maybe an example is useful on how the Memory BIO stuff can be used to implement SSL on top of a proactor event loop. I just added support for this to my Gruvi project in the branch "feat-memory-bio": An "SslPipe" utility class that uses the memory BIOs: https:/

[issue22331] test_io.test_interrupted_write_text() hangs on the buildbot FreeBSD 7.2

2014-10-05 Thread STINNER Victor
STINNER Victor added the comment: The test now pass on the buildbot FreeBSD 7.2. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue22558] Missing hint to source code - complete

2014-10-05 Thread Friedrich Spee von Langenfeld
Friedrich Spee von Langenfeld added the comment: I decremented the shown number of modules by 25. Here is the new list: https://docs.python.org/3/library/base64.html https://docs.python.org/3/library/binhex.html https://docs.python.org/3/library/bz2.html https://docs.python.org/3/library/cgitb.h

[issue22332] test_multiprocessing_main_handling fail on buildbot "x86 FreeBSD 6.4 3.x"

2014-10-05 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22557] Local import is too slow

2014-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some more general comments about this: - Let's keep in mind the absolute numbers. 0.450120013341 for 10 iterations is 4.5ms per iteration. This is not very slow by CPython's standards. - I wonder if you ran your benchmark in debug mode or if your CPU i

[issue22557] Local import is too slow

2014-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would suggest factoring out IMPORT_NAME into a separate import_name() function, like is already one for import_from(). -- ___ Python tracker

[issue22557] Local import is too slow

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Second version of the patch uses fast patch only when builtin __import__ is not overridden. It is slightly slower (due to lookup of __import__). >>> import timeit >>> def f(): ... import locale ... >>> min(timeit.repeat(f, number=10, repeat=10)) 0.10

[issue19477] document tp_print() as being dead in Py3

2014-10-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset bead459ccce8 by Georg Brandl in branch '3.4': Closes #19477: remove outdated documentation of tp_print type object slot. https://hg.python.org/cpython/rev/bead459ccce8 -- nosy: +python-dev resolution: -> fixed stage: needs patch -> resolved

[issue22558] Missing hint to source code - complete

2014-10-05 Thread R. David Murray
R. David Murray added the comment: And that have source code. That said, some modules may have been consciously omitted. -- nosy: +r.david.murray, rhettinger ___ Python tracker

[issue19477] document tp_print() as being dead in Py3

2014-10-05 Thread Stefan Behnel
Changes by Stefan Behnel : Added file: http://bugs.python.org/file36815/undocument_tp_print.patch ___ Python tracker ___ ___ Python-bugs-list

[issue19477] document tp_print() as being dead in Py3

2014-10-05 Thread Stefan Behnel
Changes by Stefan Behnel : Removed file: http://bugs.python.org/file36813/undocument_tp_print.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue22557] Local import is too slow

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not experienced in import machinery. Here is preliminary patch which implements my idea for particular case. Performance effect is almost so good as manual caching in a global. >>> import timeit >>> def f(): ... import locale ... >>> min(timeit.rep

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2014-10-05 Thread Stefan Behnel
Stefan Behnel added the comment: > Proper escaping should be added to the _escape_attrib() function into > /xml/etree/ElementTree.py (and equivalent for cElementTree). Agreed. Can you provide a patch? -- versions: -Python 2.7 ___ Python tracker

[issue19477] document tp_print() as being dead in Py3

2014-10-05 Thread Stefan Behnel
Stefan Behnel added the comment: Sure. -- keywords: +patch Added file: http://bugs.python.org/file36813/undocument_tp_print.patch ___ Python tracker ___ _

[issue17234] python-2.7.3-r3: crash in visit_decref()

2014-10-05 Thread Mark Lawrence
Mark Lawrence added the comment: Should this be closed as I'm not aware of any similar problems with 2.7, particularly when this addresses 2.7.3.rc3? -- ___ Python tracker ___ _

[issue22557] Local import is too slow

2014-10-05 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue22556] datetime comparison with 'None' returning a TypeError

2014-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: You've identified the main problem: would None go first or last? Modify your key function to make the decision appropriate for you, returning either a very small or very large value for None, as appropriate. If you really want to see this behavior changed, you

[issue22557] Local import is too slow

2014-10-05 Thread Nick Coghlan
Nick Coghlan added the comment: __import__ is intended as an absolute override (including of the sys.modules cache lookup), so we can't bypass it without breaking backwards compatibility. It's possible there is room for other optimisations that don't break the import override semantics (such a

[issue22558] Missing hint to source code - complete

2014-10-05 Thread SilentGhost
SilentGhost added the comment: Your code produces many false positives, would you care to reduce this list to only those modules that actually do not have a Source code link? -- nosy: +SilentGhost ___ Python tracker

[issue22558] Missing hint to source code - complete

2014-10-05 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: As mentioned in Issue22528, in some modules´ documentation, the link to their source code is missing. To check the stdlib, I´ve written the script missing_hint.py. It seems that in the following module entries, there aren´t a link to their sou

[issue22557] Local import is too slow

2014-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: This would sound reasonable to me, but I wonder if it may change behaviour with weird custom __import__ overrides. -- ___ Python tracker ___ __

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2014-10-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue22557] Local import is too slow

2014-10-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Locale import is too slow -> Local import is too slow ___ Python tracker ___ ___ Python-bugs-l

[issue22557] Locale import is too slow

2014-10-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Locale import is too slow in comparison with caching module in a global or even in sys.modules. >>> import timeit >>> def f(): ... import locale ... >>> min(timeit.repeat(f, number=10, repeat=10)) 0.450120013341 >>> _locale = None >>> def g():

[issue22555] Tracking issue for adjustments to binary/text boundary handling

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

[issue11101] plistlib has no graceful way of handing None values

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that binary plist format supports None. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue21401] python2 -3 does not warn about str/unicode to bytes conversions and comparisons

2014-10-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Python 3 warns even if strings are equal. Did you mean "not equal"? In Python 3 strings and bytes are always not equal. -- ___ Python tracker _

  1   2   >