Comments (1)
Added unicode system info to test schedule (rightly so).
[*] Need to look into which encoding Pyshp uses.
But unicode already works already , as GH and Iron Python is based on .Net, and python str types (and unicode types) in Iron Python are implemented as System.String, which encodes as UTF-16.
https://docs.microsoft.com/en-us/dotnet/api/system.string?view=netframework-4.8 (still true in .Net 6)
IronPython 2.7:
import System
assert unicode is System.String is str
unicode is not str in Python 2.7 and there is no unicode type in Python 3 (it was unified with str natively)
Mapping between Python builtin types and .NET types
IronPython is an implementation of the Python language on top of .NET. As such, IronPython uses various .NET types to implement Python types. Usually, you do not have to think about this. However, you may sometimes have to know about it.
Python type .NET type
object System.Object
int System.Int32
long System.Numeric.BigInteger [13]
float System.Double
str, unicode System.String
bool System.Boolean
https://ironpython.net/documentation/dotnet/
IronPython is an implementation of the Python language on top of .NET. As such, IronPython uses various .NET types to implement Python types. Usually, you do not have to think about this. However, you may sometimes have to know about it.
Python type .NET type
object System.Object
int System.Int32
long System.Numeric.BigInteger [13]
float System.Double
str, unicode System.String
bool System.Boolean
from sdna_gh.
Related Issues (20)
- Read_Shp needs to read in Shapefiles of Polygons HOT 1
- sDNA Hulls needs to get Read_Shp to deal with its output shape file contains Polygons? HOT 1
- sDNA Network radii returns a shapefile of multiple polylines per data record HOT 1
- Double check console logging level & dynamic update change HOT 3
- Do not overwrite options whose names are all in CAPS plus _
- Search sub folders of Python 2.7 folders for a python.exe HOT 1
- Metas has been set to DEFAULT_NAME_MAP HOT 1
- food4rhino.com renamed the upload from sDNA_GH.zip to sdnagh.zip, breaking the Python package import.
- Write_Shp writes 3D Grasshopper Polylines as 2D Polylinez in shapefiles HOT 1
- Some polylines in GIS Shapefiles are unaddable by rhinoscriptsyntax.AddPolyline
- Read_Shp throws an error if field (by default BtEn) is not in a shapefile with other data fields HOT 1
- Look into writing zero length polylines in Write_Shp. HOT 1
- Order of fields from Read Shp can be different to their order in Data. HOT 2
- Fields named "Layer" and "Path" in shp files from QGIS mess up import of other .dbf data by Read_Shp HOT 1
- Components can glitch and not update their options from Grasshopper input params. HOT 1
- Feature: Make Python 3 transition consistent. PythonOptions.python_paths prioritised 2.7 & error messages and comments still recommend Python 2.7
- Will not fix. Error in Rhino 8.4 on first placement of an sDNA_Integral component HOT 1
- Rhino 8 bug. Error on first running of sDNA_Integral in Rhino 8.5 HOT 2
- Bug fix. Error when Recolour_objects must call Parse_Data
- Rhino 8. ghdoc.py doesn't work in CPython 3 components.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdna_gh.