[Python-Dev] Method __func__ objects are unpicklable

2022-06-10 Thread haael
c__ = c A.c.__func__.__qualname__ = "A.c.__func__" print(A.c) # print(A.c.__func__) # dumps(A.c) # works dumps(A.c.__func__) # works ``` Can we make the `__func__` objects picklable this way? haael ___ Python-Dev mailing list -- py

Re: [Python-Dev] Why are there no 'set' and 'frozenset' types in the 'types' module?

2011-04-25 Thread haael
Because there's no reason to include them, since they are already in the root (builtins) namespace. You'll notice that in Python 3, the "types" module only contains types which are not obviously accessed through easier means: OK, makes sense, but in this case it would be handy to have some

Re: [Python-Dev] Why are there no 'set' and 'frozenset' types in the 'types' module?

2011-04-25 Thread haael
Because there's no reason to include them, since they are already in the root (builtins) namespace. You'll notice that in Python 3, the "types" module only contains types which are not obviously accessed through easier means: OK, makes sense, but in this case it would be handy to have some l

[Python-Dev] Why are there no 'set' and 'frozenset' types in the 'types' module?

2011-04-25 Thread haael
Sorry if I am asking the obvious, but why are the aliases of set types not included in the 'types' module? I thought for a moment that they are just classes, but no, they introduce themselves as built-in types, just like any other standard Python type. > print type(set([1, 2, 4])) > print