Skip to content
Advertisement

Tag: constants

Why does Micropython ‘const’ not accept float values?

Most Micropython ports contain a ‘micropython’ module, which has a specific function called ‘const()’. I am led to believe it behaves a lot like ‘#define’ in C, however, it only accepts integers. Does anyone know why this is? You can declare float constants in C, so why is this unavailable in micropython? I want to efficiently store values which are

Python win32com constants

I’m currently wondering how to list the constants in win32com in python, for example using excel win32com.client.Dispatch(‘Excel.Application’) Is there a way to display all constants using win32com.client.Constants ? Or does someone know where i could find win32com’s documentation ? Because all the links I found are dead … Answer To find out what Com applications you can use… See http://timgolden.me.uk/pywin32-docs/html/com/win32com/HTML/QuickStartClientCom.html

Advertisement