PySimultan 0.4.16__py3-none-any.whl → 0.4.18__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- PySimultan2/__about__.py +1 -1
- PySimultan2/object_mapper.py +2 -2
- PySimultan2/simultan_object.py +3 -3
- {pysimultan-0.4.16.dist-info → pysimultan-0.4.18.dist-info}/METADATA +1 -1
- {pysimultan-0.4.16.dist-info → pysimultan-0.4.18.dist-info}/RECORD +7 -7
- {pysimultan-0.4.16.dist-info → pysimultan-0.4.18.dist-info}/WHEEL +1 -1
- {pysimultan-0.4.16.dist-info → pysimultan-0.4.18.dist-info}/licenses/LICENSE.txt +0 -0
PySimultan2/__about__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
version = '0.4.
|
1
|
+
version = '0.4.18'
|
PySimultan2/object_mapper.py
CHANGED
@@ -291,10 +291,10 @@ class PythonMapper(object):
|
|
291
291
|
|
292
292
|
def clear(self, remove_from_default=False):
|
293
293
|
for cls in self.registered_classes.values():
|
294
|
-
cls._cls_instances =
|
294
|
+
cls._cls_instances = set()
|
295
295
|
|
296
296
|
for cls in self.mapped_classes.values():
|
297
|
-
cls._cls_instances =
|
297
|
+
cls._cls_instances = set()
|
298
298
|
cls.__property_cache__ = {}
|
299
299
|
|
300
300
|
if remove_from_default and config.get_default_mapper() is self:
|
PySimultan2/simultan_object.py
CHANGED
@@ -94,14 +94,14 @@ class MetaMock(type):
|
|
94
94
|
|
95
95
|
class SimultanObject(object, metaclass=MetaMock):
|
96
96
|
|
97
|
-
_cls_instances =
|
97
|
+
_cls_instances = set() # weak set with all created objects
|
98
98
|
_create_all = False # if true all properties are evaluated to create python objects when initialized
|
99
99
|
_cls_instances_dict_cache = None
|
100
100
|
__type_view__ = None # ui view cls
|
101
101
|
|
102
102
|
@classmethod
|
103
103
|
def reset_cls(cls):
|
104
|
-
cls._cls_instances =
|
104
|
+
cls._cls_instances = set()
|
105
105
|
cls._cls_instances_dict_cache = None
|
106
106
|
|
107
107
|
@classmethod
|
@@ -129,7 +129,7 @@ class SimultanObject(object, metaclass=MetaMock):
|
|
129
129
|
def __new__(cls, *args, **kwargs):
|
130
130
|
instance = super().__new__(cls)
|
131
131
|
if "_cls_instances" not in cls.__dict__:
|
132
|
-
cls._cls_instances =
|
132
|
+
cls._cls_instances = set()
|
133
133
|
try:
|
134
134
|
cls._cls_instances.add(instance)
|
135
135
|
except Exception as e:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: PySimultan
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.18
|
4
4
|
Project-URL: Documentation, https://github.com/Bühler Maximilian/PySimultan2#readme
|
5
5
|
Project-URL: Issues, https://github.com/Bühler Maximilian/PySimultan2/issues
|
6
6
|
Project-URL: Source, https://github.com/Bühler Maximilian/PySimultan2
|
@@ -1,11 +1,11 @@
|
|
1
|
-
PySimultan2/__about__.py,sha256=
|
1
|
+
PySimultan2/__about__.py,sha256=NDfheEp8FwJqF_9iumAMNgYhdmAOIo7i6lRU_Li4zHE,20
|
2
2
|
PySimultan2/__init__.py,sha256=cabTN1Oz8xtFM31ouBKg5lwLqW5vtexDP669PYyNLnA,3224
|
3
3
|
PySimultan2/data_model.py,sha256=xosu5TAfgsrxwyhd6SfHFp4Wvo1_YtxdHsSuZmuNVJU,27022
|
4
4
|
PySimultan2/default_types.py,sha256=v_4awsUURLbu4Sfw7J_7BoQKirXbKdU9s7-wqgA4nNE,23112
|
5
5
|
PySimultan2/files.py,sha256=8F1QC9nTsTSrCpu5vGx1xGx-7UgkDwoICXau_5j7UzI,12725
|
6
6
|
PySimultan2/multi_values.py,sha256=ZFXlTLuZo32x7_7diYAp2XEjp5uwgHLgNOzN7v74-5I,13650
|
7
|
-
PySimultan2/object_mapper.py,sha256=
|
8
|
-
PySimultan2/simultan_object.py,sha256=
|
7
|
+
PySimultan2/object_mapper.py,sha256=yYVGeIzkdYvNMqW_kz9NwVxi6IJWGAqLS8CrYzW2oEg,13210
|
8
|
+
PySimultan2/simultan_object.py,sha256=P047pfjgScysBMIsW7Co63VlzXGnLqGwxjyAEVLh8kg,16917
|
9
9
|
PySimultan2/taxonomy_maps.py,sha256=IYpIat6ZJi5MyCbsjAxWvVOWDRp_VvSMWUY3CApKSik,8061
|
10
10
|
PySimultan2/utils.py,sha256=qhF46rCHmI96Hdp9sdHAAkUJtaQxoG6YJu7Hx5IM4Go,62569
|
11
11
|
PySimultan2/geometry/__init__.py,sha256=nJolTD1i5J8qUkOQa-r3D20aq3Co3sN31Xc0n4wJpJo,248
|
@@ -75,7 +75,7 @@ PySimultan2/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
75
75
|
PySimultan2/resources/assimp.dll,sha256=HwfDwXqoPDTFRyoQpA3qmgZoUdFtziJkV5fNtktEZEU,6081536
|
76
76
|
PySimultan2/resources/defaultsettings.xml,sha256=s6Tk1tubLz5UYqXZWpD42EDHzedemRY1nEneoIVcUfg,392
|
77
77
|
PySimultan2/resources/setup.bat,sha256=fjvvYfVM6TalS-QTSiKAbAId5nTsk8kGGo06ba-wWaY,32
|
78
|
-
pysimultan-0.4.
|
79
|
-
pysimultan-0.4.
|
80
|
-
pysimultan-0.4.
|
81
|
-
pysimultan-0.4.
|
78
|
+
pysimultan-0.4.18.dist-info/METADATA,sha256=tnKziIsTcgeCIf7BGaxdm1VhBQJPu6LROSu0E4mHZi4,2483
|
79
|
+
pysimultan-0.4.18.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
80
|
+
pysimultan-0.4.18.dist-info/licenses/LICENSE.txt,sha256=pmSr98k6N005KMojnZxzLGRuRlDjDx3PUrK1lFj53HA,1126
|
81
|
+
pysimultan-0.4.18.dist-info/RECORD,,
|
File without changes
|