Change by Simon Bernier St-Pierre :
--
keywords: +patch
pull_requests: +13493
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/13586
___
Python tracker
<https://bugs.python.org/issu
Change by Simon Bernier St-Pierre :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue36686>
___
__
New submission from Simon Bernier St-Pierre:
Because of the special way Path and PurePath are instantiated, they can't be
inherited like a normal class. Here's an example of the issue:
>>> import pathlib
>>> class MyPath(pathlib.Path):
... pass
...
>>>
New submission from Simon Bernier St-Pierre :
I had trouble figuring out how to simply inherit stdin, stdout, or stderr in
the asyncio.create_subprocess_exec / asyncio.subprocess_exec docs. My
experiments show that passing either None or `sys.std*` works but the way the
docs are written make
Change by Simon Bernier St-Pierre :
--
nosy: sbstp
priority: normal
severity: normal
status: open
title: subprocess encoding
___
Python tracker
<https://bugs.python.org/issue36
Change by Simon Bernier St-Pierre :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue36687>
___
___
Pyth
Simon Bernier St-Pierre added the comment:
Could be cool to also mention that `encoding` / `errors` does not work yet.
https://bugs.python.org/issue31087
--
___
Python tracker
<https://bugs.python.org/issue36
New submission from Simon Bernier St-Pierre:
I want to receive data on a UDP socket that was bound, without blocking the
event loop. I've looked through the asyncio docs, and I haven't found a way of
doing that using the coroutine API (yield from/await).
There is a sock_recv
Simon Bernier St-Pierre added the comment:
That could work. I came up with this
class MyProtocol(aio.DatagramProtocol):
def __init__(self, fut):
self._fut = fut
def datagram_received(self, data, addr):
self.fut.set_result((data, addr))
fut = aio.Future
Simon Bernier St-Pierre added the comment:
I want to have a loop that receives data like this:
socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
socket.bind(('0.0.0.0', port))
socket.setblocking(False)
while True:
data, addr = await loop.sock_recvfrom(sock, 4096)
Simon Bernier St-Pierre added the comment:
I created a patch for it on the asyncio github repo.
https://github.com/python/asyncio/pull/321
--
___
Python tracker
<http://bugs.python.org/issue26
Changes by Simon Bernier St-Pierre :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue26395>
___
___
Python-bugs-list mailing list
Un
12 matches
Mail list logo