[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-25 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue4347] Circular dependency causes SystemError when adding new syntax

2016-10-25 Thread Martin Panter
Martin Panter added the comment: I occasionally get the following error, due to Parser/parsetok.o being older than Include/graminit.h. ./python -E -S -m sysconfig --generate-posix-vars ; if test $? -ne 0 ; then echo "generate-posix-vars failed" ; rm -f ./pybuilddir.txt ; exit 1 ; fi Could

[issue28509] dict.update allocates too much

2016-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I prefer the existing code be left as is. We've already greatly compacted the dictionaries. There is no need to be ultra-aggressive in shaving off every little corner. There is some advantage to having the dict be more sparse (fewer collisions,

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Eryk Sun
Eryk Sun added the comment: I installed "WinPython-64bit-3.6.0.0Zerorc2.exe" on Windows 10. As you can see below, the included version of IDLEX depends on idlelib implementation details that have changed between 3.5 and 3.6: C:\WinPython36\python-3.6.0b2.amd64>.\python Python 3.6.0b2

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2016-10-25 Thread Walker Hale IV
Walker Hale IV added the comment: Clarifying the documentation regarding the __enter__ method eliminates the need for further discussion on this point regarding pop_all(), which was really just the motivating use case. That leaves the question of the most readable documentation change that

[issue28530] Howto detect if an object is of type os.DirEntry

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Eryk: With the fixes for issue25994 and issue26603, you'd want to use a with statement for the scandir; the use pattern in that example is guaranteed to cause a ResourceWarning on any directory with more than one entry. -- nosy: +josh.r

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Oh sorry. I received the emails in a strange order. I guess it can stay open. -- resolution: wont fix -> status: closed -> open ___ Python tracker

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Where did you report that? I don't see your name on this bug -- it has a patch that's been unapplied for 5 years, so I doubt it's very important. -- ___ Python tracker

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Regarding out-of-tree builds (Problem 3), see Issue 10656, which already has a potential patch. -- ___ Python tracker

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Nathaniel Manista
Nathaniel Manista added the comment: Wait, really? My report came out of a real bug that I had in my system and shipped to my users; it wasn't academic or contrived at all. -- ___ Python tracker

[issue28509] dict.update allocates too much

