Борис Верховский added the comment:
This was fixed using redirects in nginx
https://github.com/python/psf-salt/pull/201
--
resolution: out of date -> fixed
___
Python tracker
<https://bugs.python.org/issu
Change by Борис Верховский :
--
nosy: +boris
___
Python tracker
<https://bugs.python.org/issue41975>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Борис Верховский :
We can use shpinx.ext.linkcode to link classes and functions/methods to their
source code on GitHub from the documentation. See linked PR for screen shots.
This is far from linking all the symbols in the docs, but it's gets quite a
few. It would be
New submission from Борис Верховский :
The documentation https://docs.python.org/3/library/random.html#random.Random
says:
> class random.Random([seed])¶
But in reality the parameter is called "x" not "seed" (CPython 3.9):
>>> import random
>>> ran
New submission from Борис Верховский :
On Python 3.9
>>> import inspect
>>> inspect.signature(bytes.hex)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.9/inspect.py", line 3118, in signature
return Signa
New submission from Борис Верховский :
1. go to https://docs.python.org/2/library/stringio.html (note the "/2/")
2. click on "You should upgrade and read the Python documentation for the
current stable release." at the top
I expect to be sent to the Python 3 documentation
New submission from Борис Верховский :
As far as I can tell, passing `(object,)` and `()` as the `bases` parameter to
the 3-argument version of type() produces the same result, because classes
inherit from `object` in Python 3:
>>> type('X', (object,), dict(a=1)).__base
New submission from Борис Верховский :
and the other objects that have a straightforward formula for the number of
elements they will generate.
--
components: Library (Lib)
messages: 361421
nosy: boris
priority: normal
severity: normal
status: open
title: Implement __len__() for
New submission from Борис Верховский :
import json
foo = {}
for i in range(1000):
json.dumps(foo)
print(i)
foo = {'bar': foo}
Will error at 994. At a minimum this magic number should be documented, but it
would be better if the json library could handle arbitrarily n
Борис Верховский added the comment:
As I said in issue38226, the error message you get when you try to
pickle.load() a file opened in "r" mode instead of "rb" mode,
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid
start
Change by Борис Верховский :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Борис Верховский :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue38226>
___
___
Python-bugs-list mailing list
Unsubscrib
Борис Верховский added the comment:
I saw two Python regexes, one derived from a regex in the standard library.
There was a comment saying that they're interchangeable and I wanted to check
if they were actually the same without having to read what all the regex
symbols mean. Plus a
New submission from Борис Верховский :
re.compile('([-_.a-zA-Z0-9]+)') == re.compile(r'([-\w.]+)')
should return True because those are the same regex (\w is a-z, A-Z, 0-9 and
the underscore).
If you want to check if two regexes are identical you would compare the
orig
Борис Верховский added the comment:
You changed "control flow statements" to "flow control statements", which is an
unrelated concept.
--
nosy: +boris
___
Python tracker
<https://bug
New submission from Борис Верховский :
pickle.load() and pickle.dump() take a file object as an argument. That file
object must be opened in binary mode ("rb" or "wb"). If it's not, pickle raises
a confusing error message.
When pickle.dump()'ing to a file ope
16 matches
Mail list logo