`exec`-based routine crashes app upon migration from 3.4.3 to python 3.5.2.

2016-07-28 Thread Enjoys Math
I've manually set breakpoints and traced this app crash back to this function: def loadLSobjsOfType(self, objType, listJ): if listJ != None: for objJ in listJ: _locals = locals() exec('obj = ' + objType + '(self)', None, _locals)

Re: Thoughts on python classes to represent an ebook reader

2014-10-02 Thread math math
Thanks a lot. It is quite helpful to follow the thought process here. Another person gave the example of 'Calibre', but I've found it overwhelming and I couldn't find any UML diagram there (maybe not searched hard enough). Regards, Felix -- https://mail.python.org/mailman/listinfo/python-list

Re: how to parse standard algebraic notation

2014-10-01 Thread math math
On Tuesday, 30 September 2014 23:15:24 UTC+2, Gary Herron wrote: On 09/30/2014 01:53 PM, math math wrote: Hi, I am trying to learn Python while solving exercises. I want to basically write a program that inputs a polynomial in standard algebraic notation and outputs its

Thoughts on python classes to represent an ebook reader

2014-10-01 Thread math math
Hi, I hope there are people here with strong OOP experience. Which classes would an object-oriented python programmer create for the design of a e-book reader for example? I am not really interested in the code, just the OOP classes that would come to one's mind for a task like this. It

Re: how to parse standard algebraic notation

2014-10-01 Thread math math
Thanks a lot, I will give this a shot. -- https://mail.python.org/mailman/listinfo/python-list

how to parse standard algebraic notation

2014-09-30 Thread math math
Hi, I am trying to learn Python while solving exercises. I want to basically write a program that inputs a polynomial in standard algebraic notation and outputs its derivative. I know that I need to get the exponent somehow, but I am not sure how to accomplish this in python (3.3) Do you

Registration Code

2006-04-03 Thread Math
Hello, I wonder if I can ask this particular question here... I'm writing this piece of Python Software and I'm almost done...:-) But now I want the end-user to register this software with a registration code or perhaps something like an evaluation demo version which expires after some period

Re: Registration Code

2006-04-03 Thread Math
[EMAIL PROTECTED] OKAY Sybren.. How does one get the job done? -- Math enlightened us with: But now I want the end-user to register this software with a registration code or perhaps something like an evaluation demo version which expires after some period of time... Fair enough

Re: Registration Code

2006-04-03 Thread Math
bziped pickle ?) with a hash or CRC built in to prevent obvious tampering. Hope that helps, Philippe Math wrote: Hello, I wonder if I can ask this particular question here... I'm writing this piece of Python Software and I'm almost done...:-) But now I want the end-user to register

Converting Time question

2006-03-28 Thread Math
Hello PythonPeople.. Can anybody help me out? How do I convert a time of day from milliseconds? For example: I got the following time in milliseconds: 1,090516451769E+15 And I want to print it like: 17:14:11.769 I'm on WinXP Time zone: GMT +01:00 Thank you all! --

Re: Converting Time question

2006-03-28 Thread Math
Me again.. I guess I ask it wrong.. I measure a time at racing events.this tracktime is measures in the format hh:mm:ssDDD where DDD = thousands of a second...like 17:14:11.769 This format is being saved as a number of micro seconds since 1970.. like 1,090516451769E+15 How do I convert from the

1.090516455488E9 / 1000000.000 ???

2006-03-28 Thread Math
Hello, I got a simple and probably stupid newby question.. When I compute: 1.090516455488E9 / 100 the result is 1090516455.49 Should be 1090516455.488 I know something with float and //... Anybody? How do I get correct number? -- http://mail.python.org/mailman/listinfo/python-list

Re: 1.090516455488E9 / 1000000.000 ???

2006-03-28 Thread Math
Should be 1.090516455488E15 - Original Message - From: Math [EMAIL PROTECTED] To: python-list@python.org Sent: Tuesday, March 28, 2006 4:29 PM Subject: 1.090516455488E9 / 100.000 ??? Hello, I got a simple and probably stupid newby question.. When I compute: 1.090516455488E9

Re: 1.090516455488E9 / 1000000.000 ???

2006-03-28 Thread Math
Thanks this does the job And yes, I really need this accuracy.. Many Thanks - Original Message - From: Felipe Almeida Lessa [EMAIL PROTECTED] To: Fredrik Lundh [EMAIL PROTECTED] Cc: python-list@python.org Sent: Tuesday, March 28, 2006 6:00 PM Subject: Re: 1.090516455488E9 / 100.000

No more then 1 Instance of Application..

2006-03-13 Thread Math
Hello, Pardon my English... Does anybody know what I have to do to run only 1 instance of my Python Application? How do I check if I'm running more instances of a Application? Thank you all -- http://mail.python.org/mailman/listinfo/python-list

Distutils Error while building 'win32com.client' extension

2006-02-26 Thread Math
.' --- I don't konw which library to use so here's my setup.py : from distutils.core import setup, Extension setup(name='Marathon Manager',\ version='0.1.0',\ author='Math',\ py_modules=['modMain','modWindows','modDialogs','modDataBase','ADOConstants'],\ data_files

Distutils Error while building 'win32com.client' extension

2006-02-26 Thread Math
.' --- I don't know which library to use so here's my setup.py : from distutils.core import setup, Extension setup(name='Marathon Manager',\ version='0.1.0',\ author='Math',\ py_modules=['modMain','modWindows','modDialogs','modDataBase','ADOConstants'],\ data_files

DatBases and Pickle Module

2006-02-22 Thread Math
, but without any kind of DBMS. I wonder how they did this? It also seems alot faster then when working with DBMS. Can I achieve the same in Python with say..the pickle module. For instance a dictionary or something else? Many thanks to you all Math -- http://mail.python.org/mailman/listinfo/python