Difference between C# ToString and python __str__ for lists
- 主要言語
- C#
- スター
- 0
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In python, if you have a list and you convert it to string via `str(my_list)`, it will print out the entire list.
With C#, calling `.ToString()` on either an array or a List object will just print out that it is a list.
This leads to a difference in behavior between APIs exposed via CPython and APIs exposed by IronPython. With IronPython, a python list is internally a C# List, but it's `__str__` method matches the behavior of a python list.
There should be an option in ansys-pythonnet to provide pythonic string conversions for C# collections.
コントリビューションガイド
調査の方向性
この issue は、C# の配列と List オブジェクトを Python に公開する際の ansys-pythonnet による変換に関するものです。ファイル、テスト、エントリーポイントは指定されていません。まずコレクションの文字列変換パスを見つけ、CPython のリストの動作と IronPython の __str__ を比較してください。明示的なオプションによって、配列と List オブジェクトの両方で要求された Python 形式の出力が生成され、デフォルトの動作が変更されなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, python
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100