# Flow variables "set" and "get" in python3 node

**URL:** <https://discourse.nodered.org/t/flow-variables-set-and-get-in-python3-node/4082>\
**Category:** General\
**Created:** [18 October 2018 10:27 UTC](https://discourse.nodered.org/t/flow-variables-set-and-get-in-python3-node/4082 "2018-10-18T10:27:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyad](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@Eyad](https://discourse.nodered.org/u/Eyad)\
**Post date:** [18 October 2018 10:27 UTC](https://discourse.nodered.org/t/flow-variables-set-and-get-in-python3-node/4082/1 "2018-10-18T10:27:07Z")

</div>

Hi guys,

I am trying to use the "context.get()" and "context.set()" in python3 function node and I am getting below error.

global name 'context' is not defined.  
your kind help is much appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 October 2018 11:10 UTC](https://discourse.nodered.org/t/flow-variables-set-and-get-in-python3-node/4082/2 "2018-10-18T11:10:24Z")

</div>

What do you mean by 'python3 function node'?  
can you provide your flow?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 October 2018 11:29 UTC](https://discourse.nodered.org/t/flow-variables-set-and-get-in-python3-node/4082/3 "2018-10-18T11:29:02Z")

</div>

I assume you are using this node: [https://flows.nodered.org/node/node-red-contrib-python3-function](https://flows.nodered.org/node/node-red-contrib-python3-function)?

If so, it hasn't been updated in over a year - so will have fallen behind in what functionality it provides compared to the built-in Function node. There are a [number of issues](https://github.com/dejanrizvan/node-red-contrib-python3-function/issues) open against the node which suggests it isn't being actively maintained. You could try raising an issue, but otherwise, not much else we can do for you.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 October 2018 12:12 UTC](https://discourse.nodered.org/t/flow-variables-set-and-get-in-python3-node/4082/4 "2018-10-18T12:12:54Z")

</div>

🤔 I must have had fumble fingers because when I searched the flows I didn't find any node with 'python3' - I'll bet I typed it wrong 😕

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 November 2020 07:21 UTC](https://discourse.nodered.org/t/flow-variables-set-and-get-in-python3-node/4082/6 "2020-11-25T07:21:39Z")

</div>


