|
Bugzilla – Full Text Bug Listing |
| Summary: | Python-Bindings: Calling function with None as argument failed | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.0 | Reporter: | Daniel Fiser <dfiser> |
| Component: | YaST2 | Assignee: | 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: | --- |
The problem is solved in version 2.16.2 |
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);