I'm trying to remove a key from an existing NameValuePairList. I
believe python-ogre isn't exposing the erase method ...
In
http://www.ogre3d.org/docs/api/html/OgreCommon_8h_source.html
00524 typedef map<String, String>::type NameValuePairList;
STL's map
http://www.cplusplus.com/reference/stl/map/erase/
>>> import ogre.renderer.OGRE as ogre
>>> nv = ogre.NameValuePairList()
>>> dir(nv)
['NameValuePairList_entry', '__class__', '__contains__',
'__delattr__', '__delitem__', '__dict__', '__doc__', '__format__',
'__getattribute__', '__getitem__', '__hash__', '__init__',
'__instance_size__', '__iter__', '__len__', '__module__', '__new__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
'__setitem__', '__sizeof__', '__str__', '__subclasshook__',
'__weakref__', 'count', 'has_key', 'insert', 'keys']
>>> nv.erase
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NameValuePairList' object has no attribute 'erase'
Cheers,
Darran.