1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

python-memcachedではadd()の失敗時(既にキーが存在している)にはFalseが返り、サーバがそもそも応答しない(コネクションが切断されたなど)場合には0が返るのですが、(False == 0) => Trueなこの言語でその2つをどう切り分けて処理したら良いのでしょう?

Last updated at Posted at 2012-12-26

python-memcachedではadd()の失敗時(既にキーが存在している)にはFalseが返り、サーバがそもそも応答しない(コネクションが切断されたなど)場合には0が返るのですが、(False == 0) => Trueなこの言語でその2つをどう切り分けて処理したら良いのでしょう?

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?