Revision: 135
Author: roman_yakovenko
Date: 2006-05-17 23:38:14 -0700 (Wed, 17 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=135&view=rev
Log Message:
-----------
syntactic sugar patch
Modified Paths:
--------------
pygccxml_dev/pygccxml/declarations/scopedef.py
Modified: pygccxml_dev/pygccxml/declarations/scopedef.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/scopedef.py 2006-05-18 06:24:17 UTC (rev 134)
+++ pygccxml_dev/pygccxml/declarations/scopedef.py 2006-05-18 06:38:14 UTC (rev 135)
@@ -543,4 +543,18 @@
, header_dir=header_dir
, header_file=header_file
, recursive=recursive
- , allow_empty=allow_empty)
\ No newline at end of file
+ , allow_empty=allow_empty)
+
+ def __getitem__(self, name_or_function):
+ """ Allow simple name based find of decls. Internally just calls decls() method.
+ @param name_or_function Name of decl to lookup or finder function.
+ """
+ return self.decls(name_or_function)
+
+
+
+
+
+
+
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|