Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] requirements for moving __import__ over toimportlib?

Chris Angelicorosuav at gmail.com
Sat Feb 11 01:49:53 CET 2012


On Sat, Feb 11, 2012 at 11:23 AM, PJ Eby <pje at telecommunity.com> wrote:> What's the downside in that case?  You're trying to import something that> just changed in the last fraction of a second...  why?I don't know if it's normal in the Python world, but these sorts ofrace conditions occur most annoyingly when a single process changes afile, then attempts to import it. If you open a file, write to it,explicitly close it, and then load it, you would expect to read backwhat you wrote, not the version that was there previously.Chris Angelico


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp