[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy dependencies: +Idle: mock Text class and test thereof ___ Python tracker ___

[issue18365] Idle: mock Text class and test thereof

2013-07-04 Thread Terry J. Reedy
New submission from Terry J. Reedy: test_rstrip2.patch contain a Text class to be added to mock_tk.py. The purpose of a mock class is to imitate another class with respect to certain behaviors. The way to verify that is does that is to run the same set of tests for those behaviors with both. T

[issue18200] Update stdlib to use ModuleNotFoundError

2013-07-04 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: > As ModuleNotFoundError is going to be reverted so should the changesets for > this issue. Could you possibly clarify this?. Pointers? -- ___ Python tracker ___

[issue18279] IDLE Unit test for RstripExtension.py

2013-07-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I want to make two separate commits. First add mock Text into mock_tk.py, and add a new test_text.py. I suggested looking at the tkinter Text test. I turns out that it only tests a few special search cases. I am guessing that they have something to do with the

[issue18364] Remove _not_found hack from importlib

2013-07-04 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5639] Support TLS SNI extension in ssl module

2013-07-04 Thread Mark Kubacki
Changes by Mark Kubacki : Added file: http://bugs.python.org/file30779/python-2.7.5-tlssni.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue5639] Support TLS SNI extension in ssl module

2013-07-04 Thread Mark Kubacki
Changes by Mark Kubacki : Removed file: http://bugs.python.org/file30778/python-2.7.5-tlssni.patch ___ Python tracker ___ ___ Python-bugs-list

[issue5639] Support TLS SNI extension in ssl module

2013-07-04 Thread Mark Kubacki
Changes by Mark Kubacki : Added file: http://bugs.python.org/file30778/python-2.7.5-tlssni.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue5639] Support TLS SNI extension in ssl module

2013-07-04 Thread Mark Kubacki
Changes by Mark Kubacki : Removed file: http://bugs.python.org/file30757/python-2.7.5-tlssni.patch ___ Python tracker ___ ___ Python-bugs-list

[issue16396] Importing ctypes.wintypes on Linux gives a traceback

2013-07-04 Thread Christian Heimes
Christian Heimes added the comment: RM, please decide. :) -- assignee: -> benjamin.peterson stage: needs patch -> patch review ___ Python tracker ___ ___

[issue18347] ElementTree corrupts cAse of closing tags when html method is specified

2013-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset df79735b21c1 by Christian Heimes in branch '3.3': Issue #18347: ElementTree's html serializer now preserves the case of closing tags. http://hg.python.org/cpython/rev/df79735b21c1 New changeset d5536c06a082 by Christian Heimes in branch 'default':

[issue18347] ElementTree corrupts cAse of closing tags when html method is specified

2013-07-04 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18364] Remove _not_found hack from importlib

2013-07-04 Thread Brett Cannon
New submission from Brett Cannon: Having a private attribute has already caused one bug report. I want to try and come up with something that doesn't leak outside of importlib. -- assignee: brett.cannon components: Library (Lib) messages: 192322 nosy: brett.cannon priority: normal sever

[issue18302] test_multiprocessing: test.support.import_module() does not ignore the ImportError on SemLock

2013-07-04 Thread Brett Cannon
Brett Cannon added the comment: Because I removed ModuleNotFoundError; check the buildbot again and you will notice it is 8 changesets behind, most of which are related to the removal of ModuleNotFoundError. -- resolution: -> out of date status: open -> closed ___

[issue18302] test_multiprocessing: test.support.import_module() does not ignore the ImportError on SemLock

2013-07-04 Thread STINNER Victor
STINNER Victor added the comment: Brett: Why did you close this issue? It still occurs on the buildbot: http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%203.x/builds/3794/steps/test/logs/stdio -- resolution: out of date -> status: closed -> open

[issue15767] add ModuleNotFoundError

2013-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18200] Update stdlib to use ModuleNotFoundError

2013-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18302] test_multiprocessing: test.support.import_module() does not ignore the ImportError on SemLock

2013-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue15767] add ModuleNotFoundError

2013-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0e4e062751fa by Brett Cannon in branch 'default': Issue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError. http://hg.python.org/cpython/rev/0e4e062751fa New changeset e3ec8b176a80 by Brett Cannon in branch 'default': Issue #15767: Revert

[issue18200] Update stdlib to use ModuleNotFoundError

