API Python Code Style Question

API Python Code Style Question

kdrector
Contributor Contributor
537 Views
2 Replies
Message 1 of 3

API Python Code Style Question

kdrector
Contributor
Contributor

Can someone explain why, in Fusion 360 API python samples, people write:

 

     profiles = sketch.profiles

     for profile in profiles:

 

When the more succient:

 

    for profile in sketch.profiles:

 

seems to work?

0 Likes
538 Views
2 Replies
Replies (2)
Message 2 of 3

MichaelT_123
Advisor
Advisor

Hi Mr.KDrector,

 

It is obvious mate...

They suffer from malnutrition due to inadequacy of quality beer consumption.

 

Regards

MichaelT

MichaelT
0 Likes
Message 3 of 3

JesusFreke
Advocate
Advocate

Maybe they're getting paid by the line? 🙂

0 Likes