Re: proposal for slice hashing
On 5/11/2020 3:58 PM, Will Bradshaw wrote: I recently ran into a situation where I needed to hash a slice and found this to be unsupported. Slice objects, as opposed to slices of objects, have no explicit use in Python itself. They were added for use by "NumericalPython and other 3rd party extensions". https://docs.python.org/3/library/functions.html#slice They have the functionality needed for that use. If this does not meet your needs, don't use them. Slice objects are similar to named tuples in having a fixed number of immutable fields accessed by name. https://docs.python.org/3/glossary.html#term-named-tuple They were added before collections.namedtuple but if added today *for general use*, probably would be nametuples, with hashing and anything that comes from subclassing tuple. So either use the namedtuple factory or roll your own to make something that works for you. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
Re: Help Problem with python : python-3.8.3rc1-amd64
On 5/11/2020 11:34 PM, Michael Torrie wrote: On 5/11/20 9:25 PM, Michael Torrie wrote: On 5/11/20 8:33 PM, Buddy Peacock wrote: I am trying to install python on my surface with windows 10, version 1903, build 18362.778. The installer seems to think everything worked. But there is no Python folder anywhere on the system. I looked in the root directory as well as "Program Files" and "Program Files (x86)" and not in any users folders either. I have uninstalled and re-installed twice. Once after shutting down and restarting. Your help would be appreciated as I am taking an on-line programming class. Unless you specifically selected "install for all users" it's probably going to be installed to your home directory under the hidden folder "AppData," specially "AppData\Local\Programs\Python." Be sure to tell In particular, C:\Users\Yourname\AppDate the installer to put python in your path--that way no matter where it is, from the command prompt you can just run "python" and it will fire up the interpreter. Additionally, "Idle" (the integrated development environment) will probably be in your start menu. There should also be a plain python icon in the Python3.8 group. In any case, >>> import sys; sys.executable will give the path to the current python.exe. Hmm, actually I think the AppData install path is if you install from the Microsoft Store, which you could try. That is the default for the python.org installer. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
Cartopy error
Hi, Please, what can I do to solve this error: import cartopy, cartopy.crs as ccrs # Plot maps File "/home/conrado/anaconda3/envs/myenv/lib/python3.8/site-packages/cartopy/__init__.py", line 96, in import cartopy.crs File "/home/conrado/anaconda3/envs/myenv/lib/python3.8/site-packages/cartopy/crs.py", line 36, in from cartopy._crs import (CRS, Geodetic, Globe, PROJ4_VERSION, ImportError: libproj.so.19: cannot open shared object file: No such file or directory Thank you, Conrado -- https://mail.python.org/mailman/listinfo/python-list
Re: Cartopy error
On Tue, May 12, 2020 at 12:13 PM J Conrado wrote: > > > > Hi, > > > Please, what can I do to solve this error: > > > import cartopy, cartopy.crs as ccrs # Plot maps # check your spelling. Did you mean cartopy.ccrs? >File > "/home/conrado/anaconda3/envs/myenv/lib/python3.8/site-packages/cartopy/__init__.py", > line 96, in > import cartopy.crs >File > "/home/conrado/anaconda3/envs/myenv/lib/python3.8/site-packages/cartopy/crs.py", > line 36, in > from cartopy._crs import (CRS, Geodetic, Globe, PROJ4_VERSION, > ImportError: libproj.so.19: cannot open shared object file: No such file > or directory > > > Thank you, > > > Conrado > > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays -- https://mail.python.org/mailman/listinfo/python-list