New submission from Andrew C :
Hello,
When given a `Field` on a Dataclass, the `__repr__` throws an infinite
recursive error when the data type is bytes.
In the `Field` class, the __repr__ is as follows:
```
def __repr__(self):
return (
'Field('
New submission from Andrew C. Morrow :
When building with `--with-lto`, an explicit check for `llvm-ar` is performed
as part of the configure step. However, Apple does not ship `llvm-ar` as part
of Xcode, so when building with Apple Clang this check fails and prevents using
`--with-lto
New submission from Andrew C :
if playerChoice == "2": reports the ":" as a "syntax error"
--
components: Windows
messages: 385427
nosy: ASCRong, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Bug
type:
andrew c added the comment:
Bob,
I understand what you are saying, but having a built-in is way easier than
encoder/decoders. You can still have both actually. Even if you didn't have
two way, a one way would be amazingly helpful. For large development systems,
a __json__ method
New submission from andrew c :
When creating a custom class that doesn't inherit from the accepted classes,
there is no way to serialize it using json.dumps or json.dump.
I propose that __fromjson__ and __tojson__ that when present will be used by
the Python's default encoder.
Changes by Andrew C :
Added file: http://bugs.python.org/file35730/82706ea73ada.diff
___
Python tracker
<http://bugs.python.org/issue3353>
___
___
Python-bugs-list mailin
Andrew C added the comment:
The previously posted patch has become outdated due to signature changes
staring with revision 89f4293 on Nov 12, 2009. Attached is an updated patch.
Can it also be confirmed what are the outstanding items for this patch to be
applied? Based on the previous logs