Explore tweets tagged as #PythonObject
@yolhan83240
mannes yolhan
2 years
@mhsatman Yeah, I think they got pressured, it is a lot to soon, I can't even do that because types doesn't go toghever, error : error: invalid call to '__iadd__': right side cannot be converted from 'PythonObject' to 'FloatLiteral' x+= mt.log(i+1)
1
0
0
@Modular
Modular
2 years
We can check 🔍 the Python's type with `py.type`. Note that without specifying `PythonObject` at instantiation, the Mojo 🔥 type will be `ListLiteral` (as Mojo 🔥 language server shows), which can be converted to Python `list` (2/9).
1
0
1
@Modular
Modular
2 years
However, what if we want to create a Python's builtin `dict`? 🤔 We can use `py.evaluate` which returns a wrapped `PythonObject` and we need to work with its methods such as `__getattr__` to get to the underlying `dict`. For example (5/9):
1
0
1
@Torch_sec
Torchsec 🕯
6 years
YAML: code execution using !!python/object https://t.co/xNj80y5DdE
0
0
0
@Modular
Modular
2 years
In this thread 🧵 , we want to explore how to use Python 🐍 objects within #Mojo 🔥 v24.1. We use Python's `list` and `dict` types as examples here. Let's dive in 👇 Here is how to use Python's `list` in Mojo 🔥 with the `PythonObject` wrapper (1/9).
3
6
41
@mfranz_on
Marco Franzon
3 years
Super useful feature for interoperability between #Python and #mojo. 👉 PythonObject is now printable from Mojo, instead of requiring you to import Python’s print function. #programming #developers
0
2
3
@overflow_meme
Meme Overflow
4 years
Python multiprocessing making same object instance for every process https://t.co/p6TE0Eve3s #python #pythonmultiprocessing #multiprocessing #pythonobject
0
0
0
@cameronmcnz
Cameron McKenzie | Docker | GitHub | AWS | Java
2 years
@scrumtuous @TechTarget @Modular I'm editing your Mojo🔥 article as we speak! Super cool how you used Mojo and Python🐍 together. Converting the PythonObject to a String and then to an Int is epic. 👍 #ArtificialInteligence #MachineLearning
0
0
2
@DrMattCrowson
Reluctant Quant
4 years
RT Making Python Packages Part 3: Designing Your Classes https://t.co/3h9KSua9BX #datascience #pythonobject #pythonpackages #python #pythonlibraries
0
0
0
@Websystemer
Websystemer
5 years
0
0
0
@qs_qt2010
イッチ
12 years
CからPythonObjectを使う方法 https://t.co/CpLV6EpPm2
0
0
2
@iRajeshKumarJha
Rajesh Jha
7 years
https://t.co/iDMBAq09zN New post added to #pythonport to share idea of serialize python object into file using pickle.dump() method. You can go through this post to get basic understanding of #serialization #pythonobject #python3 #pythonport #classobject
0
0
0
@BLeAmz
BLeAmz
12 years
ทริคก็คือ ใช้ Cython Array แทน List และหลีกเลี่ยงเอา PythonObject/PythonCall ไปไว้ใน loop bound
0
0
0
@vaaaaanquish
ばんくし王
7 years
@virusVer001 一応PythonObjectとしてdump,loadするという闇技術がありますよ…(小声)
1
0
1
@hibasarraj
hiba
13 years
@Pythonobject هههههههه
0
0
0
@agatan_
Agata Naomichi
7 years
Swift の言語機能あんまり詳しくないから異常性を正しく認識できてないな。implicit coversion はないんだっけ?なんで let x: PythonObject = 1 が valid なんだ? x = PythonObject(1) 的なことがおきる?
0
0
0
@dhq_boiler
ボイラー
2 years
I can't dispose of the PythonObject, probably due to a bug.
0
0
0
@HKAA
H.Ashour||حاتم عاشور
13 years
@Pythonobject المتظاهرين أنفسهم !
0
0
0
@nonkida_higashi
HIGASHI Mutsuhito
6 years
CでPythonObjectを利用するときの参照カウントの扱いがよくわからない(^^ゞ。
0
0
0