-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc strings are not Utf8 encoded #84
Comments
Hello @pyscripter, are you still facing this issue? |
It is present in 1.0.5 |
Can you explain where to modify it and how to modify it? I want to try to modify it myself. : ) |
In version 1.05 the culprit is Screen.Realign Run the following script: from delphivcl import Screen
print(Screen.Realign.__doc__) Output:
Workaround for PyScripter: from delphivcl import *
del(Screen) |
It works fine, thank you very much! |
Now I can debug delphivcl using debug function normally. |
In WrapVclForms.pas in P4D, remove the quotes in the doc string PythonType.AddMethod('Realign', @TPyDelphiScreen.Realign_Wrapper, You solved a problem that has been bothering me for a long time, thank you and the delphivcl4python team very much! |
Already fixed in PyScripter/python4delphi. |
The doc strings are not utf8 encoded as python expects them to be and this causes issues when doing introspection.
For example this causes pyscripter/pyscripter#1288.
Please make sure that all doc strings are utf8 encoded.
The text was updated successfully, but these errors were encountered: