present.py 146 B

12345
  1. def present(x):
  2. '''
  3. This is a Python equivalent of the Fortran 'present' function for optional arguments.
  4. '''
  5. return x is not None