New submission from ChrisRands :
Not sure if this is the right place to mention this (apologies if not).
Naturally, package names are unique so when you run `pip install package-name`
there is no ambiguity. However, this means that package names are limited and
potentially valuable. Already
ChrisRands added the comment:
Thanks Rémi, I missed that in PEP 541. I am still concerned that PyPI may
become saturated with unmaintained packages (it is already common that one's
preferred package name is taken). However, the guidance is already clear, and I
guess anything stronger,
New submission from ChrisRands :
On Python 3:
>>> import builtins
>>> 'True' in dir(builtins)
True
>>> builtins.True
File "", line 1
builtins.True
^
SyntaxError: invalid syntax
>>>
So "True" is a keywor
New submission from ChrisRands :
A festive bug report:
>>> from __future__ import barry_as_FLUFL
>>> barry_as_FLUFL.mandatory
(3, 9, 0, 'alpha', 0)
So barry_as_FLUFL is documented to become mandatory for Python 3.9. Note that
mandatory here means that the featu
ChrisRands added the comment:
SO question where this derived from:
https://stackoverflow.com/questions/53830960/can-all-future-statements-be-removed-from-a-python-code-without-affecting-i
--
___
Python tracker
<https://bugs.python.org/issue35
Change by ChrisRands :
--
keywords: +patch
pull_requests: +10457
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34764>
___
___
Py
New submission from ChrisRands :
Issue arose from this SO post:
https://stackoverflow.com/questions/48746351/documentation-is-contradicting-pep8
The tkinter documentation suggests:
from tkinter import *
https://docs.python.org/3/library/tkinter.html
But this obviously contradicts PEP8
ChrisRands added the comment:
Thanks Serhiy, you might be right (I am not a tkinter user myself).
I also forgot to say that in PEP 328 tkinter is mentioned in this context:
https://www.python.org/dev/peps/pep-0328/#rationale-for-parentheses
ChrisRands added the comment:
Ok thanks both for the clarification!
--
___
Python tracker
<https://bugs.python.org/issue32830>
___
___
Python-bugs-list mailin
New submission from ChrisRands :
This arose from this SO question:
https://stackoverflow.com/questions/52446415/line-in-iterfp-readline-rather-than-line-in-fp
The example given in the docs:
with open('mydata.txt') as fp:
for line in iter(fp.readline, ''):
pr
ChrisRands added the comment:
Thank you Raymond, I like both your examples, although I think I prefer 1) for
the simplicity
--
___
Python tracker
<https://bugs.python.org/issue34
New submission from ChrisRands:
With a negative integer for ndigits the output from 'round()', for example
'round(3, -2)', is always zero ('0' for 'int.__round__' and '0.0' or '-0.0' for
'float.__round__').
I think either
ChrisRands added the comment:
Ah yes, you're both completely right of course. Perhaps the docs could still be
clarified though. I managed to completely overlook this, and perhaps other
non-expert Python users would too.
--
___
Python tracker
New submission from ChrisRands:
In Python 3 and 2 docs
https://docs.python.org/3.5/tutorial/datastructures.html, list.index only
mentions the first argument:
list.index(x)
Return the index in the list of the first item whose value is x. It is an
error if there is no such item.
However
14 matches
Mail list logo