From: doublep <re...@bu...> - 2019-11-29 15:59:06
|
New submission from doublep <pog...@gm...>: I'm not 100% sure it is a bug, but: m = HashMap() m.put (1, None) # => {1=null} m = HashMap() m[1] = None # => {1=None} The latter of course causes exceptions when Java code bumps into a Jython object where it doesn't expect it. Or is it intended that None is converted to null only when invoking a Java method? ---------- components: Core messages: 12812 nosy: doublep severity: normal status: open title: Jython converts None to null when calling put(), but not when setting item with Python syntax type: behaviour versions: Jython 2.7.1 _______________________________________ Jython tracker <re...@bu...> <https://bugs.jython.org/issue2842> _______________________________________ |