CPython's REPL prints possible autocompletions after pressing Tab once

オープン
#2,529 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, rust
領域
cli

調査の方向性

RustPython の REPL で single-Tab の例を再現し、示されている CPython の挙動と比較する。REPL のオートコンプリートのエントリポイントを追跡する。完了条件は、issue に記載された期待される補完、候補表示、モジュール名の出力、関数の括弧の挙動に一致すること。

索引モデルが issue の本文から書いたものです。

説明

Type in the following in the REPL and press Tab once:

import contextlib
contextlib.redirect

CPython:

>>> import contextlib
>>> contextlib.redirect
contextlib.redirect_stderr(  contextlib.redirect_stdout(  
>>> contextlib.redirect_std

RustPython:

>>>>> import contextlib
>>>>> contextlib.redirect_std

it completes up to the first ambiguity, but doesn't print any suggestions unless you press Tab twice:

>>>>> import contextlib
>>>>> contextlib.redirect_std
redirect_stderr  redirect_stdout
>>>>> contextlib.redirect_std

and I guess you can see the other minor incompatibilities: it doesn't print the name of the module in the results or autocomplete a ( for functions.

主要言語
Rust
スター
22.4k
フォーク
1.5k
平均マージ
15時間 18分
マージ済み PR(30日)
172

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RustPython/RustPython のほかの issue

RustPython/RustPython の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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