Why must priority go last?

BellaRossiOP

Stage 2 says to add it at the end of the parameter list.

10

Comments 4

Join the discussion

Already have an account? Log in

  1. NoahLoopsreplies: 2

    Existing calls pass arguments by position. If you insert priority in the middle, old calls would suddenly pass their timeout into priority. Adding new optional parameters at the end keeps every existing caller working.

    3
    1. MateoG

      Also: parameters with defaults must come after parameters without defaults, or Python raises a SyntaxError.

      6