paul added the comment:
@Serhiy:
Not all of my bugs are in the same module.
Sure, I will group them by module in the future.
--
___
Python tracker
<http://bugs.python.org/issue24
paul added the comment:
ping
--
___
Python tracker
<http://bugs.python.org/issue24098>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
paul added the comment:
ping
--
___
Python tracker
<http://bugs.python.org/issue24098>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
paul added the comment:
Fix by replacing static 'len' in loops with a macro, so that mutations of
size of the containter do not casue OOB reads.
--
keywords: +patch
Added file: http://bugs.python.org/file44830/issue24098.patch
___
Pyth
New submission from Paul Bryan :
Currently, the documentation states it creates a new event loop; it should also
indicate that it returns the newly created event loop.
--
assignee: docs@python
components: Documentation
messages: 408425
nosy: docs@python, pbryan2
priority: normal
Change by Paul Bryan :
--
keywords: +patch
nosy: +pbryan
nosy_count: 2.0 -> 3.0
pull_requests: +28299
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30078
___
Python tracker
<https://bugs.python.org/i
Change by Paul Bryan :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Paul Kehrer :
In Python 3.11a3 on Linux/x86_64 (failed to replicate on macOS, not attempted
on Windows) the interpreter non-deterministically segfaults when running some
code under coverage. This did not occur under 3.11a2. Looking at the backtrace
from a core dump I see
Change by Paul Kehrer :
--
title: Segfault -> Segfault when using trace functions in 3.11a3
___
Python tracker
<https://bugs.python.org/issue46159>
___
___
Py
Paul Ganssle added the comment:
Jason's patch looks good to me, but I don't understand why Karthikeyan
originally suggested using `normalize_path`. Trying to dig through exactly how
`files().joinpath().open` is implemented has so many layers of indirection and
abstract classes th
Change by paul j3 :
--
nosy: +paul.j3
___
Python tracker
<https://bugs.python.org/issue46101>
___
___
Python-bugs-list mailing list
Unsubscribe:
paul j3 added the comment:
At least until these latest deprecations, the only nesting that made sense was
to put a mutually_exclusive_group inside an argument_group. This was a way of
providing a title and description for the exclusive_group. (And not
documented.) I don't know if t
paul j3 added the comment:
Don't add an argument_group to another argument_group. While input allows this
nesting, the formatting is not designed to handle it. Nor does the
documentation illustrate such nesting.
Nesting a mutually_exclusive_group in an argument_group works becaus
New submission from Paul Campbell :
While attempting to embed the full cpython source in my application, I found
that during compilation on Windows, there was a compilation issue due to struct
stat not being defined. Taking a look at the file cpython/fileutils.h, it seems
that the type of
Change by Paul Campbell :
--
components: +Build, Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
type: -> compile error
___
Python tracker
<https://bugs.python.org/issu
Change by Paul Campbell :
--
keywords: +patch
pull_requests: +28681
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30478
___
Python tracker
<https://bugs.python.org/issu
Change by Paul Campbell :
--
title: _Py_stat using incorrect type for status argument -> _Py_stat and
_Py_wstat using incorrect type for status argument
___
Python tracker
<https://bugs.python.org/issu
Paul Ganssle added the comment:
Yes, this is the documented behavior, including a warning against using UTC now
in the documentation!
There is some possibility of removing utcnow entirely as an "attractive
nuisance", but I suspect that this will lead to much consternation and
han
Paul Ganssle added the comment:
> from practical experience, it is a whole lot better to not deal with
> timezones in data processing code at all, but instead only use naive UTC
> datetime values everywhere, expect when you have to prepare reports or output
> which has a require
paul j3 added the comment:
This patch should be rejected.
By using `common_opts_parser` as parent to both the main and subparsers, you
have defined the same argument in both.
By a long standing patch, the value assigned in the subparser has precedence
(whether it's the default or
paul j3 added the comment:
"I tried to create a group hierarchy in a way that I can pass the
responsibility of argument validation to the argument parser."
I looked at your example in:
https://bugs.python.org/issue46058
The many levels of nesting groups was confusing, but now
Paul Campbell added the comment:
I was trying to build python core (-DMS_WINDOWS -DPy_BUILD_CORE). I was using
clang, which I think is unsupported looking at Windows doc. After looking at
the issue though, it seemed that it was just some slight mistake which is why I
filed the bug.
clang
Paul Campbell added the comment:
Hi Victor, I was trying to compile with clang on Windows 10. I will try to pull
your 3.11 changes and test. Sorry to cause so much churn. It looked to me like
a simple issue that was missed, probably because whatever was trying to compile
was not normally
Paul Campbell added the comment:
> In Python, we are trying to provide a same C API on all platforms. If "struct
> stat" is no longer considered as portable, IMO we should attempt to avoid it,
> at least in the public C API.
Microsoft provides stat and struct stat, b
Paul Campbell added the comment:
Victor: The changes in the main branch gets me past this issue without having
to make additional changes.
--
___
Python tracker
<https://bugs.python.org/issue46
Change by Paul Pinterits :
--
nosy: -Paul Pinterits
___
Python tracker
<https://bugs.python.org/issue29964>
___
___
Python-bugs-list mailing list
Unsubscribe:
Paul Kehrer added the comment:
Changes in ABI don't seem to be the likely culprit since the Dockerfile
provided can demonstrate this bug and has no caching that would result in
obtaining alpha2-based binaries.
--
___
Python tracker
&
Paul Ganssle added the comment:
Sorry I missed this! Thank you for taking the time to write this up and to make
a PR.
Unfortunately, I don't think I agree with the idea of warning about this. The
warnings about `utcnow` and `utcfromtimestamp` are a problem because `utcnow`
Paul Kehrer added the comment:
NIST provides no official guidance on iteration count other than NIST SP
800-132 Appendix A.2.2, which states "The number of iterations should be set as
high as can be tolerated for the environment, while maintaining acceptable
performance."
I can t
paul j3 added the comment:
Duplicate of https://bugs.python.org/issue41255
Argparse.parse_args exits on unrecognized option with exit_on_error=False
--
nosy: +paul.j3
resolution: -> duplicate
stage: patch review -> resolved
status: open -&g
Change by paul j3 :
--
nosy: +paul.j3
___
Python tracker
<https://bugs.python.org/issue46080>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by paul j3 :
--
resolution: -> rejected
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by paul j3 :
--
nosy: +paul.j3
___
Python tracker
<https://bugs.python.org/issue46228>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Paul Ganssle :
As part of bpo-35829, it was suggested that we add the ability to output the
"Z" suffix in `isoformat()`, so that `fromisoformat()` can both be the exact
functional inverse of `isoformat()` and parse datetimes with "Z" outputs. I
thi
Paul Ganssle added the comment:
I don't think it's necessary to add a feature to `isoformat()` just for the
purpose of being able to add the corresponding parser, particularly when the
plan is to implement a much broader ISO 8601 parser for Python 3.11 (I've done
most of the
New submission from Paul Koning :
Trying to install "aiohttp" with pip I get a compile error installing "yarl".
I get the same error when I install just that module. But it installs fine on
3.10. This is on an Apple M1 (ARM64) machine.
--
components: macOS
file
Paul Koning added the comment:
The only dependency mentioned by the yarl documentation is multidict and
installing that makes no difference. I see I can tell yarl to build a
pure-python version to avoid compiling stuff. If I do that it installs. But
what I actually wanted to do is
Paul Koning added the comment:
Thanks, I'll pass the word to the yarl and aiohttp team (both have this issue).
--
___
Python tracker
<https://bugs.python.org/is
New submission from Paul Jaggi :
Have the following simple program:
#include
#include
using namespace std;
int main(int argc, char** argv) {
wchar_t* args[argc];
for(int i = 0; i < argc; ++i) {
args[i] = Py_DecodeLocale(argv[i], nullptr);
}
Py_Initialize();
const
You may have received some messages this morning that looked like more spam.
They were not, they were me permanently retiring some issues that had been
posted by spammers a month ago. Unfortunately we have set up an auditor that
sends ALL changes to python-bugs-list, so even such administrative ac
New submission from Paul Smith:
HTMLParser is renamed to html_parser.
--
components: Library (Lib)
files: rename-html-parser.diff
messages: 55200
nosy: paulsmith
severity: normal
status: open
title: Patch to rename HTMLParser module to lower_case
versions: Python 2.6
Paul Smith added the comment:
Patch to 2to3 fix_imports.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1002>
__
rename-html-parser-fix-imports.diff
Description:
Paul Smith added the comment:
Note that patch doesn't include `svn mv Lib/HTMLParser.py
Lib/html_parser.py`.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python
New submission from Paul Smith:
Renamed Lib/Queue.py to Lib/queue.py.
--
components: Library (Lib)
files: rename-queue.diff
messages: 55230
nosy: paulsmith
severity: normal
status: open
title: Patches to rename Queue module to queue
versions: Python 2.6
Paul Smith added the comment:
Patches 2to3/fixes/fix_imports.py.
Note that patch to Lib doesn't include `svn mv Lib/Queue.py
Lib/queue.py` (issue reporter without commit privileges).
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python
Paul Smith added the comment:
I am participating in the Python Sprint here at Google, and was just
going through the Py3k Sprint Tasks spreadsheet, one of them being to
rename standard library modules which use CamelCase to
lower_and_underscore, the more modern naming
Paul Smith added the comment:
I grep'd for HTMLParser module imports in other standard library
modules, renamed, and ran the unit tests. I also updated the mapping in
2to3's fix_imports.py. The only thing I can't do is the actual `svn mv`
to rename the module itself.
Is part of t
Paul Moore added the comment:
PJE's patch looks OK. I agree with Nick that the chain of &&s in
PyImport_GetImporter should be expanded into a chain of ifs. As it
stands, the code is needlessly obfuscated.
_
Tracker <[EMAIL P
New submission from Paul Melis:
The current 2.5 documentation does not seem to describe the OptionGroup
feature of the optparse module.
In 2003 there was a patch submitted that added a section on OptionGroup (
http://bugs.python.org/issue697941). The issue entry mentions it was
accepted, but
Paul Melis added the comment:
It seems it got edited out when the documentation was overhauled for
optik 1.5, in r37468
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
New submission from Paul Pogonyshev:
This is apparently because sys.modules contains Unicode (str) keys,
while 'parentname' is an old-style string. Attached patch seems to fix
it, but I have no idea if it is correct in principle
--
components: Interpreter Core
files: reloadin
Paul Pogonyshev added the comment:
Thank you for the commit.
I just had a problem with my package, and since I was not sure if it was
a bug in Py3k or the package, I went to debugging the former and found
this. I just didn't know how to work with Unicode strings pro
New submission from Paul Pogonyshev:
I believe attached script demonstrates a bug in Python 3000. As far as
I can tell, it should print four times 'True'.
--
components: Interpreter Core
files: test.py
messages: 57135
nosy: Paul Pogonyshev
severity: normal
status: open
title
New submission from Paul Pogonyshev:
This patch improves bytecode output, by removing unreachable code. It
doesn't target special cases, as now, but provides a generic implementation.
--
components: Interpreter Core
files: unreachable-code.diff
messages: 57141
nosy: Paul Pogon
Paul Pogonyshev added the comment:
Looks like bad design on W3 part: postponing an error happening, though
it wouldn't be difficult to check right in createComment(). But I guess
minidom should still be changed to conform to standard.
--
nosy: +_do
Paul Pogonyshev added the comment:
Well, it seems that allows createComment() in minidom to raise something
implementation/language specific. I personally would prefer this (e.g.
a ValueError) instead of raising on serialization step, as I prefer
early error checks, when these checks obviously
Paul Pogonyshev added the comment:
I think unexpected exception in toxml() is not worse than producing
unreadable output. With createComment() it is different, since you can
e.g. create a temporary DOM tree only to discard it later and never
serialize
New submission from Paul Pogonyshev:
Attached scripts fails with 'NameError: free variable 'a' referenced
before assignment in enclosing scope'. If you remove '*' in function
parameter list, it works. I think it is a bug.
--
components: Interpreter Core
Paul Pogonyshev added the comment:
See if gc.set_threshold (0, 0, 0) helps.
--
nosy: +_doublep
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1405>
__
__
Paul Pogonyshev added the comment:
Looks like the memory _is_ freed. As Guido said, "It may be available
for reallocation within Python, just not given back to the operating
system". I suggest closing this as invalid.
[EMAIL PROTECTED]:~$ python
Python 2.3.5 (#2, Oct 16 2006, 19:1
Paul Pogonyshev added the comment:
Meh, copied too much. Disregard first part, second shows it.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1405>
__
___
Pyth
Paul Pogonyshev added the comment:
Because self.bla is a bound-method object, which is created and then
instantly deleted as unreferenced. This is not a bug, it is expected.
>>> class X:
... def foo (self): pass
...
>>> x = X ()
>>> x.foo is x.foo
False
Note ho
Paul Pogonyshev added the comment:
Looks great (regardless of how this is implemented). I always hated this
def get_foo / def set_foo / foo = property (get_foo, set_foo).
--
nosy: +_doublep
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.p
New submission from Paul Moore:
The latest MSI daily snapshot installer for Python 2.6 (19 Nov) does not
include the .pem files for the SSL tests from the Lib\test directory.
--
components: Installation
messages: 57666
nosy: pmoore
severity: normal
status: open
title: MSI installer does
Paul Moore added the comment:
The following looks like it may be OK. I have no way of testing it,
unfortunately, as I don't currently have a working build environment,
and I've no idea how to build the MSI even if I did...
Added file: http://bugs.python.org/file8782
New submission from Paul Moore:
When running the test suite on Windows, test_socket_ssl hangs.
After a bit of investigation, it appears that the test is hanging at
line 184 (if self.s.stdout.readline() != "ERROR\n":) in
OpenSSLServer._external.
The problem is that the test assumes i
New submission from Paul Moore :
When uninstalling a package installed using a bdist_wininst installer, the
uninstall reports "XXX files and directories could not be removed". The problem
appears to be the __pycache__ directories introduced in Python 3.2, which are
not remove
Paul Moore added the comment:
Not really (tbh, not at all). If I get some spare time, I can have a
look at producing a patch, but I have little time available for coding
at the moment (and I'm switching constantly between 3 PCs, so never
have a working development environment when I nee
Paul Moore added the comment:
On 9 October 2011 04:21, Éric Araujo wrote:
>
> Éric Araujo added the comment:
>
> I don’t have a Windows VM set up yet, but I can try to write a patch in the
> coming weeks and ask you to test it. Deal?
N
Changes by Paul Moore :
--
nosy: +pmoore
___
Python tracker
<http://bugs.python.org/issue12779>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Paul Moore :
I am trying to create a pysetup package that contains a precompiled binary
extension, which can be installed without compiling, by using the resource file
feature of setup.cfg. This may be incorrect usage of pysetup, but at a minimum,
a proper error message
New submission from Paul Moore :
In a directory with 2 files, setup.cfg and a single C file containing source
for an extension module. The same happens with a pure-python module. This is on
Windows.
PS D:\Data\python-sample> D:\Data\cpython\PCbuild\python.exe -m packaging.run
run --l
New submission from Paul Moore :
On Windows, packaging seems to create RECORD files with an additional CR at the
end of the line. (So the line end is CR CR LF). This does not seem to be
consistent, but it is likely to be because a file is being opened in text mode
rather than binary.
I am
Paul Moore added the comment:
No it didn't - I had not built the _msi module when I built Python for some
reason. I have built _msi now, and everything works. Sorry for the false alarm.
Arguably, the command shouldn't fail, it should simply omit the bdist_msi
command from the listi
New submission from Paul Moore :
With a simple setup.cfg defining a distribution containing a single Python
module, if you misspell the "modules" keyword (say, as "module") then pysetup
does nothing without reporting the error.
This silent failure is very hard to debug, an
Paul Moore added the comment:
Unfortunately, no. I have been unable to get this in a reproducible form - but
I have seen it a few times now. I will keep trying to reproduce.
The worst thing is that packaging fails to recognise the data in RECORD and
won't uninstall the package. It wou
New submission from Paul Moore :
The title explains. Here is an example:
PS D:\Data\python-sample\python> pysetup install
Installing from source directory: 'D:\\Data\\python-sample\\python'
running install_dist
running build
running build_py
running install_lib
byte-compiling D:
New submission from Paul Moore :
PS D:\Data\python-sample\python> pysetup run bdist_wininst
running bdist_wininst
running build
running build_py
Invalid command install
Traceback (most recent call last):
File "D:\Data\cpython\lib\packaging\command\__init__.py", line 57, in
get_
Paul Moore added the comment:
Windows 7, 32 bit.
--
___
Python tracker
<http://bugs.python.org/issue13175>
___
___
Python-bugs-list mailing list
Unsubscribe:
Paul Moore added the comment:
I suppose so, yes. But it feels symptomatic of a general lack of clean
error handling, which I think should be fixed :-(
--
___
Python tracker
<http://bugs.python.org/issue13
Paul Moore added the comment:
I found the problem - it's in packaging.util.write_record_file. The
file passed to csv.writer should be opened with newline=''.
--
___
Python tracker
<http://bugs.pyt
Paul Moore added the comment:
Here's a patch. It includes a test, but I don't expect the test will catch the
issue except on Windows...
--
keywords: +patch
Added file: http://bugs.python.org/file23416/recordfix.patch
___
Python trac
New submission from Paul Moore :
The attached patch is a first version of a bdist_simple binary distribution
format for packaging. There is a bdist_simple command to build the
distribution, and pysetup install has been updated to handle bdist_simple
format distributions (only as local files
Changes by Paul Moore :
Removed file: http://bugs.python.org/file23417/bdist_simple.patch
___
Python tracker
<http://bugs.python.org/issue13189>
___
___
Python-bugs-list m
Paul Moore added the comment:
New patch including some basic tests.
--
Added file: http://bugs.python.org/file23422/bdist_simple.patch
___
Python tracker
<http://bugs.python.org/issue13
Paul Moore added the comment:
On 17 October 2011 14:15, Éric Araujo wrote:
>> The file passed to csv.writer should be opened with newline=''.
> How will we port this to 2.x?
No idea :-( The 2.7 documentation says use the 'b' flag, but that
probably doesn'
Paul Moore added the comment:
> That’s odd. Are the pyc files in RECORD?
Yes, but not in __pycache__ where they should be.
PS D:\Data\python-sample\python> type
D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\RECORD
D:\Data\cpython\Lib\site-packages\he
Paul Moore added the comment:
> Would you be satisfied with a more helpful traceback that would point you
> immediately to missing msi? Do you prefer that bdist_msi
> catch an ImportError for _msi and print a short error message instead of a
> traceback in all its glory?
I'
Paul Moore added the comment:
I'm not getting the second error on my home PC. As the failing buildbot is
mine, I'll have a look on there to see if I can reproduce when I get the chance.
--
___
Python tracker
<http://bugs.python.o
Paul Moore added the comment:
First one - the problem is in packaging.manifest._translate_pattern, which uses
os.path.join on regex parts. That won't work on Windows where os.sep is a
backslash, as the backslash is a RE metacharacter.
Actually, the file list seems to only use '/&
Paul Moore added the comment:
Yes, working correctly now
--
___
Python tracker
<http://bugs.python.org/issue13181>
___
___
Python-bugs-list mailing list
Unsub
Paul Moore added the comment:
I see what you're saying - and looking through sysconfig.cfg, I can see how
things are expected to be laid out (and how I'd configure it if I didn't like
it :-))
But as far as I can see, there's no way in packaging to describe a module that
Changes by Paul Moore :
--
nosy: +pmoore
___
Python tracker
<http://bugs.python.org/issue10181>
___
___
Python-bugs-list mailing list
Unsubscribe:
Paul Moore added the comment:
One important point - in the "new world" where data files living
alongside code is unsupported, the bdist_msi and bdist_wininst
installers need to be updated to install data files as needed. This
may work already (I'll do some tests to see how well
New submission from Paul Sladen :
The Python Imaging Library does not support handling of UTF-8 'iTXt' key:value
chunks in PNG files:
http://www.w3.org/TR/PNG/#11iTXt
Such support is necessary for successful extraction of key:value pairs of UTF-8
encoded data, stored in an
Paul Sladen added the comment:
Thank you Ezio. I could not see a separate bug tracker listed on:
http://www.pythonware.com/products/pil/
could you help me by providing a link to where it /should/ be filed correctly
for PIL itself
Paul Price added the comment:
Here's the diff with the added sections commented out.
--
keywords: +patch
Added file: http://bugs.python.org/file23831/proposed.patch
___
Python tracker
<http://bugs.python.org/is
Paul Price added the comment:
Welcome. Thank you!
--
___
Python tracker
<http://bugs.python.org/issue12612>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Paul Moore :
--
nosy: +pmoore
___
Python tracker
<http://bugs.python.org/issue2292>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Paul Moore added the comment:
A simple rebuild and test run of that test in debug mode didn't fail...
I'll run the full test suite as a check, but that could take some time - that
buildslave isn't the fastest in the world...
--
___
101 - 200 of 3008 matches
Mail list logo