-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Debug method #2
Debug method #2
Conversation
buildconfig/stubs/pygame/_debug.pyi
Outdated
|
||
def str_from_tuple(version_tuple: Union[Tuple[int, int, int], None]) -> str: ... | ||
def attempt_import(module: str, function_name: str, output_str: str="") -> ImportResult: ... | ||
def print_debug_info(filename: Optional[str] = None) -> None: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you need a new line on the end of this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output still looks good over here:
Platform: Windows-10-10.0.22621-SP0
System: Windows
System Version: 10.0.22621
Processor: AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD
Architecture: Bits: 64bit Linkage: WindowsPE
Python: CPython
pygame version: 2.1.4.dev1
python version: 3.11.1
SDL versions: Linked: 2.0.22 Compiled: 2.0.22
SDL Mixer versions: Linked: 2.6.2 Compiled: 2.6.2
SDL Font versions: Linked: 2.20.1 Compiled: 2.20.1
SDL Image versions: Linked: 2.0.5 Compiled: 2.0.5
Freetype versions: Linked: 2.11.1 Compiled: 2.11.1
Huh, I can't re-open this one to trigger the CI for some reason. |
@oddbookworm maybe you can re-open it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be functional, I get all the debug info, so that's great. 👍
Mainly would be great if you could add docstrings as seemingly most functions in src_py
have them, so for consistency, they should be added here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from a tiny formatting issue which apparently hasn't been picked up by the formatter, there are also docstrings to be added to those functions because existing modules have them.
… to pygame.print_debug_info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice feature 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
current output:
Platform: Windows-10-10.0.22621-SP0
System: Windows
System Version: 10.0.22621
Processor: AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD
Architecture: Bits: 64bit Linkage: WindowsPE
Driver: windows
Python: CPython
pygame version: 2.1.4.dev1
python version: 3.11.1
SDL versions: Linked: 2.0.22 Compiled: 2.0.22
SDL Mixer versions: Linked: 2.6.2 Compiled: 2.6.2
SDL Font versions: Linked: 2.20.1 Compiled: 2.20.1
SDL Image versions: Linked: 2.0.5 Compiled: 2.0.5
Freetype versions: Linked: 2.11.1 Compiled: 2.11.1
Quick Fix pygame-community#2 Co-authored-by: dr0id <dr0id@bluewin.ch>
* Added spanish translation to README * A quick fix * Fixed formatting * Update docs/readmes/README.es.rst Punctuation Co-authored-by: dr0id <dr0id@bluewin.ch> * Update docs/readmes/README.es.rst Quick Fix #1 Co-authored-by: dr0id <dr0id@bluewin.ch> * Update docs/readmes/README.es.rst Quick Fix #2 Co-authored-by: dr0id <dr0id@bluewin.ch> * Update docs/readmes/README.es.rst Another quick fix Co-authored-by: dr0id <dr0id@bluewin.ch> * Some fixes & improvements * Removed unused docs * Removed more unused docs * Added back a tiny detail --------- Co-authored-by: dr0id <dr0id@bluewin.ch>
port of pygame/pygame#3374