
    Yh                         S r SSKrSrSrSqS rS rS r\R                  " \5        \R                  " \5      r\R                  " \5      r\R                  S5        \
" S5        \R                  S	5        g)
z
Uses a trace function to switch greenlets at unexpected times.

In the trace function, we switch from the current greenlet to another
greenlet, which switches
    NFc                  v    [        S/U Q76   [        (       a  Sq[        R                  5         [        S/U Q76   g )NTRACEFz	LEAVE TRACE)printswitch_to_g2g2switch)argss    \/var/www/html/env/lib/python3.13/site-packages/greenlet/tests/fail_switch_three_greenlets.py	tracefuncr      s/    	'D|
			/!D!    c                      [        S5        Sq[        R                  " 5       R                  R                  5       n [        S5        [        SU 5        g )Nz	In g1_runTzReturn to g1_runzFrom parent)r   r   greenlet
getcurrentparentr   )from_parents    r
   g1_runr      s?    	+L%%'..557K	
	-%r   c                  ^    [         R                  " 5       R                  R                  5         g )N)r   r   r   r    r   r
   g2_runr      s      '')r      zBack in main   )__doc__r   g1r   r   r   r   r   settracer   r   r   r   r
   <module>r      s}    		"&* 	  ) vv
 		! n  		!r   