home.social

#1d107 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #1d107, aggregated by home.social.

  1. ```
    from hashlib import md5
    md5 = None
    if condition == True:
    md5 = md5(local_file.read_bytes()).hexdigest()
    ```

    It took me too long to realise why #Python was complaining that NoneType wasn't callable...

    Yes, I need sleep...

    (For the non-coders or other sleep-deprived, I was overwriting the function I was calling with 'nothing' by reusing the function name as variable name...)

    #coding #codingFail #1d107