Skip to content
Unknown's avatar

Daniel Velasco (notes?)

  • Inicio

Tag: Python

jinja filters

Great link https://ttl255.com/jinja2-tutorial-part-4-template-filters/amp/.

dvelben Uncategorized Leave a comment March 1, 2023March 1, 2023 1 Minute

Mutable types as function parameter default value

… each default value is evaluated when the function is defined—i.e., usually when the module is loaded—and the default values become attributes of the function object. So if a default value is a mutable object, and you change it, the change will affect every future call of the function.

Fluent Python, 2nd Edition, Luciano Ramalho
dvelben Uncategorized Leave a comment July 27, 2022 1 Minute
Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy.

Accept
365
  • Subscribe Subscribed
    • Daniel Velasco (notes?)
    • Already have a WordPress.com account? Log in now.
    • Daniel Velasco (notes?)
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar