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

sys.getdefaultencoding() ;sys.stdout.encoding Not Implement #1583

Closed
QGB opened this issue Nov 6, 2019 · 1 comment
Closed

sys.getdefaultencoding() ;sys.stdout.encoding Not Implement #1583

QGB opened this issue Nov 6, 2019 · 1 comment
Labels
C-compat A discrepancy between RustPython and CPython

Comments

@QGB
Copy link

QGB commented Nov 6, 2019

#1514

Feature

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  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 9, in <module>
    gsdecode=decoding='utf-8';gsencode=gsencoding=encoding=stdout.encoding
AttributeError: 'TextIOWrapper' object has no attribute 'encoding'

Python Documentation

https://docs.python.org/3/library/sys.html#sys.getdefaultencoding

@QGB QGB added the C-compat A discrepancy between RustPython and CPython label Nov 6, 2019
@youknowone
Copy link
Member

TextIOWrapper now has encoding. please post reproducible code if the problem is not solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-compat A discrepancy between RustPython and CPython
Projects
None yet
Development

No branches or pull requests

2 participants