<html><body><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div id="yiv424264173"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: tahoma, 'new york', times, serif; "><div id="yiv424264173yui_3_2_0_15_131724672814140"><div style="font-size: 10pt; font-family: tahoma, times, serif; ">I accidentally wrote such a code (below) while trying to write sth else for my application but i am now just wondering much how to run the class Foo, if it is possible. Is not it weird that Python does not give any error when I run it ? Sorry for that it's pretty unimportant question according to the other questions being asked here :D</div><div style="font-size: 10pt; font-family: tahoma, times, serif; "><br></div><div><div><font class="yiv424264173Apple-style-span" size="2">def trial():</font></div><div><font class="yiv424264173Apple-style-span" size="2"><span
 class="yiv424264173Apple-tab-span" style="white-space:pre;">    </span>class Foo(object):</font></div><div><font class="yiv424264173Apple-style-span" size="2"><span class="yiv424264173Apple-tab-span" style="white-space:pre;">           </span>def __init__(self):</font></div><div><font class="yiv424264173Apple-style-span" size="2"><span class="yiv424264173Apple-tab-span" style="white-space:pre;">                  </span>print("Hello, world!")</font></div><div><span class="yiv424264173Apple-style-span" style="font-size:13px;">trial() # not worked, as expected.</span></div></div></div></div></div></div></body></html>