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 — Outdated info about encoding in "datetime" · Issue #99032 · python/cpython

Outdated info about encoding in "datetime" #99032

New issue
Copy link
New issue
Copy link
Closed
Closed
Outdated info about encoding in "datetime"#99032
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@wjandrea
wjandrea
opened on Nov 2, 2022
Issue body actions

In the datetime docs, there's a Technical Detail note that seems to say that strftime() will return an encoded string (i.e. bytes), but actually it returns a Unicode string as of Python 3.0 (i.e. str).

  1. Because the format depends on the current locale, care should be taken when making assumptions about the output value. Field orderings will vary (for example, “month/day/year” versus “day/month/year”), and the output may contain Unicode characters encoded using the locale’s default encoding (for example, if the current locale is ja_JP, the default encoding could be any one of eucJP, SJIS, or utf-8; use locale.getlocale() to determine the current locale’s encoding).

(I jumped the gun by submitting a PR for this (#93365) before an issue.)

  • PR: gh-99032: datetime docs: Encoding is no longer relevant #93365
  • PR: [3.11] gh-99032: datetime docs: Encoding is no longer relevant (GH-93365) #103788

Activity

  1. wjandrea
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Nov 2, 2022
  2. AlexWaygood
    added this to Date and time issues 🕰️on Nov 3, 2022
  3. pganssle
    added a commit that references this issue on Apr 24, 2023

    gh-99032: datetime docs: Encoding is no longer relevant (#93365)

    2aa22f7
  4. miss-islington
    added a commit that references this issue on Apr 24, 2023

    pythongh-99032: datetime docs: Encoding is no longer relevant (python…

    50c797a
  5. carljm
    added 2 commits that reference this issue on Apr 24, 2023

    Merge branch 'main' into superopt

    19b8025

    Merge branch 'superopt' into superopt_spec

    1972ca4
  6. JelleZijlstra
    added a commit that references this issue on Apr 29, 2023

    [3.11] gh-99032: datetime docs: Encoding is no longer relevant (GH-93365

    9fbb614
  7. JelleZijlstra commented on Apr 29, 2023

    @JelleZijlstra
    JelleZijlstra
    on Apr 29, 2023
    Member
    More actions

    All PRs merged, thank you!

    Reacted by William Andrea
  8. JelleZijlstra
    closed this as completedon Apr 29, 2023
  9. github-project-automation
    moved this to Done in Date and time issues 🕰️on Apr 29, 2023
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

    • Date and time issues 🕰️
      Status
      Done
      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.