Peter Landgren added the comment:
The È... comes from French surnames and our French developer wants to group all
versions
of E together. The É... can be found in French surnames in Sweden as well as in
Germany.
The program, GRAMPS is a genealogy program used in about 20 languages, so there
Change by Peter Lovett :
--
nosy: +PeterL777
___
Python tracker
<https://bugs.python.org/issue31140>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Lovett added the comment:
I'm not getting the problem on 3.9.7 on Windows.
Did get it on 3.7 (3.7.11?) on a different Windows machine last week.
Not getting the problem on 3.10.4
The wrong line number is a problem for IDLE's syntax highlighter, that marks
the first line a
Peter Lovett added the comment:
Thanks Eric.
--
___
Python tracker
<https://bugs.python.org/issue31140>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Peter Lovett :
--
nosy: +PeterL777
___
Python tracker
<https://bugs.python.org/issue12445>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Edwards added the comment:
Hi Victor, thanks for the comments. Responses inline below.
On Wed, 14 Aug 2019 at 12:25, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
> I dislike PR 13649 because it touch the thread module, only to fix a
> faulthandler
Peter Edwards added the comment:
The patch I originally proposed here (
https://bugs.python.org/file48353/sigaltstack-stacksize.patch ) is a pretty
minimal fix that uses the pthread stack size where available, with a
hard-coded lower bound of 1M. @Victor : if you want a minimal diff, I can
Peter Edwards added the comment:
On Wed, 14 Aug 2019 at 14:46, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
> "On a 64-bit system, consuming 8M of address space is a drop in the ocean."
>
> Let me disagree here. Python always allocates
Peter Edwards added the comment:
On Wed, 14 Aug 2019 at 22:34, STINNER Victor wrote:
>
> ...I'm not sure that we can fix bpo-37851 in Python 3.7.
That's totally reasonable, sure.
--
___
Python tracker
<https://bugs.py
Peter Edwards added the comment:
On Wed, 14 Aug 2019 at 22:32, STINNER Victor wrote:
>
> We are talking abou the faulthandler_user() function of
> Modules/faulthandler.c. It is implemented in pure C, it doesn't allocate
> memory on the heap, it uses a very small set of
Peter Edwards added the comment:
On Wed, 14 Aug 2019 at 23:13, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
> About PR 13649, I'm not sure that _PyThread_preferred_stacksize() is still
> relevant, since my change fixed test_faulthandler test_register_c
New submission from Peter Ludemann :
As far as I can tell, the lib2to3/Grammar.txt file in the Python 3.8 release is
the same as that of the Python 3.7 release, which means it doesn't have the
"walrus" operator and the "/" parameter syntax.
--
components: 2t
Peter Ludemann added the comment:
Re: breakage due to changes in structure
(https://bugs.python.org/issue36541#msg339669) ... this has already happened in
the past (e.g., type annotations and async).
It's probably a good idea to add some documentation that structure changes ca
Peter Ludemann added the comment:
Should I just close this? (I didn't find https://bugs.python.org/issue36541
when I searched, possibly because I used "2to3" instead of "lib2to3" in my
search.)
--
___
Python tracker
Peter Ludemann added the comment:
Also the Grammar.txt diffs look about the same size as I've seen with other
upgrades to lib2to3 when the Python grammar changed.
--
___
Python tracker
<https://bugs.python.org/is
Peter Ludemann added the comment:
issue36541 and its proposed PR seem to cover my needs.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from Peter Bittner :
A popular question on StackOverflow is, "How do I find the location of my
Python site-packages directory?" [1]
While this may hint at a deeper problem that needs to be solved, a user
suggested [2] the accepted answer to be added to Python&
Change by Peter Bittner :
--
keywords: +patch
pull_requests: +16500
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16974
___
Python tracker
<https://bugs.python.org/issu
New submission from Peter Hawkins :
Example repro:
```
import unittest
def d():
assert 2 == 3
def c():
d()
def b():
c()
def a():
try:
b()
except Exception as e:
assert 1 == 2
class MyTest(unittest.TestCase):
def testException(self):
a()
if __name__ == '__m
Change by Peter Hawkins :
--
components: +Library (Lib)
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue44280>
___
___
Python-bugs-list mai
Peter V added the comment:
I'm new to Python bugtracker and I may misunderstand the discussion. But I
think this is a real bug in argparse, not a documentation problem.
My usecase was that I wanted to add argparse to a GUI application where print
and exit is a wrong option. So
New submission from Peter Tillema :
It would be nice if you could starred expressions in list indices, for example
this piece of code:
```
import numpy as np
a = np.array(0)
print(a[1, *[2, 3], 4])
```
--
components: Interpreter Core
messages: 404860
nosy: PeterTillema
priority
Peter Tillema added the comment:
Right, I should have clarified it a bit more. I'm using NumPy arrays because
they allow indexing like this, where the input arguments are converted to a
tuple. So
a[1, 2, *[3, 4]]
is different than
a[[1, 2, *[3, 4]]]
This indeed only works on
New submission from Peter Wurmsdobler :
When using mailbox to convert mbox files to maildir, I have noticed that it
cannot handle messages in the mbox file that start with two subsequent `From`
lines in the header like:
```
>From - Fri Feb 20 09:46:18 1998
>From na...@company.com Wed
Change by Peter Donis :
--
pull_requests: +16867
pull_request: https://github.com/python/cpython/pull/17385
___
Python tracker
<https://bugs.python.org/issue1
Peter Donis added the comment:
I have submitted pull request #17385 regarding this issue:
https://github.com/python/cpython/pull/17385
--
___
Python tracker
<https://bugs.python.org/issue1
Change by Peter Donis :
--
versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5
___
Python tracker
<https://bugs.python.org/issue1812>
___
___
Python-bug
New submission from Peter Ludemann :
In general, 'utf8' and 'utf-8' are interchangeable in the codecs (and in many
parts of the Python library). However, 'utf8-sig' is missing ... and it happens
to also be generated by lib2to3.tokenize.detec
Peter Ludemann added the comment:
lib2to3.tokenize should allow 'utf8' and 'utf-8' interchangeably, to be
consistent with the rest of the Python library (I looked through the library
source, and there seems to be no consistent preference, and also many (but not
all) che
New submission from Peter Ludemann :
In general, 'utf8' and 'utf-8' are interchangeable in the codecs (and in many
parts of the Python library). However, 'utf8-sig' is missing ... and it happens
to also be generated by lib2to3.tokenize.detec
Peter Ludemann added the comment:
(oops -- updated this bug instead of submitting a new one)
See also https://bugs.python.org/issue39155
--
___
Python tracker
<https://bugs.python.org/issue39
Peter Ludemann added the comment:
To clarify and fix a typo ... lib2to3.pgen2.tokenize.detect_encoding checks for
'utf-8'(and 'utf_8') but not 'utf8' in various places. Similarly for 'latin-1'
and 'latin1'. (The codecs documentation page al
Peter Bittner added the comment:
There is a specific question this change attempts to answer: "Where is the
module I imported located in the file system?"
I suspect this comes up a lot because developers want to inspect or mess with
installed modules, add debug output and th
Peter Bittner added the comment:
Python learners deserve to know about "site-packages" and (optionally)
"dist-packages". This is a "random note", it's an explanation that is missing
in the tutorial.
- Site-packages "is the target directory of manual
New submission from Peter Liedholm :
Python 3.6.9
Ubuntu 18.04
python3 -c 'import shutil; shutil.rmtree("1a")'
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.6/shutil.py", line 486, in rmtree
_rmtree_safe_fd(fd, p
Peter Liedholm added the comment:
Problem is also reported in virtualbox
https://www.virtualbox.org/ticket/19004
>From that ticket some more analysis is done;
strace reveals that Python has kept an open fd for the directory being remo
New submission from Peter Liedholm :
Ubuntu 18.4 and Windows 7 has different behaviour when deleting write protected
files with rmtree.
Ubuntu silently deletes them (unexpected?)
Windows moans about access denied (expected?)
Reproduction method linux
mkdir test; touch test/file.txt; chmod -w
New submission from Peter Bittner :
The platform module's documentation mentions 'Linux', 'Windows' and 'Java'
explicitly as values for `platform.system()`.
https://docs.python.org/3/library/platform.html#platform.system
Given the popularity of mac
New submission from Peter Occil :
It appears that if a method has default parameters set to functions, as in this
example:
def f1():
pass
def f2(a, b=f1):
pass
The resulting Pydoc output produces a different, nondeterministic rendering for
the f2 method each time it
Peter Donis added the comment:
Pinging as a reminder that there is a pull request for this issue awaiting
review.
--
___
Python tracker
<https://bugs.python.org/issue1
Peter Liedholm added the comment:
What I would expect is a consistent behaviour and as a user I am not interested
in inner guts of differences between filesystems.
Regards
/Peter
--
___
Python tracker
<https://bugs.python.org/issue39
Peter O. added the comment:
No, the use case I have in mind is storing outputs of the pydoc3 program -- as
is -- in version control systems such as Git (e.g., running a command like
"pydoc3 mymodule > mymodule_doc.txt"). The pydoc3 output is not further parsed
by programs, or
Peter O. added the comment:
Is this bug tracker the correct place to "ask the pydoc developers to add an
option to improve [the Pydoc] output", in the sense that the option doesn't
write out object IDs? If not, where is the correct
New submission from Peter Eisentraut :
Some inline functions use mixed declarations and code. These end up visible in
third-party code that includes Python.h, which might not be using a C99
compiler.
Example:
In file included from
/Users/peter/python-builds/3.9/include/python3.9
Change by Peter Eisentraut :
--
keywords: +patch
pull_requests: +17851
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18481
___
Python tracker
<https://bugs.python.org/issu
Peter Eisentraut added the comment:
That's fair for code internal to CPython itself, but these are header files
included by third-party code that is embedding Python, so a bit more
flexibility and adaptability would be welcome
Peter Otten <__pete...@web.de> added the comment:
This is not a bug (and if it were you would have to report to numpy, not
cpython).
Consider:
>>> import numpy
>>> a = numpy.zeros((2,2,2))
>>> a[0,2]
Traceback (most recent call last):
File ""
New submission from Peter Bittner :
Currently, when you do a Web search (e.g. using Google, Bing, Yahoo!,
DuckDuckGo, et al.) for a Python module or function call you'll find a link to
the related Python 2 documentation first.
How to reproduce:
1. Search for simply "os.enviro
New submission from Peter Würtz :
Itertools `tee` does not seem to de-reference yielded items, even after
consumption of all items from all tee-iterators.
According to the documentation (to my understanding), there shouldn't be any
extra memory requirement as long as the tee-iterator
Peter Eisentraut added the comment:
3.9.0a5 fixes my original issue. Thanks.
--
___
Python tracker
<https://bugs.python.org/issue39615>
___
___
Python-bug
Change by Peter Lovett :
--
nosy: +PeterL777
___
Python tracker
<https://bugs.python.org/issue39010>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Peter Ludemann :
--
nosy: +Peter Ludemann
___
Python tracker
<https://bugs.python.org/issue40360>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Ludemann added the comment:
The documentation change gives two possible successors:
https://libcst.readthedocs.io/ (https://github.com/Instagram/LibCST)
https://parso.readthedocs.io/
And I've also seen this mentioned: https://github.com/pyga/awpa
Is it possible to settle on o
New submission from Peter Law :
`sys.stdin` (on Windows, tested Pythons 3.6-3.8) appears to have different
seeking behaviour depending on the source of the incoming data. This seems
arguably reasonable given that `stdin` isn't always seekable, however even in
the failing
New submission from Peter Hunt :
If the hosts file contains invalid unicode, then the socket module will break
when attempting to get the list of hosts. This renders modules such as Flask
and Django unusable.
Background:
I had a mapping to localghost
(https://twitter.com/rfreebern
Peter Hunt added the comment:
Ah, I just realised it may have been a different dash to the one that can be
typed with the keyboard.
>From the wiki article (https://en.wikipedia.org/wiki/Dash), using either the
>"en" or "em" dash will cause t
Peter Ludemann added the comment:
I made a suggestion for augmenting ast.parse with some of lib2to3's features;
but nobody seemed interested.
RIP lib2to3. Like many pieces of software, it was used for far more than for
what it was originally intended.
https://mail.python.org/archives
Peter Ludemann added the comment:
Every piece of code that uses either lib2to3 or a parser derived from it
(including parso and LibCST) will eventually not be able to upgrade the parser
because PEG can handle grammars that LL(k) can't. That's why I proposed adding
some functi
New submission from Peter Pavlinič :
https://docs.python.org/3.10/glossary.html#term-iterable
--
assignee: docs@python
components: Documentation
messages: 384334
nosy: docs@python, peter.pavlinic
priority: normal
severity: normal
status: open
title: typing.Iterable does not
Peter Pavlinič added the comment:
In documentation it is written that typing.Iterable can be implemented with
__getitem__() method that implements Sequence semantics.
That is not correct. link:
https://docs.python.org/3.79/glossary.html#term-iterable
--
title: typing.Iterable does
Peter Pavlinič added the comment:
In documentation it is written that typing.Iterable can be implemented with
__getitem__() method that implements Sequence semantics.
That is not correct. link:
/glossary.html#term-iterable
--
___
Python tracker
New submission from Peter Donis :
This is a follow-up to issue 1812:
https://bugs.python.org/issue1812
It was suggested in the discussion on that issue that the newline conversion in
doctest that was corrected in that issue could be done using already defined
resources in the io module
Change by Peter Donis :
--
pull_requests: +23184
pull_request: https://github.com/python/cpython/pull/24359
___
Python tracker
<https://bugs.python.org/issue1
Change by Peter Donis :
--
keywords: +patch
pull_requests: +23183
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24359
___
Python tracker
<https://bugs.python.org/issu
Peter Donis added the comment:
Thanks for merging!
--
___
Python tracker
<https://bugs.python.org/issue43049>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Peter Eisentraut :
object.h contains an inline function that causes a -Wcast-qual warning from
gcc. Since this file ends up visible in third-party code that includes
Python.h, this makes it impossible to use -Wcast-qual in such code.
The problem is the change
New submission from Peter Law :
In `contextlib`, `_RedirectStream` (the class behind `redirect_stdout` and
`redirect_stderr`) returns the current stream target as its context variable,
which allows code like this:
``` python
with redirect_stdout(io.StringIO()) as buffer:
do_stuff()
use
Change by Peter Law :
--
keywords: +patch
pull_requests: +20352
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21199
___
Python tracker
<https://bugs.python.org/issu
New submission from Peter Kuťák :
Command make hangs on test_weakref
I compile python 3.6.11 (latest compatible with my settings raspbian jessie)
I compile on OrangePi i96 - single core ARM
I think it is same problem as Issue29796
--
components: Tests
messages: 372605
nosy: Peter
Peter Wu added the comment:
I just ran into this issue on Linux when piping a binary file to stdin resulted
in a UnicodeDecodeError while trying to read a byte from the stream. Passing
/dev/stdin is a workaround that does not require modifications to an
application.
As for the proposed PR
Peter Ludemann added the comment:
Looking at the suggested successor tools (redbaron, libCST, parso, awpa) ...
all of them appear to use some variant of pgen2. But at some point Python will
be using a PEG approach (PEP 617), and therefor the pgen2 approach apparently
won't work.
Peter Ludemann added the comment:
I've written up a proposal for adding "whitespace" handling to the ast module:
https://mail.python.org/archives/list/python-id...@python.org/thread/X2HJ6I6XLIGRZDB27HRHIVQC3RXNZAY4/
I don't think it's a "summer-of-code-sized proj
Peter Ludemann added the comment:
Yes, I'm thinking of doing this as a wrapper, in such a way that it could be
incorporated into Lib/ast.py eventually. (Also, any lib2to3-ish capabilities
would probably not be suitable for inclusion in the stdlib, at least not
initially ... but I ha
Peter Otten <__pete...@web.de> added the comment:
While I don't want to start a philosical discussion -- is that really better?
Finding adverbs with a regex doesn't work in the general case -- think
butterfly, panoply, well -- and the example is meant to illustrate the usag
New submission from Peter Stokes :
Attempting to reuse an instance of 'smtplib.SMTP', via invocation of the
'smtplib.SMTP.connect(…)' function, results in an invalid SMTP command sequence
being issued to the connected server:
```
import smtplib
smtp = smtplib
Peter Lovett added the comment:
Also appearing in 3.9.0rc1 AMD64
I think it's transliterated Unicode, rather than an actual corruption. I'm on
Win10, so it might be a Windows command shell issue (although it is showing bad
in cmd, PS7 and PS5).
Help messages should be plain ASCI
New submission from Peter Lovett :
"Setup was successful" dialog box text overflows the box, and last line can't
be read.
--
components: Installation
files: Python 3.9.0rc1 setup successful overflow dialog box.PNG
messages: 375206
nosy: PeterL777
priority: normal
s
Peter Lovett added the comment:
:-)
--
___
Python tracker
<https://bugs.python.org/issue41526>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Stokes added the comment:
I wanted to enquire as to if/when the proposed PR11998 is likely to be merged?
I also wanted to note the similarity between this issue and issue41470 and to
suggest that whilst the change proposed in commit e445ccbc of PR11998 [1] would
be welcome, there may
New submission from Peter McCormick :
Attempting to backup a closed database will trigger segfault:
```
target = sqlite.connect(':memory:')
source = sqlite.connect(":memory:")
source.close()
source.backup(target)
```
--
files: fix.patch
keywords: patch
m
Peter McCormick added the comment:
Updated sample script, thanks to @aeros for catching the omission:
```
import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
New submission from Quentin Peter :
The exec function fails to take locals into account when executing a list
comprehension:
```
Python 3.7.7 (default, Mar 10 2020, 15:43:33)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or
Quentin Peter added the comment:
Fails for functions as well:
```
In [4]: exec(compile('print(my_var)\ndef a():\n print(my_var)\na()', '',
'exec'), globals(), {"my_var": 0})
0
Traceback (most recent call last):
File "", line 1, in
exec(c
Change by Quentin Peter :
--
components: Library (Lib)
nosy: qpeter
priority: normal
severity: normal
status: open
title: splitdrive fails for UNC path with the "\\?\UNC\" prefix.
type: behavior
versions: Python 3.7
___
Python track
New submission from Quentin Peter :
Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 7.18.1 -- An enhanced Interactive Python.
In [1]: import os.path
In [2]:
Change by Quentin Peter :
--
keywords: +patch
pull_requests: +21916
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23001
___
Python tracker
<https://bugs.python.org/issu
Peter Firmstone added the comment:
No, please continue supporting Illumos, I'm still using it. Illumos is still
relevant on servers.
--
nosy: +pfirmsto
___
Python tracker
<https://bugs.python.org/is
Change by Peter Nowee :
--
nosy: +peternowee
___
Python tracker
<https://bugs.python.org/issue23987>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Peter Norvig :
In the itertools recipes (
https://docs.python.org/3/library/itertools.html#itertools-recipes ) there are
21 functions that have single-quote docstrings. These should be changed to
triple-quotes, as mandated in PEP 257.
--
messages: 381704
nosy
Changes by Peter Kleiweg :
--
nosy: +pebbe
___
Python tracker
<http://bugs.python.org/issue7562>
___
___
Python-bugs-list mailing list
Unsubscribe:
Peter Nielsen added the comment:
Hello there
Yes, I am afraid the problem persists.
I have downloaded version 3.2.3 of python 32 bit.
In terminal in OSX 10.7.3, you can use the keys ALT + SHIFT and 7 to get
the \ but in the Idle application there is no way to do that.
Kind Regards / Med
Dave Reid wrote:
>
> New submission from Dave Reid :
>
> A particular combination of seed and jumpahead calls seems to force the MT
> generator into a state where it produces a random variate that is outside
> the range 0-1. Problem looks like it might be in
> _randommodule.c:genrand_int32, whic
New submission from Peter Häring :
I need to define NCURSES_INTERNALS in py_curses.h before ncurses.h is included,
even on my Linux system with ncurses-5.9.
See the same issue for cygwin: 14438
--
components: Extension Modules
messages: 158481
nosy: phaering
priority: normal
severity
Peter Edwards added the comment:
Hi - we ran into what looks like exactly this issue on an x86_64 sporadically,
and tracked down the root cause.
When faulthandler.c uses sigaltstack(2), the stack size is set up with a buffer
of size SIGSTKSZ. That is, sadly, only 8k.
When a signal is
Peter Edwards added the comment:
Ok - let me submit a pull request with your suggestions
On Tue, 28 May 2019 at 13:08, STINNER Victor wrote:
>
> STINNER Victor added the comment:
>
> +pthread_attr_t attrs;
> +pthread_attr_init(&attrs);
> +(void)pthread_at
Change by Peter Edwards :
--
pull_requests: +13543
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/13649
___
Python tracker
<https://bugs.python.org/issu
New submission from Peter Farrell :
Not able to start up Anaconda because of an error including "cannot import
bisect_left" whatever that means. I uninstalled and tried to reinstall. No
luck. Finally uninstalled and can't pip install anything because of this exact
error. Here&
Change by Peter Farrell :
--
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue37656>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Hans Peter :
Hi!
A few days ago, I upgraded to UbuntuMate 19.04.
I can't run 'virt-manager' because of this:
# virt-manager
Output: Segmentation fault
kernel: [ 2003.888116] virt-manager[16014]: segfault at 32d0 ip
32d0 sp 7ffeb09ac
Hans Peter added the comment:
PYTHONDEVMODE=1 virt-manager --no-fork
Fatal Python error: Segmentation fault
Current thread 0x7f835bafd740 (most recent call first):
File "", line 219 in _call_with_frames_removed
File "", line 1043 in create_module
201 - 300 of 672 matches
Mail list logo