File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jython AttributeError ??

 
Raj Sikka
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
What is the root cause for the following error in Jython.
AttributeError: 'dict' object has no attribute 'containsKey'.
Pls suggest me the solution .
Thanks ,
Raj
URGENT removed from topic...
[ January 13, 2004: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you want to use has_key('foo') instead of containsKey('foo')? As in:

Hint: To see the attributes of an object x you can do dir(x)

[ January 13, 2004: Message edited by: Barry Gaunt ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic