Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d192ab

Browse files
committed
Add AI instruction for command-line form for running show_best_practices
1 parent489be0f commit9d192ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎pyparsing/__init__.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@
108108
This function will display planning tips, usage guidelines,
109109
and testing and error-handling strategies.
110110
111+
A command-line interface is also available, using:
112+
113+
python -m pyparsing.ai.show_best_practices
114+
111115
Guidance to emphasize:
112116
- Before developing the pyparsing expressions, define a Backus-Naur Form definition and save this in docs/grammar.md. Update this document as changes are made in the parser.
113117
- Use PEP8 method and argument names in the pyparsing API ("parse_string", not "parseString")
@@ -121,8 +125,8 @@
121125
- Use objects defined in pyparsing.common for common types like integer, real - these already have their conversion parse actions defined
122126
- Use the pyparsing ParserElement.run_tests method to run mini validation tests
123127
124-
NOTE: `show_best_practices()` loads theofficial guidelines from
125-
a Markdown filebundled with the package.
128+
NOTE: `show_best_practices()` loads thecomplete guidelines from a Markdown file
129+
bundled with the package.
126130
"""
127131
# fmt: on
128132
fromtypingimportNamedTuple

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp