# CPython3 and .NET interfaces

**URL:** <https://forum.dynamobim.com/t/cpython3-and-net-interfaces/89210>\
**Category:** Developers\
**Tags:** python, dynamo\
**Created:** [May 4, 2023, 5:13am UTC](https://forum.dynamobim.com/t/cpython3-and-net-interfaces/89210 "2023-05-04T05:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scope](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@scope](https://forum.dynamobim.com/u/scope)\
**Post date:** [May 4, 2023, 5:14am UTC](https://forum.dynamobim.com/t/cpython3-and-net-interfaces/89210/1 "2023-05-04T05:14:00Z")

</div>

Hi,

I am trying to create a custom SelectionFilter using the ISelectionFilter interface, but due to the limitations of CPython3 it seems I’m not able to.

As stated on the Dynamo GitHub this is a known issue with CPython3: [Work in progress to improve Python 3 support · DynamoDS/Dynamo Wiki · GitHub](https://github.com/DynamoDS/Dynamo/wiki/Work-in-progress-to-improve-Python-3-support)

Is there any way around this other than using IronPython2?

Thanks

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 4, 2023, 6:13am UTC](https://forum.dynamobim.com/t/cpython3-and-net-interfaces/89210/2 "2023-05-04T06:13:51Z")

</div>

You need to declare the namespace as noted here: [Implement a C# Interface in Python for .NET - Stack Overflow](https://stackoverflow.com/questions/49736531/implement-a-c-sharp-interface-in-python-for-net/50462691#50462691)

That will get you one run. To utilize it repeatedly you’ll want to generate a new random value as the namespace value. I utilize UUID for this.

---

<div class="post-metadata">

**Author:** ![scope](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@scope](https://forum.dynamobim.com/u/scope)\
**Post date:** [May 4, 2023, 6:50am UTC](https://forum.dynamobim.com/t/cpython3-and-net-interfaces/89210/3 "2023-05-04T06:50:46Z")

</div>

Awesome, thanks!
