33[ ![ appveyor shield] [ ]] ( https://ci.appveyor.com/project/pythonnet/pythonnet/branch/master )
44[ ![ travis shield] [ ]] ( https://travis-ci.org/pythonnet/pythonnet )
55[ ![ codecov shield] [ ]] ( https://codecov.io/github/pythonnet/pythonnet )
6+
67[ ![ license shield] [ ]] ( ./LICENSE )
78[ ![ pypi package version] [ ]] ( https://pypi.python.org/pypi/pythonnet )
89[ ![ python supported shield] [ ]] ( https://pypi.python.org/pypi/pythonnet )
@@ -37,14 +38,14 @@ from System.Windows.Forms import Form
3738## Embedding Python in .NET
3839
3940- All calls to python should be inside
40- a ` using (Py.GIL()) {/_ Your code here _ /} ` block.
41+ a ` using (Py.GIL()) {/* Your code here * /} ` block.
4142- Import python modules using ` dynamic mod = Py.Import("mod") ` ,
4243 then you can call functions as normal, eg ` mod.func(args) ` .
4344- Use ` mod.func(args, Py.kw("keywordargname", keywordargvalue)) `
4445 to apply keyword arguments.
4546- All python objects should be declared as ` dynamic ` type.
4647- Mathematical operations involving python and literal/managed types must
47- have the python object first, eg ` np.pi_2 ` works, ` 2_np.pi ` doesn't.
48+ have the python object first, eg. ` np.pi_2 ` works, ` 2_np.pi ` doesn't.
4849
4950### Example
5051
@@ -59,7 +60,7 @@ static void Main(string[] args)
5960 Console .WriteLine (sin (5 ));
6061 double c = np .cos (5 ) + sin (5 );
6162 Console .WriteLine (c );
62- /* this block is temporarily disabled due to regression
63+ /* this block is temporarily disabled due to regression #249
6364 dynamic a = np.array(new List<float> { 1, 2, 3 });
6465 dynamic b = np.array(new List<float> { 6, 5, 4 }, Py.kw("dtype", np.int32));
6566 Console.WriteLine(a.dtype);
8384
8485[ appveyor shield ] : https://img.shields.io/appveyor/ci/pythonnet/pythonnet/master.svg?label=AppVeyor
8586
86- [ codecov shield ] : https://img.shields.io/codecov/c/github/pythonnet/pythonnet/master.svg?label=codecov
87+ [ codecov shield ] : https://img.shields.io/codecov/c/github/pythonnet/pythonnet/master.svg?label=Codecov
8788
8889[ license shield ] : https://img.shields.io/badge/license-MIT-blue.svg?maxAge=3600
8990
0 commit comments