JuliaPy / JuliaPy/PythonCall.jl

[docs][PythonCall] document syntax for "from ... import ..."

Offen
#453 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.1k
Forks
86
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
3

Beschreibung

It took me some digging through the issues to discover that the python import
```python
from x import f as g
```
can be translated in julia to
```julia
using PythonCall
@py import x: f as g
```
Can this be added to the PythonCall's guide in the documentation?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with the PythonCall guide in the documentation and find the section covering Python imports. Add the documented Julia syntax for translating “from ... import ...” with an alias, using the example from the issue; the guide should clearly show the equivalent Python and Julia forms.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, python
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
1/5
Geschätzter Aufwand
Unter einer Stunde
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.