New submission from patrick <[EMAIL PROTECTED]>:
The c extend module is as the attached file "WindowsFuncs.cpp", it
wraps some Windows event APIs
The python script is as the attached file "test.py", run that script,
we could find in the new thread,
patrick <[EMAIL PROTECTED]> added the comment:
Yes, after wrapping the calling to block operation with marco
Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS, that issue is gone.
Thank you.
___
Python tracker <[EMAIL PROTECTED]>
<http://
New submission from Patrick <[EMAIL PROTECTED]>:
When using wildcards as arguments to the processes being spawned by
Popen, it seems to interpret them as hard literals.
IE, when doing something like:
>>> import subprocess
>>> output = subprocess.Popen(['ls
Patrick added the comment:
This affects me too.
--
nosy: +pjlbyrne
___
Python tracker
<http://bugs.python.org/issue10296>
___
___
Python-bugs-list mailin
Patrick added the comment:
Forgive me if I'm not following the correct process. But I believe I have seen
this issue again in 3.3. Not sure I captured exactly what is needed from the
command line. The file being openeed is from the Python Hands On Class Examples
http://anh.cs.luc.edu/p
Patrick added the comment:
Thanks for the pointer to the other issue. It looks spot on.
--
___
Python tracker
<http://bugs.python.org/issue10365>
___
___
Pytho
Patrick added the comment:
I am seeing this as well. It does not repro 100% of the time, but frequently
enough that its hard to get anything done. My repro is a little simpler and
might help understanding the fix.
Win7
Python 3.3
I start IDLE normally from the shortcut in the install.
Ctrl-N
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
New submission from Patrick Mézard:
Let child.py be:
"""
import sys
sys.stdout.write('1:stdout\n')
sys.stdout.flush()
sys.stderr.write('2:stderr\n')
sys.stderr.flush()
sys.stdout.write('3:stdout\n')
sys.stdout.flush()
"""
and parent.
Patrick Mézard added the comment:
pythonmeister: I never expected stderr to be redirected, just *all
stdout* to be captured. But...
gagenellina: you are completely right about the failure. Still, this
issue happened with a real world application written in C, and
redirecting manually stderr to
New submission from Patrick Westerhoff :
Hey,
I would like to request the support of other HTTP methods (other than GET and
POST) in urllib.request. While it’s actually simple enough to override the
Request class to add such a possibility, I think it is far too simple to leave
it out of the
Patrick Westerhoff added the comment:
Oh sorry, I didn’t see that one. :)
--
___
Python tracker
<http://bugs.python.org/issue13142>
___
___
Python-bugs-list m
Changes by Patrick Westerhoff :
--
nosy: +poke
___
Python tracker
<http://bugs.python.org/issue1673007>
___
___
Python-bugs-list mailing list
Unsubscribe:
Patrick Westerhoff added the comment:
Senthil, I highly disagree with what you said:
> The next problem comes when a user has specified both data and method="GET".
> This becomes an invalid scenario, but a decision has been to taken as what
> should be given preference
New submission from Patrick Westerhoff :
Hey,
according to PEP 3101, the new string.Formatter class is supposed to replace
the old string formatting with %. At least that is what I was always thinking.
Given that argparse is a Python 3.2+ exclusive module, I think it should make
use of that
New submission from patrick vrijlandt :
This causes a crash in python 3.2.2 and 3.2, but not in 2.7.2
C:\Python32>python
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license"
patrick vrijlandt added the comment:
Is it relevant that 2.7.2 _does_ throw a correct exception?
--
___
Python tracker
<http://bugs.python.org/issue13
patrick vrijlandt added the comment:
Somewhere in the code is also/still a seperate check concerning strftime:
PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on
win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for
further
Patrick Westerhoff added the comment:
Yeah, I would really like that solution, especially as it separates from the
`from X` syntax that sets the exception’s cause.
Also I would prefer a syntax solution over a class method simply because the
exception context is something that is implicitely
New submission from patrick vrijlandt :
>From the python docs for version 3.2:
19.12.3. ElementTree Objects
find(match)
[...] Same as getroot().find(match). [...]
This is not true: tree.find accepts an absolute path (like "/*") , whereas
element.find doesn't. Also appl
New submission from patrick vrijlandt :
Python 3.2 supports ElementPath version 1.3. The relevant documentation is
http://effbot.org/zone/element-xpath.htm. It says:
.. (New in 1.3) Selects the parent element.
However, a CHANGES document says:
The engine also provides limited support for
New submission from patrick vrijlandt :
>From http://effbot.org/zone/element-xpath.htm:
[position] (New in 1.3) Selects all elements that are located at the given
position. The position can be either an integer (1 is the first position), the
expression “last()” (for the last posit
patrick vrijlandt added the comment:
[...] Same as getroot().find(match). [...] ->
[...] For a relative path, this is equivalent to getroot().find(match).
Additionally, this form accepts an absolute path. [...]
This is easy, but might not be a very good solution.
Random thoughts/Points
New submission from Patrick Strawderman :
cStringIO.StringO's seek method has O(n) characteristics in certain,
albeit pathological, cases, while the pure Python implementation and
cStringIO.StringI's seek methods both execute in constant time in all cases.
When the file offset is s
Changes by Patrick Strawderman :
--
components: +None
type: -> performance
___
Python tracker
<http://bugs.python.org/issue10045>
___
___
Python-bugs-list mai
Changes by Patrick Strawderman :
--
components: -None
___
Python tracker
<http://bugs.python.org/issue10045>
___
___
Python-bugs-list mailing list
Unsubscribe:
Patrick Strawderman added the comment:
The second sentence should have said "the gap is filled in with n null bytes"
--
___
Python tracker
<http://bugs.python.o
Patrick Strawderman added the comment:
Fair enough, but there is a great deal of existing code that already
uses cStringIO.
--
___
Python tracker
<http://bugs.python.org/issue10
Patrick Gansterer added the comment:
I can reproduce this on WinXP with 2.5, 2.7 and 3.2. On my other box (Win7
64bit) the same code works without problems.
This problem happens only when I make a subprocess.call() to executables from
my msysgit installation (e.g. echo, git). A call to
New submission from Patrick Sabin :
The documentation of multiprocessing.Process.join doesn't tell the user
of which time unit the timeout argument is. It seems to be seconds.
--
assignee: docs@python
components: Documentation
files: join-timeout-doc-improvement.patch
keywords:
New submission from patrick vrijlandt :
Line 154 in standard library's queue.py, in the definition of Queue.put() is:
self.unfinished_tasks += 1
This line should be protected by acquiring the all_tasks_done lock.
Theoretically, the increment could occur somewhere during task
patrick vrijlandt added the comment:
I agree. Please close the ticket.
Thanks,
Patrick
2011/5/3 Raymond Hettinger
>
> Raymond Hettinger added the comment:
>
> > This line should be protected by acquiring the all_tasks_done lock.
>
> All of three of the condition var
Patrick W. added the comment:
Nick Coghlan (ncoghlan) at 2010-12-29 08:46 (UTC):
> No, the context must always be included unless explicitly suppressed.
Then there should be some actually working way to suppress it, right?
I think the standard behaviour that automatically sets
Patrick W. added the comment:
Antoine Pitrou (pitrou) at 2010-12-30 18:32 (UTC)
> We are talking about context, not cause.
Yes, but - as said before - obviously the cause takes a higher precedence than
context (otherwise it wouldn't show a context message when you explicitely set
t
New submission from Patrick Holz :
When using the function "tkFileDialog.askopenfiles()" on Windows 7 (32-bit) the
following error occurs after choosing one or more arbitrary files:
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit(Intel)] on
win32
Type "he
New submission from Patrick Sabin :
There is a test file Lib/test/sortperf.py, which isn't properly updated
to python3, because it considers map and range returning a list instead of an
iterator and therefore throwing an exception when run. I have attached a patch
to f
New submission from Patrick W. :
When using xml.etree.ElementTree to parse external XML files, all XML comments
within that file are being stripped out. I guess that happens because there is
no comment handler in the expat parser.
Example:
test.xml
test.py
---
from
Patrick W. added the comment:
Thanks for your reply, Amaury. That page really might mean that it was not
intended for ElementTree to parse such things by default. Although it might be
nice if there was some easy way to simply enable it, instead of having to hack
it into there and depending
New submission from Patrick Sabin :
As far as I understand the _pyio.open function should resemble the builtin
open, but in case of the buffering parameter, it doesn't. The builtin version
doesn't allow None as argument, but this is the default in the _pyio.open
signature.
I attach
New submission from Patrick Bureau:
In Python 2.4, retrieving sched's scheduler.queue class member would
return a time ordered list of events as expected.
Since Python 2.5, the same operation retrieves a list of unordered
scheduled events. This makes it difficult to know which event
Patrick Bureau added the comment:
Indeed, the queue is not directly exposed by a method, but the
information is nonetheless interesting for monitoring the content. If
it's not a bug, then maybe this could be changed to a feature request
for a new method to retrieve the queue
New submission from Patrick Toal :
Attempting to build an RPM with the python-2.6.spec contained in the
python-2.6.1 distribution tar fails. The following diff's enabled me to
cleanly build the rpm's on a standard CentOS 5.1 installation.
--
components: Build
files: py
New submission from Patrick Gerken :
When running the command install_lib, the command build_clib is not run.
If a package contains clibs they can be dependencies for extension libs,
at least that is stated in the module docstring of build_clib.
In real life you can see it when trying to run
Patrick Gerken added the comment:
The attached test works breaks without the patch and passes with the patch.
I am not sure whether the test itself is written following best practice.
I would be more than happy for a review, with hints what should be done
better.
Added file: http
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
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 syn
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
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 0x7f
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 fou
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 (
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:
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
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
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
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 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 for
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
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
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 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
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
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
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
--
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:
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
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 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 :
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
Change by Patrick Decat :
--
nosy: +Patrick Decat
___
Python tracker
<https://bugs.python.org/issue42066>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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__().
The
Change by Patrick Reader :
--
nosy: -terry.reedy
___
Python tracker
<https://bugs.python.org/issue44845>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Patrick Buxton added the comment:
Added core developer to get some feedback
--
nosy: +patbuxton, pitrou
___
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:
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
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:
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
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/is
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
Change by Patrick Reader :
--
type: -> performance
___
Python tracker
<https://bugs.python.org/issue42754>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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.messag
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 in
Patrick Reader added the comment:
I'm working on it
--
___
Python tracker
<https://bugs.python.org/issue41203>
___
___
Python-bugs-list mailing list
Patrick Reader added the comment:
While I'm at it, should I change "Macintosh" to "Mac"?
--
___
Python tracker
<https://bugs.python.org/issue41203>
___
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
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 `_privat
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
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 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 Magg
Patrick Reader added the comment:
Sorry, I'd completely forgotten about doing a PR for this. Go ahead!
--
___
Python tracker
<https://bugs.python.org/is
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
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 :
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`.
The
New submission from patrick vrijlandt :
PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on
win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for
further copyright information.
>>> import os
>>> os.makedirs(&
New submission from patrick vrijlandt :
Problem:
Locator methods return the location where the event starts, not where it ends.
Locator line numbers start at 1, Locator column numbers can be 0.
Proposal:
Adapt documentation.
>From the docs:
Instances of Locator provide these meth
1 - 100 of 252 matches
Mail list logo