Samuel Colvin added the comment:
Perhaps worth adding that the tests don't fail on python 3.6, 3.7 or 3.8.
--
nosy: +samuelcolvin
___
Python tracker
<https://bugs.python.org/is
Change by Samuel Colvin :
--
pull_requests: +16288
pull_request: https://github.com/python/cpython/pull/16702
___
Python tracker
<https://bugs.python.org/issue38
Change by Samuel Colvin :
--
keywords: +patch
pull_requests: +16286
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/16700
___
Python tracker
<https://bugs.python.org/issu
Samuel Colvin added the comment:
This is a bug with the `__repr__` method on `InitVar`.
I'm working on a PR now.
--
___
Python tracker
<https://bugs.python.org/is
New submission from Samuel Colvin :
The following code works fine with python 3.7 but breaks with 3.8:
```
import dataclasses
from typing import Optional
@dataclasses.dataclass
class TestingDataclass:
base_path: dataclasses.InitVar[Optional[str]] = None
```
Exception traceback
Samuel Colvin added the comment:
Hi, did you see https://bugs.python.org/issue35788#msg334155 later in the issue?
--
___
Python tracker
<https://bugs.python.org/issue35
Change by Samuel Colvin :
--
keywords: +patch, patch, patch
pull_requests: +11494, 11495, 11496
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Samuel Colvin :
--
keywords: +patch, patch
pull_requests: +11494, 11495
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Samuel Colvin :
--
keywords: +patch
pull_requests: +11494
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35800>
___
___
Py
Samuel Colvin added the comment:
Ok, if I create a PR, should it just remove MailmanProxy completely or mark it
as deprecated in the docs to be removed in 3.9?
Personally, I think it should be ok to remove it completely since it hasn't
been working at all for the last 4 minor ver
Samuel Colvin added the comment:
Great, https://bugs.python.org/issue35799 and
https://bugs.python.org/issue35800 created.
--
___
Python tracker
<https://bugs.python.org/issue35
New submission from Samuel Colvin :
smtpd.MailmanProxy is completely broken, it takes the wrong arguments but also
assumes the existence of a "Mailman" module which doesn't exist.
It should be removed in 3.8 or 3.9.
Created from https://bugs.python.org/issue35788
Happy to
New submission from Samuel Colvin :
smtpd.PureProxy.process_message is defined to not receive the extra kwargs
which it is called with.
It also expects "data" to be str when it's actually bytes.
PureProxy should either be removed for fixed.
Personally, I think it should be f
Samuel Colvin added the comment:
Ok. Thanks for your explanation. Makes sense.
--
___
Python tracker
<https://bugs.python.org/issue35788>
___
___
Python-bug
Samuel Colvin added the comment:
Thanks for the response.
I've created issues on aiosmtpd for both these things. There are much better
ways of running the controller than threading, but that's a discussion for
https://github.com/aio-libs/aiosmtpd/issues/160. I'll try and w
Samuel Colvin added the comment:
Thanks for the explanation David.
It would be really useful if this was prominently noted in smtpd, it would have
saved me spending my morning fixing these things. There's also (AFAIK) nothing
about this being deprecated in the docs.
More genera
Change by Samuel Colvin :
--
keywords: +patch, patch, patch
pull_requests: +11381, 11382, 11383
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Samuel Colvin :
--
keywords: +patch, patch
pull_requests: +11381, 11382
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Samuel Colvin :
--
keywords: +patch, patch, patch, patch
pull_requests: +11381, 11382, 11383, 11384
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issu
Change by Samuel Colvin :
--
keywords: +patch
pull_requests: +11381
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35788>
___
___
Py
New submission from Samuel Colvin :
smtpd.PureProxy.process_message and smtpd.MailmanProxy.process_message are
defined to not receive the extra kwargs which they're called with.
They both also expect "data" to be str when it's actually bytes.
Thus they're completed b
New submission from Samuel Colvin:
With Python 3.5 and 3.6 list comprehensions, generators and tuples have the
col_offset for their ast nodes off by 1:
```
import ast
ast.parse('{a for a in range(3)}').body[0].value.col_offset
>> 0 # set comprehension correct
ast.parse('
New submission from Samuel Colvin:
This is best described the script at
https://gist.github.com/samuelcolvin/00f01793c118bf9aafae886ffbc81a58.
Basically, completing a set of tasks using
asyncio.wait(...return_when=asyncio.FIRST_COMPLETED) in a loop to wait for them
to finish is much much
Samuel Colvin added the comment:
I see, I hadn't appreciated fstrings where entirely different and more powerful
than format(), I'll close this.
For anyone else coming to this, with fstrings in >=3.6 you can do:
In [4]: value = [1,2, 3]
In [5]: f'The value is {value}.'
Samuel Colvin added the comment:
I know contributing to python is currently a pain (bring on github!) but I'd be
happy to attempt a patch if others agree this would be useful.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Samuel Colvin:
(The "Components" selection might be wrong, I wasn't sure what to use)
As https://docs.python.org/3.6/library/string.html
> Three conversion flags are currently supported: '!s' which calls str() on the
> value, '!r'
New submission from Samuel Colvin:
As per discussion on typeshed pull request discussion
(https://github.com/python/typeshed/pull/555) the "signal.Signals" enum is not
documented but should be.
See https://docs.python.org/3.5/library/signal.html.
--
assignee: docs@python
Samuel Colvin added the comment:
Sorry, I'm going mad, misread it.
--
resolution: -> not a bug
status: open -> closed
___
Python tracker
<http://bugs.python.
New submission from Samuel Colvin:
https://docs.python.org/3/reference/datamodel.html#object.__init__
"no non-None value may be returned by __init__();" should read "no non-None
value may *not* be returned by __init__();"
--
assignee: docs@python
components: Do
29 matches
Mail list logo