Posts by Tags

advanced

Beyond None: Mastering Sentinel Objects for Cleaner Python Code

3 minute read

Published:

If you’ve ever used None to represent “missing” or “default” values in Python, you’ve likely run into a subtle problem: what if None is a valid input for your function or data structure? For example, a caching function might need to distinguish between a cached None value and the absence of a cached value altogether. Using None for both cases creates ambiguity and bugs that are hard to trace. Read more

database

Beyond None: Mastering Sentinel Objects for Cleaner Python Code

3 minute read

Published:

If you’ve ever used None to represent “missing” or “default” values in Python, you’ve likely run into a subtle problem: what if None is a valid input for your function or data structure? For example, a caching function might need to distinguish between a cached None value and the absence of a cached value altogether. Using None for both cases creates ambiguity and bugs that are hard to trace. Read more

git

programming

Beyond None: Mastering Sentinel Objects for Cleaner Python Code

3 minute read

Published:

If you’ve ever used None to represent “missing” or “default” values in Python, you’ve likely run into a subtle problem: what if None is a valid input for your function or data structure? For example, a caching function might need to distinguish between a cached None value and the absence of a cached value altogether. Using None for both cases creates ambiguity and bugs that are hard to trace. Read more

python

Beyond None: Mastering Sentinel Objects for Cleaner Python Code

3 minute read

Published:

If you’ve ever used None to represent “missing” or “default” values in Python, you’ve likely run into a subtle problem: what if None is a valid input for your function or data structure? For example, a caching function might need to distinguish between a cached None value and the absence of a cached value altogether. Using None for both cases creates ambiguity and bugs that are hard to trace. Read more

tip

Beyond None: Mastering Sentinel Objects for Cleaner Python Code

3 minute read

Published:

If you’ve ever used None to represent “missing” or “default” values in Python, you’ve likely run into a subtle problem: what if None is a valid input for your function or data structure? For example, a caching function might need to distinguish between a cached None value and the absence of a cached value altogether. Using None for both cases creates ambiguity and bugs that are hard to trace. Read more

tutorial

Beyond None: Mastering Sentinel Objects for Cleaner Python Code

3 minute read

Published:

If you’ve ever used None to represent “missing” or “default” values in Python, you’ve likely run into a subtle problem: what if None is a valid input for your function or data structure? For example, a caching function might need to distinguish between a cached None value and the absence of a cached value altogether. Using None for both cases creates ambiguity and bugs that are hard to trace. Read more

version-control

📖 Related Posts