Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Allison Parrish (aparrish@mastodon.social)'s status on Saturday, 20-Jan-2018 18:19:50 EST Allison Parrish Allison Parrish

    the only thing I really dislike about python is the lack of block-level scope. it's a bummer that you can (e.g.) accidentally wipe out a variable that happens to have the same name as your for-loop temp variable

    (weirdly this makes python uniquely unsuited to jupyter notebook-style interfaces, where you can execute cells out-of-order and end up inadvertently wiping out all kinds of things. tbh if each jupyter cell had its own scope, I'd probably spend 50% less time puzzling over weird errors)

    In conversation Saturday, 20-Jan-2018 18:19:50 EST from mastodon.social permalink
    1. Hattie Cat (hattiecat@quitter.no)'s status on Sunday, 21-Jan-2018 03:56:50 EST Hattie Cat Hattie Cat
      in reply to
      @aparrish This is a colossal PITA and with python I try to limit scope with functions (esp. in Jupyter) and/or treat variables as immutable outside of list comprehension etc.
      In conversation Sunday, 21-Jan-2018 03:56:50 EST from quitter.no permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.