yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07928
[Branch ~yade-dev/yade/trunk] Rev 2927: Fix some errors during doc-generation
------------------------------------------------------------
revno: 2927
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Thu 2011-10-13 23:46:31 +0200
message:
Fix some errors during doc-generation
modified:
doc/sphinx/prog.rst
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'doc/sphinx/prog.rst'
--- doc/sphinx/prog.rst 2011-08-24 10:13:47 +0000
+++ doc/sphinx/prog.rst 2011-10-13 21:46:31 +0000
@@ -686,18 +686,15 @@
Yade [3]: s.radius=4. ## write access
- Yade [4]: s.keys() ## show all available keys
+ Yade [4]: s.dict().keys() ## show all available keys
- Yade [5]: for k in s.keys(): print s[k] ## iterate over keys, print their values
+ Yade [5]: for k in s.dict().keys(): print s.dict()[k] ## iterate over keys, print their values
...:
- Yade [5]: s.has_key('radius') ## same as: 'radius' in s.keys()
+ Yade [5]: s.dict()['radius'] ## same as: 'radius' in s.keys()
Yade [6]: s.dict() ## show dictionary of both attributes and values
- ## only very rarely needed; calls Serializable::postProcessAttributes(bool deserializing):
-
- Yade [7]: s.postProcessAttributes(False)
.. _YADE_CLASS_BASE_DOC:
@@ -1797,7 +1794,7 @@
Yade [1]: s=Sphere()
- Yade [2]: s.name, s.__class__.__name__
+ Yade [2]: s.__class__.__name__
Subclassing c++ types in python