|
E9217 Python Package Name
[Previous]  [Next] 
|
![]() |
User Manual [Previous]  [Next] E9217 Python Package NameA namespace is not a valid Python package nameA class in a namespace is generated as a module of the package named by the namespace, so each part of the namespace must be made of ASCII letters, digits and underscores, must not start with a digit, and must not be a Python keyword. Namespaces such as Example
// Python packages are identifiers, so a namespace segment
// such as 2024 cannot be imported: E9217
generate Python;
namespace releases.2024;
class Release {
name;
}
// @@@skipcompile - Java packages cannot start with a digit either
Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears
// A namespace made of identifiers is a valid Python package
generate Python;
namespace releases.y2024;
class Release {
name;
}
Load the above code into UmpleOnline |