Jump to content
  • Create New...
  • 0

Python %llu printing



Hi. I have problem with unsigned long long in python. it's my part of uicommon.py with yang print function.

	def __OnValueUpdate(self):

		text = self.inputValue.GetText()

		money = 0
		if text and text.isdigit():
				money = uint64(text)
			except ValueError:
				money = 18446744073709551615

and here is Py_BuildValue

PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "OnPickMoney", Py_BuildValue("(L)", PointChange.amount));
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.