2016-10-25 Thread INADA Naoki
INADA Naoki added the comment: I feel that accept one resize while merging is better. How about this? /* Do one big resize at the start, rather than incrementally * resizing. At most one resize happen while merging. */ if (USABLE_FRACTION(mp->ma_keys->dk_size)

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Honestly let's just forget about this. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: OK, backed out the code changes, kept the docs. -- ___ Python tracker ___

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6eb3312a9a16 by Guido van Rossum in branch '3.6': Issue #25002: Back out asyncore/asynchat deprecation. https://hg.python.org/cpython/rev/6eb3312a9a16 New changeset 2879185bc511 by Guido van Rossum in branch 'default': Issue #25002: Back out

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 720865fa61a4 by Martin Panter in branch '3.5': Issue #26240: Clean up the subprocess module doc string https://hg.python.org/cpython/rev/720865fa61a4 New changeset 8358c68579e9 by Martin Panter in branch '3.6': Issue #26240: Merge subprocess doc

[issue10656] "Out of tree" build fails on AIX

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Actually, why do you remove $(srcdir) for Modules/python.exp? This code was added in r88426; see . -- ___ Python tracker

[issue10656] "Out of tree" build fails on AIX

2016-10-25 Thread Martin Panter
Martin Panter added the comment: The idea of the patches makes sense to me. Embedding the name of whatever directory Python was built in into the installed version of Modules/ld_so_aix.in does not seem very clean to me. Is there another way of doing this? Perhaps a file copy or symlink?

[issue2506] Add mechanism to disable optimizations

2016-10-25 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +Nathaniel Manista, aleax, cvrebert ___ Python tracker ___

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread R. David Murray
R. David Murray added the comment: Thanks for the report, but this is a duplicate of issue 5996. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> abstract class instantiable when subclassing dict

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Michael F.: It sounds like you have three separate but related problems: 1. Confusion between LDSHARED and BLDSHARED referring to the in-source build tree vs final installed files. I think this is what David and Michael H. were originally trying to fix here.

[issue28014] Strange interaction between methods in subclass of C OrderedDict

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Note: This class doesn't actually work on 3.4 in other ways (because __getitem__ is not idempotent, while OrderedDict assumes it is): >>> s = SimpleLRUCache(2) >>> s['t1'] = 1 >>> s SimpleLRUCache([('t1', 1)]) >>> s['t2'] = 2 >>> s SimpleLRUCache([('t1', 1)])

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: The Python implementation of OrderedDict breaks for issue28014, at least on 3.4.3 (it doesn't raise KeyError, but if you check the repr, it's only showing one of the two entries, because calling __getitem__ is rearranging the OrderedDict). >>> s =

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Perhaps it is okay to keep the documentation changes, but I think either the library changes should be reverted or worked around where the modules are still in use. I normally run the tests with -Werror, and the failures I get are: * test_ssl, test_smtplib,

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Steve Dower
Steve Dower added the comment: If you right-click the Start button, Event Viewer is near the top. -- ___ Python tracker ___

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2016-10-25 Thread R. David Murray
R. David Murray added the comment: Actually, the __enter__ method is looked up on the class, so saying "the __enter__ method of the instance" could be a bit confusing. Also, many context managers return self, so 'trivially' isn't really necessary as a modifier. What if we added a sentence to

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___

[issue28535] round seems to provide floor, not proper rounding

2016-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: To be clear, let's look at the first failed assertion: AssertionError: 32.78 != 32.775 within 2 places It sure *looks* like 32.775 ought to round to 32.78. And indeed it would, if it actually was 32.775. But despite appearances, it isn't. Sure, the number

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread Nathaniel Manista
New submission from Nathaniel Manista: The attached file when executed should fail (raise an exception) one line above where it actually does. Right? I discovered this in 2.7 but have confirmed that it's still a problem in 3.6.0b2. -- components: Library (Lib) files: abc_what.py

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread STINNER Victor
STINNER Victor added the comment: R. David Murray added the comment: > The alternative has already been written: aiosmtpd, in the aiolibs project. The question is should it be added to the stdlib... I suggest to keep it on PyPI to keep fast releases. --

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2016-10-25 Thread Martin Panter
Martin Panter added the comment: I agree it is good to explicitly document the __enter__() result, rather than relying on assumptions and example code. The patch looks good to me. I don’t understand the problem with pop_all() though. Is there still a problem if we apply your patch?

[issue2786] Names in function call exception should have class names, if they're methods

2016-10-25 Thread Ryan Gonzalez
Changes by Ryan Gonzalez : -- nosy: +Ryan.Gonzalez ___ Python tracker ___ ___

[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Perhaps you should merge your work with Issue 2786. With a very brief look, the patches seem to take a similar approach. -- nosy: +martin.panter resolution: -> duplicate superseder: -> Names in function call exception should have class names, if

[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: HAHA, I lied. :D Attached is what I have so far. -- keywords: +patch Added file: http://bugs.python.org/file45225/0001-Make-failed-calls-to-methods-show-the-fully-qualifie.patch ___ Python tracker

[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Ryan Gonzalez
New submission from Ryan Gonzalez: e.g. make this: class X: def __init__(self): pass X(1) print something like this: TypeError: X.__init__() takes 1 positional argument but 2 were given instead of: TypeError: __init__() takes 1 positional argument but 2 were given I'm trying to

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Big Stone
Big Stone added the comment: possible particularities of my PC vs yours: - I have no python entry at all in the regex - I have no py.exe, - I have no Visual Studio (but the compiler) with Windows 10, I don't know where is the even viewer. -- ___

[issue19542] WeakValueDictionary bug in setdefault()()

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28509] dict.update allocates too much

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Here is a script that produces more compact output. The first column is a size after which the dict is resized. import sys p = 1 b = {} for i in range(1): a = {} b[i] = i a.update(b) s = sys.getsizeof(a) if s > p:

[issue28535] round seems to provide floor, not proper rounding

2016-10-25 Thread R. David Murray
R. David Murray added the comment: You must have missed the note about floating point (in the grey box). assertAlmostEqual is a bit of problem child in any case. There are open issues about improved functionality for the use case it tries to address. -- nosy: +r.david.murray

[issue28535] round seems to provide floor, not proper rounding

2016-10-25 Thread Mike Williamson
New submission from Mike Williamson: Ran a test that I expected to pass. When the test failed, I was struck by the strange (incorrect) assertion claim when using unittest.assertAlmostEqual: AssertionError: 32.78 != 32.775 within 2 places Uhmm... yes it does! I delved in, discovering that

[issue19542] WeakValueDictionary bug in setdefault()()

2016-10-25 Thread Armin Rigo
Armin Rigo added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25166] Windows AllUsers installation places uninstaller in user profile

2016-10-25 Thread Steve Dower
Steve Dower added the comment: I won't be changing the official releases to be a single MSI again - the experience is too hostile towards regular users. As my (volunteer) time allows, I've been working on resolving the issue in WiX and we are totally capable of moving to a private build of

[issue25166] Windows AllUsers installation places uninstaller in user profile

2016-10-25 Thread Zachary Ware
Zachary Ware added the comment: Christian, your desire for a single MSI is well known, and repeatedly stating that desire is far more likely to raise ire rather than spur change. No, you did not need to include "ceterum censeo". The installer system that Steve created for us has many

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-10-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: we talented! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25166] Windows AllUsers installation places uninstaller in user profile

2016-10-25 Thread Christian Ullrich
Christian Ullrich added the comment: This bug has been open for over a year and two subsequent releases, and its planned resolution depends on a change to WiX. The related WiX bug (see comment above) is scheduled to be implemented in WiX 4.0, which has no prospective release date. According

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Serhiy, so should I revert this patch for now? Or are the silent deprecation warnings outside the test suite okay? (In that case, maybe Mariatta can upload a patch?) -- ___ Python tracker

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-10-25 Thread Carl Meyer
Carl Meyer added the comment: Greg, there was also a (different!) typo of the issue number in the code comment committed with this fix; that typo hasn't been fixed. Sent me on quite the chase looking for this bug. (I tracked down the bug independently, then wasn't able to repro it on trunk

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue28509] dict.update allocates too much

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___

