#wtfpython search results

Python question, What's the cleanest way to call `__greet()` from inside the `run` method. def __greet(): print("wtf") class C: def run(self): __greet() #Python #wtfpython

satwikkansal's tweet image. Python question,

What's the cleanest way to call `__greet()` from inside the `run` method. 

def __greet():
  print("wtf")

class C:
  def run(self):
    __greet()

#Python #wtfpython

🤯 Can you guess what some_list contains? It does not include a None! #Python #NumPy #wtfpython

maartenbreddels's tweet image. 🤯 Can you guess what some_list contains? It does not include a None!
#Python #NumPy #wtfpython

>>> a = 1 >>> b = 1 >>> c = 1337 >>> d = 1337 >>> a is b True >>> c is d False #wtfpython


Guess what will be the result of the following line: >>> {True: "Hello", 1: "Good night", 1.0: "Bye"} #wtfpython


This just burns my eyes: a = type('',(),{}) a.b = 3 #whypython #wtfpython


"What the f*ck Python" now available in Vietnamese too! Thanks to github.com/vuduclyunitn/w… 🎉 #python #wtfpython


multiple classes in one .py module #wtfPython


Opted for #GitCoin grants for #WTFpython, been maintaining it for 5 years now. Will reinvest funding received into expanding the scope project and supporting other projects/contributors that WTFPython depends on. So yes, please have a look! :) gitcoin.co/grants/6268/wt…


#WTFPython date.strftime('%d/%m/%Y') : strftime does not work for year before 1900.


If you really think you know Python, think once more! Check out wtfpython github.com/satwikkansal/w… #python #wtfpython 🔥🤯


Hola amigos! @JoseDeF32503298 just added a Spanish translation for "What the f*ck Python". Here's the link github.com/JoseDeFreitas/… #python #wtfpython #Spanish


And another one that seems like a weird paradox at first (if you don't know about how `all` works in Python >>> all([]) True >>> all([[]]) False >>> all([[[]]]) True #Python #wtfpython


In Python, with either MySQLdb or mysql.connector, if you run the same SELECT statement twice, even with a new cursor, you will get the same (cached) result. You need to commit, rollback, or reconnect to the DB to get fresh results. The consequences are disastrous... #WtfPython


Just because you CAN cram 10 different operations, including file I/O into a single list comprehension, doesn't mean you should #wtfPython


I have some #Python scripts for my newsletter. Last week everything worked fine, this week "ModuleNotFoundError: No module named 'bs4'" #WTFPython


Opted for #GitCoin grants for #WTFpython, been maintaining it for 5 years now. Will reinvest funding received into expanding the scope project and supporting other projects/contributors that WTFPython depends on. So yes, please have a look! :) gitcoin.co/grants/6268/wt…


This just burns my eyes: a = type('',(),{}) a.b = 3 #whypython #wtfpython


If you really think you know Python, think once more! Check out wtfpython github.com/satwikkansal/w… #python #wtfpython


Hola amigos! @JoseDeF32503298 just added a Spanish translation for "What the f*ck Python". Here's the link github.com/JoseDeFreitas/… #python #wtfpython #Spanish


also: #wtfpython I can implement a class that would behave like this, but someone should be punished for this


🤯 Can you guess what some_list contains? It does not include a None! #Python #NumPy #wtfpython

maartenbreddels's tweet image. 🤯 Can you guess what some_list contains? It does not include a None!
#Python #NumPy #wtfpython

Python question, What's the cleanest way to call `__greet()` from inside the `run` method. def __greet(): print("wtf") class C: def run(self): __greet() #Python #wtfpython

satwikkansal's tweet image. Python question,

What's the cleanest way to call `__greet()` from inside the `run` method. 

def __greet():
  print("wtf")

class C:
  def run(self):
    __greet()

#Python #wtfpython

"What the f*ck Python" now available in Vietnamese too! Thanks to github.com/vuduclyunitn/w… 🎉 #python #wtfpython


For everyone doing the #100DaysOfCode challenge right now. If you really think you know Python, think once more! Check out this repo. #wtfpython github.com/satwikkansal/w…


Guess what will be the result of the following line: >>> {True: "Hello", 1: "Good night", 1.0: "Bye"} #wtfpython


And another one that seems like a weird paradox at first (if you don't know about how `all` works in Python >>> all([]) True >>> all([[]]) False >>> all([[[]]]) True #Python #wtfpython


If you really think you know Python, think once more! Check out wtfpython github.com/satwikkansal/w… #python #wtfpython 🔥🤯


One example from there... ``` >>> a = "wtf" >>> b = "wtf" >>> a is b True >>> a = "wtf!" >>> b = "wtf!" >>> a is b False ``` 😂😂😂 The repository did find the right name #wtfpython #python


In Python, with either MySQLdb or mysql.connector, if you run the same SELECT statement twice, even with a new cursor, you will get the same (cached) result. You need to commit, rollback, or reconnect to the DB to get fresh results. The consequences are disastrous... #WtfPython


No results for "#wtfpython"

Python question, What's the cleanest way to call `__greet()` from inside the `run` method. def __greet(): print("wtf") class C: def run(self): __greet() #Python #wtfpython

satwikkansal's tweet image. Python question,

What's the cleanest way to call `__greet()` from inside the `run` method. 

def __greet():
  print("wtf")

class C:
  def run(self):
    __greet()

#Python #wtfpython

🤯 Can you guess what some_list contains? It does not include a None! #Python #NumPy #wtfpython

maartenbreddels's tweet image. 🤯 Can you guess what some_list contains? It does not include a None!
#Python #NumPy #wtfpython

Loading...

Something went wrong.


Something went wrong.


United States Trends