[issue17942] IDLE Debugger: Improve GUI

2017-05-22 Thread Louie Lu
Louie Lu added the comment: Mark, do you mind to rebase your patch to the latest version? -- nosy: +louielu ___ Python tracker ___ ___

[issue30426] why not use the same style func name. eg: int.to_bytes (with underline or not) and array.tobytes().

2017-05-22 Thread jf
New submission from jf: I note that, some functions have different style names, some have underline, and some not. why do so?? eg: int.to_bytes() and array.tobytes() int.from_byte() and array.frombytes() ZipInfo.from_file() and array.fromfile() ... -- components: Library (Lib) message

[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread jf
Changes by jf : -- title: why not use the same style func name. eg: int.to_bytes (with underline or not) and array.tobytes(). -> why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline). ___ Python

[issue17942] IDLE Debugger: Improve GUI

2017-05-22 Thread Louie Lu
Louie Lu added the comment: Rebase markroseman patch to latest version, I own no credit on this patch. Just want to check the effect about the patch. -- Added file: http://bugs.python.org/file46884/0001-WIP.patch ___ Python tracker

[issue17942] IDLE Debugger: Improve GUI

2017-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, Python now uses git and pull requests. Can you, and do you wish to, rebase and convert to a pull request, any of your patches we wish to investigate further, yourself, or should we go ahead and do so? Silence for a week will be taken as the latter. Th

[issue30427] isinstance checks in os.path.normcase redundant with os.fspath

2017-05-22 Thread Wolfgang Maier
New submission from Wolfgang Maier: os.path.normcase as defined in both posixpath and ntpath is now calling os.fspath on its argument first. With that I think the following isinstance(str, bytes) checks have become redundant since AFAIU os.fspath is guaranteed to return either str or bytes ins

[issue30427] isinstance checks in os.path.normcase redundant with os.fspath

2017-05-22 Thread Wolfgang Maier
Changes by Wolfgang Maier : -- pull_requests: +1803 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30427] isinstance checks in os.path.normcase redundant with os.fspath

2017-05-22 Thread Wolfgang Maier
Wolfgang Maier added the comment: Just created a PR for this, which eliminates the redundancy. This also changes the error message (making it less specific), but not the type of a raised exception. If you think that the error message deserves to be preserved that could, of course, be done too.

[issue30413] Add fnmatch.filterfalse function

2017-05-22 Thread Wolfgang Maier
Wolfgang Maier added the comment: > Good catch! It seems to me that they are redundant. Please open a new issue > for this. done: issue 30427 -- ___ Python tracker ___

[issue30413] Add fnmatch.filterfalse function

2017-05-22 Thread Wolfgang Maier
Wolfgang Maier added the comment: Yet another thing I just realized (sorry for being so annoying): With os.normcase calling os.fspath in 3.6+ it is not really a NOP anymore even on posix. As a consequence, you can now do some weird things with fnmatch: in all cases, and only in these, where th

[issue29828] Allow registering after-fork initializers in multiprocessing

2017-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > BTW, why can't you use `pthread_atfork` in numpy? I suppose Numpy could use that, but it's much more involved than registering a Python-level callback. Also it would only work because Numpy actually implements its random generator in C. -- ___

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 50e86033de85294d87b7e942701d456342abde8e by xdegaye in branch 'master': bpo-29619: Do not use HAVE_LARGEFILE_SUPPORT for type conversions (GH-1666). https://github.com/python/cpython/commit/50e86033de85294d87b7e942701d456342abde8e -- __

[issue29619] st_ino (unsigned long long) is casted to long long in posixmodule.c:_pystat_fromstructstat

2017-05-22 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue30385] Segfault on OSX with 3.6.1

2017-05-22 Thread Gunnar Aastrand Grimnes
Gunnar Aastrand Grimnes added the comment: Adding env no_proxy='*' does indeed fix it! Thanks a lot! I guess it's pretty hard to fix. Or even to detect, so that one could log a warning before dying :( -- ___ Python tracker

[issue30427] isinstance checks in os.path.normcase redundant with os.fspath

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does calling os.fspath() needed in normcase() at all? Is normcase() even called with arguments which are not just str/bytes? -- nosy: +brett.cannon, serhiy.storchaka stage: -> patch review ___ Python tracker

[issue30428] mailbox.MMDF wrongly adds From_ header to file

2017-05-22 Thread Ralph Corderoy
New submission from Ralph Corderoy: Class mailbox.MMDF supports the MMDF-mail-spool file format. This is a file with zero or more records, each starts and ends with a line of four ASCII SOHs. Within those two lines is an email in RFC 5532 format, i.e. a headers section followed by an optiona

[issue18123] fnmatchicase for case insensitive file search

2017-05-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue30290] IDLE: add tests for help_about.py

2017-05-22 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +1804 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30290] IDLE: add tests for help_about.py

2017-05-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've made a pull request for 4, 5, and 6. I didn't remove the tk constants as it seemed you'd like to do all the files in one project for that. Also, in query.Query, I noticed that all the widgets were created first and then they were all added to the grid la

[issue30429] bdb: Add watchpoint function

2017-05-22 Thread Louie Lu
New submission from Louie Lu: Trying to add watchpoint function to bdb and pdb. It's goal is to do as gdb for three different watch: watch, rwatch and a watch. watch: when expr is written by program and value has changed, it will break rwatch: when expr is read by program, it will break awatch:

[issue16500] Add an 'atfork' module

2017-05-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +1805 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue16500] Add an 'atfork' module

2017-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've posted https://github.com/python/cpython/pull/1715 which adds a single `os.register_at_fork` function to allow registering at-fork handlers. Comments welcome. -- stage: -> patch review versions: +Python 3.7 -Python 3.5 _

[issue16500] Allow registering at-fork handlers

2017-05-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: Add an 'atfork' module -> Allow registering at-fork handlers ___ Python tracker ___ ___ Python-b

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- pull_requests: +1806 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Thomas Kluyver
Thomas Kluyver added the comment: This was just reported in IPython as well (https://github.com/ipython/ipython/issues/10578 ). I've prepared a pull request based on Nick's proposal: https://github.com/python/cpython/pull/1717 -- nosy: +takluyver __

[issue30430] Cannot write to a tun interface file

2017-05-22 Thread Rémy Léone
New submission from Rémy Léone: I cannot write certain bytes object to a tun interface file. I've added a working and unworking example in the attached file. I'm running on Ubuntu16.04 with Python 3.5.2 -- components: IO files: simple_incorrect.py messages: 294143 nosy: Rémy Léone prior

[issue30426] why not use the same style func name. eg: int.to_bytes (with underline) and array.tobytes(without underline).

2017-05-22 Thread Eric V. Smith
Eric V. Smith added the comment: There's no particular reason, we just weren't careful about enforcing a consistent style, especially on older code. But whatever the reason, it's now too late to change this. -- nosy: +eric.smith resolution: -> wont fix stage: -> resolved status: open

[issue16500] Allow registering at-fork handlers

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: `atexit.register()` has different signature and allows to pass arbitrary positional and keyword arguments to the registered function. This is incompatible with the "when" argument. If we want to support registering arguments with the function, we need either

[issue16500] Allow registering at-fork handlers

2017-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: API-wise, I went for the minimal route. This avoids any discussion of adding a separate module for a tiny functionality that is only going to be used by a couple of libraries (and probably no application code). Comparisons with atexit are not really relevant,

[issue16500] Allow registering at-fork handlers

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that with lambdas and functools.partial the support of arguments is not needed. Unless someone has good reasons for supporting explicit passing of arguments I'm fine with your design. If the user code manually calls the fork() and (now deprecated) P

[issue16500] Allow registering at-fork handlers

2017-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think exiting would be a good idea at all. I'm not sure about emitting a warning: the problem is that the people seeing the warning (plain users) can't do anything about it; worse, they probably will not even understand what it is about, and will get

[issue16500] Allow registering at-fork handlers

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyOS_AfterFork() is used by one code, but the "before" and "parent" handlers are registered by the other code (likely the code of other library). The author of the program that uses both libraries (the one that uses PyOS_AfterFork() and the one that register

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 89a5e03244370f41ce9bed5cea38e0dd620edb73 by Xiang Zhang in branch 'master': bpo-30003: Fix handling escape characters in HZ codec (#1556) https://github.com/python/cpython/commit/89a5e03244370f41ce9bed5cea38e0dd620edb73 --

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1807 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1808 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30430] Cannot write to a tun interface file

2017-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Would you care to post the detailed error and traceback here? Not everyone wants to set up a TUN interface to try to reproduce :-) -- nosy: +pitrou ___ Python tracker ___

[issue30430] Cannot write to a tun interface file

2017-05-22 Thread Rémy Léone
Rémy Léone added the comment: Traceback (most recent call last): File "simple_incorrect.py", line 31, in tun.write(incorrect_frame) OSError: [Errno 22] Invalid argument -- ___ Python tracker

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Костя Чолак
New submission from Костя Чолак: input('some\x00 text') will prompt for `some` instead of `some text` -- components: IO messages: 294153 nosy: Костя Чолак priority: normal severity: normal status: open title: input function truncates prompt by NULL byte type: behavior versions: Python 2.

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- pull_requests: +1809 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue30430] Cannot write to a tun interface file

2017-05-22 Thread Rémy Léone
Rémy Léone added the comment: The question I'm the most interested about is why depending on what the bytes object contains I get a different result. In one case the bytes are written fine to the TUN interface file descriptor and in the other case I get an Errno22. My assumption is that the by

[issue30430] Cannot write to a tun interface file

2017-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: So basically the write() system call seems to be returning EINVAL. Can I suggest the following steps: 1. try to reproduce using os.open() and os.write() instead of open() and write() (just to make sure something doesn't get in the way) 2. if it still fails,

[issue30430] Cannot write to a tun interface file

2017-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I know nothing about TUN but you may simply be hitting this code path: https://github.com/spotify/linux/blob/master/drivers/net/tun.c#L601-L614 Since: >>> ('e'.encode()[0] & 0xf0) in (0x40, 0x60) True >>> ('é'.encode()[0] & 0xf0) in (0x40, 0x60) False writing '

[issue30429] bdb and pdb: Add watchpoint function

2017-05-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- title: bdb: Add watchpoint function -> bdb and pdb: Add watchpoint function ___ Python tracker ___ _

[issue30429] bdb and pdb: Add watchpoint function

2017-05-22 Thread Louie Lu
Changes by Louie Lu : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21074] Too aggressive constant folding

2017-05-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > (I reopen the issue since it got a long new comment.) Andrew specifically said, "I don't propose re-opening it". FWIW, the zen of python also says, "practicality beats purity". For most users, most of the time, the peephole optimizer is a net win and it

[issue30430] Cannot write to a tun interface file

2017-05-22 Thread Rémy Léone
Rémy Léone added the comment: I've tackle the 1. by replacing write/open with os.write/os.open. I still get : $ python3 simple_incorrect.py b'\xc3\xa9' Traceback (most recent call last): File "simple_incorrect.py", line 32, in os.write(tun, incorrect_frame) OSError: [Errno 22] Invalid argu

[issue16500] Allow registering at-fork handlers

2017-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If the corresponding warnings are ignored, nothing happen, if they are > errors, the child is exited, Right now PyOS_AfterFork() doesn't return an error code. It is not obvious how the caller would react: simply print the error? raise a fatal error? Somethi

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-22 Thread Cooper Lees
Changes by Cooper Lees : -- nosy: +cooperlees ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue24658] open().write() fails on 2 GB+ data (OS X)

2017-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: 1. in the case of Windows, maybe we could open a new issue because this fix is only for MacOS 2. the issue was only for the files and not the sockets what do you suggest ? -- ___ Python tracker

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 65440f8278351e16350be716dff61f5f786f7060 by Xiang Zhang in branch '3.5': bpo-30003: Fix handling escape characters in HZ codec (#1556) (#1718) https://github.com/python/cpython/commit/65440f8278351e16350be716dff61f5f786f7060 -- ___

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 54af41d42eebbe4c6afe6b34ebb0fb550de1e7ba by Xiang Zhang in branch '3.6': bpo-30003: Fix handling escape characters in HZ codec (#1556) (#1719) https://github.com/python/cpython/commit/54af41d42eebbe4c6afe6b34ebb0fb550de1e7ba -- ___

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue30003] Fix handling escape characters in HZ codec

2017-05-22 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 6e1b832a6c0c8f32962a196ab631ccc17471d32b by Xiang Zhang in branch '2.7': bpo-30003: Fix handling escape characters in HZ codec (#1720) (#1556) https://github.com/python/cpython/commit/6e1b832a6c0c8f32962a196ab631ccc17471d32b -- ___

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2017-05-22 Thread Davin Potts
Changes by Davin Potts : -- pull_requests: +1810 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2017-05-22 Thread Segev Finer
Segev Finer added the comment: GitHub PR bit rotting away... :P Just a friendly reminder :) -- ___ Python tracker ___ ___ Python-bugs

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: You cannot safely use Python's os.fork() in a process that has threads. Because of POSIX. The CPython interpreter is by definition not async signal safe so no Python code may safely be executed after the fork() system call if the process contained _any_ th

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2017-05-22 Thread Davin Potts
Davin Potts added the comment: To better accommodate very slow buildbots, a parameter is added in PR-1722 to scale up the timeout durations where they are necessary on a per-machine basis. Relevant tests have a timeout set to some default number of seconds times a multiplier value. The multip

[issue30339] test_multiprocessing_main_handling: "RuntimeError: Timed out waiting for results" on x86 Windows7 3.x

2017-05-22 Thread Davin Potts
Davin Potts added the comment: Patch on issue30317 also addresses this issue in a more flexible way. -- dependencies: +test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot nosy: +davin ___ P

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Yury Selivanov
Yury Selivanov added the comment: > Since the limit is arbitrary anyway, sys.getrecursionlimit() seems like a > reasonable choice. The recursion limit can be changed for whatever purposes and I'm not sure that it's a good idea that it will affect unwrap behaviour in such cases. I'd suggest t

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Changes by Łukasz Langa : -- pull_requests: +1811 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Roy Williams
New submission from Roy Williams: ``` from fileinput import FileInput from pathlib import Path p = Path('.') FileInput(p) ``` Results in: Traceback (most recent call last): File "", line 1, in File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/fi

[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Caleb Hattingh
New submission from Caleb Hattingh: The official devguide at https://github.com/python/devguide does not include instructions on exactly how to build the docs! If, after cloning, you simply type `make`, you get some helpful output: $ make Please use `make ' where is one of html to ma

[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hello, Are you sure about the PR ? -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Kushal Das
Changes by Kushal Das : -- nosy: +kushal.das ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-22 Thread Thomas Kluyver
Thomas Kluyver added the comment: I could go either way on that. It's not hard to imagine it as a recursive algorithm, and using the recursion limit provides a simple configuration escape hatch if someone has a desperate need for something wrapped 3000 times for some strange reason. But it may

[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Caleb Hattingh
Changes by Caleb Hattingh : -- pull_requests: -1812 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30433] Devguide lacks instructions for building docs

2017-05-22 Thread Caleb Hattingh
Caleb Hattingh added the comment: Oops, sorry! The PR was wrong because it auto-assumes the main cpython repo, but my PR is in the devguide repo. This is the URL for the PR: https://github.com/python/devguide/pull/206 -- ___ Python tracker

[issue11410] Use GCC visibility attrs in PyAPI_*

2017-05-22 Thread Thomas Wouters
Changes by Thomas Wouters : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.

2017-05-22 Thread Thomas Wouters
Changes by Thomas Wouters : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.

2017-05-22 Thread Thomas Wouters
Changes by Thomas Wouters : -- resolution: -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11470] Flag inappropriate uses of callable class attributes

2017-05-22 Thread Thomas Wouters
Changes by Thomas Wouters : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue20210] Provide configure options to enable/disable Python modules and extensions

2017-05-22 Thread Thomas Wouters
Thomas Wouters added the comment: This feature would also be nice to have for Python at Google: we want builds to be as reproducible as possible, avoid third-party libraries even when they are available on the build system, and avoid certain extension modules in any form. We currently delete t

[issue17942] IDLE Debugger: Improve GUI

2017-05-22 Thread Mark Roseman
Mark Roseman added the comment: Please go ahead with any of the patches I submitted earlier, credit is absolutely not an issue. -- ___ Python tracker ___ ___

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Kushal Das
Kushal Das added the comment: I am picking this up. -- assignee: -> kushal.das ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Alan Pierce
Changes by Alan Pierce : -- nosy: +alangpierce ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Dariusz Smigiel
Dariusz Smigiel added the comment: The same applies for latest build: Python 3.7.0a0 (heads/master:128641d17e, May 22 2017, 09:40:08) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin I can try to work on that. -- nosy: +dasm versions: +Python 3.7

[issue30434] multiprocessing AuthenticationError "digest sent was rejected"

2017-05-22 Thread Soon Jeffrey
New submission from Soon Jeffrey: This is codes I run: class TopicManager(SyncManager): pass Server side: m = TopicManager(address=('', 5), authkey='12345') s = m.get_server() s.serve_forever() client side: m = TopicManager(address=('eng-g9-018', 5), authkey='12345') m.connect() W

[issue30431] input function truncates prompt by NULL byte

2017-05-22 Thread Eryk Sun
Eryk Sun added the comment: PyOS_Readline uses a null-terminated prompt string. So input() needs to raise a ValueError if the prompt contains null characters, e.g. if PyBytes_GET_SIZE(po) != strlen(promptstr). -- nosy: +eryksun ___ Python tracker <

[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Naomi Ceder
Changes by Naomi Ceder : -- pull_requests: +1813 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2017-05-22 Thread Alex Perry
Changes by Alex Perry : -- pull_requests: +1814 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Naomi Ceder
Naomi Ceder added the comment: Created a PR on this... it seems that making the Implementation Detail warning come first and deleting the limited execution sentence achieves what's needed here. -- nosy: +NaomiCeder ___ Python tracker

[issue30416] constant folding opens compiler to quadratic time hashing

2017-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch makes const folding more safe by checking arguments before doing expensive calculation that can create large object (multiplication, power and left shift). It fixes examples in this issue, issue21074, issue30293. The limit for repetition is in

[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: needs patch -> patch review versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list m

[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 43c8a9e39bb2d4f25ed7ae17a55f34e375d1868b by Mariatta (Naomi Ceder) in branch 'master': bpo-30372: Clarify that '__builtins__' is a CPython Implementation detail (GH-1725) https://github.com/python/cpython/commit/43c8a9e39bb2d4f25ed7ae17a55f34e37

[issue21074] Too aggressive constant folding

2017-05-22 Thread Andrew Dalke
Andrew Dalke added the comment: I do not think quoting the Zen of Python helps anything. As I wrote, "it gives different answers depending on where one draws the line." This includes "practicality beats purity". >From my viewpoint, the peephole optimizer isn't going to change because the >cor

[issue30432] FileInput doesn't accept PathLike objects for file names

2017-05-22 Thread Alex Perry
Alex Perry added the comment: You seem to be skipping a step, this is nothing to do with FileInput: >>> [n for n in Path('.')] Traceback (most recent call last): File "", line 1, in TypeError: 'PosixPath' object is not iterable >>> [n for n in Path('.').iterdir()] [PosixPath('build'), PosixP

[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1817 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Dariusz Smigiel
Dariusz Smigiel added the comment: Rudi, Andrew I missed your replaces. This, indeed, looks like osascript bug. I don't think it's backward incompatible change, especially between 10.12.4 and 10.12.5 which would completely broke default behavior. -- ___

[issue30401] Remove the .bzrignore file

2017-05-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Stéphane! -- nosy: +Mariatta resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 3d3b189f8ef321ccfb144a46d50892939d6004aa by Mariatta in branch '3.6': [3.6] bpo-30372: Clarify that '__builtins__' is a CPython Implementation detail (GH-1725) (GH-1727) https://github.com/python/cpython/commit/3d3b189f8ef321ccfb144a46d50892939d

[issue30372] Status of __builtins__ is not totally clear

2017-05-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: PR merged, and I backport it to 3.6 Thanks everyone :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30434] multiprocessing AuthenticationError "digest sent was rejected"

2017-05-22 Thread Alex Perry
Alex Perry added the comment: The docstring for the class points out that the `multiprocessing.Manager()` function creates started instances of the SyncManager class. You should probably follow that advice, it calls start() for you. -- nosy: +arp11

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-22 Thread R. David Murray
R. David Murray added the comment: It would be a white-box test, which I don't like, but it might be worth it to write a test that would check that .sock is None, indicating that close was called. You really can't check for no warning because when the warning gets generated is effectively asy

[issue30274] Make importlib.abc.ExtensionFileLoader.__init__() documentation match code

2017-05-22 Thread Sayan Chowdhury
Sayan Chowdhury added the comment: I am starting to work on this issue. -- nosy: +sayanchowdhury ___ Python tracker ___ ___ Python-bug

[issue24899] Add an os.path <=> pathlib equivalence table in pathlib docs

2017-05-22 Thread Jamiel Almeida
Jamiel Almeida added the comment: I'm picking this up. -- nosy: +slashfoo versions: +Python 3.7 -Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue30392] default webbrowser fails on macOS Sierra 10.12.5

2017-05-22 Thread Ned Deily
Ned Deily added the comment: We should check whether the osascript regression is fixed in the most recent 10.12.6 Developer Preview and, if not, open a RADAR (Apple bug report). -- ___ Python tracker _

[issue24658] open().write() fails on 2 GB+ data (OS X)

2017-05-22 Thread STINNER Victor
STINNER Victor added the comment: I don't say that something is broken. Just that it would be nice if someone could test socket methods. On Windows, the bug was obvious: the function takes a C int... -- ___ Python tracker

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1818 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-05-22 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0c4aca54dcf0c54f299c78aa71fe8f48ff04f9d9 by Łukasz Langa in branch 'master': Make rb'' strings work in lib2to3 (#1724) https://github.com/python/cpython/commit/0c4aca54dcf0c54f299c78aa71fe8f48ff04f9d9 -- __

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-22 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1819 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

  1   2   >