Re: Potential deprecation in RHEL 7.3 ADDON API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



На 30.03.2016 в 16:02, Martin Kolman написа:
2) Use the inspect module to check if the method expects the payload kwarg (or **kwargs)
and only call it with it if it does. Note that this is ultra-bleh-hacky and probably
also pretty un-Pythonic.


I've tried this approach before. Info and examples here:

http://atodorov.org/blog/2015/11/29/inspecting-method-arguments-in-python/


I will work but indeed looks quite hacky.


--
Alex

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list




[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux