> For example, a common confusion is to identify None with NULL in DB,
> but then when you are filtering rows in a SQL query generated by a
> framework function,
> you have to do convoluted things because most frameworks do not
> distinguish "Do not filter" and "Keep only rows where value is NULL",


Good example— wouldn’t it be nice if all the database interaction packages
used the same Sentinel for this? In that case it would go in the DB api,
but the idea holds.

-CHB


-- 
Christopher Barker, PhD (Chris)

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/44SBNPTCZBETXKJILTK6ZM5AXX22FAWJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to