mcc,
@mcc@mastodon.social avatar

Legitimately impressed Python is able to display this kind of error message in an interpreted language with no type system in use

a13cui,
@a13cui@emacs.ch avatar

@mcc maybe no type systems you can see
there's the typing module so you can definitely do statically-typed Python

mcc,
@mcc@mastodon.social avatar

@a13cui the type system is not in use in the sense that I am not using it in the program being run in the screenshot.

a13cui,
@a13cui@emacs.ch avatar

@mcc but python has to have some times to be able to figure out that you actually meant self.row
my theory is that it checked the arguments of your function, it saw an unidentified token "row" and did reflection to check if it's either undefined or if it is a property of one of your arguments (which is a pretty smart way to do it if that's what's going on)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines