Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U #7

Open
QGB opened this issue Nov 3, 2019 · 3 comments
Open

U #7

QGB opened this issue Nov 3, 2019 · 3 comments

Comments

@QGB
Copy link
Owner

QGB commented Nov 3, 2019

U.input is3 RecursionError: maximum recursion depth exceeded in comparison

unsplit = joinCmd

@QGB
Copy link
Owner Author

QGB commented Nov 6, 2019

RustPython

from qgb import U
Traceback (most recent call last):
File "", line 1, in
File "_frozen_importlib", line 1113, in import
File "_frozen_importlib", line 1050, in _handle_fromlist
File "_frozen_importlib", line 1042, in _handle_fromlist
File "_frozen_importlib", line 1014, in _gcd_import
File "_frozen_importlib", line 991, in _find_and_load
File "_frozen_importlib", line 975, in _find_and_load_unlocked
File "_frozen_importlib", line 686, in _load_unlocked
File "_frozen_importlib", line 684, in _load_unlocked
File "_frozen_importlib", line 677, in _load_unlocked
File "_frozen_importlib", line 671, in _load_unlocked
File "_frozen_importlib_external", line 788, in exec_module
File "/home/qgb/qgb/U.py", line 8, in
stdin=sys.stdin;stdout=sys.stdout;stderr=sys.stderr
AttributeError: module 'sys' has no attribute 'stdin'

RustPython/RustPython#1514
https://github.com/RustPython/RustPython/blob/be4a3f3299e2d66015b6254625ec4d654a69e64d/Lib/_sitebuiltins.py
sys.stdin = sys.stdin = getattr(sys, 'stdin', False) or os.fdopen(0, "r")
sys.stdout = sys.stdout = getattr(sys, 'stdout', False) or os.fdopen(1, "w")
sys.stderr = sys.stderr = getattr(sys, 'stderr', False) or os.fdopen(2, "w")

但是再次运行时,这个问题又消失了

@QGB
Copy link
Owner Author

QGB commented Nov 8, 2019

dict_add_value_list=dict_set_value_list=setDictList

@QGB
Copy link
Owner Author

QGB commented Nov 18, 2019

U.sort
key
数字 返回
字符串,(可以根据reverse 改变正负) i32_max (或者前面9个9 ) + 各个字符 代表的数字 连起来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant