JuliaPy / JuliaPy/PyCall.jl

@pydef not overloading method correctly

オープン
#470 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Julia
スター
1.5k
フォーク
186
PR マージ指標
30日以内にマージされた PR はありません

説明

The following code does not work.

```julia
@pydef type SDTExpression <: fenics.Expression
eval(self, value, x) = begin
value[1] = 1.0
return
end
end
```

The error it gives is as follows.
```
TypeError("expected an overload 'eval' or 'eval_cell' method",)
```

This makes no sense because I've defined one.

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reproducing the Julia snippet using the @pydef entry point and the fenics.Expression subclass shown in the issue. Trace how @pydef discovers eval and eval_cell overloads, then verify that the defined eval method is accepted without the reported TypeError.

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

評価

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

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

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