[issue42154] Bad proxy returned immediately after BaseManager server restarted

2020-10-26 Thread john ryan
New submission from john ryan : I am building an application that is made up of several separate processes, where each process is a python program. They are all started by the supervisord utility and execute within a venv running Python 3.8.5 (default, Aug 13 2020, 15:42:06) [GCC 7.5.0] on

[issue42203] Unexpected behaviour NameError: name 'open' is not defined

2020-10-30 Thread john ryan
New submission from john ryan : My test environment runs Ubuntu 18.04 in a virtualbox hosted on Windows 8.1 and Python executes within a venv running Python 3.9.0 (Python 3.9.0 (default, Oct 26 2020, 09:02:51) [GCC 7.5.0] on linux Running a test with unittest.IsolatedAsyncioTestCase my code

[issue42203] Unexpected behaviour NameError: name 'open' is not defined

2020-10-30 Thread john ryan
john ryan added the comment: Thanks. That is understandable. I reported it in case it was helpful. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42173] Drop Solaris support

2020-11-02 Thread John Gardner
John Gardner added the comment: Don't remove, it is still actively used by so many people. If the maintance overhead of 700 lines is a large burdern, then I'm happy to take on whatever work is required for it. -- nosy: +jgardner100

[issue31861] add aiter() and anext() functions to operator module

2020-11-05 Thread John Belmonte
John Belmonte added the comment: Adding this would be a nice compliment to aclosing(), which was already merged for 3.10. Otherwise, witness the ugliness of using aclosing() with an async iterable object: async with aclosing(foo.__aiter__()) as agen: async for item in agen

[issue42279] replacements function corrupts file

2020-11-06 Thread John Dutcher
New submission from John Dutcher : If the file below 0f 239 records is processed by the code below it throws no errors and writes the output...but the output has 615 records instead of 239 seemingly having written any revised ones three times instead of only once. replacements = {'/1&

[issue42295] Error should be flagged if Walrus operator is used for multiple assigment

2020-11-09 Thread John Zalewski
New submission from John Zalewski : #The 'Walrus' operator does not support multiple assignment but does not #flag an attempt to make a multiple assigment as an error #This results in unexpected behavior at execution time: a, b = 100, 200 print (a, b) #result is #100 200 if (a,

[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-24 Thread John Engelke
New submission from John Engelke : On Mac OS X Catalina+, Pathlib's resolve() method prepends the System Integrity Protection (SIP) path to the front of the resolved Path, whether you like it or not. >>> from pathlib import Path >>> host_path_str = "/hom

[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-25 Thread John Engelke
John Engelke added the comment: Thanks @ronaldoussoren. This bug report is flawed for a couple reasons, notwithstanding some assumptions I made incorrectly. (SIP actually makes "/home" a symlink so that resolved correctly.) So I am retracting it as-is because I can't ed

[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-25 Thread John Engelke
Change by John Engelke : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42458> ___ ___ Python-bugs-list

[issue42458] Pathlib resolve() on Mac prepends path

2020-11-25 Thread John Engelke
Change by John Engelke : -- title: Pathlib resolve() on Mac Catalina prepends secret path -> Pathlib resolve() on Mac prepends path ___ Python tracker <https://bugs.python.org/issu

[issue42464] Pathlib resolve() resolves non-existent ".." components with strict=False

2020-11-25 Thread John Engelke
New submission from John Engelke : The below snippet results in the symlink "/home" resolving as expected. However, documentation at https://docs.python.org/3.7/library/pathlib.html#pathlib.Path.resolve suggests, "If strict is False, the path is resolved as far as possible an

[issue42465] Reference to subclass method resolve() in PurePath docs

2020-11-25 Thread John Engelke
New submission from John Engelke : The text: 'If you want to walk an arbitrary filesystem path upwards, it is recommended to first call Path.resolve() so as to resolve symlinks and eliminate “..” components.' should be moved or changed to 'If you want to walk a concrete p

[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument

2012-01-13 Thread John Machin
New submission from John Machin : import xml.etree.ElementTree as et node = et.Element('x') node.append(not_an_Element_instance) 2.7 and 3.2 produce no complaint at all. 2.6 and 3.1 produce an AssertionError. However cElementTree in all 4 versions produces a TypeError. Please fix 2

[issue13405] Add DTrace probes

2012-01-19 Thread John Levon
John Levon added the comment: I would strongly suggest those of you who are not "getting it" to actually try Jesus's patch out in some real scenarios. You'll quickly see what the benefit is. I think some of you are missing that it's a *not* just about performance: it

[issue13891] CPU DoS With Python's socket module

2012-01-27 Thread John Zimmerman
New submission from John Zimmerman : Python's socket module as included in Ubuntu Lucid (python version 2.6.5) does not correctly handle and exclude malformed UDP packets. This means that UDP listening programs written in python on this version are susceptible to malformed-UDP-packet

[issue13891] CPU DoS With Python's socket module

2012-01-27 Thread John Zimmerman
John Zimmerman added the comment: Thanks for your quick response, I downloaded the ISIC tool and used the following command to identify the problem: udpsic -s rand -d server-ip-address,port where port is 514 (syslogd) which uses a python script to process the incoming messages. The command

[issue13891] CPU DoS With Python's socket module

2012-01-27 Thread John Zimmerman
John Zimmerman added the comment: Hi Antoine, The issue is that the CPU spikes to ~90% utilization for the server during the attack, for as long as the attack lasts. So the theory is that Python isn't throttling or processing the malformed packets properly. Copying Renier for

[issue13899] re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z.

2012-01-28 Thread John Machin
New submission from John Machin : Expected behaviour illustrated using "C": >>> import re >>> re.findall(r'[\C]', 'CCC') ['C', 'C', 'C'] >>> re.compile(r'[\C]', 128) literal 67 <_sre.SRE_Patte

[issue13899] re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z.

2012-01-28 Thread John Machin
John Machin added the comment: @ezio: Of course the context is "inside a character class". I expect r'[\b]' to act like r'\b' aka r'\x08' aka backspace because (1) that is the treatment applied to all other C-like control char escapes (2) the docs say

[issue13899] re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z.

2012-01-29 Thread John Machin
John Machin added the comment: @Ezio: Comparison of the behaviour of \letter inside/outside character classes is irrelevant. The rules for inside can be expressed simply as: 1. Letters dDsSwW are special; they represent categories as documented, and do in fact have a similar meaning outside

[issue13899] re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z.

2012-01-29 Thread John Machin
John Machin added the comment: Whoops: "normal Python rules for backslash escapes" should have had a note "but revert to the C behaviour of stripping the \ from unrecognised escapes" which is what re appears to do i

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue13903> ___ ___ Python-bugs-list mailing list Unsubsc

[issue11104] distutils sdist ignores MANIFEST

2012-02-03 Thread John Dennis
John Dennis added the comment: The changesets are not in the release27-maint branch. sdist still does not generate a correct archive for release, this is a very serious regression. -- resolution: fixed -> status: closed -> open ___ Python t

[issue13915] Update Tutorial 6.1.3 for PEP 3145

2012-02-03 Thread John Roth
John Roth added the comment: I apologize for not submitting this in patch format, but I don't have a development system available. I suggest replacing the entire 6.1.3 section with: To speed up loading modules, Python caches the compiled version of each module in the __pycache__ dire

[issue4709] Mingw-w64 and python on windows x64

2012-02-05 Thread John Pye
John Pye added the comment: Hi Martin I have documented a build process for a Python package on MinGW-w64, including a requirement that this patch be applied. You might want to revisit it, given that your attempt to reproduce this bug earlier was unsuccessful. http://ascend4.org

[issue4709] Mingw-w64 and python on windows x64

2012-02-06 Thread John Pye
John Pye added the comment: Martin, Ralf is right and my as previously linked is about building a python extension. I should have been more explicit about that. FWIW I found that the configure scripts on MinGW-w64 generally work fine if you add a "--build=x86_64-w64-mingw32" argum

[issue14164] my little contribution to the docs

2012-03-01 Thread John Napster
New submission from John Napster : This patch fixes some small grammar things in the docs. Hope you like my contribution. -- assignee: docs@python components: Documentation files: patch.diff keywords: patch messages: 154688 nosy: docs@python, joenapnap priority: normal severity: normal

[issue14302] Move python.exe to bin/

2012-03-20 Thread John Ehresman
John Ehresman added the comment: Just a few thoughts from someone who uses Windows and who'd need to change code for this change: 1) I don't know if waiting to 3.5 is needed. I can make the change to look in the bin directory fairly quickly. 2) Is it safe to add scripts to the

[issue14302] Move python.exe to bin/

2012-03-20 Thread John Ehresman
John Ehresman added the comment: Does this mean that the PATH entry won't be removed on uninstall? I can't tell from reading #3561, though I may have missed something. My worries are about the developer who doesn't know what the PATH is and would find it difficult to diagno

[issue14390] Tkinter single-threaded deadlock

2012-03-22 Thread John Bollinger
New submission from John Bollinger : This is the same as issue 452973, created as a new issue pursuant to the instruction given when 452973 was closed as "out of date". In a nutshell, in a program using combining Tkinter with Tcl callbacks written in C, it is possible for eve

[issue14390] Tkinter single-threaded deadlock

2012-03-26 Thread John Bollinger
John Bollinger added the comment: I was already working on a standalone test, and now I have it ready. Using it I can demonstrate the issue against both the cpython trunk and against my local v2.6.6 binary distribution, therefore I have added v3.3 as an affected version. It is reasonable

[issue14390] Tkinter single-threaded deadlock

2012-03-27 Thread John Bollinger
John Bollinger added the comment: For what it's worth, I can convert my standalone test into a PyUnit testcase easily enough (or so it appears). I'm having trouble, however, figuring out how to get the extension it depends on built and accessible to the test, yet not installe

[issue14390] Tkinter single-threaded deadlock

2012-03-27 Thread John Bollinger
John Bollinger added the comment: I looked at the packaging tests (thanks), but I didn't find anything useful to me. There were a couple whose names looked promising, but they turned out to be stubs. As far as I can tell, none of those tests actually invoke the system's C comp

[issue37051] Glossary item "hashable" incorrect

2019-05-25 Thread John Riehl
New submission from John Riehl : The entry in the glossary for "hashable" (https://docs.python.org/3/glossary.html#term-hashable) states "All of Python’s immutable built-in objects are hashable." Tuples are described as immutable sequence types (https://docs.

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-24 Thread John Belmonte
New submission from John Belmonte : A case came up where I'd like a non-async context manager to be able to decorate both regular and async functions. I wonder why contextlib.ContextDecorator doesn't just support both cases. The implementation seems straightforward, sw

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread John Belmonte
John Belmonte added the comment: I have a context manager used for timing sections of code or whole functions (when used as a decorator). It's aware of the Trio async/await scheduler and is able to exclude periods of time where the task is not executing. The context manager itself i

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread John Belmonte
John Belmonte added the comment: PerfTimer is a reusable, non-reentrant context manager implemented as a class. There are already use cases of ContextDecorator described in the contextlib documentation, such as the track_entry_and_exit logger. What reason would you have for such context

[issue37398] contextlib.ContextDecorator decorating async functions

2019-06-25 Thread John Belmonte
John Belmonte added the comment: My use case is for a non-async context manager, and if we take track_entry_and_exit as an example that's non-async as well. The explicit approach (e.g. separate base class for decorators applied to sync vs. async functions) doesn't seem ideal,

[issue37398] contextlib.ContextDecorator decorating async functions

2019-07-24 Thread John Belmonte
John Belmonte added the comment: I was caught by this again, indirectly via @contextmanager. If I define a non-async context manager using @contextmanager, I expect the decorator support to work on async functions. I.e. the following should be equivalent: ``` async def foo(): with

[issue37818] Behaviors of binary bitwise operators contradicting documentation

2019-08-10 Thread John Rogers
New submission from John Rogers : In Python Language Reference (version 3.7), section 6.9 it states that the arguments of binary bitwise operators must be integers. However, the following expressions work without error: True & False False | True True ^ True Each produc

[issue30875] round(number[, digits]) does not return value with >12 decimal places

2017-07-07 Thread john Forgue
New submission from john Forgue: I have a sensor that returns float with 15 decimal places. Using "round(number[, digits])" in a program I get no rounding Using the same command in the terminal interpreter it returns ... (3 periods) then hangs requiring ^C to continue. I'

[issue30875] round(number[, digits]) does not return value with >12 decimal places

2017-07-08 Thread john Forgue
john Forgue added the comment: I found a programming issue that circumvented the round function. As for the terminal "verification" I reported I'm not sure what I did and cannot repeat. Sorry for the false alarm. John -- resolution: -> works for me stage:

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-07-20 Thread John Taylor
John Taylor added the comment: Bump -- ___ Python tracker <http://bugs.python.org/issue29284> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2017-07-24 Thread John Still
New submission from John Still: The function `register` of the `webbrowser` module was updated a little while back to use the newish keyword-only argument syntax; however, the function `_synthesize` (also in `webbrowser`) is still using the outdated positional arguments only calling

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2017-07-24 Thread John Still
John Still added the comment: What would a new test be testing? I only found this behaviour because two existing tests were failing (with the PR they pass, of course). I'm happy to write a test, I'm just not sure what the test should be testing that the existing tests don'

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2017-07-24 Thread John Still
John Still added the comment: Ok I understand what you mean. I think the only conditions for test failure are (A) $BROWSER is set and (B) $BROWSER is set to an actual executable that should be caught by ``register_standard_browsers`` prior to execution reaching the last if clause of

[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2017-07-27 Thread John Nagle
John Nagle added the comment: As the original author of the predecessor bug report (issue 15873) in 2012, I would suggest that there's too much bikeshedding here. I filed this bug because there was no usable ISO8601 date parser available. PyPi contained four slightly different buggy

[issue31264] Import Package/Module through HTTP/S repository

2017-08-23 Thread John Torakis
New submission from John Torakis: A module presented in "https://github.com/operatorequals/httpimport"; which provides functionality for package/module loading through HTTP/S, like the golang's "import github.com/someusr/somepkg/subpkg", but for any directory serve

[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-24 Thread John Hiatt
John Hiatt added the comment: I fixed this. Can you help me get it into the official repository? -- nosy: +hiaji ___ Python tracker <https://bugs.python.org/issue35

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2018-11-27 Thread John Parejko
John Parejko added the comment: Adding to the list of "I just ran into this". The patch submitted by fov seems straightforward enough: what can we do to help shepherd it along? -- nosy: +John Parejko2 ___ Python tracker <https://bu

[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2019-01-15 Thread John Parejko
John Parejko added the comment: Were you able to make any progress on this? Do you need any help? -- nosy: +parejkoj-3 ___ Python tracker <https://bugs.python.org/issue23

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-02-13 Thread John Florian
New submission from John Florian : I wanted a simple is_valid_ipv4_network() function, so I wrote one and a bunch of unit tests where I discovered that I can legally: >>> n = IPv4Network(('192.168.123.234', 12345678)) >>> n IPv4Network('192.168.123.234/12

[issue35990] ipaddress.IPv4Interface won't accept 2-tuple (address, mask)

2019-02-13 Thread John Florian
New submission from John Florian : The docs say """The meaning of address is as in the constructor of IPv4Network, except that arbitrary host addresses are always accepted.""" However, that doesn't seem to be entirely true: >>> tup1 = ('1

[issue20104] expose posix_spawn(p)

2017-03-17 Thread John Jones
John Jones added the comment: To prevent subprocess/os.fork() doubling my memory after loading a large numpy array into memory, I now have to start my script with 650 calls to subprocess.Popen(), which just sit their waiting for some stdin to start doing something. This doesn't happen

[issue20104] expose posix_spawn(p)

2017-03-17 Thread John Jones
John Jones added the comment: I agree with everything you're saying Gregory, however I don't think the significance of the memory doubling is as inconsequential as you might first think. For example, i have on my 64bit Linux system 128Gb of RAM, and a numpy table that's around

[issue29868] multiprocessing.dummy missing cpu_count

2017-03-21 Thread John Wiseman
New submission from John Wiseman: The documentation for the multiprocessing.dummy module says that it "replicates the API of multiprocessing." In Python 2.7, I can import multiprocessing.dummy and use the cpu_count function: $ python2 Python 2.7.12 (default, Oct 29 2016, 19:21:06)

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-04-13 Thread John Taylor
John Taylor added the comment: Can this be added to Python 3.7? https://docs.python.org/3.7/library/concurrent.futures.html#threadpoolexecutor-example Thanks. -- ___ Python tracker <http://bugs.python.org/issue29

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2017-04-26 Thread John Beck
John Beck added the comment: Solaris has this problem also, and Chris' patch fixes it for us. -- nosy: +jbeck ___ Python tracker <http://bugs.python.org/is

[issue968063] Add fileinput.islastline()

2017-04-29 Thread John Tapsell
John Tapsell added the comment: > If you need islastline() you can use a wrapper: This doesn't work because fileinput.filename() and fileinput.filelineno() are going to be wrong and pointing to the next file. -- nosy: +John Tapsell __

[issue30379] multiprocessing Array create for ctypes.c_char, TypeError unless 1 char string arg used

2017-05-16 Thread John Schaefer
New submission from John Schaefer: When creating a multiprocessing Array equivalent for unsigned chars, eg from a numpy.uint8 array, the first argument: typecode_or_type must be specified as a one character string, if a typecode is used the method raises a TypeError. >>> import nu

[issue30518] Import type aliases from another module

2017-05-30 Thread John Jackson
New submission from John Jackson: I have a 'base' module where I define some type aliases, such as: from typing import List, Tuple Block = [int, Tuple[int]] Blocks = List[Block] Tags = List[str] I would like to import these aliases into other modules so that the 

[issue30518] Import type aliases from another module

2017-05-30 Thread John Jackson
John Jackson added the comment: I just found out that the problem is even worse. While PyCharm accepts the syntax below, I still can't compile 'Blocks'. -- ___ Python tracker <http://bugs.pyt

[issue30518] Import type aliases from another module

2017-06-03 Thread John Jackson
John Jackson added the comment: Thanks for your response! Yes, the problem was a circular definition. I still have much to learn about Python... -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python track

[issue36309] Remove tempfile.mktemp()

2019-03-15 Thread John Hagen
New submission from John Hagen : tempfile.mktemp has been deprecated since Python 2.3 and has security concerns attached to it. Is it time that this is finally removed? https://docs.python.org/3/library/tempfile.html#tempfile.mktemp -- components: Library (Lib) messages: 338046 nosy

[issue36309] Remove tempfile.mktemp()

2019-03-18 Thread John Hagen
John Hagen added the comment: Should it be a DeprecationWarning instead of a RuntimeWarning? (or both since it's both deprecated and a security issue?) -- ___ Python tracker <https://bugs.python.org/is

[issue36450] 3D Array Assignment to all 2D sub-arrays

2019-03-27 Thread John Bachman
New submission from John Bachman : Tested on Python3.6 on Ubuntu 18.04 The following code snippet produces the wrong results. Snippet: M = [[[0] * 2] * 2] * 2 M[0][0][0] = 1

[issue36450] 3D Array Assignment to all 2D sub-arrays

2019-03-27 Thread John Bachman
Change by John Bachman : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue36450> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36580] unittest.mock does not understand dataclasses

2019-04-09 Thread John Parejko
New submission from John Parejko : The new dataclasses.dataclass is very useful for describing the properties of a class, but it appears that Mocks of such decorated classes do not catch the members that are defined in the dataclass. I believe the root cause of this is the fact that

[issue36857] bisect should support descending order

2019-05-08 Thread John Belmonte
New submission from John Belmonte : because "list.pop()" use case: maintain large ordered list and efficiently remove min item list.pop() is O(1) but yields the max item. There is no efficient removal of the min item. list is by far the fastest collection to use with insort(). W

[issue34288] Declare sethostname in socketmodule.c for SOLARIS

2019-05-15 Thread John Harrison
John Harrison added the comment: On Solaris 10 i386 I successfully built _socket on 3.7.3 by patching *in* a Solaris test (by cloning the test for the INET_ADDRSTRLEN definition currently on line 268) rather than by patching away the _AIX ifdef $ diff -u ../socketmodule.c Modules

[issue32476] Add concat functionality to ElementTree xpath find

2018-01-12 Thread John Jolly
Change by John Jolly : -- nosy: +eli.bendersky ___ Python tracker <https://bugs.python.org/issue32476> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32476] Add concat functionality to ElementTree xpath find

2018-01-20 Thread John Jolly
Change by John Jolly : -- pull_requests: +5098 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32476> ___ ___ Python-bugs-list mai

[issue32476] Add concat functionality to ElementTree xpath find

2018-01-30 Thread John Jolly
John Jolly added the comment: I understand that the feature is likely too late, but I do not want it to get lost. Is there any way to make certain this feature is accepted for the next release? Do I just select the 3.8 version for this issue

[issue28494] is_zipfile false positives

2018-01-30 Thread John Jolly
John Jolly added the comment: Is there any chance that this will make it into 3.7 or is my reminder too late? -- ___ Python tracker <https://bugs.python.org/issue28

[issue28494] is_zipfile false positives

2018-01-30 Thread John Jolly
Change by John Jolly : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue28494> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32766] 4.7.7. Function Annotations

2018-02-04 Thread John Hossbach
New submission from John Hossbach : https://docs.python.org/3.5/tutorial/controlflow.html#function-annotations The end of the first paragraph states, "The following example has a positional argument, a keyword argument, and the return value annotated:" However, the only function

[issue32854] Add ** Map Unpacking Support for namedtuple

2018-02-15 Thread John Crawford
New submission from John Crawford : At present, `collections.namedtuple` does not support `**` map unpacking despite being a mapping style data structure. For example: >>> from collections import namedtuple >>> A = namedtuple("A", "a b c") >

[issue32896] Error when subclassing a dataclass with a field that uses a defaultfactory

2018-02-21 Thread John Didion
New submission from John Didion : > @dataclass > class Foo: > x: dict = field(default_factory=dict) > @dataclass > class Bar(Foo): > y: int = 1 > @dataclass > class Baz(Foo): > def blorf(self): > print('hello') > Foo().x {} > Bar().x {

[issue32972] unittest.TestCase coroutine support

2018-02-28 Thread John Andersen
New submission from John Andersen : This makes unittest TestCase classes run `test_` methods which are async -- components: Tests, asyncio messages: 313063 nosy: asvetlov, pdxjohnny, yselivanov priority: normal pull_requests: 5708 severity: normal status: open title: unittest.TestCase

[issue32972] unittest.TestCase coroutine support

2018-02-28 Thread John Andersen
John Andersen added the comment: More discussion indeed. I figured I was not alone in my desire to see async test support in the stdlib. Let me know what other changes would be good. -- ___ Python tracker <https://bugs.python.org/issue32

[issue31880] subprocess process interaction with IDLEX GUI causes pygnuplot silent failures

2018-03-05 Thread John Brearley
John Brearley added the comment: I retested with Python 3.6.4 upgrades and the issue no longer occurs. You may want to close this issue. -- ___ Python tracker <https://bugs.python.org/issue31

[issue33000] IDLEX GUI consumes all RAM for scrollback buffer, uses 161Bytes / character stored

2018-03-05 Thread John Brearley
New submission from John Brearley : While running a tensorflow script in the IDLEX GUI that runs for 8 million steps and produce 2 lines stdout per step, my PC used all 16GB RAM and crashed the python process, not to mention messed up other apps, like Firefox & Norton AntiVirus. While the

[issue33000] IDLEX GUI consumes all RAM for scrollback buffer, uses 161Bytes / character stored

2018-03-06 Thread John Brearley
John Brearley added the comment: Hi Terry: I am exploring the value of a language specific editor and runtime environment. Its definitely a large step up from Windows Notepad and Gnome Gedit. Perhaps some notes in the IDLEX documentation regarding the development versus production runtime

[issue33000] IDLEX GUI consumes all RAM for scrollback buffer, uses 161Bytes / character stored

2018-03-06 Thread John Brearley
John Brearley added the comment: Hi Terry: The icon on my Win 7 desktop points to: "C:\WinPython\IDLEX (Python GUI).exe". This was part of the 430MB installer file WinPython-64bit-3.6.4.0Qt5b4.exe from https://sourceforge.net/projects/winpython. I attached a screen shot of ID

[issue32972] unittest.TestCase coroutine support

2018-03-12 Thread John Andersen
John Andersen added the comment: I've updated my pull request to do the following: 1. Provide a new AsyncTestCase class which is a subclass of TestCase 2. Run coroutines with a coroutineRunner property. a. In 3.6 this calls get_evet_loop.run_until_complete b. In 3.7 > th

[issue33083] math.factorial accepts non-integral Decimal instances

2018-03-15 Thread John Yeung
Change by John Yeung : -- nosy: +John.Yeung ___ Python tracker <https://bugs.python.org/issue33083> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33303] ElementTree Comment text isn't escaped

2018-04-17 Thread John Burnett
New submission from John Burnett : The _serialize_xml function in ElementTree.py doesn't escape Comment.text values when writing output. This means the following code: import sys import xml.etree.ElementTree elem = xml.etree.ElementTree.Comment() elem.text = '

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-05-14 Thread John Reese
New submission from John Reese : The configparser module uses `collections.OrderedDict` as its default, but this is no longer necessary in 3.7+ due to the semantics of core dictionaries being ordered by design. configparser should just use `dict` by default now, instead

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-05-14 Thread John Reese
Change by John Reese : -- keywords: +patch pull_requests: +6504 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33504> ___ ___ Python-

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-05-14 Thread John Reese
Change by John Reese : -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue33504> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33496] Accept Pathlib paths for sqlite file

2018-05-15 Thread John Reese
Change by John Reese : -- nosy: +jreese ___ Python tracker <https://bugs.python.org/issue33496> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33496] Accept Pathlib paths for sqlite file

2018-05-15 Thread John Reese
John Reese added the comment: Looks like this is already changed for 3.7: see commit a22a127458 -- ___ Python tracker <https://bugs.python.org/issue33

[issue33428] pathlib.Path.glob does not follow symlinks

2018-05-15 Thread John Reese
John Reese added the comment: This looks like an issue specific to Windows? I can't replicate on Mac, and given Windows' method of implementing "symlinks" as junctions. -- nosy: +jreese ___ Python tracker <https://bug

[issue33516] unittest.mock: Add __round__ to supported magicmock methods

2018-05-15 Thread John Reese
Change by John Reese : -- keywords: +patch pull_requests: +6553 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33516> ___ ___ Python-

[issue31679] pydot missing write, write_png, etc

2017-10-03 Thread John Brearley
New submission from John Brearley : I have successfully installed Graphviz tool from http://graphviz.org, updated my PATH variable appropriately and can generate .PNG files using Python module Graphviz with WinPython 3.6.1. However, I cannot get anywhere using the pydot V1.2.3 module in the

[issue31807] Using autospec=True conflicts with 'wraps'

2017-10-17 Thread John Villalovos
New submission from John Villalovos : If have autospec=True, then no ValueError is raised. If autospec=False or not defined, then the ValueError is raised. import sys from unittest import mock def wrapped_func(value): raise ValueError(value) @mock.patch('__main__.wrapped_func'

[issue31807] unitest.mock: Using autospec=True conflicts with 'wraps'

2017-10-17 Thread John Villalovos
Change by John Villalovos : -- title: Using autospec=True conflicts with 'wraps' -> unitest.mock: Using autospec=True conflicts with 'wraps' ___ Python tracker <https://

[issue31880] subprocess process interaction with IDLEX GUI causes pygnuplot silent failures

2017-10-26 Thread John Brearley
New submission from John Brearley : There is an interesting interaction between the IDLEX GUI and subprocess module that causes pygnuplot silent failures. The example.py script below works fine when run from the WinPython Command Prompt.exe terminal window. The script will popup a new window

[issue31880] subprocess process interaction with IDLEX GUI causes pygnuplot silent failures

2017-10-31 Thread John Brearley
John Brearley added the comment: Additonal testing shows that the subprocess.run command will reliably interact directly with gnuplot, either from the IDLEX GUI or the Python terminal window. import subprocess def run_cmd(cmd): print("run_cmd cmd:", cmd) # MUST explicitly ask

<    1   2   3   4   5   6   7   8   9   10   >