GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add examples for all Python features in doc · Issue #127489 · python/cpython

Add examples for all Python features in doc #127489

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Add examples for all Python features in doc#127489
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement

Description

@ArtemIsmagilov
ArtemIsmagilov
opened on Dec 1, 2024
Issue body actions

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.

Reacted by Tomas R.

Activity

  1. ArtemIsmagilov
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Dec 1, 2024
  2. tomasr8
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Dec 1, 2024
  3. github-project-automation
    added this to docs issueson Dec 1, 2024
  4. github-project-automation
    moved this to Todo in docs issueson Dec 1, 2024
  5. AA-Turner commented on Dec 1, 2024

    @AA-Turner
    AA-Turner
    on Dec 1, 2024
    Member
    More actions

    This is an existing goal, there exist preliminary efforts to start this with string methods. Closing as duplicate.

    A

  6. AA-Turner
    closed this as not plannedon Dec 1, 2024
  7. tomasr8 commented on Dec 1, 2024

    @tomasr8
    tomasr8
    on Dec 1, 2024
    Member
    More actions

    This is an existing goal, there exist preliminary efforts to start this with string methods. Closing as duplicate.

    A

    Is there an existing issue that we can link to?

  8. hugovk commented on Dec 1, 2024

    @hugovk
    hugovk
    on Dec 1, 2024
    Member
    More actions

    Yes, here's one: #119445

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.