oasm 0.1.6__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oasm
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Open ASseMbly tools
5
5
  Author-email: nzturn <nzturn@gmail.com>
6
6
  Keywords: asm,dsl
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "oasm" # 包名(需确保在PyPI唯一)
3
- version = "0.1.6" # 初始版本号
3
+ version = "0.1.7" # 初始版本号
4
4
  authors = [
5
5
  { name = "nzturn", email = "nzturn@gmail.com" },
6
6
  ]
@@ -314,6 +314,8 @@ def subs(obj, **kwargs):
314
314
  return {k:subs(v,**kwargs) for k,v in obj.items()}
315
315
  elif type(obj) is expr:
316
316
  return expr(*obj[:],**obj.__dict__,**kwargs)()
317
+ elif isinstance(obj,table):
318
+ return obj.__class__(*subs(obj[:],**kwargs),**subs(obj.__dict__,**kwargs))
317
319
  else:
318
320
  return obj
319
321
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oasm
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Open ASseMbly tools
5
5
  Author-email: nzturn <nzturn@gmail.com>
6
6
  Keywords: asm,dsl
File without changes
File without changes
File without changes