Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0bfaa6

Browse files
committed
Clean README.md
Shields got too long for a single line, had to break them up into two lines.One for build/quality status, the other for social/info.Add regression number to disabled code.
1 parent6076cdd commitc0bfaa6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
doublec=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);
@@ -83,7 +84,7 @@ int32
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

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp