Ticket #825 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

add an optional default value argument to hashTableObj.get method

Reported by: sgillies@… Owned by: sgillies@…
Priority: high Milestone:
Component: MapScript-SWIG Version: 4.3
Severity: minor Keywords:
Cc:

Description

Add an optional default value to hashTableObj.get.  Otherwise the method returns
NULL without raising an exception.

Change History

Changed 9 years ago by sgillies@…

  • status changed from new to closed
  • resolution set to fixed
Done.  New tests pass.  This makes hashTableObj.get function almost exactly
like Python's own dictionary get() method.

Note: See TracTickets for help on using tickets.