Python export/import
Dr. Arno Baumfalk
a.baumfalk at astro-kom.de
Thu Jan 5 10:09:41 UTC 2017
Hi all,
I would like to report the follwing bug:
Bug description:
---------------------
Python export and re-import breaks function names and private attribute
of private functions.
Steps to reproduce:
---------------------------
1. create a class with a public function named "publicFunction" and a
private function named "privateFunction" (see attached Umbrello1.xmi).
2. Export to python, result will be:
---
class MyClass(object):
"""
:version:
:author:
"""
def publicFunction(self):
"""
@return :
@author
"""
pass
def __privateFunction(self):
"""
@return :
@author
"""
pass
---
3. re-import from exported Code (see attached Umbrello2.xmi).
As a result I get a public Function with the name "__privateFunction"
instead of a private function with the name "privateFunction".
BR
Arno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Umbrello1.xmi
Type: text/x-xmi
Size: 9394 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/umbrello/attachments/20170105/7eb417cd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Umbrello2.xmi
Type: text/x-xmi
Size: 9941 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/umbrello/attachments/20170105/7eb417cd/attachment-0001.bin>
More information about the umbrello
mailing list