jlai.lu
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
unlawfulbooger@lemmy.blahaj.zone to Programmer Humor@lemmy.ml · il y a 2 ans

On this deserted island I could use some help()

lemmy.blahaj.zone

message-square
31
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
1.17K

On this deserted island I could use some help()

lemmy.blahaj.zone

unlawfulbooger@lemmy.blahaj.zone to Programmer Humor@lemmy.ml · il y a 2 ans
message-square
31
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • Bronco1676@lemmy.ml
    link
    fedilink
    arrow-up
    17
    ·
    il y a 2 ans

    If you have a variable called exit you’ve overwritten the function in that scope, and won’t be able to execute it.

    e.g.

    >>> exit=1
    >>> exit()
    Traceback (most recent call last):
      File "", line 1, in 
    TypeError: 'int' object is not callable
    >>>
    
    • EmergMemeHologram@startrek.website
      link
      fedilink
      arrow-up
      17
      ·
      il y a 2 ans

      Reminds me of setting pi = 3 in my friends matlab subroutines in school.

    • peopleproblems@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      il y a 2 ans

      wow it does do that. cool

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 327 users / week
  • 1.98K users / month
  • 6.83K users / 6 months
  • 127 local subscribers
  • 40.1K subscribers
  • 1.93K Posts
  • 39.3K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org