News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by TrianguloY on Tuesday February 09, 2021 @05:05PM (#26082988)
Yes, apparently your example will work correctly.

Now think what will happen if you need to move that not_found variable to the same file as that code (so it will no longer be a dotted name). If you do it manually you need to be extra careful, if you use an automatic tool either it will reject the change or will need to create a dummy class or something in the process.

There are no comments on this comment yet.