[issue20699] Document that binary IO classes work with bytes-likes objects

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot to say my LGTM on your last patch. It LGTM. But I'm feeling the documentation epic about bytes-like objects is far from the end. -- ___ Python tracker

[issue27115] IDLE/tkinter: in simpledialog, != [OK] click

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not Tkinter issue, but IDLE issue. Other similar cases: Open search dialog and find something. The status bar is not updated. It is updated only if you close the search dialog. Select a text and delete it by a mouse. The status bar is not updated.

[issue27233] Missing documentation for PyOS_FSPath

2016-06-10 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___

[issue20699] Document that binary IO classes work with bytes-likes objects

2016-06-10 Thread Martin Panter
Martin Panter added the comment: Thanks for you help figuring this out Serhiy, especially for the Python 2 case. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27243] __aiter__ should return async iterator instead of awaitable

2016-06-10 Thread Martin Panter
Martin Panter added the comment: I didn’t realize, sorry for the noise -- status: open -> closed ___ Python tracker ___

[issue24136] document PEP 448: unpacking generalization

2016-06-10 Thread Martin Panter
Martin Panter added the comment: Here is a new patch that also updates the documentation for list etc displays as well as function calls. Let me know what you think. The 3.5 What’s New notes were written separately; Neil’s patch was never applied. But I have rescued his update for

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had some trouble committing and pushing these patches. After deleting TEntry and committed the 2.7 and 3.5 patches and tried to do the usual 3.5 to default forward merge in TortoiseHG. I got % hg merge --tool :merge --verbose 101861 resolving manifests

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is Windows specific issue, I can't help with this, sorry. Zach should be more experienced in this. -- ___ Python tracker

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python does not set TCL_LIBRARY. _tkinter finds tcl/tk installed with Python at its known location for the platform. tkinter and IDLE work fine for months. Then user installs another program. That other software (not user, and unbeknownst to the user) sets

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better to exclude TEntry from the list. This is a hack, and as every hack it can be not fully compatible with future Tk versions. -- ___ Python tracker

[issue27051] Create PIP gui

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: sys.executable has the path to the current executable. But you don't even need that. When you import pip, it gets that itself to find site-packages. You are making this way too complicated and are trying to do what pip can do. I don't see that we need to

[issue27173] Modern Unix key bindings for IDLE

2016-06-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +IDLE: Fix deletion of custom themes and key bindings ___ Python tracker ___

[issue25733] Code and IDLE should catch all compile errors.

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: SystemError is serious bug. Please open separate issue for this. > Why does compile not support null bytes in the first place? Due to implementation detail of CPython tokenizer. I uses NUL-terminated C strings. Yet one possible exception: MemoryError. I

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the problem? That user sets incorrect TCL_LIBRARY? I don't know how _tkinter can distinguish correct TCL_LIBRARY from the incorrect one. -- ___ Python tracker

[issue27051] Create PIP gui

2016-06-10 Thread Upendra Kumar
Upendra Kumar added the comment: I, actually want to make a 'configuration object' before running the 'pip' GUI. Therefore one of the parameters of the configuration object will be to detect the path to installed 'python.exe' in Windows. In order to get executable paths I need to read the

[issue27051] Create PIP gui

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know what you mean by 'print with winreg'. I presume you need admin privilege to alter the registry. But why are you involved with it? I just want you to use the pip interface, and let pip worry about such low level stuff. --

[issue27291] two heap corruption issue

2016-06-10 Thread Park Alex
New submission from Park Alex: Hello, I would like to report two heap corruption issue. Test environment: python ersion: python 2.7.11+ hg id: d858eadf2602 (2.7) compile: clang with ASAN OS: ubuntu x86_64 One is heap-buffer-overflow, the other is heap-user-after-free. All of samples are

[issue27051] Create PIP gui

2016-06-10 Thread Upendra Kumar
Upendra Kumar added the comment: I am unable to print anything using winreg module. Does it require administrative privileges? I am using this code sample : import os import errno import winreg proc_arch = os.environ['PROCESSOR_ARCHITECTURE'].lower() try: proc_arch64 =

[issue27173] Modern Unix key bindings for IDLE

2016-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy nosy: +markroseman ___ Python tracker ___

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +markroseman ___ Python tracker ___ ___

[issue25733] Code and IDLE should catch all compile errors.

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: How to cause SyntaxError -- obvious NameError -- ?, already caught in code module OverflowError-- ?, already caught in code module SystemError - 22 nested for loops ('deeply nested blocks') TypeError -- chr(0), 2.7 ValueError -- chr(0), 3.x; bytes(0), 2.7

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: As IDLE maintainer, this annoys me also. IDLE and in particular test_idle necessarily change the environment by calling tkinter.Tk(). When run under test.regrtest, test_idle gets slapped with a warning, and in 3.6, gets labelled a failure, even when it

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
James Lu added the comment: Even a wrapper class would be helpful, it's simply more pythonic. On Fri, Jun 10, 2016 at 6:02 PM, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > The main reason is that there would be very little benefit. Lists are a

[issue27223] _read_ready and _write_ready should respect _conn_lost

2016-06-10 Thread Łukasz Langa
Changes by Łukasz Langa : -- stage: -> patch review title: _ready_ready and _write_ready should respect _conn_lost -> _read_ready and _write_ready should respect _conn_lost ___ Python tracker

[issue23693] timeit accuracy could be better

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

[issue27256] email header indentation destroyed

2016-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: header indentation destroyed -> email header indentation destroyed type: -> behavior versions: -Python 3.4 ___ Python tracker

[issue27233] Missing documentation for PyOS_FSPath

2016-06-10 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Brett Cannon added documentation for this function in another issue. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue27238] Bare except: usages in turtle.py

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Add a comment to indicate that bare exception is intentional and briefly why. -- nosy: +terry.reedy ___ Python tracker

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Those are the only failures on 2 of the 4 buildbots running gui tests. -- nosy: +terry.reedy ___ Python tracker ___

[issue24750] IDLE: Cosmetic improvements for main window

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Applied as 288e97680d84 (with # -> * typo): first ttk widgets. Issue *24750: Switch all scrollbars in IDLE to ttk versions. Where needed, add minimal tests to cover changes. -- resolution: -> fixed stage: commit review -> resolved status: open ->

[issue24759] Idle: require tk 8.5 and ttk widgets, and drop unneeded code.

2016-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue21386] ipaddress.IPv4Address.is_global not implemented

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch that uses my proposal in msg219017. Since this is already documented at https://docs.python.org/3.5/library/ipaddress.html#ipaddress.IPv4Address.is_global I think it should also go into 3.5. -- versions: +Python 3.6 Added

[issue27272] random.Random should not read 2500 bytes from urandom

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > But I'll be happiest if nothing changes here (given that Guido ruled > yesterday that Python's current urandom() implementation has to be > reverted to once again match Linux's non-blocking urandom() behavior). With urandom() behavior restored, can we

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The main reason is that there would be very little benefit. Lists are a very efficient data structure and the heap manipulations are also very cheap. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> rejected status: open -> closed

[issue3982] support .format for bytes

2016-06-10 Thread Nick Coghlan
Nick Coghlan added the comment: The core problem with the idea of adding bytes.format to Python 3 is that the real power of str.format actually lies in the extensible __format__ protocol and the associated format() builtin, as those rely heavily on text-specific assumptions. I interpreted

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
New submission from James Lu: The heapq library uses a list or other mutable sequence time to represent a heap. Since Python is a highly OOP language, why not make heaps their own data type? -- components: Library (Lib) messages: 268159 nosy: James.Lu priority: normal severity: normal

[issue27186] add os.fspath()

2016-06-10 Thread Brett Cannon
Changes by Brett Cannon : -- stage: resolved -> commit review ___ Python tracker ___ ___

[issue27186] add os.fspath()

2016-06-10 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: fixed -> ___ Python tracker ___ ___

[issue27038] Make os.DirEntry exist

2016-06-10 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___

[issue27186] add os.fspath()

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a62d682636e by Brett Cannon in branch 'default': Issue #27186: Add os.PathLike support to DirEntry https://hg.python.org/cpython/rev/5a62d682636e -- ___ Python tracker

[issue3982] support .format for bytes

2016-06-10 Thread Derek Wilson
Derek Wilson added the comment: Gregory - I'm glad that you're willing to consider this again. It still is a constant issue for me, and .format with variable width fields in binary protocols is so the right tool for the job. If there is anything I can do to help get this added to 3.6 let me

[issue26800] Don't accept bytearray as filenames part 2

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that deprecates support of general bytes-like objects in os functions. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file43336/path_converter-deprecate-buffer.patch

[issue27289] test_ftp_timeout fails with EOFError

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch to skip the test. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file43335/issue27289.diff ___ Python tracker

[issue27289] test_ftp_timeout fails with EOFError

2016-06-10 Thread Berker Peksag
New submission from Berker Peksag: >From >http://buildbot.python.org/all/builders/x86-64%20Ubuntu%2015.10%20Skylake%20CPU%203.5/builds/533/steps/test/logs/stdio == ERROR: test_ftp_timeout (test.test_urllib2net.TimeoutTest)

[issue15468] Edit docs to hide hashlib.md5()

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: The looks good to me in general, but I'd suggest to refer to the new algorithms_guaranteed and algorithms_available attributes in the following paragraph: +:func:`sha512`. The :func:`md5` is typically available, but will be missing if +Python has been

[issue27288] secrets should use getrandom() on Linux

2016-06-10 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +steven.daprano ___ Python tracker ___ ___

[issue27288] secrets should use getrandom() on Linux

2016-06-10 Thread Tim Peters
Tim Peters added the comment: It was a primary purpose of `secrets` to be a place where security best practices could be implemented, and changed over time, with no concern about backward compatibility for people who don't use it. So if `secrets` needs to supply a class with all the methods

[issue20900] distutils register command should print text, not bytes repr

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch ingrid! -- assignee: eric.araujo -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20900] distutils register command should print text, not bytes repr

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 02824cee7624 by Berker Peksag in branch '3.5': Issue #20900: distutils register command now decodes HTTP responses correctly https://hg.python.org/cpython/rev/02824cee7624 New changeset b0be24a2f16c by Berker Peksag in branch 'default': Issue

[issue27288] secrets should use getrandom() on Linux

2016-06-10 Thread Donald Stufft
Donald Stufft added the comment: As an additional aside, the documentation of secrets references the documentation of random.py for it's secrets.SystemRandom class, however random.py docouments random.SystemRandom as using os.urandom. So the documentation for secrets.SystemRandom should be

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

2016-06-10 Thread William Pitcock
William Pitcock added the comment: It seems to me that calling __contains__() (PySequence_Contains()) isn't necessary, as the first and last elements of the list are already known, and therefore known to be in the list. Revising the behaviour of popitem() to avoid calling

[issue27288] secrets should use getrandom() on Linux

2016-06-10 Thread Donald Stufft
New submission from Donald Stufft: In 3.5.0 and 3.5.1 os.urandom will, where available, use the getrandom() to block rather than get insecure random from the urandom pool on Linux. In 3.5.2 this change is reverted so that os.urandom will return possibly predictable random numbers instead of

[issue27186] add os.fspath()

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5a013ca5687 by Brett Cannon in branch 'default': Issue #27186: Add os.PathLike support to pathlib. https://hg.python.org/cpython/rev/a5a013ca5687 -- ___ Python tracker

[issue27129] Wordcode, part 2

2016-06-10 Thread Demur Rumed
Demur Rumed added the comment: The patches LGTM & seem to be implementation of follow up ideas outlined in the first portion. It'd be good to verify that benchmarks are relatively unaffected -- ___ Python tracker

[issue26243] zlib.compress level as keyword argument

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Regenerated for review. -- Added file: http://bugs.python.org/file43334/zlib_compress_positional_only_data.patch ___ Python tracker

[issue26282] Add support for partial keyword arguments in extension functions

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

[issue27129] Wordcode, part 2

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: update patch replaces yet few magic constants. -- Added file: http://bugs.python.org/file4/wordcode-refactor2.patch ___ Python tracker

[issue27129] Wordcode, part 2

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not just about cleaning (to my eyes current code is not very readable, and I read it many times, perhaps more times than any other core developer in last months). There are other benefits. Changing jump offsets allows to get rid of EXTENDED_ARGs for

[issue26282] Add support for partial keyword arguments in extension functions

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69c0aa8a8185 by Serhiy Storchaka in branch 'default': Issue #26282: PyArg_ParseTupleAndKeywords() and Argument Clinic now support https://hg.python.org/cpython/rev/69c0aa8a8185 -- nosy: +python-dev ___

[issue20900] distutils register command should print text, not bytes repr

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: issue20900.patch looks good to me. We are already testing output of "python -setup.py upload --show-response" in Lib/distutils/tests/test_upload.py so I removed test_show_reponse and tweaked test_upload to test the whole line: -

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

2016-06-10 Thread Xiang Zhang
Xiang Zhang added the comment: Raymond, In single threaded case popitem may still fail. I want to correct my last message that popitem does not fail in this case because it calls __getitem__ but instead it calls __contains__[1]. In __contains__ it deletes the item since it expires, and

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

2016-06-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eric.snow ___ Python tracker ___ ___

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

2016-06-10 Thread William Pitcock
William Pitcock added the comment: At least in my case, the application is single-threaded. I don't think this is a locking-related issue as the expiringdict test case itself fails which is also single-threaded. -- ___ Python tracker

[issue27272] random.Random should not read 2500 bytes from urandom

