User Tools

Site Tools


reading_journal_2022

This is an old revision of the document!


2022-02

2022-02-xx

2022-01

2022-01-31

2022-01-27

    • Use
      def process_data(data, /, *, encoding="ascii"):

      instead of

      def process_data(data, encoding="ascii"):

    • A / in the function signature means that all parameters to the left of it are positional-only parameters. Positional-only parameters can't be passed as keyword arguments.
    • A * in the function signature means that all parameters to the right of it are keyword-only parameter. Keyword-only parameters can't be passed as positional arguments.
    • The article goes over this in more detail and is worth reading once end-to-end.

Policy

  • Most recent first.
  • Each year in its own page.
  • Separate sections by month and date.
  • If an individual entry takes more than a line, add an extra line for readability.
reading_journal_2022.1643644721.txt.gz · Last modified: 2022/01/31 15:58 by raju