Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [RFC] zsh/zpython module



 >   > On Wed, 23 Jan 2013 21:20:46 +0300 (FET)
>> zyx@xxxxx wrote:
>>> Wondering if I write zsh/zpython module will it be included?
>>
>> If it's compact enough, we could include it, probably turned off by
>> default to avoid inflicting configuration problems on people who don't
>> need it.
>>
>> I think the key things it would need would be a way of accessing shell
>> variables, including special variables, and a way of calling shell
>> functions and builtins.  None of those should be particularly difficult.
>
> MInimal working version is here:
> https://bitbucket.org/ZyX_I/zsh/src/zpython (branch zpython) (supports
> only zpython built-in and zsh.eval() in zsh module). Wondering whether
> there exists a list of API functions I can use in my module. I failed to
> figure out how to get variable values alongside with their type. Did not
> try functions and builtins.

I guess I need getvalue[1] and the same switch as here[2] to get parameter with its type. Am I right that I have to use only functions that are prefixed with “mod_export”?

[1]: https://bitbucket.org/ZyX_I/zsh.git/src/8c95eaf152e222beb5538d77fd9b12b445956b7a/Src/params.c#cl-1816
[2]: https://bitbucket.org/ZyX_I/zsh.git/src/8c95eaf152e222beb5538d77fd9b12b445956b7a/Src/params.c#cl-1956



Messages sorted by: Reverse Date, Date, Thread, Author