Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The pass statement...
#1
Is "pass" really a NOP ?
Is it compile into a real nop operation ?
or it is only interpreted as place holder ?
and that statement is jump over a runtime ...

My debugger cannot put a breakpoint on it...
But we usually are able to breakpoint a nop ...

Think
----------

More info:

from 32.12. dis — Disassembler for Python bytecode

General instructions
NOP
Do nothing code. Used as a placeholder by the bytecode optimizer.

So there is a real NOP in the VM so pass is sureley translate to something that can be breakpointed...

Im going to visit PyScripter WIKI to try to find something
Think
Reply


Messages In This Thread
The pass statement... - by voidptr - Aug-31-2020, 04:54 AM
RE: The pass statement... - by Gribouillis - Aug-31-2020, 07:08 AM
RE: The pass statement... - by DeaD_EyE - Aug-31-2020, 07:23 AM
RE: The pass statement... - by voidptr - Aug-31-2020, 06:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to pass encrypted pass to pyodbc script tester_V 0 912 Jul-27-2023, 12:40 AM
Last Post: tester_V
  Pass by object reference when does it behave like pass by value or reference? mczarnek 2 2,601 Sep-07-2020, 08:02 AM
Last Post: perfringo
  Pass by reference vs Pass by value leodavinci1990 1 2,255 Nov-20-2019, 02:05 AM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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