You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #102, namelists can be silently initialised with arbitrary objects, but operations which use __str__ will fail since there is no valid Fortran representation. Example:
import f90nml
class C(object):
pass
c = C()
d = {'config_nml': {'x': c}}
nml = f90nml.Namelist(d) # No error here
print(nml)
# various errors...
Current proposal is to check for valid input at initialization, although this may exacerbate some of the performance issues observed in #99.
The text was updated successfully, but these errors were encountered:
As discussed in #102, namelists can be silently initialised with arbitrary objects, but operations which use
__str__
will fail since there is no valid Fortran representation. Example:Current proposal is to check for valid input at initialization, although this may exacerbate some of the performance issues observed in #99.
The text was updated successfully, but these errors were encountered: