Re: [Python-Dev] sys.settrace() in Python 2.3 vs. 2.4

2006-07-01 Thread Josiah Carlson

Armin Rigo <[EMAIL PROTECTED]> wrote:
> 
> Hi Josiah,
> 
> On Fri, Jun 30, 2006 at 01:27:24PM -0700, Josiah Carlson wrote:
> > I'll just have to gracefully degrade functionality for older Pythons. 
> 
> More precisely, the bug shows up because in
> 
>   while 1:
>   pass
> 
> the current line remains on the 'pass' forever.  It works for a loop
> like that:
> 
>   while 1:
>   sys
>   sys
> 
> but it's admittedly quite obscure.

That is good to know, thank you Armin.

 - Josiah

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] sys.settrace() in Python 2.3 vs. 2.4

2006-07-01 Thread Armin Rigo
Hi Josiah,

On Fri, Jun 30, 2006 at 01:27:24PM -0700, Josiah Carlson wrote:
> I'll just have to gracefully degrade functionality for older Pythons. 

More precisely, the bug shows up because in

  while 1:
  pass

the current line remains on the 'pass' forever.  It works for a loop
like that:

  while 1:
  sys
  sys

but it's admittedly quite obscure.


Armin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] sys.settrace() in Python 2.3 vs. 2.4

2006-06-30 Thread Josiah Carlson

"Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> 
> Josiah Carlson wrote:
> > Any pointers as to why there is a difference would be appreciated. 
> 
> This was fixed in r35540, r35541, r35542, r35543, by Nick Bastin
> and Armin Rigo, in response to #765624. Enough pointers :-?

Yes, thank you Martin.  I would guess it wasn't backported to the 2.3
branch due to a change in the maybe_call_line_trace() definition, which
answers my question, but makes me sad (I wanted this functionality
*pout*).

I'll just have to gracefully degrade functionality for older Pythons. 
Thank you again Martin,
 - Josiah

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] sys.settrace() in Python 2.3 vs. 2.4

2006-06-30 Thread Martin v. Löwis
Josiah Carlson wrote:
> Any pointers as to why there is a difference would be appreciated. 

This was fixed in r35540, r35541, r35542, r35543, by Nick Bastin
and Armin Rigo, in response to #765624. Enough pointers :-?

Regards,
Martin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com