2013-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7769c4d72806 by Brett Cannon in branch 'default': Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) http://hg.python.org/cpython/rev/7769c4d72806 -- ___ Python tracker

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-04 Thread Dale Smith
Dale Smith added the comment: http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi That is the URL I downloaded from and the installer. Thank you, Dale On 7/4/2013 4:17 PM, R. David Murray wrote: > R. David Murray added the comment: > > Exactly which installer are you trying to run and whe

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Richard Oudkerk
Richard Oudkerk added the comment: I find that by adding the lines fileobj.raw.readinto = ss.recv_into fileobj.raw.read = ss.recv the speed with makefile() is about 30% slower than with fdopen(). -- ___ Python tracker

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-04 Thread R. David Murray
R. David Murray added the comment: Exactly which installer are you trying to run and where did you download it from? -- nosy: +r.david.murray ___ Python tracker ___

[issue18279] IDLE Unit test for RstripExtension.py

2013-07-04 Thread Phil Webster
Phil Webster added the comment: Added to Terry's Text Widget code (in #18226) and created mock_idle.py for the mock EditorWindow. Todd's FormatParagraph test in the aforementioned issue also passes with the mock EditorWindow. -- Added file: http://bugs.python.org/file30777/test_rstrip2

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread STINNER Victor
STINNER Victor added the comment: My results of the benchmark on Linux 3.9, first with a loop calling fileobj.read(8192) ("read"), then with the "for line in fileobj: pass" ("readline"). $ python2.7 bench_socket_read.py TCP mode, makefile method. 1775085.8 lines per second (1692.9 MB/s). Dela

[issue17845] Clarify successful build message

2013-07-04 Thread Brett Cannon
Brett Cannon added the comment: First, thanks to Yogesh for writing a patch! Second, I still think the second line should be "The necessary bits to build these optional modules were not found:". I purposefully like the vagueness of it so we don't start going on about external vs. system, wheth

[issue18363] Change use of acronym tag in devinabox index.html to abbr

2013-07-04 Thread Brett Cannon
New submission from Brett Cannon: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr -- assignee: brett.cannon keywords: easy messages: 192311 nosy: brett.cannon priority: low severity: normal status: open title: Change use of acronym tag in devinabox index.html to abbr

[issue18362] Make build_cpython.py from dev-in-a-box work outside of a box

2013-07-04 Thread Brett Cannon
New submission from Brett Cannon: No reason why it can't be generalized to accept a directory argument so that it can be used by anyone to build a checkout of CPython whether it is in a box or not. Would also help maintain the code as me (and one else who cared to) could then just always use

[issue18361] Move dev-in-a-box to os.cpu_count()

2013-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon keywords: easy nosy: brett.cannon priority: low severity: normal stage: needs patch status: open ___ Python tracker ___ __

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread STINNER Victor
STINNER Victor added the comment: On Python 2, socket.makefile("rb") duplicates the file descriptor and creates a new file object: fileobj.read() calls the C function read(). On Python 3, socket.makefile("rb") creates a SocketIO wrapped in BufferedReader: fileobj.read() calls the C function re

[issue15767] add ModuleNotFoundError

2013-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Update stdlib to use ModuleNotFoundError ___ Python tracker ___ ___ Python-bugs-list maili

[issue18200] Update stdlib to use ModuleNotFoundError

2013-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: -add ModuleNotFoundError ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue18302] test_multiprocessing: test.support.import_module() does not ignore the ImportError on SemLock

2013-07-04 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +add ModuleNotFoundError ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11185] test_wait4 error on AIX

2013-07-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you. This should be fixed now. Please reopen if not. -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.3, Python 3.4 -Python 3.2 ___ Pyth

[issue18200] Update stdlib to use ModuleNotFoundError

2013-07-04 Thread Brett Cannon
Brett Cannon added the comment: As ModuleNotFoundError is going to be reverted so should the changesets for this issue. -- resolution: fixed -> status: closed -> open ___ Python tracker __

[issue11185] test_wait4 error on AIX

2013-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3fd5fc5dc47 by Antoine Pitrou in branch '2.7': Issue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé. http://hg.python.org/cpython/rev/e3fd5fc5dc47 -- ___ Python tracker

[issue11185] test_wait4 error on AIX

2013-07-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3ea1b5a1617 by Antoine Pitrou in branch '3.3': Issue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé. http://hg.python.org/cpython/rev/b3ea1b5a1617 New changeset 8055521e372f by Antoine Pitrou in branch 'default': Issue #11185: Fix test

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-04 Thread Brett Cannon
Brett Cannon added the comment: Any chance you want to write some tests for the function? =) -- keywords: +easy ___ Python tracker ___ ___

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Richard Oudkerk
Richard Oudkerk added the comment: Ah. I had not thought of socket timeouts. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Christian Heimes
Christian Heimes added the comment: There is little bit more to it. A comment in the class' body describes the reason for SockteIO: # One might wonder why not let FileIO do the job instead. There are two # main reasons why FileIO is not adapted: # - it wouldn't work under Windows (

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Richard Oudkerk
Richard Oudkerk added the comment: The only real reason for implementing SocketIO in pure Python is because read() and write() do not work on Windows with sockets. (I think there are also a few complications involving SSL sockets and the close() method.) On Windows I have implemented a file o

[issue18351] Incorrect variable name in importlib._bootstrap._get_sourcefile

2013-07-04 Thread Madison May
Madison May added the comment: Here's a 5 character patch for the sake of completeness. -- keywords: +patch nosy: +madison.may Added file: http://bugs.python.org/file30776/Issue18351.patch ___ Python tracker __

[issue18021] Update broken link to Apple Publication Style Guide

2013-07-04 Thread Madison May
Madison May added the comment: If the general consensus is that the APSG link should be removed, here's one more patch for you. -- Added file: http://bugs.python.org/file30775/apsg_removed.patch ___ Python tracker

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Christian Heimes
Christian Heimes added the comment: Err, you are right. It's buffered. I misread one function call and thought it's not buffered at all. >>> COUNT = 100 >>> LINELEN = 1000 >>> int(LINELEN * COUNT / 8192) 122070 The number looks familiar, doesn't it? :) I still stand by my analysis that th

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Richard Oudkerk
Richard Oudkerk added the comment: Using while True: if not fileobj.read(8192): break instead of for line in fileobj: pass results in higher throughput, but a similar slowdown with makefile(). So this is not a problem specific to readl

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Richard Oudkerk
Richard Oudkerk added the comment: > I think I know what's going on here. For socket IO readline() uses a > readahead buffer size of 1. Why is that? I think that makefile(mode='rb') and fdopen() both create BufferedReader objects with the same buffer size. It looks to me like there are the s

[issue16977] argparse: mismatch between choices parsing and usage/error message

2013-07-04 Thread paul j3
paul j3 added the comment: Changing _check_value from: def _check_value(self, action, value): # converted value must be one of the choices (if specified) if action.choices is not None and value not in action.choices: ... to def _check_value(self, action, val

[issue18360] Won't install. Keeps telling me DLL is missing.

2013-07-04 Thread Dale Smith
New submission from Dale Smith: When I click install -> run, it tells me a DLL is missing and to contact my vendor (Windows 7 Home Premium). This is the only installation that does this. I cannot find an answer anywhere and all other installations work fine. What could be causing this? Which

[issue18356] help(numpy) causes segfault on exit

2013-07-04 Thread Michelle Arzul
Michelle Arzul added the comment: Apparently it only occurs with the Ubuntu packaged versions of Python and numpy. Somebody who was able to reproduce my problem had it with python-2.7.4-0ubuntu1-amd64 and python-numpy-1:1.7.1-1ubuntu1-amd64 which exhibited the same behaviour. Apparently python

[issue18356] help(numpy) causes segfault on exit

2013-07-04 Thread R. David Murray
R. David Murray added the comment: pydoc doesn't do anything special other than import the module. Well, there's some special code in linecache for getting docstrings from C modules, I think, so that could be something to check. Does Ubuntu have local patches to numpy? -- nosy: +r.d

[issue18359] pickle fail to handle some class with __new__

2013-07-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is expected, your class must say how this __new__ constructor can be called. http://docs.python.org/2/library/pickle.html#object.__getnewargs__ -- nosy: +amaury.forgeotdarc resolution: -> works for me status: open -> closed

[issue18359] pickle fail to handle some class with __new__

2013-07-04 Thread yoch
New submission from yoch: Hi, If some class objects have extra arguments in the __new__ constructor , pickle fail to serialize it. Here the output of provided test-case : Traceback (most recent call last): File "/home/yoch/bug.py", line 19, in y = pickle.load(fp) TypeError: __new__() m

[issue18357] add tests for dictview set difference operations

2013-07-04 Thread Fraser Tweedale
Fraser Tweedale added the comment: and here's a patch for python3 (the earlier patch is for the 2.7 branch). -- Added file: http://bugs.python.org/file30773/dictview-set-sub-test-python3.patch ___ Python tracker __

[issue18358] update links to Apple Style Guide

2013-07-04 Thread Russ Webber
Russ Webber added the comment: So it is. Sorry, should have searched first. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue18358] update links to Apple Style Guide

