New submission from David Beazley:
First comment: In the I/O library, there is documented behavior for how things
work in the presence of non-blocking I/O. For example, read/write methods
returning None on raw file objects. Methods on BufferedIO instances raise a
BlockingIOError
David Beazley added the comment:
This is a problem that will never be fixed. Sure, it was a release blocker in
Python 3.4.
It wasn't fixed.
It is a release blocker in Python 3.5.
It won't be fixed.
They'll just tell you to indent using the spacebar as generations of typists
have done
David Beazley added the comment:
For what it's worth, I'm kind of tired having to hack site.py every time I
upgrade Python in order to avoid being shown 6000 choices when hitting tab on
an empty line. It is crazy annoying.
--
___
Python tracker rep
David Beazley added the comment:
Wanted to add: I see this as being about the same as having a broken window
pane on the front of Python 3. Maybe there are awesome things inside, but it
makes a bad first impression on anyone who dares to use the interactive console
David Beazley added the comment:
Frivolity aside, I really wish this issue would get more traction and a fix.
Indentation is an important part of the Python language (obviously). A pretty
standard way to indent is to hit tab in whatever environment you're using to
edit Python code.
Yet
New submission from David Beazley:
The compile() function is not able to compile an AST created from code that
uses some of the new unpacking generalizations in PEP 448. Example:
code = '''
a = { 'x':1, 'y':2 }
b = { **a, 'z
New submission from David Beazley:
Not so much a bug, but an observation based on reviewing the implementation of
the selectors.KqueueSelector class. In that class there is the select() method:
def select(self, timeout=None):
timeout = None if timeout is None else max
David Beazley added the comment:
If the KQ_FILTER constants aren't bitmasks, it seems that the code could be
simplified to the last version then. At the least, it would remove a few
unnecessary calculations.Again, a very minor thing (I only stumbled onto it
by accident really
David Beazley added the comment:
I don't see any possible way that you would ever get events = EVENT_READ |
EVENT_WRITE if the flag is a single value (e.g., KQ_FILTER_READ) and the flag
itself is not a bitmask. Only one of those == tests will ever be True. There
is no need to use
David Beazley <d...@dabeaz.com> added the comment:
Some context: I noticed this while discussing (in a course) a programming
trick involving instance initialization and locals() that I'd encountered in
the past:
def _init(locs):
self = locs.pop('self')
for nam
New submission from David Beazley <d...@dabeaz.com>:
Libraries such as Curio and asyncio provide a debugging facility that allows
someone to view the call stack of generators/coroutines. For example, the
_task_get_stack() function in asyncio/base_tasks.py. This works by manually
walk
David Beazley <d...@dabeaz.com> added the comment:
I've attached a file that illustrates the issue.
(Side thought: this would be nice to have in inspect or traceback)
--
Added file: https://bugs.python.org/file47434/agen.py
___
Python tracke
David Beazley <d...@dabeaz.com> added the comment:
That wording isn't much better in my opinion. If I'm sitting there looking at
methods like str.isdigit(), str.isnumeric(), str.isascii(), and
str.isidentifier(), seeing keyword.iskeyword() makes me think it's a method
regardless of w
David Beazley <d...@dabeaz.com> added the comment:
s = 'Some String'
s.isalnum()
s.isalpha()
s.isdecimal()
s.isdigit()
s.isidentifier()
s.islower()
s.isnumeric()
s.isprintable()
s.isspace()
s.istitle()
s.isupper()
Not really sure where I would have gotten the idea that it might be ref
New submission from David Beazley <d...@dabeaz.com>:
This is a minor nit, but the doc string for str.isidentifier() states:
Use keyword.iskeyword() to test for reserved identifiers such as "def" and
"class".
At first glance, I thought that it meant you'd do this
David Beazley added the comment:
About nine years ago, I stood in front of a room of Python developers,
including many core developers, and gave a talk about the problem described in
this issue. It included some live demos and discussion of a possible fix.
https://www.youtube.com/watch?v
Change by David Beazley :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue16894>
___
___
Python-bugs-list
Change by David Beazley :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue7946>
___
___
Python-bugs-list
Change by David Beazley :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue16132>
___
___
Python-bugs-list
Change by David Beazley :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue27436>
___
___
Python-bugs-list
Change by David Beazley :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue32810>
___
___
Pyth
Change by David Beazley :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue24844>
___
___
Python-bugs-list
101 - 122 of 122 matches
Mail list logo