[issue28387] double free in io.TextIOWrapper

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue28514] Python (IDLE?) freezes on file save on Windows

2016-10-25 Thread Ned Deily
Ned Deily added the comment: You need more assistance than we can give here on the issue tracker. Please look at the help resources here: https://www.python.org/about/help/. In particular, you could try asking on the tutor mailing list: https://mail.python.org/mailman/listinfo/tutor. Good

[issue28509] dict.update allocates too much

2016-10-25 Thread INADA Naoki
INADA Naoki added the comment: script: import sys for i in range(25): a = {} b = {j: j for j in range(i)} a.update(b) print(i, sys.getsizeof(a)) before: 0 256 1 256 2 256 3 256 4 256 5 256 6 384 7 384 8 664 9 664 10 664 11 664 12 664 13 664 14 664 15 664 16 1200 17 1200 18 1200

[issue28199] Compact dict resizing is doing too much work

2016-10-25 Thread INADA Naoki
INADA Naoki added the comment: @haypo, could you review this? -- ___ Python tracker ___ ___ Python-bugs-list

[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-25 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b46c3deea2c by Steve Dower in branch '3.6': Issue #28333: Fixes off-by-one error that was adding an extra space. https://hg.python.org/cpython/rev/6b46c3deea2c New changeset 44d15ba67d2e by Steve Dower in branch 'default': Issue #28333: Fixes

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread R. David Murray
R. David Murray added the comment: The alternative has already been written: aiosmtpd, in the aiolibs project. The question is should it be added to the stdlib... -- ___ Python tracker

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 ___ Python tracker ___

[issue14061] Misc fixes and cleanups in archiving code in shutil and test_shutil

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: +Python 3.7 ___ Python tracker ___

[issue17711] Persistent id in pickle with protocol version 0

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28529] 0 ** 0 should raise ArithmeticError

2016-10-25 Thread Mark Dickinson
Mark Dickinson added the comment: Also, https://en.wikipedia.org/wiki/Exponentiation#Zero_to_the_power_of_zero -- nosy: +mark.dickinson ___ Python tracker

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Serhiy, I created these two tickets: https://bugs.python.org/issue28534 https://bugs.python.org/issue28533 -- ___ Python tracker

[issue28533] Replace asyncore

