Skip to content

Commit 08c2d64

Browse files
denfromufavmuriart
authored andcommitted
StackOverflow/Slack shields (#384)
Add StackExchange and Slack shields 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 parent 1bd8636 commit 08c2d64

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
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)
10+
[![stackexchange shield][]](http://stackoverflow.com/questions/tagged/python.net)
11+
[![slack][]](https://pythonnet.slack.com)
912

1013
Python for .NET is a package that gives Python programmers nearly
1114
seamless integration with the .NET Common Language Runtime (CLR) and
@@ -35,14 +38,14 @@ from System.Windows.Forms import Form
3538
## Embedding Python in .NET
3639

3740
- All calls to python should be inside
38-
a `using (Py.GIL()) {/_ Your code here _/}` block.
41+
a `using (Py.GIL()) {/* Your code here */}` block.
3942
- Import python modules using `dynamic mod = Py.Import("mod")`,
4043
then you can call functions as normal, eg `mod.func(args)`.
4144
- Use `mod.func(args, Py.kw("keywordargname", keywordargvalue))`
4245
to apply keyword arguments.
4346
- All python objects should be declared as `dynamic` type.
4447
- Mathematical operations involving python and literal/managed types must
45-
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.
4649

4750
### Example
4851

@@ -57,7 +60,7 @@ static void Main(string[] args)
5760
Console.WriteLine(sin(5));
5861
double c = np.cos(5) + sin(5);
5962
Console.WriteLine(c);
60-
/* this block is temporarily disabled due to regression
63+
/* this block is temporarily disabled due to regression #249
6164
dynamic a = np.array(new List<float> { 1, 2, 3 });
6265
dynamic b = np.array(new List<float> { 6, 5, 4 }, Py.kw("dtype", np.int32));
6366
Console.WriteLine(a.dtype);
@@ -81,12 +84,16 @@ int32
8184

8285
[appveyor shield]: https://img.shields.io/appveyor/ci/pythonnet/pythonnet/master.svg?label=AppVeyor
8386

84-
[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
8588

8689
[license shield]: https://img.shields.io/badge/license-MIT-blue.svg?maxAge=3600
8790

8891
[pypi package version]: https://img.shields.io/pypi/v/pythonnet.svg
8992

9093
[python supported shield]: https://img.shields.io/pypi/pyversions/pythonnet.svg
9194

95+
[slack]: https://img.shields.io/badge/chat-slack-color.svg?style=social
96+
97+
[stackexchange shield]: https://img.shields.io/badge/StackOverflow-python.net-blue.svg
98+
9299
[travis shield]: https://img.shields.io/travis/pythonnet/pythonnet/master.svg?label=Travis

0 commit comments

Comments
 (0)