[PATCH] buildtools: Use separate storage for each function in runonce
Petr Viktorin
pviktori at redhat.com
Tue Jan 20 06:01:50 MST 2015
On 01/16/2015 06:55 PM, Petr Viktorin wrote:
> Hello,
> I ran across this curiosity while trying to wrap my head around the
> build system:
>
> @runonce
> def add_one(x):
> return x + 1
>
> @runonce
> def sub_one(x):
> return x - 1
>
> add_one(1) # returns 2
> sub_one(1) # also returns 2!
>
>
> Fix attached.
>
Once again, with the sign-off line. Sorry for the noise.
--
Petr Viktorin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-buildtools-Use-separate-storage-for-each-function-in.patch
Type: text/x-patch
Size: 1330 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150120/349fe413/attachment.bin>
More information about the samba-technical
mailing list