Remove need for "nargout=0" in function calls

Aperta
#11 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
matlab, python

Direzione di ricerca

The issue names no files, tests, or entry points. Start by locating where the Python MATLAB engine handles nargout=0 and determine whether omitted outputs can return None without breaking script or function calls. Done means automatic handling, or a more helpful error message if that is not possible.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A big quality-of-life improvement in the matlab engine would be to automatically handle, somehow, the need to add "nargout=0" for every script command or function without a return value. The engine should be able to detect no outputs and simply return a None to Python, which will be ignored if the user doesn't set the output to a variable.

If somehow, this is not possible, at least please update the error message that is generated, it is not helpful at all. This is a major problem for new users just trying to get the basics working. Now that I'm past it, at least I usually know what the problem is, but it is still annoying to have to type in the argument every time, and to find and fix the ones where it was forgotten, since you normally don't need that argument.

This would be a huge streamlining of working with the matlab.engine. Thanks!

Lingua principale
Python
Stelle
97
Fork
13
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mathworks/matlab-engine-for-python

Tutte le issue di mathworks/matlab-engine-for-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.