# Python Interop

**URL:** https://forum.modular.com/c/mojo/python-interop/15.md

[Latest](https://forum.modular.com/latest.md) · [Categories](https://forum.modular.com/categories.md) · [Tags](https://forum.modular.com/tags.md)

---

## [About the Python Interop category](https://forum.modular.com/t/about-the-python-interop-category/761)

<div class="topic-metadata">

**Author:** [@Caroline](https://forum.modular.com/u/Caroline)\
**Replies:** 0

</div>

---

## [313t and 314t Python Interop](https://forum.modular.com/t/313t-and-314t-python-interop/3057)

<div class="topic-metadata">

**Author:** [@Synaptic724](https://forum.modular.com/u/Synaptic724)\
**Replies:** 3\
**Last updated:** [September 28, 2026, 2:02pm UTC](https://forum.modular.com/t/313t-and-314t-python-interop/3057 "2026-09-28T14:02:00Z")

</div>

Hey Mojo team, I’m an AI Native python framework developer and I would love to use your language with my frameworks as plugins for my AI Native tooling. I haven’t released my package as of yet but they’ll be coming out …

---

## [Link \`PyInit\` built object against other files](https://forum.modular.com/t/link-pyinit-built-object-against-other-files/3113)

<div class="topic-metadata">

**Author:** [@tedmoore](https://forum.modular.com/u/tedmoore)\
**Replies:** 3\
**Last updated:** [June 19, 2026, 3:46pm UTC](https://forum.modular.com/t/link-pyinit-built-object-against-other-files/3113 "2026-06-19T15:46:02Z")

</div>

Greetings, The example below calls on a lot of other Mojo code that all gets recompiled when any piece of the program changes. (This happens when this PythonObject is “imported” in Python code). Also, the code that it …

---

## [Decorator API for simpler Mojo-from-Python usage](https://forum.modular.com/t/decorator-api-for-simpler-mojo-from-python-usage/2472)

<div class="topic-metadata">

**Author:** [@soshsquatch](https://forum.modular.com/u/soshsquatch)\
**Replies:** 2\
**Last updated:** [November 20, 2025, 10:09pm UTC](https://forum.modular.com/t/decorator-api-for-simpler-mojo-from-python-usage/2472 "2025-11-20T22:09:56Z")

</div>

Hi all, thanks for the great work on Mojo and Python interop so far! I’ve been reading about the importer and wanted to share a suggestion that could make the workflow much simpler for everyday Python users. Right now…

---

## [PyLong\_Check, PyFloat\_Check](https://forum.modular.com/t/pylong-check-pyfloat-check/2383)

<div class="topic-metadata">

**Author:** [@mseritan](https://forum.modular.com/u/mseritan)\
**Replies:** 4\
**Last updated:** [October 25, 2025, 2:41pm UTC](https://forum.modular.com/t/pylong-check-pyfloat-check/2383 "2025-10-25T14:41:12Z")

</div>

It seems that the type checking functions are missing from the python interface in stdlib. Would you be interested by a PR to add them or is there some other workaround to check for the type of a PythonObject?

---

## [Initial support for calling Mojo from Python](https://forum.modular.com/t/initial-support-for-calling-mojo-from-python/1514)

<div class="topic-metadata">

**Author:** [@BradLarson](https://forum.modular.com/u/BradLarson)\
**Replies:** 9\
**Last updated:** [August 13, 2025, 10:21pm UTC](https://forum.modular.com/t/initial-support-for-calling-mojo-from-python/1514 "2025-08-13T22:21:21Z")

</div>

A new language feature has started to appear in the latest nightlies: the ability to call Mojo code from Python! The Python interoperability section of the Mojo manual has been expanded and now includes a dedicated docu…

---

## [Initial support for writing PyTorch custom ops in Mojo](https://forum.modular.com/t/initial-support-for-writing-pytorch-custom-ops-in-mojo/1541)

<div class="topic-metadata">

**Author:** [@BradLarson](https://forum.modular.com/u/BradLarson)\
**Replies:** 1\
**Last updated:** [July 17, 2025, 3:50pm UTC](https://forum.modular.com/t/initial-support-for-writing-pytorch-custom-ops-in-mojo/1541 "2025-07-17T15:50:56Z")

</div>

In the latest MAX nightlies, we’ve started shipping an initial interface for defining PyTorch custom ops using Mojo. For anyone experienced with PyTorch, this provides a familiar entrypoint to experiment with new Mojo-ba…

---

## [Kivy framework for Mojo](https://forum.modular.com/t/kivy-framework-for-mojo/1852)

<div class="topic-metadata">

**Author:** [@siyo](https://forum.modular.com/u/siyo)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 2:55pm UTC](https://forum.modular.com/t/kivy-framework-for-mojo/1852 "2025-06-30T14:55:41Z")

</div>

Hello ! I’m developing a python program based on KivyMD framework. how’s the state of art about a possible integration of this Python framework on mojo ?

---

## [How to set the default value for an argument of type PythonObject?](https://forum.modular.com/t/how-to-set-the-default-value-for-an-argument-of-type-pythonobject/758)

<div class="topic-metadata">

**Author:** [@EzRyder](https://forum.modular.com/u/EzRyder)\
**Replies:** 2\
**Last updated:** [March 14, 2025, 3:39am UTC](https://forum.modular.com/t/how-to-set-the-default-value-for-an-argument-of-type-pythonobject/758 "2025-03-14T03:39:46Z")

</div>

I need to set a default value within a Mojo function call which has an argument of type PythonObject. I managed to cause the compiler to die horribly, and found a different compiler error using an inline if-else. In the …

---

## [Mojo for Python 3.13](https://forum.modular.com/t/mojo-for-python-3-13/376)

<div class="topic-metadata">

**Author:** [@Sneekyfoxx](https://forum.modular.com/u/Sneekyfoxx)\
**Replies:** 2\
**Last updated:** [December 30, 2024, 6:09pm UTC](https://forum.modular.com/t/mojo-for-python-3-13/376 "2024-12-30T18:09:04Z")

</div>

When will Max and Mojo start to use Python 3.13?

---

## [Does mojo plan on keeping up Python support?](https://forum.modular.com/t/does-mojo-plan-on-keeping-up-python-support/169)

<div class="topic-metadata">

**Author:** [@lesoup-mxd](https://forum.modular.com/u/lesoup-mxd)\
**Replies:** 6\
**Last updated:** [December 10, 2024, 5:59pm UTC](https://forum.modular.com/t/does-mojo-plan-on-keeping-up-python-support/169 "2024-12-10T17:59:44Z")

</div>

How fast will mojo release a new version supporting newer python, granted one comes out? Is there a need to support the newest version as soon as possible? Does mojo plan on keeping the parity close to Python? Will mo…
