On 19/04/17 08:28, Thomas Güttler wrote: > Nice, if it is that simple. > > Is there a reason why this is not in the standard library?
Probably because it is such a rare use case and because its not that hard to do yourself if you really need it. But the standard library, like any open source project, develops as people need things. If nobody needs something it will never be built and therefore never be added to the library. I'd guess this falls into that category. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor