New submission from John Didion <johnp...@didion.net>:
> @dataclass
> class Foo:
> x: dict = field(default_factory=dict)
> @dataclass
> class Bar(Foo):
> y: int = 1
> @dataclass
> class Baz(Foo):
> def blorf(self):
> print('hello')
> Foo().x
John Didion added the comment:
I can't reproduce it with 3.5.2 on SL6 either. So it must be a weird issue
specific to whatever environment they're using for builds on Travis. I'll close
this and submit it as a bug over there.
--
resolution: -> works for me
status: open ->
John Didion added the comment:
This code also works fine when I run it myself on python 3.5.1 on an SL6
machine, so it's either specific to 3.5.2 or it's very platform-specific.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
New submission from John Didion:
The following code works fine when I run it on OSX 10.9, but causes a
segmentation fault when run on linux. Specifically, the Travis build on python
3.5.2 results in a segfault when the last line is uncommented.
import argparse
parser = argparse.ArgumentParser
New submission from John Didion johndid...@gmail.com:
Just as some options are mutually exclusive, there are others that are
necessarily inclusive, i.e. all or nothing. I propose the addition of
ArgumentParser.add_necessarily_inclusive_group(required=True).
This also means that argparse