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 — classes odds and ends could mention dataclasses · Issue #99908 · python/cpython

classes odds and ends could mention dataclasses #99908

New issue
Copy link
New issue
Copy link
Closed
Closed
classes odds and ends could mention dataclasses#99908
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@gpshead
gpshead
opened on Nov 30, 2022
Issue body actions

Documentation

https://docs.python.org/3/tutorial/classes.html#odds-and-ends

"Sometimes it is useful to have a data type similar to the Pascal “record” or C “struct”, bundling together a few named data items. An empty class definition will do nicely:"

This does not mention dataclasses but the use case it covers makes sense for that. Should the tutorial go there?

Linked PRs

  • gh-99908 Update class documentation to use a modernized example #100433
  • gh-99908 Update 'odds and ends' class documentation #100498
  • gh-99908: Tutorial: Modernize the 'data-record class' example #100499
  • [3.10] gh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499) #100500
  • [3.11] gh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499) #100501

Activity

  1. gpshead
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Nov 30, 2022
  2. ramvikrams commented on Nov 30, 2022

    @ramvikrams
    ramvikrams
    on Nov 30, 2022
    Contributor
    More actions

    i'll do that, but all you wan't is the updation of the example given there

  3. JosephSBoyle
    added 6 commits that reference this issue on Dec 22, 2022

    pythongh-99908 Update class documentation to use a modernized example

    278affa

    pythongh-99908 Update class documentation to use a modernized example

    b02d708

    pythongh-99908 Update class documentation to use a modernized example

    299ecee

    pythongh-99908 Update class documentation to use a modernized example

    90efea3

    pythongh-99908 Update class documentation to use a modernized example

    87dd7b9

    pythongh-99908 Update class documentation to use a modernized example

    de102b1
  4. AlexWaygood
    added a commit that references this issue on Dec 24, 2022

    gh-99908: Tutorial: Modernize the 'data-record class' example (#100499)

    00afa50
  5. miss-islington
    added 4 commits that reference this issue on Dec 24, 2022

    pythongh-99908: Tutorial: Modernize the 'data-record class' example (p…

    7241de7

    pythongh-99908: Tutorial: Modernize the 'data-record class' example (p…

    f19a499

    gh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499

    a7eee89

    gh-99908: Tutorial: Modernize the 'data-record class' example (GH-100499

    3ea6f7f
  6. AlexWaygood commented on Dec 24, 2022

    @AlexWaygood
    AlexWaygood
    on Dec 24, 2022
    Member
    More actions

    Fixed on main, and backported to 3.11 and 3.10. Thanks @JosephSBoyle!

    Reacted by Dave
    Reacted by Dave
  7. AlexWaygood
    closed this as completedon Dec 24, 2022
  8. iritkatriel
    added a commit that references this issue on Dec 28, 2022

    Merged main into regmachine branch (#50)

    fdc73cb
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 dir

    Projects

    No projects

      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.