Skip to content

Update python docs#576

Merged
diksipav merged 1 commit intomasterfrom
fix-docs
Feb 7, 2025
Merged

Update python docs#576
diksipav merged 1 commit intomasterfrom
fix-docs

Conversation

@diksipav
Copy link

@diksipav diksipav commented Feb 5, 2025

No description provided.

database='my_service',
user='my_service')
# Configure service routes
app.router.add_route('GET', '/user/{name:\w+}', handle)
Copy link
Author

@diksipav diksipav Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python interprets \w as an escape sequence, so I removed this regex part
but ofc, can also use the raw string or escape the backslash \\w+

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I think your change makes sense and feels idiomatic.

@diksipav diksipav requested a review from scotttrinh February 5, 2025 15:38
database='my_service',
user='my_service')
# Configure service routes
app.router.add_route('GET', '/user/{name:\w+}', handle)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I think your change makes sense and feels idiomatic.

@diksipav diksipav merged commit d0eec6c into master Feb 7, 2025
62 checks passed
@diksipav diksipav deleted the fix-docs branch February 7, 2025 14:24
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.

2 participants