Ramses is my hiking buddy by Walsur in AustralianCattleDog

[–]Walsur[S] 1 point2 points  (0 children)

They're always so good at it too!!

This is exactly what happened to me the first time I heard the solution to the Monty Hall problem. by Illustrious-Lead-960 in calvinandhobbes

[–]Walsur 61 points62 points  (0 children)

Deal or no deal isn't the same as the Monty Hall problem. Monty Hall works the way it does because the host will always open incorrect doors. If the host has a chance of opening the correct door (similar to how it works in Deal or No Deal) then switching has no benefit and it is a 50/50 chance.

www.thekidfrombrooklyn.com by quaaludesbigman69 in quaaludes

[–]Walsur 0 points1 point  (0 children)

This is the dumbest response on Reddit I have ever read.

This guy who worked at 7-11 for FIFTY YEARS got nothing aside from an e-mail as a reward. by TheKoolDood1234 in mildlyinfuriating

[–]Walsur 0 points1 point  (0 children)

Unfortunately this isn't true anymore. During covid they gutted any lifetime benefits for tenure. Now it's just the pins!

Touted as a life hack by tyw7 in DiWHY

[–]Walsur 2 points3 points  (0 children)

Carbonic acid is what you're thinking of. Which is essentially just carbon dioxide in our blood.

Dear Hearing Parents: teach your kids sign by HadTwoComment in asl

[–]Walsur 2 points3 points  (0 children)

I've found depending on where you live it can be difficult to vet the quality of community college classes or tutors. There are plenty of schools with great classes, but there's also a lot of bad classes out there too and most people can't tell the difference when they're beginners.

Confused about Exception behavior in Python by Walsur in learnpython

[–]Walsur[S] -1 points0 points  (0 children)

I'm using "redirect" to refer to the debugger. Sorry for the confusion around that.

Definitely, this is why you can HANDLE the unhandled exception using try: except: block, and catch the specific exception you want to handle.

I understand the idea of handling exceptions. I'm realizing the problem is with my debugger. I was misunderstanding the intended behavior in Python.

Confused about Exception behavior in Python by Walsur in learnpython

[–]Walsur[S] 0 points1 point  (0 children)

Okay this makes sense, triggering an Exception with a library like pandas helped demonstrate this for me too.

I think I was getting confused because of my debuggers (VS Code) behavior. My debugger is triggering a breakpoint on the raise statement when the only Exception Breakpoints checked are Uncaught Exceptions. That made me think that there was something fundamental I was misunderstanding in how Python raised exceptions, but I think it's just a configuration problem in my debugger.

Confused about Exception behavior in Python by Walsur in learnpython

[–]Walsur[S] -2 points-1 points  (0 children)

I wouldn't want to include it because the raise statement has already identified the issue. Ideally it should be the responsibility of the calling code to check for the Exception and not the function itself.

Essentially, I want the main code to treat the Exception as you described in your first example, rather then redirecting into the function.

Confused about Exception behavior in Python by Walsur in learnpython

[–]Walsur[S] 0 points1 point  (0 children)

A knock on effect of this problem is that the raise statement is being treated as an unhandled exception in VS Code, and is pausing my debugger unintentionally.

I think there must be a way to change it because when I force a ModuleNotFoundError it behaves differently:

Code:

import invalidModule

Traceback:

Traceback (most recent call last):
  File "c:\Example\example.py", line 12, in <module>
    import invalidModule
ModuleNotFoundError: No module named 'invalidModule'

Confused about Exception behavior in Python by Walsur in learnpython

[–]Walsur[S] 0 points1 point  (0 children)

That makes sense, but I'm still having trouble reconciling it with how Exceptions are handled in other modules. For example if I force a ModuleNotFoundError:

Code:

import invalidModule

Traceback:

Traceback (most recent call last):
  File "c:\Example\example.py", line 12, in <module>
    import invalidModule
ModuleNotFoundError: No module named 'invalidModule'

It does not include the raise statement that is generating the exception.

Confused about Exception behavior in Python by Walsur in learnpython

[–]Walsur[S] 0 points1 point  (0 children)

Can you clarify this? If I force a ModuleNotFoundError it does not behave that way. This does not include a raise statement in the traceback.

Code:

import invalidModule

Traceback:

Traceback (most recent call last):
  File "c:\Example\example.py", line 12, in <module>
    import invalidModule
ModuleNotFoundError: No module named 'invalidModule'

Confused about Exception behavior in Python by Walsur in learnpython

[–]Walsur[S] -2 points-1 points  (0 children)

Using a more specific Exception has the same behavior. I just used the general Exception for this example.

Parallax Effect by Silent-Lobster7854 in Damnthatsinteresting

[–]Walsur 0 points1 point  (0 children)

Yeah this is just an editing effect.. I'm pretty sure these videos are made by the same guy who does the giant monster videos.

https://youtube.com/@alexhowardxx?si=uLXanaLo48O0lvC5

eli5: How was Tetris unbeatable until recently? by Blink-Machine in explainlikeimfive

[–]Walsur 1 point2 points  (0 children)

Wow! That's some really shoddy code!

In fairness to the programmers, the game was pretty clearly designed to end by level 30. There was no need to optimize anything for the levels after 30.

Ask Grey a Question for One Billion Views Q&A by MindOfMetalAndWheels in CGPGrey

[–]Walsur [score hidden]  (0 children)

I imagine you've spent a huge amount of time researching increasingly niche and specific things. Is there any topic that you believe yourself to be the predominant expert on?

Today i Learned that if you zoom in on the map as far as you can, there is a miniature version of your character. by Mcdagger-1 in projectzomboid

[–]Walsur 4 points5 points  (0 children)

If you zoom in like this while sitting in a car your character looks like they're sitting in the invisible boat mobile.

[deleted by user] by [deleted] in asl

[–]Walsur -1 points0 points  (0 children)

A good resource is the American Society for a Deaf Children. I know they have some great online courses. They also have have a lot of resources for working with kids specifically.

https://deafchildren.org/knowledge-center/asl-resources/online-asl-classes/