Jump to content
  • Create New...
  • 0

Cython - Problem with code



Hi, I have a problem with cython, namely with cython turned off = then python works fine but on cython I have a problem with the cPickle function.

when booting cython source client, cPickle import exits the game completely without any errors. Does anyone know why this is happening? Does cython have a problem using this function? Apparently it's some python function


in short, a client built in the new language cython does not detect this function at all and is nowhere in the client


sample code that uses this

	def LoadConfigurations(self):
			f = open('settings/switchbot.pkl', 'rb')
			self.dict = cPickle.load(f)
		except IOError:
			self.dict = {}	
		lineWidth = self.listBox.GetWidth()
		if len(self.dict) > self.__GetViewItemCount():	
			lineWidth -= 20
		for key in self.dict.iterkeys():
			config = self.dict.get(key, None)
			if not config:
			line = self.ConfigurationLine(lineWidth)
			line.Load(key, config["name"])
			self.listItems[key] = line

	def SaveConfigurations(self):
		with open('settings/switchbot.pkl', 'wb') as f:
			cPickle.dump(self.dict, f)


Edited by santa12
Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.