John,

I know of the argument against import * and it will be replaced by a list
of explicit name when the dust has settled. For now, I fugure things might
be in flux and easier to not have to worry about that detail while still in
development.

I wanted to point out the the ctypes names are only import in to the base
module. The are not visible to and do not clutter the root namespace. They
only clutter the jbase namespace and that seems reasonable to me at my
current minimal level of understadning python.

On Sat, Mar 3, 2018 at 5:07 PM, John Baker <[email protected]> wrote:

> For the last month I have been slowly putting together a Python system to
> extract metadata (mostly my long picture captions) from my online pictures
> and store them in local TAB delimited CSV files.
>
> These links summarize these adventures:
>
> https://nbviewer.jupyter.org/github/bakerjd99/smugpyter/
> blob/master/notebooks/Setting%20SmugMug%20Print%20Size%
> 20Keywords%20with%20Jupyter%20and%20Python.ipynb
>
> https://conceptcontrol.smugmug.com/
>
> I've been using Jupyter and Python3 in the Anaconda environment mostly
> because of Python's superb REST API requests library.  Anything that has
> been downloaded voluntarily millions of times is probably fairly decent.
>
> So when Eric released his python3 addon I thought. I will to try this.
>
> I am happy to report that it works.  Once you make jbase.py and jcore.py
> visible to Python3  and edit the usual paths to find J it comes up. I am
> using a Win64 system.
>
> I would suggest not using the from ctypes import * directive. This drags
> all of ctypes into the root Python namespace.  It's like dumping J's z
> locale into base. It would be safer and more robust to use namespace
> qualified references, e.g. ctypes.c_void_p
>
> This looks like it will be great little addon.
>
> Cheers
>
>
> --
> John D. Baker
> [email protected]
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to