Almenon / Almenon/AREPL-vscode

#$save macro does not work in many cases

オープン
#53 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug help wanted
主要言語
TypeScript
スター
301
フォーク
46
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently I use deepcopy to save the state: https://docs.python.org/3.6/library/copy.html#copy.deepcopy

This means the types must be serializable by deepcopy, which unfortunately has some major limitations:

* Deepcopy cannot handle the following types:
> "This module does not copy types like module, method, stack trace, stack frame, file, socket, window, array, or any similar types"

* Imports are not saved (although you can still use imports in the saved section, the import will just happen twice)

* Conditional imports and imports in functions may not work

* File I/O does not work (TextIOWrapper is not serializable)

Please comment below if you run into any issues with #$save

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。