[issue41569] json.JSONEncoder.default should be called for dict keys as well

2020-08-17 Thread David Byrne

New submission from David Byrne :

Sub-classing and overriding json.JSONEncoder.default allows users to create 
custom serialisation for objects that can’t otherwise be serialized. However, 
this method is only called for dictionary values such that dictionary supported 
keys (i.e. hashable types) can not be fully utilized. Calling .default on keys 
as well as values allows users to to fully utilize json for all dict supported 
types. 

See 
https://stackoverflow.com/questions/63393059/json-dump-not-calling-default-or-cls
 for example

--
components: Library (Lib)
messages: 375561
nosy: david.byrne222
priority: normal
severity: normal
status: open
title: json.JSONEncoder.default should be called for dict keys as well
type: enhancement
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue41569>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5718] Problem compiling ffi part of build on AIX 5.3.

2009-04-07 Thread David Byrne

New submission from David Byrne :

I am using AIX 5.3 xlc 9.0.  I am unable to get the libffi section to
build.  It also happens with the separate libffi code, so I will try to
report there as well.  I get the following:

cc_r -qlanglvl=extc89 -DNDEBUG -O -I.
-I/appl/bwc/src/Python-2.6.1/./Include
-Ibuild/temp.aix-5.3-2.6/libffi/include -Ibuild/temp.aix-5.3-2.6/libffi
-I/appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src
-I/appl/bwc/local2/include -I. -IInclude -I./Include
-I/usr/local/include -I/appl/bwc/src/Python-2.6.1/Include
-I/appl/bwc/src/Python-2.6.1 -c
/appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src/powerpc/aix_closure.S
-o
build/temp.aix-5.3-2.6/appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src/powerpc/aix_closure.o
Assembler:
/tmp/xlcS00-Mgqd.s: line 111: undefined symbol ".ffi_closure_helper_DARWIN"
/tmp/xlcS00-Mgqd.s: line 111: illegal expression type for branch address

--
assignee: theller
components: ctypes
messages: 85714
nosy: dbyrne, theller
severity: normal
status: open
title: Problem compiling ffi part of build on AIX 5.3.
type: compile error
versions: Python 2.6

___
Python tracker 
<http://bugs.python.org/issue5718>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com