Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inferring background code.
#4
With the two lines of code, one can only deduce that Test is a callable object which invocation returns another callable object. Now you only need to find all the ways to create a callable object in Python, for example
class Spam:
    def eggs(self):
        return self.eggs

Test = Spam().eggs
test = Test()
test()
quazirfan likes this post
Reply


Messages In This Thread
Inferring background code. - by quazirfan - Apr-15-2023, 10:34 PM
RE: Inferring background code. - by jefsummers - Apr-17-2023, 11:36 AM
RE: Inferring background code. - by quazirfan - Apr-18-2023, 05:49 AM
RE: Inferring background code. - by Gribouillis - Apr-18-2023, 09:42 AM
RE: Inferring background code. - by quazirfan - Apr-19-2023, 05:26 AM
RE: Inferring background code. - by Gribouillis - Apr-19-2023, 06:32 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020