A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-January/051080.html below:

[Python-Dev] frame.f_locals is writable

[Python-Dev] frame.f_locals is writable [Python-Dev] frame.f_locals is writableNick Coghlan ncoghlan at iinet.net.au
Sat Jan 15 04:18:25 CET 2005
Shane Holloway (IEEE) wrote:
> Yes.  After poking around in Google with PyFrame_LocalsToFast, I found 
> some other links to people doing that.  I implemented a direct call 
> using ctypes to make the code explicit about what's happening.  I'm just 
> glad it is possible now.  Works fine in both 2.3 and 2.4.

I realised after posting that the exec-based hack only works for poking values 
into the _current_ frame's locals, so my trick wouldn't have done what you 
needed, anyway.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4