2016-10-25 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- components: +asyncio nosy: +gvanrossum, yselivanov ___ Python tracker ___

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, asyncore/asynchat are used in smtpd! It looks to me that we should first write asyncio alternative to smtpd, then deprecate smtpd, and only after this we can deprecate asyncore/asynchat. -- dependencies: +Deprecate smtpd (based on deprecated

[issue28534] Replace asynchat

2016-10-25 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: Deprecation warning was added to asynchat in https://bugs.python.org/issue25002 asynchat is still used in several tests and should be replaced. -- components: asyncio messages: 279441 nosy: Mariatta, gvanrossum, yselivanov priority: normal severity:

[issue28533] Replace asyncore

2016-10-25 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: Deprecation warning was added to asyncore in https://bugs.python.org/issue25002 asyncore is still used in several tests and should be replaced. -- messages: 279439 nosy: Mariatta priority: normal severity: normal status: open title: Replace asyncore

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Should I create a different ticket about replacing asyncore and asynchat? This may require several tickets, one per case. -- components: +Library (Lib) resolution: fixed -> stage: -> needs patch type: -> enhancement versions: +Python 3.7

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Sorry about this Serhiy. I can work on another patch based on your code snippet later today. Should I create a different ticket about replacing asyncore and asynchat? -- ___ Python tracker

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think replacing import asynchat import asyncore with with warnings.catch_warnings(): warnings.simplefilter('ignore', PendingDeprecationWarning) import asynchat import asyncore can help. asynchat and asyncore are used

[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-25 Thread Eryk Sun
Eryk Sun added the comment: I forgot to include the link to the python-list thread where this came up: https://mail.python.org/pipermail/python-list/2016-October/715428.html -- ___ Python tracker

[issue28259] Ctypes bug windows

2016-10-25 Thread Aristotel
Aristotel added the comment: Sorry for delay. I tried to write as small as possible example. Sorry if it is too big Usage: run 2 consoles, cd to dir with sources. In first console type 'python3 main.py test1.tox', and in second type 'python3 main.py test2.tox'. Wait 1-2 min until apps connect

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, what is the reason for this code! But Python implementation of popitem() don't call overridden __getitem__/__delitem__. It uses dict.pop(). Simplified C implementation is closer to Python implementation. expiringdict is not the only implementation

[issue28530] Howto detect if an object is of type os.DirEntry

2016-10-25 Thread Eryk Sun
Eryk Sun added the comment: os.DirEntry exists in 3.6, but the change wasn't backported to 3.5. See issue 27038. As a workaround, you can scan a non-empty directory to get a reference to the DirEntry type, e.g.: import os import tempfile with tempfile.NamedTemporaryFile() as f:

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Steve Dower
Steve Dower added the comment: Check in the Event Log viewer to see if there is an "Application Error" entry for python.exe. Also, if you run python.exe from a command prompt there may be more information displayed in the output. -- ___ Python

[issue28514] Python (IDLE?) freezes on file save on Windows

2016-10-25 Thread Kamran
Kamran added the comment: To Ned Deily I am using Python 3.2.3 because I use it at schoolo and my teacher said use this. Also because I do not know how to use any other model other than this because I was taught this at school. ANY SUGGESTIONS THANKS *Kamran Muhammad* On Mon, Oct 24, 2016

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry about that. Should I roll it back or is there a way to make the test pass (expect this deprecation)? -- ___ Python tracker

[issue28532] Show sys.version when -V option is supplied twice.

2016-10-25 Thread INADA Naoki
New submission from INADA Naoki: As discussed on python-dev, this patch adds -VV option to python cmdline. $ ./python -V Python 3.6.0b2+ $ ./python -VV Python 3.6.0b2+ (3.6:84a3c5003510+, Oct 26 2016, 02:47:38) [GCC 6.2.0 20161005] The patch includes doc and man update. Please see, especially

[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-25 Thread Steve Dower
Steve Dower added the comment: Not sure how I missed it originally, but that extra 1 char is actually very important: Python 3.6.0b2 (v3.6.0b2:b9fadc7d1c3f, Oct 10 2016, 20:36:51) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>

[issue28530] Howto detect if an object is of type os.DirEntry

2016-10-25 Thread R. David Murray
R. David Murray added the comment: Out of curiosity, what is your use case? You can grab an object you know is a DirEntry and take its type to get a type object to use in, for example, isinstance. posix.DirEntry is exposed...either nt.DirEntry should be too, or the posix one shouldn't be,

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Big Stone
Big Stone added the comment: I just see a windows screen poping up with (translated from french) "Python has stopped to work" a problem caused this program to stop working correctly. Windows is going to close this program and will inform you if a solution is available. --

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: closed -> open ___ Python tracker ___

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change broke buildbots. $ ./python -We -m test.regrtest test_os Run tests sequentially 0:00:00 [1/1] test_os test test_os crashed -- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/libregrtest/runtest.py", line 151, in

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Steve Dower
Steve Dower added the comment: Can you tell me more about the crash? It doesn't cause a crash when I try it with my own install. -- ___ Python tracker

[issue28353] os.fwalk() unhandled exception when error occurs accessing symbolic link target

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 470224ec16b6 by Serhiy Storchaka in branch '3.5': Issue #28353: Fixed tests of os.fwalk() with broken links. https://hg.python.org/cpython/rev/470224ec16b6 -- ___ Python tracker

[issue28107] Update typing module documentation for NamedTuple

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78c0487562d9 by Guido van Rossum in branch '3.6': Issue #28107: Update typing module documentation for NamedTuple (Ivan) https://hg.python.org/cpython/rev/78c0487562d9 New changeset 709b19b9d6ea by Guido van Rossum in branch 'default': Issue

[issue28107] Update typing module documentation for NamedTuple

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, applied! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue20847] asyncio docs should call out that network logging is a no-no

2016-10-25 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

[issue28531] Improve utf7 encoder memory usage

2016-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue28531] Improve utf7 encoder memory usage

2016-10-25 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file45220/utf7_encoder.patch ___ Python tracker ___

[issue28531] Improve utf7 encoder memory usage

2016-10-25 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file45219/utf7_encoder.patch ___ Python tracker ___

[issue28531] Improve utf7 encoder memory usage

2016-10-25 Thread Xiang Zhang
New submission from Xiang Zhang: Currently utf7 encoder uses an aggressive memory allocation strategy: use the worst case 8. We can tighten the worst case. For 1 byte and 2 byte unicodes, the worst case could be 3*n + 2. For 4 byte unicodes, the worst case could be 6*n + 2. There are 2

[issue28353] os.fwalk() unhandled exception when error occurs accessing symbolic link target

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec12e16ea6a1 by Serhiy Storchaka in branch '3.6': Issue #28353: Try to fix tests. https://hg.python.org/cpython/rev/ec12e16ea6a1 New changeset a0913dbadea6 by Serhiy Storchaka in branch 'default': Issue #28353: Try to fix tests.

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb23770f82f1 by Guido van Rossum in branch '3.6': Issue 25002: Deprecate asyncore/asynchat. Patch by Mariatta. https://hg.python.org/cpython/rev/bb23770f82f1 New changeset 3b8dfe6f5bcb by Guido van Rossum in branch 'default': Issue 25002: Deprecate

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Applied: remote: notified python-check...@python.org of incoming changeset bb23770f82f1 remote: notified python-check...@python.org of incoming changeset 3b8dfe6f5bcb -- resolution: -> fixed status: open -> closed

[issue28530] Howto detect if an object is of type os.DirEntry

2016-10-25 Thread stephan
New submission from stephan: I have a small problem with python 3.5.2 64bit on win7 64 bit: I cannot check if an object is of type DirEntry (os.DirEntry or nt.DirEntry). Did I misunderstand something or what is wrong? Here is a log of my console: - In

[issue28029] Replace and empty strings

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Interestingly, initially string.replace() was implemented in terms of split/join. string.replace(s, '', s2, n) returned s for any s, s2 and n. After making replace() a method of str, in aca7b5eaf5e8 (1999-10-12), it became raising ValueError for empty

[issue28529] 0 ** 0 should raise ArithmeticError

2016-10-25 Thread Tim Peters
Tim Peters added the comment: This won't be changed - it's a near-universally mandated behavior across relevant standards. Many years ago it wasn't, but Knuth changed minds when he wrote: """ We must define x^0=1 for all x, if the binomial theorem is to be valid when x=0 , y=0 , and/or x=-y

[issue27495] Pretty printing sorting for set and frozenset instances

2016-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: There seems to be consensus that this should be treated as a bug fix, not a new feature. Could this still make it into 3.6 even though it missed the first beta? -- nosy: +steven.daprano ___ Python tracker

[issue28529] 0 ** 0 should raise ArithmeticError

2016-10-25 Thread Jáchym Barvínek
Jáchym Barvínek added the comment: Sorry, It should be 0.0 ** 0 == 0 ** 0.0 == 0.0 ** 0.0 == 1.0 of course. -- ___ Python tracker ___

[issue28529] 0 ** 0 should raise ArithmeticError

2016-10-25 Thread Jáchym Barvínek
New submission from Jáchym Barvínek: 0 ** 0 is mathematically undefined and equivalent to 0/0. 0/0 correctly raises ZeroDivisionError, but 0 ** 0 == 1. Also 0.0 ** 0 == 0 ** 0.0 == 0.0 ** 0.0 == 0.0. Similarly for math.pow. -- components: Interpreter Core messages: 279410 nosy: Jáchym

[issue28526] Use PyUnicode_AsEncodedString instead of PyUnicode_AsEncodedObject

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: LGTM. -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing

  1   2   >