GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing github.com — Use the BinaryFormatter only on .NET FW and Mono by filmor · Pull Request #2470 · pythonnet/pythonnet Conversation
|
| using var buf = new MemoryStream(); | ||
| var formatter = RuntimeData.CreateFormatter(); | ||
|
|
||
| if (formatter == null) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It might be a good idea to make the whole test class [Obsolete] to prevent warnings
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Well, for the time being, we still by default support this functionality on .NET FW and Mono. Which warning are you referring to?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Obsolete code warning that comes from using BinaryFormatter. You can see it on GitHub review page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
4ccde5b to
1c0afe6
Compare
|
Well, without the stashing, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
We could consider dropping the support for Shutdown/Initialize for .NET Core+. I don't know if there are any good scenarios for it. It is much safer to spawn a new process. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
958dd30 to
3cd685e
Compare
|
|
||
| private static void RestoreRuntimeDataImpl() | ||
| { | ||
| IFormatter? formatter = CreateFormatter(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think coming here should be an error.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/close |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
BinaryFormatter deprecation issue while using PythonEngine.Shutdown()
There was an error while loading. Please reload this page.