addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [PhillyPUG] Python hackery, any better ideas?

From: Mat S.
Sent on: Thursday, January 12, 2012 1:39 PM
Interestingly enough, I've hit this same sort of problem in ruby. If the parser sees a local assignment the variable becomes local, even if the assignment never happens.

On Thu, Jan 12, 2012 at 1:38 PM, Mat Schaffer <[address removed]> wrote:
Just when you thought you were safe:

Looks like introducing a local assignment (even if it's never evaluated) throws a wrench in this whole mix (updated to demonstrate).

Back to being the only one that works even if it does bark at me. I think I may try some trickery with exec and execfile to see what I can do there.

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy