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
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
john ryan added the comment:
Thanks. That is understandable. I reported it in case it was helpful.
--
___
Python tracker
<https://bugs.python.org/issue42
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
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
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&
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,
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
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
Change by John Engelke :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42458>
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
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
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
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
Changes by John O'Connor :
--
nosy: +jcon
___
Python tracker
<http://bugs.python.org/issue13903>
___
___
Python-bugs-list mailing list
Unsubsc
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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,
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
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
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'
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:
John Taylor added the comment:
Bump
--
___
Python tracker
<http://bugs.python.org/issue29284>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
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
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'
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
__
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
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
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
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
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
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
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
Change by John Bachman :
--
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue36450>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Change by John Jolly :
--
nosy: +eli.bendersky
___
Python tracker
<https://bugs.python.org/issue32476>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by John Jolly :
--
pull_requests: +5098
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32476>
___
___
Python-bugs-list mai
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
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
Change by John Jolly :
--
nosy: +gregory.p.smith
___
Python tracker
<https://bugs.python.org/issue28494>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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")
>
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
{
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
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
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
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
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
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
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
Change by John Yeung :
--
nosy: +John.Yeung
___
Python tracker
<https://bugs.python.org/issue33083>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 = '
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
Change by John Reese :
--
keywords: +patch
pull_requests: +6504
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33504>
___
___
Python-
Change by John Reese :
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue33504>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by John Reese :
--
nosy: +jreese
___
Python tracker
<https://bugs.python.org/issue33496>
___
___
Python-bugs-list mailing list
Unsubscribe:
John Reese added the comment:
Looks like this is already changed for 3.7: see commit a22a127458
--
___
Python tracker
<https://bugs.python.org/issue33
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
Change by John Reese :
--
keywords: +patch
pull_requests: +6553
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33516>
___
___
Python-
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
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'
Change by John Villalovos :
--
title: Using autospec=True conflicts with 'wraps' -> unitest.mock: Using
autospec=True conflicts with 'wraps'
___
Python tracker
<https://
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
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
401 - 500 of 1249 matches
Mail list logo