Skip to content
Pybites

Pybites

  • Training
  • Certifications
  • Community
  • Code Platform
  • Articles
  • Search

Articles on contextmanagers

Testing

Assertions About Exceptions With pytest.raises()

By AJ Kerrigan on 18 May 2020

It’s useful to test for exceptions exceptions in your code. A handy feature of pytest makes that fun and flexible!

Code Challenges

Code Challenge 09 – The With Statement and Context Managers – Review

By PyBites Team on 11 March 2017

It’s end of the week again so we review the code challenge of this week. It’s never late to sign up, just fork our challenges repo and start coding.

Code Challenges

Code Challenge 09 – The With Statement and Context Managers

By PyBites Team on 6 March 2017

A new week, more coding! This week we have a free form exercise. This week you will implement your own Context Manager (= support with on your object).

Twitter Digest

Twitter digest 2017 week 09

By PyBites Team on 4 March 2017

On Saturdays we will share a curated list of 15 cool things (mostly Python) we found / tweeted during the week.

Best Practices

Beautiful, idiomatic Python

By Bob Belderbos on 10 January 2017

Transforming Code into Beautiful, Idiomatic Python is a must-watch to write more Pythonic code. In this post some highlights.

PDM Program

  • Log In
  • About PDM

PyBites

  • Catalogue
  • Podcast
  • Articles
  • Platform
  • Community
  • Shop

Resources

  • About Us
  • Contact Us
  • Sitemap
  • Privacy Policy

Mailing List

Subscribe to our mailing list and receive our Python Tips ebook for free.

  • Twitter
  • LinkedIn
  • Facebook
  • YouTube
  • Github
  • RSS
Powered by coffee, © 2025 PyBites.