wtfpython icon indicating copy to clipboard operation
wtfpython copied to clipboard

What the f*ck Python? 😱

Results 116 wtfpython issues
Sort by recently updated
recently updated
newest added

### ▶ Yes, this is possible * ```py class Some_class: def __init__(self): raise Exception("Access to this class is denied") try: if input("Password for Some_class: ") == "password": del __init__ except...

new snippets

Expected time to finish: [6] weeks. I'll start working on it on [24/04/22].

I think I can translate readme.md from English to Russian.

Hacktoberfest
translation
seeking-contributor

### ▶ Weird unicode ligatures behaviour Python interpreter interprets unicode ligatures as two or more characters they are made of. If we explicitly declare variables using globals() it doesn't switch....

While reading some issues for Python I stumbled upon this weird `NaN` behaviour. When supplying `NaN` to max or min, it will return `NaN` if it is the first argument:...

### ▶ Calling the function without calling it Make a file test.py Add the following code ```py def print_HelloWorld(): print("Hello World") print_HelloWorld() print("Hello") ``` Make another file called try.py Add...

![wtfpython-issue](https://user-images.githubusercontent.com/24816726/130742424-32f6f90d-ef85-4075-83b6-9b3f5db3af35.png) I installed the python package and ran the command and this is what I see!

It looks like there isn't a specific guideline on making a PR regarding translations. Can I just fork and make a PR against master?

Hacktoberfest
translation

I noticed the following sentence in your article . > [] = () is a semantically correct statement (unpacking an empty tuple into an empty list) according to the python...