BeAllAround / BeAllAround/py_utils

__utils - create a Map that has "obj.key" accessibility: Python-native

Open
#4 0 comments 0 reactions 1 assignee Claimed by @BeAllAround View on GitHub
enhancement P1
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
class Map:
...

m = Map({'scopeFlag': true, ...})
m.scopeFlag; # true
m.temFlag; # None
```

new prototype?

```
import re

def _parse(obj):
try:
print(eval(obj));
except NameError as err:
# extract 'a' and write up a white loop
globals()['a'] = 'a'
print(eval(obj));
del globals()['a']

_parse('''{a: 1}''');
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.