diff pyloader/invoke.py @ 77:efb7a8a189e8

update comments/docstring
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 09 Jun 2011 18:40:52 -0700
parents a825f00fe062
children 36f5d31c3ed6
line wrap: on
line diff
--- a/pyloader/invoke.py	Thu Jun 09 18:34:27 2011 -0700
+++ b/pyloader/invoke.py	Thu Jun 09 18:40:52 2011 -0700
@@ -5,6 +5,15 @@
 
 def strcall(obj, *args, **kwargs):
     """call a thing with string arguments"""
+
+    # TODO:
+    # could have modes for casting, at least for intrinsic types
+    # - optimistic: try to cast everything '1' -> 1
+    # - argument-based: only cast what's in the arguments
+    # - you should also be able to provide your own casts
+    # This will have to be made an object in order to actually do this
+    # so that these parameters may be provided to __init__
+    
     inspected = obj
     if inspect.isclass(obj):
         inspected = obj.__init__ # inspect the ctor