Michał added the comment:
I've got confused with the "TypeError: unhashable type: 'dict'" error creating
a choose-from-dictionary argument in Python 3.6. I used lambda as a workaround,
but IMO it would be great to have this patch merged.
--
nosy: +krassow
New submission from Michał D :
In for statement description, there seem to be two sentences meant to mean the
same:
> The suite is then executed once for each item provided by the iterator, in
> the order returned by the iterator. Each item in turn is assigned to the
> target list
Michał D added the comment:
Please see the changes I suggested in my PR.
--
___
Python tracker
<https://bugs.python.org/issue46033>
___
___
Python-bugs-list m
Michał Górny added the comment:
I would still find it helpful to have a "proper" "blake3-c" package on normal
pypi, for those of us who can't rely on Rust being present immediately.
--
___
Python tracker
<https:
Michał Górny added the comment:
After updating PyPy3 to use Python 3.9's stdlib, we hit very bad hangs because
of this — literally compiling a single file with "parallel" compileall could
hang. In the end, we had to revert the change in how Python 3.9 starts workers
be
Michał Górny added the comment:
BTW there are test regressions with expat 2.4.5, apparently due to some test
snippets now being rejected as invalid XML:
==
ERROR: test_issue3151 (test.test_xml_etree.BugsTest
Michał Górny added the comment:
Could you make a PR to fix the test failures? I suppose that could speed
things up and if not, I'd at least have something to pull into Gentoo.
--
___
Python tracker
<https://bugs.python.org/is
New submission from Michał Leśniewski :
If a regular expression ends with a backslash, an exception is raised. Of
course, the backslash has to be escaped. The simplest example, that causes the
error is a regular expression, that should match only a single backslash:
import re
r
Michał Górny added the comment:
Now that installing scripts with unicode characters was fixed, shall I open a
separate bug for writing egg files with utf8 chars in author name?
--
___
Python tracker
<http://bugs.python.org/issue9
Changes by Michał Górny :
--
nosy: +mgorny
___
Python tracker
<http://bugs.python.org/issue12087>
___
___
Python-bugs-list mailing list
Unsubscribe:
Michał Górny added the comment:
Ping. What's the progress on this? Will this ever be fixed?
--
___
Python tracker
<http://bugs.python.org/issue9561>
___
___
Michał Powaga added the comment:
The problem was be here:
path = path[:-1] # This is not needed and cuts last character
return urlunparse((scheme, netloc, path,
params, query, fragment))
I sent a patch.
PS. Sorry if I`m doing something wrong but it is my first patch and
New submission from Michał Górny :
I was reported an issue where the user was unable to install my package [1]
using python3.1. I was able to guess the issue comes from locale being set to
POSIX and reproduce it.
It seems that the reasons are utf8-encoded characters in the installed script
Changes by Michał Górny :
--
nosy: +mgorny
___
Python tracker
<http://bugs.python.org/issue9561>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Michał Górny :
--
nosy: +mgorny
___
Python tracker
<http://bugs.python.org/issue10419>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Michał Pasternak :
I was looking for some library to handle calendar events. Something PIM-
style, something useful, that could check if, for example, 2 weekly
repeated events that start on Monday morning and last until December
conflict with each other.
Then I found
New submission from Michał Fronczyk :
An environment variable to point to an additional site-packages directory
(without disabling the one in Python itself) location would allow having
different sets of extra packages that can be enabled by the users in their or
shared Python installations
Michał Fronczyk added the comment:
A link to my stackoverflow question with further rationale -
https://stackoverflow.com/questions/58122752/provide-additional-location-of-site-packages-to-python?noredirect=1#comment102637846_58122752
--
___
Python
New submission from Michał Szymaniak :
When user lacks rights to read on of the mimetypes.knownfiles, mimetypes init()
will throw PermissionError and library becomes unusable.
Reproduction steps:
# mkdir -p /etc/httpd/conf/
# touch /etc/httpd/conf/mime.types
# chmod a-r /etc/httpd/conf
Michał Górny added the comment:
I'm not convinced we need something that complex here but I think it would make
sense to make 'unittest discover' fail when it doesn't discover a single test.
As packagers, we've been bitten more than once by packages whose test
Change by Michał Górny :
--
keywords: +patch
pull_requests: +23655
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24893
___
Python tracker
<https://bugs.python.org/issu
Change by Michał Górny :
--
versions: +Python 3.10 -Python 3.4
___
Python tracker
<https://bugs.python.org/issue18232>
___
___
Python-bugs-list mailing list
Unsub
Michał Górny added the comment:
> If it takes years for users to get to 3.10, we should reevaluate our
> release cycle, not whether we aggressively break maintenance releases.
I don't really understand how that would help. The problem is that users have
major inertia for switchi
Michał Górny added the comment:
I hate to be the bearer of bad news but I've already found this change to be
breaking tests of botocore and django. In both cases, the test failure is
apparently because upstream used to reject URLs after finding newlines in the
split components, an
Michał Górny added the comment:
In my opinion, raising an exception would have been safer.
Botocore and django do precisely what you say — provide a validator. To make
this validator easier, they do the validation on splitted up URL parts.
I disagree with the premise that they were stupid
Michał Górny added the comment:
The test added for this bug is insufficient to verify the fix. If I revert the
Lib/http/client.py change, the test still passes. This is because a subclass
of client.HTTPException is still raised.
If I add an explicit begin() call to trigger the exception
Michał Górny added the comment:
Jack, are you still working on this? I was considering allocating the time to
write the bindings for the C library myself but I've stumbled upon this bug and
I suppose there's no point in duplicating work. I'd love to see it on pypi, so
we cou
Michał Górny added the comment:
Is there any progress happening? FWIU the common "toml" module on pypi has
been discontinued now, projects are switching to yet another one and this is
exactly the kind of problem a built-in module would ha
New submission from Michał Bartoszkiewicz :
The following code, which seems reasonable:
import io
import pickle
class Pickler(pickle.Pickler):
def persistent_id(self, obj):
return super().persistent_id(obj)
Pickler(io.BytesIO()).dump(42)
crashes with:
RecursionError: maximum recursion
Michał Górny added the comment:
I've already asked that, and the author said it's fine but with the deprecated
text file support removed:
https://github.com/hukkin/tomli/issues/141#issuecomment-968056905
That said, for consistency with json and so on we'd probably want to com
Change by Michał Górny :
--
nosy: +mgorny
___
Python tracker
<https://bugs.python.org/issue38826>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Michał Górny :
--
nosy: +mgorny
___
Python tracker
<https://bugs.python.org/issue39503>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Michał Górny :
PEP 518 uses the TOML format to specify build system requirements. AFAIU this
means that all new build systems will require a TOML parser. Could you
consider adding one to the standard library to reduce the number of chicken-egg
problems?
The referenced
Michał Górny added the comment:
Any reason this wasn't backported to 3.6? FWICS it's supposed to be security
supported still.
--
nosy: +mgorny
___
Python tracker
<https://bugs.python.o
New submission from Michał Górny :
I'm still investigating the problem and I will include more information
shortly. However, I'm filing the bug early, as I'd like to prevent this
regression from hitting 3.8.7 release.
When running backports-zoneinfo-0.2.1 test suite using c
Michał Górny added the comment:
aeb66c1abbf4ec214e2e80eb972546996d1a1571 is the first bad commit
commit aeb66c1abbf4ec214e2e80eb972546996d1a1571
Author: Miss Skeleton (bot) <31488909+miss-isling...@users.noreply.github.com>
Date: Thu Oct 15 08:51:48 2020 -0700
bpo-41984: GC tra
Michał Górny added the comment:
A more complete backtrace:
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1 0x7fa633b20536 in __GI_abort () at abort.c:79
#2 0x7fa633b79bf7 in __libc_message (action=action@entry=do_abort,
fmt=fmt@entry=0x7fa633c8c3b5 "
Michał Górny added the comment:
Thank you for debugging this. I can confirm that this patch resolves my issue.
--
___
Python tracker
<https://bugs.python.org/issue42
Michał Górny added the comment:
It seems that the spec has reached 1.0.0:
> 1.0.0 / 2021-01-11
I guess that there are still ~2 months left to do this before 3.10 reaches beta.
--
___
Python tracker
<https://bugs.python.org/issu
New submission from Michał Kozik :
Tuples (datetime, description) all are sorted by the date except one entry
(2021-03-09) which is out of order:
Expected order: Actual order:
2021-03-04 Event E 2021-03-04 Event E
2021-03-07 Event B 2021-03
New submission from Michał Górny :
So I've finally found time to bisect this.
Long story short, test_ctypes started hanging on Gentoo package builds since
3.10.0a2. Previously, the test took less than a second. Now, it just keeps
running for minutes until I kill it.
The weird thing is
Michał Górny added the comment:
Nevermind, I've been testing wrong and this is most likely our fault. I'm
sorry about the noise. I am going to investigate further and reopen if it
turns out the problem's on CPython end.
--
stage: -> resolved
stat
New submission from Michał Górny :
There is a race condition in distutils' build_ext implementation. When the
same source file is used to build multiple extensions, distutils attempts to
build it multiple times using the same output file, in parallel. This means
that the link edito
Michał Górny added the comment:
Does this mean that platforms using /usr/lib64 for shared libraries are now
forced to install Python into /usr/lib64/python*?
--
nosy: +mgorny
___
Python tracker
<https://bugs.python.org/issue1294
Michał Górny added the comment:
> Not at all. This means that it is possible to do so. It remains optional.
...but then sys.platlibdir is going to incorrectly list 'lib', isn't it?
According to https://docs.python.org/3.9/library/sys.html#sys.platlibdir it's
use
Michał Górny added the comment:
Can we clarify the wording to clearly indicate it's to be used only for Python
modules/extensions and not system dynamic libs?
--
___
Python tracker
<https://bugs.python.org/issu
Michał Górny added the comment:
> Can you please propose a different wording? English is not my first language.
Mine neither but I'll try. How about:
'Name of the platform-specific library directory. It is used to build the path
of the standard library and C extension m
Change by Michał Górny :
--
pull_requests: +19600
pull_request: https://github.com/python/cpython/pull/20332
___
Python tracker
<https://bugs.python.org/issue1294
Michał Górny added the comment:
Ok, it seems that I misunderstood it at first. Judging by the code, it also
affects extensions installed into site-packages, so I've tried to make that
clear and add one more example to the bullet
Michał Górny added the comment:
Do I understand correctly that the new behavior is intentional in 3.9, or is
that still being discussed?
--
nosy: +mgorny
___
Python tracker
<https://bugs.python.org/issue27
Michał Górny added the comment:
I'm sorry but does this change mean that it's not final or...?
My main concern is whether we should be adjusting our packages to the new
behavior in py3.9, or wait for further changes.
--
___
Python track
Michał Górny added the comment:
Thank you!
--
___
Python tracker
<https://bugs.python.org/issue1294959>
___
___
Python-bugs-list mailing list
Unsubscribe:
Michał Górny added the comment:
I wonder if it would be feasible to support new behavior in earlier versions of
Python via __future__. I suppose that could help software avoid having Python
version-dependent behavior in the long run
Michał Górny added the comment:
I can reproduce test_socket hanging in 2 out of 3 runs. However, in my case
testPeek doesn't seem to be the (only) culprit. Disabling whole RDSTest helps.
--
nosy: +mgorny
___
Python tracker
&
Michał Górny added the comment:
Given that a CVE was assigned for this, I think it'd be better if the news were
in the 'Security' category and not 'Library'.
--
nosy: +mgorny
___
Python tracker
<https:
New submission from Michał Górny :
Currently, the bz2 extension functions raise a generic OSError() on
BZ_DATA_ERROR and BZ_DATA_ERROR_MAGIC. When working on files, this makes it
unnecessarily hard to catch compressor errors (i.e. invalid bz2 input file)
without catching system I/O errors
Michał Górny added the comment:
> An OSError for a file the OS can read seems a bit off. What is the
> accompanying message?
For example:
OSError: Invalid data stream
(I've just put random string into a file, and opened it as bzip2)
> Would something like ValueError(&
Michał Michalski added the comment:
Maybe it will sound strange, but what is this task REALLY about? I mean - I can
see two problems here, but no clear information about which problem is a real
problem and - if it is - what is the expected behavior.
Problems I can see are:
1) Type of
Michał M. added the comment:
Of course I've made a mistake:
"list for user provided or list for default"
should be:
"list for user provided or STRING for default"
--
___
Python tracker
<http
Michał Radwański added the comment:
Docs mention:
ast.parse(source, filename='', mode='exec')
Parse the source into an AST node. Equivalent to compile(source, filename,
mode, ast.PyCF_ONLY_AST).
If you just parse code into AST, you first check whether it is possible
Changes by Michał Radwański :
--
pull_requests: +
___
Python tracker
<http://bugs.python.org/issue30656>
___
___
Python-bugs-list mailing list
Unsubscribe:
Michał Górny added the comment:
> Adding this API would require to provide a way to set file status like mode,
> uid, gid, mtime, type, linkname, uname and gname.
That's why I mentioned addfile() -- it takes TarInfo object for that purpose.
I suppose the new function should ha
Michał Górny added the comment:
Thanks a lot! I've left a few comments based on eyeball review. I'm going to
test it later today.
--
___
Python tracker
<https://bugs.python.o
Michał Bultrowicz added the comment:
I guess that it's worth noting that the same problem is being talked about in
an issue on the asynctest library:
https://github.com/Martiusweb/asynctest/issues/29
--
nosy: +butla
___
Python tracker
Michał Górny added the comment:
This is not really an upstream issue, it is due to Gentoo-specific patching.
--
nosy: +mgorny
___
Python tracker
<https://bugs.python.org/issue36
Michał Górny added the comment:
Could you get this fixed in earlier versions of CPython? Given that 3.7 is not
yet released, having this broken in 3.5 and 3.6 is highly undesirable. This
apparently seems to affect our tooling [1] and telling our users to use 3.7
beta is not an option.
[1
Michał Górny added the comment:
Well, according to the reporters disabling GC doesn't help at all. Maybe it's
another issue.
--
___
Python tracker
<https://bugs.python.o
Changes by Michał Górny :
--
nosy: +mgorny
___
Python tracker
<https://bugs.python.org/issue22140>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Michał Górny :
--
keywords: +patch
pull_requests: +3754
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Michał Górny added the comment:
I've submitted a pull request with another fix. I've tried to keep the changes
at minimal but I couldn't stand keeping meaningless 'echo $x | sed -e s/$x/$y/'
;-).
I have to point out that the attached patch is wrong since it do
New submission from Michał Górny :
The setup.py file for Python states:
if (not cross_compiling and
os.uname().machine == "x86_64" and
sys.maxsize > 2**32):
# Every x86_64 machine has at least SSE2. Check for sys.maxsize
Change by Michał Górny :
--
keywords: +patch
pull_requests: +4036
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31834>
___
___
Py
New submission from Michał Górny :
While debugging PyPy test failure on backports.lzma [1], I've noticed that
PySequence_Check() on a dict type raises TypeError, e.g.:
Traceback (most recent call last):
File "test/test_lzma.py", line 273, in test_bad_args
Michał Górny added the comment:
So is the documentation mistaken or just confusing? It says straight:
> For objects that do not provide sequence protocol, this is equivalent to the
> Python expression len(o).
So it the 'do not' mistaken or does it mean objects that are seque
Michał Górny added the comment:
Well, my two main concerns are:
1) whether it is acceptable for PyPy to not raise TypeError in this case, or if
I should report it to PyPy upstream as a bug,
2) and whether programmers can appropriately rely on PySequence_Length()
raising TypeError for non
New submission from Michał Górny :
The _uuid extension fails to build on my Gentoo/FreeBSD system:
building '_uuid' extension
x86_64-gentoo-freebsd11.1-gcc -pthread -fPIC -Wno-unused-result -Wsign-compare
-DNDEBUG -O2 -pipe -march=native -fwrapv -std=c99 -Wextra -Wno-unused-result
-
Change by Michał Górny :
--
keywords: +patch
pull_requests: +8198
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34366>
___
___
Py
New submission from Michał Radwański :
Code triggering bug:
import time
time.sleep(2**63 / 10**9)
Result:
ValueError: sleep length must be non-negative
The problem is with the macro that checks the range of provided double:
Line 228 of Include/pymath.h:
#define _Py_InIntegralTypeRange(type
Change by Michał Radwański :
--
pull_requests: +8277
___
Python tracker
<https://bugs.python.org/issue32367>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Michał Radwański :
--
keywords: +patch
pull_requests: +8278
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34423>
___
___
Py
Michał Radwański added the comment:
Although you're right - this issue is specific to pytime.c, when
_Py_InIntegralTypeRange() is used with a double, it is actually true that
_Py_InIntegralTypeRange() is used with double, in pytime.c only (as a quick
recursive grep discovers).
Perhap
Michał Radwański added the comment:
According to the RFC ( https://tools.ietf.org/html/rfc4291#section-2.2 ), last
four bytes can be an address in the format of IPv4 address. The latter doesn't
specify whether leading zeros are permitted or not. For illustration let's lo
Michał Radwański added the comment:
The point is that the specification is not complete and thus left for the
implementations to decide. Python's version hits the sweet spot between
inclusive and correct - as long as a version is unambiguous, it is acc
Michał Radwański added the comment:
The change is not only in the added `isinstance` check:
~ $ python3.6 -q
>>> import typing
>>> isinstance(typing.Sequence, type)
True
>>>
~ $ python3.7 -q
>>> import typing
>>> isinstance(typing.Sequen
Michał Radwański added the comment:
But if the error message is set, then for consistency, it should be also the
case that the later checks set some kind of error message.
--
nosy: +enedil
___
Python tracker
<https://bugs.python.org/issue34
Michał Radwański added the comment:
Serhiy, would it be ok to put '__module__' + '.' + __qualname__ here?
--
nosy: +enedil
___
Python tracker
<https://bug
Michał Radwański added the comment:
So this format is just a series of JSON, delimited by a newline.
Instead of changing API, you might consider this piece of code:
def ndjsondump(objects):
return '\n'.join(json.dumps(obj) for obj in objects)
Conversely, first you `str.splitli
New submission from Michał Górny :
xz-utils has four options to configure codecs supported by liblzma:
--enable-encoders
--enable-decoders
--enable-match-finders
--enable-checks
In Gentoo, we're using those options to optionally provide smaller footprint
liblzma builds that in
New submission from Michał Górny :
Currently, the tarfile module only supports adding files if their size is known
prior to adding. However, I think it'd be helpful to be able to store large
dynamically generated streams straight into the (uncompressed) .tar file
without being ab
New submission from Michał Górny:
We're doing heavy wrapping of Python scripts on Gentoo in order to efficiently
support having multiple versions of Python installed. For that reason, every
Python script installed using the package manager is renamed, and a symlink to
a common wrapper b
Changes by Michał Górny :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue18201>
___
___
Python-bugs-list mailing list
Unsubscri
Michał Górny added the comment:
Well, I don't see much relevance between the two bugs, to be honest :). I think
this bug is more of a symptom of a deeper issue with the way distutils is
installing files.
But the issue is causing repeating issues for our users, and I don't really
kn
Michał Górny added the comment:
Oh, sorry. I've looked throughout the code again and it seems that distutils is
doing the right thing. It's setuptools/distribute that is broken.
--
resolution: -> invalid
status: open -> closed
__
New submission from Michał Zieliński:
SSLSocket documentation mentions shutdown as analogue to socket.shutdown.
However, instead of forbidding communication, it removes SSL wrapper from
socket. For example, the following script doesn't work and returns garbage:
import socket
i
New submission from Michał Górny:
The distutils.command.config module reads:
def _gen_temp_sourcefile(self, body, headers, lang):
filename = "_configtest" + LANG_EXT[lang]
which means that every time one of the functions is used, a temporary file with
the same name will
Michał Górny added the comment:
While using. We run parallel merges with out-of-source builds in Gentoo, and I
found this to result in a failure when building the 'egenix-mx-base' package
[1] which uses the 'config' command.
[1]:http://pypi.python.org
New submission from Michał Jastrzębski:
Test for ftplib.ftpcp.
--
components: Tests
files: ftpcp_test.patch
keywords: patch
messages: 180802
nosy: inc0
priority: normal
severity: normal
status: open
title: ftplib.ftpcp test
type: enhancement
versions: Python 3.4
Added file: http
Michał Jastrzębski added the comment:
Hello,
Well, I ran coverage.py over this module and it turns out that this method,
ftpcp has neighter tests nor docs. Most of ftplib is tested, but this one
function was not.
--
___
Python tracker
<h
Michał Jastrzębski added the comment:
Hello,
Thanks for tips. How about now?
--
Added file: http://bugs.python.org/file28901/ftpcp_test.patch
___
Python tracker
<http://bugs.python.org/issue17
Michał Jastrzębski added the comment:
My mistake, this one is better.
--
Added file: http://bugs.python.org/file28902/ftpcp_test.patch
___
Python tracker
<http://bugs.python.org/issue17
1 - 100 of 130 matches
Mail list logo