| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4020a0c commit a041811
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,8 @@ This document follows the conventions laid out in [Keep a CHANGELOG][]. | |||
| 13 | 13 | ||
| 14 | 14 | ### Fixed | |
| 15 | 15 | ||
| 16 | - - Fixed error occuring when inheriting a class containing a virtual generic method. | ||
| 16 | + - Fixed error occuring when inheriting a class containing a virtual generic method. | ||
| 17 | + - Make a second call to `pythonnet.load` a no-op, as it was intended. | ||
| 17 | 18 | ||
| 18 | 19 | ## [3.0.1](https://github.com/pythonnet/pythonnet/releases/tag/v3.0.1) - 2022-11-03 | |
| 19 | 20 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -120,7 +120,9 @@ def load(runtime: Union[clr_loader.Runtime, str, None] = None, **params: str) -> | |||
| 120 | 120 | ||
| 121 | 121 | The same parameters as for `set_runtime` can be used. By default, | |
| 122 | 122 | `set_default_runtime` is called if no environment has been set yet and no | |
| 123 | - parameters are passed.""" | ||
| 123 | + parameters are passed. | ||
| 124 | + | ||
| 125 | + After a successful call, further invocations will return immediately.""" | ||
| 124 | 126 | global _LOADED, _LOADER_ASSEMBLY | |
| 125 | 127 | ||
| 126 | 128 | if _LOADED: | |
@@ -142,6 +144,8 @@ def load(runtime: Union[clr_loader.Runtime, str, None] = None, **params: str) -> | |||
| 142 | 144 | ||
| 143 | 145 | if func(b"") != 0: | |
| 144 | 146 | raise RuntimeError("Failed to initialize Python.Runtime.dll") | |
| 147 | + | ||
| 148 | + _LOADED = True | ||
| 145 | 149 | ||
| 146 | 150 | import atexit | |
| 147 | 151 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments