Skip to content

docs: use Python 3 types in serialization and checked-set examples - #333

Open
Likio3000 wants to merge 1 commit into
tobgu:masterfrom
Likio3000:docs/use-python3-types-in-readme-examples-20260923
Open

Likio3000 wants to merge 1 commit into
tobgu:masterfrom
Likio3000:docs/use-python3-types-in-readme-examples-20260923

Conversation

@Likio3000

Copy link
Copy Markdown

The serialization and checked-collection examples still refer to Python 2's unicode and long builtins. On the documented Python 3 versions, those names raise NameError while defining Person and Positives.

Use str for the name field and int for the checked set, matching existing tests. Also update the string literal and illustrated serialized value to Python 3 notation. Only four README lines change.

Validation: inspected the field/type handling and corresponding declarations in the existing record and checked-set tests. Parsed the two README sections as Python AST without evaluating them and checked that the Python 2-only names are gone. No Pyrsistent import, examples, project tests or documentation build were run.

Prepared with assistance from OpenAI Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant