Igor
Igor
MModular
Created by Kushagra on 9/25/2023 in #questions
OS level package?
4 replies
MModular
Created by Igor on 9/25/2023 in #questions
Raise returns a string?
4 replies
MModular
Created by Igor on 9/19/2023 in #questions
_ImmutableString
'_ImmutableString' value has no attribute 'copyinit'
'_ImmutableString' value has no attribute 'copyinit'
8 replies
MModular
Created by Igor on 9/19/2023 in #questions
_ImmutableString
Well yeah, but I want to craete a brand new string based on that _ImmutableString that returns object._value.to..string()...
8 replies
MModular
Created by roopesh puthalath on 9/18/2023 in #questions
Exit main
You could use:
fn exit(status: Int32) -> UInt8:
return external_call["exit", UInt8, Int32](status)
fn exit(status: Int32) -> UInt8:
return external_call["exit", UInt8, Int32](status)
@Jack Clayton wouldn't that be better than calling Python?
7 replies
MModular
Created by Igor on 9/12/2023 in #questions
`len` of a `PythonObject`
Let me try that thanks!
3 replies
MModular
Created by Cumputer Seckspert ! on 9/9/2023 in #questions
keyword arguments are not supported yet
You can workaround it by having a "util" that gets just one regular argument and return the thread in a different Python module
6 replies
MModular
Created by Igor on 9/9/2023 in #questions
kwargs
@Stole I figure out you can do this:
def create_server(
host: str,
port: int,
reuse_port: bool,
) -> socket.socket:
return socket.create_server((host, port), reuse_port=reuse_port)
def create_server(
host: str,
port: int,
reuse_port: bool,
) -> socket.socket:
return socket.create_server((host, port), reuse_port=reuse_port)
so you can call that function and send kwargs to the other function... and it "works"
4 replies