2013-07-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a duplicate of #18021 -- nosy: +ronaldoussoren resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Update broken link to Apple Publication Style Guide type: -> behavior ___

[issue18358] update links to Apple Style Guide

2013-07-04 Thread Russkel
New submission from Russkel: Apple has relocated and renamed their style guide. This patch reflects those changes and provides links to both PDF and online version. -- components: Devguide files: style-guide-fixes.patch keywords: patch messages: 192286 nosy: Russkel, ezio.melotti priori

[issue18357] add tests for dictview set difference operations

2013-07-04 Thread Fraser Tweedale
New submission from Fraser Tweedale: The Python documentation states that set-like dictionary view objects support set difference (-), however, this behaviour is untested. Add some tests for this behaviour. (This issue was discovered because PyPy doesn't support (-) for dictviews, yet they cl

[issue11185] test_wait4 error on AIX

2013-07-04 Thread Charles-François Natali
Changes by Charles-François Natali : -- assignee: -> neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Christian Heimes
Christian Heimes added the comment: Summary: makefile: 611990 primitive calls fdopen: 1629 primitive calls -- ___ Python tracker ___

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Christian Heimes
Christian Heimes added the comment: I first suspected that file based IO involves too many syscalls and context switches. However ``strace -c`` showed only minor differences in the amount of syscalls. The difference between read() and recvfrom() should not make any difference. perf revealed t

[issue18353] PyUnicode_WRITE_CHAR macro definition missing

2013-07-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'll declare that the documentation is in error. I was pondering adding this macro, and the API changed forth and back several times (also after other people started contributing to the new Unicode API). The API is now what is implemented, and the documentati

[issue18329] for line in socket.makefile() speed degradation

2013-07-04 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18305] [patch] Fast sum() for non-numbers

2013-07-04 Thread Sergey
Sergey added the comment: This patch implements another solution to the same bug. But instead of changing default code it adds a special case optimization for lists, tuples and strings, similar to those two special cases for numbers, that are already there. === Lists === No patch: $ ./python

[issue18291] codecs.open interprets space as line ends

2013-07-04 Thread Paul
Paul added the comment: Right, #7643 indeed seems to be exactly about the issue I described here (for as much as I know unicode which isn't all that much). So maybe they should be merged. The issue was closed March 2010, is that after 2.7.3 was released? By the way, where I wrote \x12, \x13, \

[issue18356] help(numpy) causes segfault on exit

2013-07-04 Thread Michelle Arzul
Michelle Arzul added the comment: I'm no expert, I just found the bug... but I'll try my best. * exact Python version: 2.7.4 (GCC 4.7.3) * NumPy version: 1.7.1 * platform (X86, X86_64, ARM): i686 * Kernel: Linux 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:30 UTC 2013 i686 i686 i686 GNU/Linu

[issue18356] help(numpy) causes segfault on exit

2013-07-04 Thread Christian Heimes
Christian Heimes added the comment: Please provide more information about your setup. Not everybody has access to a Ubuntu 13.04 box * exact Python version * NumPy version * platform (X86, X86_64, ARM) * Kernel, libc and compiler version are useful, too * terminal application * environment vari

[issue18356] help(numpy) causes segfault on exit

2013-07-04 Thread Michelle Arzul
New submission from Michelle Arzul: As far as we could tell this bug is only consistently reproducible on Ubuntu 13.04. A line in pydoc.py causes a segfault when help(numpy) (no other libraries that I know of) exits. The offending method is pipepager(). For a full trackdown and workaround of

[issue18309] Make python slightly more relocatable

2013-07-04 Thread Mathias Fröhlich
Mathias Fröhlich added the comment: Hi Ronald, Eric, Nick, Looking up the symbol name of the current function should work also. And I am free to rename these functions to whatever you like. Attached is version 2 of the patch with the suggested changes. The windows implementation is still untest