Skip to content

Add examples for all Python features in doc #127489

Closed as not planned
Closed as not planned
@ArtemIsmagilov

Description

@ArtemIsmagilov

Feature or enhancement

Proposal:

Doc text about id func
...
Example

 id("string")
>>>46764578

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

In Rust, all std features have one or more examples.

Please, add in doc 1, 2 examples with code. It's need for simple visualisation, demonstrating features.

hex func have examples, its cool!
https://docs.python.org/3/library/functions.html#hex

But, id func haven't example
https://docs.python.org/3/library/functions.html#id

I think that in general everything that is in Python in the documentation should be with at least one example of how to apply it. Let's take an example from Rust!

This is a big problem, because it is not clear how to apply the language features and in what situation. a small example will give me an idea of how the correct application of features looks like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirtype-featureA feature request or enhancement

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions