Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
eed7aa5c
Commit
eed7aa5c
authored
Dec 31, 2015
by
olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not use enum for objectis, doe not help and impact performance
parent
95c1a8b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
opcua/object_ids.py
opcua/object_ids.py
+1
-1
schemas/generate_ids.py
schemas/generate_ids.py
+1
-1
No files found.
opcua/object_ids.py
View file @
eed7aa5c
...
...
@@ -2,7 +2,7 @@
from
enum
import
IntEnum
class
ObjectIds
(
IntEnum
):
class
ObjectIds
(
object
):
Boolean
=
1
SByte
=
2
Byte
=
3
...
...
schemas/generate_ids.py
View file @
eed7aa5c
...
...
@@ -5,7 +5,7 @@ if __name__ == "__main__":
outputfile
.
write
(
"
\
n
"
)
outputfile
.
write
(
"from enum import IntEnum
\
n
"
)
outputfile
.
write
(
"
\
n
"
)
outputfile
.
write
(
"class ObjectIds(
IntEnum
):
\
n
"
)
outputfile
.
write
(
"class ObjectIds(
object
):
\
n
"
)
for
line
in
inputfile
:
name
,
nb
,
datatype
=
line
.
split
(
","
)
outputfile
.
write
(
" {} = {}
\
n
"
.
format
(
name
,
nb
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment