Patrick Reader added the comment:
As the one who wrote the code, I can guarantee you that the StopIteration value
is not always None.
But I understand your point that for most other users it is always None, and
therefore having special syntax might be misleading
Patrick Reader added the comment:
Ok, will do, but what is the bar for a feature to need to go to the mailing
lists first? I thought as this was a relatively minor one it wouldn't need to.
Is it just because it's an actual syntax change
New submission from Patrick Reader :
I would like to be able to use a `yield from` expression in a `return`
statement without parentheses, as a small quality of life tweak, i.e.:
return yield from gen
instead of
return (yield from gen)
I think this makes sense, since `yield from
New submission from Patrick Reader :
The following code gives a SyntaxError in 3.10, but used to work fine before (I
have tested it in 2.7, 3.8, 3.9):
1not in [2, 3]
It seems to be only the `not in` syntax which is affected; all other keywords
still work correctly:
1in [2, 3
Change by Patrick Reader :
--
nosy: -terry.reedy
___
Python tracker
<https://bugs.python.org/issue44845>
___
___
Python-bugs-list mailing list
Unsubscribe:
Patrick Yang added the comment:
I ended up in this issue after I learnt the following from the Python Library
Reference Manual.
float(..).
For a general Python object x, float(x) delegates to x.__float__(). If
__float__() is not defined then it falls back to __index__
New submission from Patrick Bourke :
Hi all,
Forgive me if this is not the correct way to report this, but we have run into
the issue from #29620 ( https://bugs.python.org/issue29620 ) on Python 3.9.
The fix appears to be present in the tip of 3.8:
https://github.com/python/cpython/blob
Change by Patrick Decat :
--
nosy: +Patrick Decat
___
Python tracker
<https://bugs.python.org/issue42066>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Patrick Reader :
Currently the documentation for the generic forms (e.g. what the parameters in
square brackets mean) of standard collections (e.g. collections.abc.Generator),
is still on the typing page
(https://docs.python.org/3.10/library/typing.html#typing.Generator
Patrick Decat added the comment:
pywin32 project has moved from sourceforge to github.
https://sourceforge.net/p/pywin32/bugs/748/ is now at
https://github.com/mhammond/pywin32/issues/748
pywin32 issue is supposed to be resolved since pywin32 b222
See:
https://github.com/mhammond/pywin32
New submission from Patrick Reader :
Per bpo-41263, code.__new__ now uses Argument Clinic. However, it still has a /
marker which prevents the use of keyword arguments
(https://github.com/python/cpython/pull/21426/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234dR465
Patrick Reader added the comment:
It was, at least partially, replaced by BEGIN_WITH for bpo-40222:
https://github.com/python/cpython/commit/adcd2205565f91c6719f4141ab4e1da6d7086126#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653bL741
--
versions: +Python 3.11
Patrick Reader added the comment:
Ok what I meant was, why does constructing a class use it when it looks up
__build_class__ then?
--
___
Python tracker
<https://bugs.python.org/issue44
Patrick Reader added the comment:
Similarly, when passing a subclass of dict to exec or eval as the locals or
globals, all other instructions dispatch to the correct __getitem__ method. I'm
pretty sure that's not CPython-private
--
___
Python
Patrick Reader added the comment:
It may be, but in that case, why do LOAD_BUILD_CLASS and things still use it?
--
___
Python tracker
<https://bugs.python.org/issue44
New submission from Patrick Reader :
When a frame's __builtins__ is a subclass of dict with an overridden
__getitem__ method, this overriden method is not used by the IMPORT_NAME
instruction to lookup __import__ in the dictionary; it uses the lookup function
of normal dictionaries (via
Patrick Reader added the comment:
I would like to note that syntax like this is in heavy use in the Code Golf
community (a sport in which the aim is to write the shortest code possible to
complete a particular task).
It will be disappointing if it becomes an error and break many past
Patrick Reader added the comment:
The `regex` module is a third-party package, not part of the Python standard
library. Please report issues here:
https://bitbucket.org/mrabarnett/mrab-regex/issues
--
nosy: +pxeger
___
Python tracker
<ht
Patrick Melix added the comment:
Thank you for your feedback Serhiy!
I obviously totally forgot about compatibility issues with other OS... If you
are already aware of this and working on a solution even better. Did I miss
this during my search or is it not public anywhere yet?
For now one
Change by Patrick Melix :
--
keywords: +patch
pull_requests: +23810
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25061
___
Python tracker
<https://bugs.python.org/issu
New submission from Patrick Melix :
While trying to fix window behaviour in a python project (ASE:
https://wiki.fysik.dtu.dk/ase/), I came across this problem:
Tkinter does not set the _NET_WM_WINDOW_TYPE when using the FileDialog class or
it's derivatives. I could not find a reason
Change by Patrick Storz :
___
Python tracker
<https://bugs.python.org/issue43649>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/o
New submission from Patrick Storz :
This is a follow-up to https://bugs.python.org/issue20010
I'm seeing this very issue in a recent gcc build of Python 3.8
(mingw-w64-x86_64-python 3.8.8-2 from MSYS2 project):
Python 3.8.8 (default, Feb 20 2021, 07:16:03) [GCC 10.2.0 64 bit (AMD64
New submission from Patrick Reader :
It would be nice to have a `.path` method or property on
`tempfile.NamedTemporaryFile`, `tempfile.TemporaryDirectory` which produces a
`pathlib.Path` of their `.name` attribute, so one can use the modern interface
directly.
I think a method would be more
Patrick Haller added the comment:
Terry, I am sorry. You are of course right. I was somehow looking at count not
copy.
--
___
Python tracker
<https://bugs.python.org/issue42
Patrick Haller added the comment:
You will see this on every bytes and bytearray type as the behaviour described
is the same for both.
--
nosy: +HallerPatrick
___
Python tracker
<https://bugs.python.org/issue42
Change by Patrick Reader :
--
type: -> performance
___
Python tracker
<https://bugs.python.org/issue42754>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Patrick Reader :
When unpacking a collection or string literal inside another literal, the
compiler should optimise the unpacking away and store the resultant collection
simply as another constant tuple, so that `[*'123', '4', '5']` is the exact
same as `['1', '2', '3
Patrick Reader added the comment:
Maybe I added myself by accident while reading the code. Anyway, thanks and
you're welcome
--
___
Python tracker
<https://bugs.python.org/issue41
New submission from Patrick Reader :
bpo-33387 introduced two new opcodes, `RERAISE` and `WITH_EXCEPT_START`
(previously called `WITH_EXCEPT_FINISH`), replacing the previous
`WITH_CLEANUP_START`, `WITH_CLEANUP_FINISH`,
`BEGIN_FINALLY`, `END_FINALLY`, `CALL_FINALLY` and `POP_FINALLY
New submission from Patrick Reader :
The documentation page for the Standard Library,
https://docs.python.org/3/library/, still says "Python 3.8.6 documentation" in
the title. When visiting https://docs.python.org/3.9/library/ (emphasis on the
3.9) explicitly, the correct title i
New submission from Patrick Reader :
Since Python 2 is now finally gone, should the Python executable not be
installed to simply `/usr/bin/python` rather than `/usr/bin/python3` when
running `make install`?
--
components: Installation
messages: 378387
nosy: pxeger
priority: normal
Patrick Reader added the comment:
Sorry, I'd completely forgotten about doing a PR for this. Go ahead!
--
___
Python tracker
<https://bugs.python.org/issue41
New submission from Patrick Reader :
See title.
For reference:
`GenericAlias` was added by Guido van Rossum in commit
48b069a003ba6c684a9ba78493fbbec5e89f10b8 "bpo-39481: Implementation for [PEP
585](https://www.python.org/dev/peps/pep-0585/) (#18239)"
`Union` was added by
Change by Patrick Reader :
--
keywords: +patch
pull_requests: +21309
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22254
___
Python tracker
<https://bugs.python.org/issu
New submission from Patrick Reader :
See https://github.com/python/typing/issues/751
--
components: Library (Lib)
messages: 376931
nosy: pxeger
priority: normal
severity: normal
status: open
title: No (public) way to dynamically introspect if an annotation is a TypedDict
New submission from Patrick Reader :
In typing.py, the `_allow_reckless_class_cheks` function is spelt wrong, and
there is also a typo `instnance` in its docstring. I can do a PR but I thought
I'd open an issue since it might be considered a breaking change (although it
is `_private` so
Change by Patrick Reader :
--
keywords: +patch
pull_requests: +20468
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21316
___
Python tracker
<https://bugs.python.org/issu
Patrick Reader added the comment:
While I'm at it, should I change "Macintosh" to "Mac"?
--
___
Python tracker
<https://bugs.python.org/issue41203>
___
_
Patrick Reader added the comment:
I'm working on it
--
___
Python tracker
<https://bugs.python.org/issue41203>
___
___
Python-bugs-list mailing list
Unsub
New submission from Patrick Reader :
Since 10.12 (Sierra, released in 2016), macOS is no longer called OS X.
References to macOS in the documentation should be updated to reflect this.
This is now especially important because macOS 11 (Big Sur) is now in preview,
and the X meaning 10
Patrick Valibus 410 Gone added the comment:
Bonjour, nous n'avons pas réussi à le faire fonctionner. Nous l'avons utilisé
dans le cadre d'un test seo car nous essayons e reproduire des alternatives à
scrappy. Par exemple le robots devrait bine crawler la page de notre agence seo
https://www
New submission from patrick totzke :
I am trying to use EmailMessage.get_body() on the attached spam email.
Although that message may be malformed, I believe that this method should fail
gracefully.
To reproduce
```
with open('msg', 'rb') as f:
m = email.message_from_binary_file(f
Patrick Thizy added the comment:
I use Apache + mod_wsgi on Windows
When I update from Django 2.2.4 to Django 2.2.5, this fix has been apply
With this fix my application is not running
The navigator is lock and waiting
Can you help me ?
--
nosy: +Patrick Thizy
New submission from Patrick A. :
This URL doesn't exist anymore. If you click on this URL you have a 404 not
found.
https://www.dcl.hpi.uni-potsdam.de/home/loewis/table-3131.html
The website was changed and Dr. Martin v. Löwis is not hosted on the new site.
Regards
--
assignee: docs
Patrick Buxton added the comment:
This should be fixed with https://github.com/python/cpython/pull/17670 for
https://bugs.python.org/issue39104, but only for version 3.9 as no backport!!
--
___
Python tracker
<https://bugs.python.org/issue39
Change by Patrick Buxton :
--
nosy: +bquinlan
___
Python tracker
<https://bugs.python.org/issue39104>
___
___
Python-bugs-list mailing list
Unsubscribe:
Patrick Buxton added the comment:
Added core developer to get some feedback
--
nosy: +patbuxton, pitrou
___
Python tracker
<https://bugs.python.org/issue39
New submission from Patrick Liu :
When I run the python script with root privilege, it can clone the repo
successfully but with the error message as follow.
However, it runs correctly with normal user.
Why it cannot find the html file? Thanks.
Python 3.7.4 (default, Aug 13 2019, 20:35:49
New submission from Patrick Buxton :
When shutting down a ProcessPoolExecutor with wait=False, an `OSError: handle
is closed` is raised.
The error can be replicated with a script as simple as:
```
from concurrent.futures import ProcessPoolExecutor
e = ProcessPoolExecutor()
e.submit(id
Patrick Schneeweiß added the comment:
Sorry guys, it was an issue with the cusotm Splunk Library. They treated the
keys Method a little different.
Thanks all for the hints.
Will close this
--
resolution: -> third party
stage: -> resolved
status: open -&g
Patrick Schneeweiß added the comment:
Ok in a new sample Script it is working.
As I used my normal script in a software called Splunk, I saw they are using a
custom class OrderedDict.
I will take a look on this first.
--
___
Python tracker
Patrick Schneeweiß added the comment:
Hello all,
This is my dict:
{'rule': 'WAN-2-Web|unknown (Barracuda Networks CloudGen Firewall)', 'April
(2018)': '', 'May (2018)': '', 'June (2018)': '', 'July (2018)': '', 'August
(2018)': '', 'April (2019)': '', 'May (2019)': '14', 'June (2019
New submission from Patrick Schneeweiß :
I switched over to Python 3.7 and still using my csv DictWriter.
No I'm receiving an error when calling the writerow() method.
unsupported operand type(s) for -: 'list' and 'list'
Digging deeped in the problem I found out, that the internal
New submission from Patrick Monnerat :
Running the attached program outputs:
top.__init__(<__main__.top object at 0x7fc1dea24048>,) called
i1.__init__(<__main__.top object at 0x7fc1dea24048>, 'arg from top') called
i2.__init__(<__main__.top object at 0x7fc1dea24048
Patrick Muehlbauer added the comment:
Hi,
first time contributor here :)
I opened a PR for this as part of the Pycon 2019 sprints.
--
nosy: +treebee
___
Python tracker
<https://bugs.python.org/issue30
Change by Patrick Muehlbauer :
--
keywords: +patch
pull_requests: +13029
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Patrick Artman added the comment:
If this isn't taken I'd be happy to give it a go as my first contribution
--
nosy: +pjartman
___
Python tracker
<https://bugs.python.org/issue36
Patrick McLean added the comment:
I have updated the pull request to include 'group' and 'extra_groups' as
separate parameters.
--
___
Python tracker
<https://bugs.python.org/issue36
Patrick McLean added the comment:
> Thanks for your explanation. In case of a privileged process, the behavior of
> setreuid/setregid/setgroups does seem well-defined. But setuid/setgid change
> all ids (real, effective, saved) too in this case. Do you prefer
> setreuid/setr
Patrick McLean added the comment:
Alexey, here are my responses to your points:
1) This is intentional, this is for dropping privileges before running some
(possibly untrusted) command, we do not want to leave a path for the subprocess
to gain root back. If there is a subprocess that needs
Change by Patrick McLean :
--
keywords: +patch
pull_requests: +11974
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36046>
___
___
Py
New submission from Patrick McLean :
Currently when using python to automate system administration tasks, it is
useful to drop privileges sometimes. Currently the only way to do this is via a
preexec_fn, which has well-documented problems. It would be useful to be able
to pass a user
New submission from Patrick Rice :
https://docs.python.org/3.5/tutorial/inputoutput.html
If you have an object x, you can view its JSON string representation with a
simple line of code:
>>>
>>> import json
>>> json.dumps([1, 'simple', 'list'])
'[1, "simple
Patrick McCarty added the comment:
Thanks for the response.
I would like to avoid using imp, but I work on a distro team that ships many
packages that still use the module. We wanted to start using checked-hash
invalidation right away after upgrading to 3.7.0, but some of our release tests
Change by Patrick McCarty :
Added file: https://bugs.python.org/file47672/imp-test-mod.py
___
Python tracker
<https://bugs.python.org/issue34056>
___
___
Python-bug
New submission from Patrick McCarty :
OS: Clear Linux build 23460
Python version: 3.7.0
Description:
I am seeing an uncaught exception in Python 3.7.0 when using the "imp" module
to import a module that has a checked hash-based pyc file. See the attached
source files.
Steps to re
Patrick Lehmann added the comment:
Having single quotes in docstrings is also ok for Sphinx documentation.
Btw. ReStructured text (docutils) was invented to document Python sources, why
is it not used by Python?
--
___
Python tracker
<ht
Patrick Lehmann added the comment:
I don't think is cross-platform, because I'm still on Windows but in different
shells. More over, pathlib currently support cross-platform comparison. I can
save a configuration file on Linux and open it on Windows with such paths. I
use myPath.as_posix
Patrick Lehmann added the comment:
Against what branch should I create the PR?
I was a huge number of changes.
I think I'll create multiple PRs to ease the review.
--
___
Python tracker
<https://bugs.python.org/issue28
Patrick Lehmann added the comment:
Any progress on that issue?
1.5 years passed by and it should be possible to fix the Python documentation
in that time, right?
--
___
Python tracker
<https://bugs.python.org/issue28
New submission from Patrick Lehmann :
pathlib does not compare absolute paths from Windows and MinGW as equal.
Windows absolute path: "C:\path\to\tool"
MinGW absolute path: "/c/path/to/tool"
Cygwin absolute path: "/cygdrive/c/path/to/tool"
I consider this a
Patrick Young <kmahyyg...@gmail.com> added the comment:
modify build_all_merge_profile to absolutely: true
then modify build running shell to: zsh
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Patrick Young <kmahyyg...@gmail.com>:
--
stage: -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<https://bugs.
Change by Patrick Young <kmahyyg...@gmail.com>:
--
title: make [profile-opt] failde with --enable-optimizations -> make
[profile-opt] failed with --enable-optimizations
type: -> compile error
___
Python tracker <rep...@bugs.pyt
Patrick Young <kmahyyg...@gmail.com> added the comment:
$ uname -a
Linux PatrickY 4.9.0-deepin13-amd64 #1 SMP PREEMPT Deepin 4.9.57-1 (2017-10-19)
x86_64 GNU/Linux
$ lsb_release -a
Distributor ID: Deepin
Description:Deepin 15.5
Release:15.5
Based on Debi
New submission from Patrick Young <kmahyyg...@gmail.com>:
0:14:07 load avg: 1.26 [406/406] test_zlib
Total duration: 14 min 9 sec
Tests result: SUCCESS
make[1]: Leaving directory '/home/kmahyyg/Desktop/py36/Python-3.6.5'
make build_all_merge_profile
make[1]: Entering directory '/home/k
Patrick Fink <m...@pfink.de> added the comment:
A workaround to handle signals reliably that I successfully tested now is to
execute everything within a subthread and let the main thread just join this
subthread. Like:
signal.signal(MY_SIGNAL, signal_handler)
threading.Thread(
Patrick Rutkowski added the comment:
I removed my custom built Python and installed the one provided by the
python-3.6.2-amd64.exe installer instead.
The Win32 Command Line application now works, and shows the message box. The
Win32 GUI Application still fails to work, the output is just
Patrick Rutkowski added the comment:
Just for kicks I tried the same Py_Main() code from a Win32 console application
(instead of from a GUI application). The C code this time was
#include
int wmain(int argc, wchar_t** argv) {
return Py_Main(argc, argv);
}
The resulting error message
New submission from Patrick Rutkowski:
Install Visual Studio 2017
Download and unpack Python-3.6.2.tgz
Open a Visual Studio command prompt
Browse to Python-3.6.2\PCBuild
Run build.bat -p x64 -c Release
Run build.bat -p x64 -c Debug
Add the PCbuild\amd64 directory to your PATH
Create a new
Patrick Grafe added the comment:
Is this ready to get backported to Python 3.5 and 3.6? I see the tags on the
issue, but I'm not clear on the process for actually backporting patches.
--
nosy: +Patrick Grafe
___
Python tracker <
New submission from Patrick Foley:
The following code demonstrates:
import re
text = 'ab\\'
exp = re.compile('a')
print(re.sub(exp, text, ''))
If you remove the backslash(es), the code runs fine.
This appears to be specific to the re module and only to strings that end in
(even properly
Changes by Patrick van der Leer <pat.vdl...@gmail.com>:
--
nosy: +Patrick van der Leer
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pytho
New submission from Patrick Michaud:
Using python's httplib, there is no way to set a timeout for the full request
cycle. A timeout can be given, which will apply to the connection attempt and
each blocking socket operation. However, a malicious (or poorly performing)
server can keep
Patrick Lehmann added the comment:
I also found some docstrings using double back-tick plus double single quotes.
For example: ``x.y = v'' in builtins.py in function setattr(...).
--
___
Python tracker <rep...@bugs.python.org>
Patrick Lehmann added the comment:
I signed the CLA.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28710>
___
___
Pyth
Patrick Lehmann added the comment:
Hello,
I used this regexp on all files:
--
match pattern: `([A-Za-z0-9_]+)'
replace pattern ``\1``
--
I assumed that only identifiers where quoted in such way. I think my editor
found
Patrick Lehmann added the comment:
Here is the patch file created with:
PS> git diff > docstring_markup.patch
This patchfile effects all files with this markup in the CPython repository.
Kind regards
Patrick
--
keywords: +patch
Added file: http://bugs.python.org/fil
Patrick Lehmann added the comment:
How can I supply a fix?
I have a branch with lots of fixes.
https://github.com/Paebbels/cpython/tree/paebbels/issue-28710?ts=2
Why don't you accept pull requests via GitHub?
Kind regards
Patrick
New submission from Patrick Lehmann:
Why does e.g. configparser.ConfigParser contain doc strings with Sphinx
incompatible markup?
The markup starts with back-tick, but ends with a single quote.
Example:
https://github.com/python/cpython/blob/master/Lib/configparser.py?ts=2#L26
Sphinx writes
Patrick Stewart added the comment:
Actually the current released version of libffi (3.2.1) is even more severely
broken on win64, you can't return structs at all. (patch here
https://github.com/patstew/MINGW-packages/blob/9c3910fa32c45448826a2241c3fba3bf6abf9428/mingw-w64-libffi
Patrick Stewart added the comment:
There's some confusion above about clang - that's completely irrelevant, the
problem was using ctypes to call into libclang, not using clang to compile
anything. The problem applies to any callback function that returns a struct
larger than 8 bytes with any
Patrick Stewart added the comment:
I've attached a patch with an extra fix to the duplicated issue 20160
http://bugs.python.org/issue20160
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Patrick Stewart added the comment:
This is still a problem, and the suggested fix seems to work. There is another
error a few lines above where it is allocating 4 bytes for a pointer. I've
attached a new patch with both fixes, but without Bob's tests.
This issue is a duplicate of 17310
Patrick Stewart added the comment:
This also fixes python 3.5
--
nosy: +Patrick Stewart
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Patrick J McNerthney added the comment:
"(though I don’t understand why Apache doesn’t renegotiate while the request
body is being sent)"
Apache does attempt to do this, but HttpsConnection is immediately sending the
body of the request as fast as the socket will allow, whic
Patrick J McNerthney added the comment:
I believe this is actually a bug, because it causes the posting of messages
whose length is greater then the Apache HTTPD SSLRenegBufferSize setting to
fail, whereas other http clients that first wait to receive the 100 response
before sending the body
Patrick Egan added the comment:
Used proposed method to solve this bug and implemented the extra kwarg
disable_existing_loggers to the listen() parameters.
--
keywords: +patch
nosy: +chillydev
Added file: http://bugs.python.org/file42168/Issue#26533.patch
1 - 100 of 246 matches
Mail list logo