2016-06-10 Thread Tim Peters
Tim Peters added the comment: Raymond, while I'm in general agreement with you, note that urandom() doesn't deliver "random" bytes to begin with. A CSPRNG is still a PRNG. For example, if the underlying urandom() generator is ChaCha20, _it_ has "only" 512 bits of state. Seeding the Twister

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Brett Cannon
Brett Cannon added the comment: Documenting the deprecation in 3.5 is fine. -- ___ Python tracker ___ ___

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Steve Piercy
Steve Piercy added the comment: One more. https://docs.python.org/3/library/venv.html Should that be updated for 3.5.1 as well as 3.6? -- ___ Python tracker

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Steve Piercy
Steve Piercy added the comment: See also: https://github.com/pypa/python-packaging-user-guide/issues/242 -- ___ Python tracker ___

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Steve Piercy
Steve Piercy added the comment: I forgot to include the specific URL to update: https://docs.python.org/3/installing/ There may be other places. -- ___ Python tracker

[issue25413] ctypes (libffi) fails to compile on Solaris X86

2016-06-10 Thread Matthias Klose
Matthias Klose added the comment: CristiFati, please could you check if the libffi patch is still needed with the current upstream libffi? See https://github.com/libffi/libffi -- ___ Python tracker

[issue27129] Wordcode, part 2

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I really don't think any of this should be done at all. The current code is clean and fast (and to my eyes at least is very readable). -- ___ Python tracker

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

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm wondering if the expiringdict(1) needs to have locked wrappers for the inherited methods: def __delitem__(self, key): with self.lock: OrderedDict.__delitem__(self, key) Otherwise, there is a risk that one thread is deleting a

[issue23693] timeit accuracy could be better

2016-06-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +gvanrossum, tim.peters ___ Python tracker ___

[issue27272] random.Random should not read 2500 bytes from urandom

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: With anything less than than full seeding of the 19937-bit state space, we lose all the guarantees (proved properties) documented at http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/ARTICLES/mt.pdf . It is very nice to be able to rely on those properties

[issue27286] str object got multiple values for keyword argument

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since currently generated bytecode is not correct, I think we should update the magic number for forcing the regenerating pyc-files. -- Added file: http://bugs.python.org/file43332/BUILD_MAP_UNPACK_WITH_CALL-function_pos2.patch

[issue26213] Document BUILD_*_UNPACK opcodes

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And BUILD_MAP_UNPACK_WITH_CALL. All these opcodes were added in issue2292 for implementing PEP 448, but are not documented even in the PEP. -- nosy: +Joshua.Landau, neil.g, serhiy.storchaka, twouters ___ Python

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2016-06-10 Thread Matthias Klose
Matthias Klose added the comment: removed the PC/icons directory. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6c55d1eadc4 by doko in branch '2.7': - Issue #17500, and https://github.com/python/pythondotorg/issues/945: Remove https://hg.python.org/cpython/rev/c6c55d1eadc4 New changeset 0c4d525a2f10 by doko in branch '3.5': - Issue #17500, and

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Brett Cannon
Brett Cannon added the comment: Basically I changed my mind about adding the code deprecation in 3.5.1 since it wasn't fair to people to run into that in a bugfix release. Documenting the deprecation, though, can happen in Python 3.5.1 as well as updating the documentation of the venv module

[issue27286] str object got multiple values for keyword argument

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: This patch looks correct. -- nosy: +rhettinger ___ Python tracker ___

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

2016-06-10 Thread Xiang Zhang
Xiang Zhang added the comment: I think your expiringdict seems not work with the C version OrderedDict, you may need to change your implementation or clarify that :(. The C version's OrderedDict.popitem may call your __getitem__ which then does deletion and emit KeyError when expires. I think

[issue27286] str object got multiple values for keyword argument

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a fix. -- keywords: +patch nosy: +serhiy.storchaka stage: -> patch review Added file: http://bugs.python.org/file43331/BUILD_MAP_UNPACK_WITH_CALL-function_pos.patch ___ Python tracker

[issue20825] containment test for "ip_network in ip_network"

2016-06-10 Thread SilentGhost
Changes by SilentGhost : -- nosy: +SilentGhost ___ Python tracker ___ ___

[issue27139] Increased test coverage for statistics.median_grouped

2016-06-10 Thread Julio C Cardoza
Julio C Cardoza added the comment: Hi... Just want to find out if you have the chance to check my code. Thanks! On Sat, May 28, 2016 at 10:44 AM, Julio C Cardoza wrote: > > New submission from Julio C Cardoza: > > I had signed the contributor agreement.! > > --

[issue3119] pickle.py is limited by python's call stack

2016-06-10 Thread Tomas Gavenciak
Tomas Gavenciak added the comment: Hey all, I would like to patch the C _pickle module to be non-recursive and help this patch go through. I have an idea on how to do that with a very small amount of changes below and I would like to get feedback and improvements before implementing it in a

[issue20825] containment test for "ip_network in ip_network"

2016-06-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review type: -> enhancement versions: +Python 3.6 -Python 3.5 ___ Python tracker

[issue27287] SIGSEGV when calling os.forkpty()

2016-06-10 Thread Alexander Haensch
New submission from Alexander Haensch: I recieve a segmentation fault if i call os.forkpty(). It does not happen with os.openpty(). Moreover os.fork() works fine. The basesystem is gentoo-hardened. It does only happens if threading is enabled, which is the standard. Tested python versions:

[issue27243] __aiter__ should return async iterator instead of awaitable

2016-06-10 Thread Yury Selivanov
Yury Selivanov added the comment: This is because sys.version_info is 3.5.1 (not 3.5.2 yet) in the "3.5" branch. Once 3.5.2 RC is tagged the warning will disappear. https://github.com/python/cpython/blob/master/Lib/asyncio/streams.py#L693 -- ___

[issue26545] os.walk is limited by python's recursion limit

2016-06-10 Thread Sergey Chvalyuk
Sergey Chvalyuk added the comment: There is another limitation with os.walk it also cannot go very deep inside tree because of scandir can throw OSError(36, 'File name too long') I have wrote tests for both cases: https://gist.github.com/grubberr/3367f1d605e292103b576a17a46ef3c3 tested on

[issue22822] IPv6Network constructor docs incorrect about valid input

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report Chris. The patch in issue 18802 should solve this. It would be great if you'd have time to take a look at it (should we add a note that says we only support CIDR for IPv6?) -- nosy: +berker.peksag

[issue27280] Paste fail in ipaddress documentation

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Good catch, thanks Arthur! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: enhancement -> behavior versions: +Python 3.6 ___ Python tracker

[issue27280] Paste fail in ipaddress documentation

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset fcd9f6ffbeaf by Berker Peksag in branch '3.5': Issue #27280: Fix typo in IPv6Network documentation https://hg.python.org/cpython/rev/fcd9f6ffbeaf New changeset 18f1012e0c56 by Berker Peksag in branch 'default': Issue #27280: Merge from 3.5

[issue18802] ipaddress documentation errors

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Thank you for the great patch Jon! :) I rebased Jon's patch to current default with additional changes like fixing typos and markup tweaks. I also removed the following item since it doesn't seem to be crucial: * It's probably a good idea to document that

[issue24617] os.makedirs()'s [mode] not correct

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

[issue24617] os.makedirs()'s [mode] not correct

2016-06-10 Thread Martin Panter
Martin Panter added the comment: Okay I will avoid this problem in the future. I often use the mq extension, but I can reset the user and date with that. -- ___ Python tracker

[issue27286] str object got multiple values for keyword argument

2016-06-10 Thread Martin Panter
New submission from Martin Panter: Playing with the generalized unpacking (PEP 448), I found a funny error message, when duplicate dictionary unpackings are included and also duplicate a literal keyword argument: >>> print(end=".\n", **dict(end="dupe")) # No problem TypeError: print() got

[issue24617] os.makedirs()'s [mode] not correct

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Please use "hg import --no-commit" in the future. Since Mercurial doesn't keep committer's information it's hard to see who actually committed the patch in case of a problem. -- nosy: +berker.peksag ___ Python

[issue24617] os.makedirs()'s [mode] not correct

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4fc7753efc89 by Tommy Beadle in branch '2.7': Issue #24617: Add comment for os.mkdir about mode quirks https://hg.python.org/cpython/rev/4fc7753efc89 New changeset e6093676e93b by Tommy Beadle in branch '3.5': Issue #24617: Add comment for os.mkdir

[issue20699] Document that binary IO classes work with bytes-likes objects

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec69518aeebc by Martin Panter in branch '2.7': Issue #20699: Document that “io” methods should accept memoryview https://hg.python.org/cpython/rev/ec69518aeebc -- ___ Python tracker

[issue27285] Deprecate pyvenv in favor of python3 -m venv

2016-06-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +brett.cannon ___ Python tracker ___ ___

[issue27285] Deprecate pyvenv in favor of python3 -m venv

2016-06-10 Thread Steve Piercy
Steve Piercy added the comment: I saw the patch in 3.6, yet the discussion in issue #25154 called for deprecation in 3.5.1. Was deprecation of `pyvenv` supposed to be implemented in 3.5.1? I couldn't find any other relevant discussion, so apologies for jumping in uninformed. --

  1   2   >