Bug 345133

Summary: Python-Bindings: Calling function with None as argument failed
Product: [openSUSE] openSUSE 11.0 Reporter: Daniel Fiser <dfiser>
Component: YaST2Assignee: Jozef Uhliarik <juhliarik>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Daniel Fiser 2007-11-30 08:52:12 UTC
It's not possible to call function with None as argument, but in YCP it's possible to call function with nil as argument. It's necessary to add something similar into python-bindings (to enable to use None in python as nil in YCP is the best solution).

Example:
  //declaration of function in module
  global boolean Test(term a);
  
  //calling from python fail
  ycp.import_module("TestModule")
  ycp.TestModule.Test(None)

  //calling from ycp succeed
  import "TestModule";
  TestModule::Test(nil);
Comment 1 Jozef Uhliarik 2007-12-05 08:57:33 UTC
The problem is solved in version 2.16.2