Re: how to read linux kernel source with pycparser (Reposting On Python-List Prohibited)

2016-10-04 Thread meInvent bbird
yes, i searched in google between 2011 and 2012

descending for loop is faster than ascending for loop

On Wednesday, October 5, 2016 at 9:48:41 AM UTC+8, Chris Angelico wrote:
> On Wed, Oct 5, 2016 at 12:41 PM, meInvent bbird  wrote:
> > so far i do not know which bug i search for
> >
> > i would like to change style of for loop
> >
> > form ascending to descending style
> >
> > for(int i=0; i<3; ++i)
> >
> > to
> >
> > for(int i=3; i>=0; --i)
> >
> > or
> >
> > most crazy to change if else if else into mealy machine
> 
> Are you aware that those loops are significantly different?
> 
> ChrisA

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: how to read linux kernel source with pycparser (Reposting On Python-List Prohibited)

2016-10-04 Thread Chris Angelico
On Wed, Oct 5, 2016 at 12:41 PM, meInvent bbird  wrote:
> so far i do not know which bug i search for
>
> i would like to change style of for loop
>
> form ascending to descending style
>
> for(int i=0; i<3; ++i)
>
> to
>
> for(int i=3; i>=0; --i)
>
> or
>
> most crazy to change if else if else into mealy machine

Are you aware that those loops are significantly different?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: how to read linux kernel source with pycparser (Reposting On Python-List Prohibited)

2016-10-04 Thread meInvent bbird
On Wednesday, October 5, 2016 at 2:34:49 AM UTC+8, Lawrence D’Oliveiro wrote:
> On Tuesday, October 4, 2016 at 10:38:14 PM UTC+13, meInvent bbird wrote:
> > how to customize pycparser to search what we want such as bug 
> 
> What kind of bug do you want to search for?

so far i do not know which bug i search for

i would like to change style of for loop

form ascending to descending style

for(int i=0; i<3; ++i)

to

for(int i=3; i>=0; --i)

or 

most crazy to change if else if else into mealy machine
-- 
https://mail.python.org/mailman/listinfo/python-list