#๐Ÿ”’ Need help throwing errors when a function input is Callable(Transpiler)

8 messages ยท Page 1 of 1 (latest)

zinc shoal
#

Im cuerrently working on a python to html transpiler of sorts and have a input to a function which allows nesting html. But when that function is off i want the text input to throw an error if its callable but not exactly sure how to create it.

Code found: https://github.com/ShadowLikesCookies/Pytml/tree/master/v2
All files inside the v2

If possible you could help me throw an error if the text input is a function but Is_Internal = false in the internal element

GitHub

Pytml. Contribute to ShadowLikesCookies/Pytml development by creating an account on GitHub.

steel minnowBOT
#

@zinc shoal

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

rancid trench
#

Lets learn grammar first ๐Ÿ˜‚

#

!e
print(callable(print))

steel minnowBOT
#

@rancid trench :white_check_mark: Your 3.12 eval job has completed with return code 0.

True
rancid trench
#

Does that help?

steel minnowBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.