python tempfile module (beginner - intermediate) anthony explains #324

preview_player
Показать описание
today I talk about the tempfile module and the functionality it provides! I go over both the high level and low level apis as well as some gotchas

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

You are just awesome.. Am the same guy who regularly ask you to create a project based tutorial series including deployment...

Aman
Автор

Thank you for very high quality of each tutorial with exhausting and deep explainations . It is sure, that you are gifted to teach stuff and I can really see the potential for something like Udemy course from your side. I would surely bought it.

Reeq
Автор

Thanks as always for the very nicely done video. As a video topic suggestion, that I don't see in the playlist or on the "explains" repo already, it would be interesting to see you cover weakref.

mfeickert
Автор

13:00 For rotating logs I usually use RotatingFileHandler from the logging module.
It's little offtopic, but may be useful for someone :-)

JakubYTb
Автор

There is so much knowledge in this video. Thank you so much :-)

EmsCode
Автор

Note: the `tmpdir` directory variable name is not to be confused with the `tempdir` property of the tempfile module. Which stores the default temp directory name on your system

sadhlife
Автор

Some time I wrote a context manager helper that would insert data into some DB and return its table name. Then, within the context manager you could write queries on that table. When the context-manager exited, it would drop that table from the DB. That worked well and all, but I had a problem with people killing the program while it was waiting for some query, resulting in the temp table to be left behind. Is that problem solved in this module? And if so, how would you approach that?

UriYakir
Автор

I see you always use Exit(main()) any specific reason ?

victordvickie
Автор

Deprecated since 2.3 and not removed yet??? Just kill it, Chuck. Kill it.

b_rk