GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Gabriel Pettier (tshirtman@mas.to)'s status on Sunday, 26-May-2024 23:47:19 JSTGabriel PettierGabriel Pettier
    in reply to
    • Tokyo Outsider (337ppm)
    • C.

    @tokyo_0 @cazabon In python, values are generally "truthy" except for:
    - False
    - None
    - 0
    - "" (empty string)
    - [] (empty list)
    - () (empty tuple)
    - {} (empty dictionary)
    - set() (empty set)

    which are "falsy".

    Here your test probably assumes the value is True or False, but it could be something else, like either a string containing a key, or None, or a custom object or None.

    In conversationSunday, 26-May-2024 23:47:19 JST from mas.topermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.