Timothy Cardenas added the comment:
We are seeing this behavior influencing other libraries in python 3.4.
This should never fail if timestamp and fromtimestamp are implemented correctly:
from datetime import datetime
t = datetime.utcnow().timestamp()
t2 = datetime.utcfromtimestamp(t)
assert t
New submission from Timothy Cardenas:
We were tracking down a bug the other day that was rather hard to find
involving a forking a process that had both a primary thread and a logging
thread. The docs clearly state that forking a multithreaded process is
"problematic"
https://docs.
Timothy Cardenas added the comment:
Ahhh i see now.
Even the simple case "class Foo(bar='baz'): pass" fails.
I misunderstood the documentation then. I thought that python 3 introduced a
new interface for all classes when it actually just introduced the option to
add
Timothy Cardenas added the comment:
Hmm Ok. You are right i can do the following:
from collections import UserDict
from abc import ABCMeta
class MetaMyDict(ABCMeta):
@classmethod
def __prepare__(cls, name, bases, **kwargs):
return {}
def __new__(mcls, name, bases
New submission from Timothy Cardenas:
Summary:
Any class that derives from the ABCMeta class doesn't support keyword variable
arguments as defined here :https://www.python.org/dev/peps/pep-3115/.
Expected:
If i define a simple class that derives from ABCMeta that has a kwarg the