KixForm, a (little) GUI for Python + PyWin32 ?

2005-12-29 Thread Do Re Mi chel La Si Do
Hi! I had found (since only 2 hours) that KixForm can to do used by Python + PyWin32 At the end of the message, a very small example It's an Active-X, in one file (.DLL), and one help-file (.CHM) It is limited, but simple Download here : http://www.kixforms.org/assets/files/kix

Re: Python interpreter in Basic or a Python-2-Basic translator.

2005-05-01 Thread Do Re Mi chel La Si Do
Hi ! VBA is at the end of his lifetime. The next MS-Office will not have VBA (because dotNet). You should really adopt Python. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

To circumvent the bug cp1252

2005-05-15 Thread Do Re Mi chel La Si Do
Hi ! *** for information *** There is a bug in Python 2.4, worsened with the 2.4.1, for scripts, if they are: - large - with larges lines - prefixed (coded) with # -*- coding: cp1252 -*- - on windows (XP & S2003) - perhaps, also, other conditions... This bug announces, wrongly, of

Re: Self-modifying Code

2005-05-19 Thread Do Re Mi chel La Si Do
Hi, you, also ! A view, with a little difference : def titi(par): if par>222: return par*2 else: return par*10 print titi(123) print titi(1234) #now, change the function, "on instant" txt="""def titi(par): if par>222: return str(par)*2 else: retu

Re: Memory errors with large zip files

2005-05-20 Thread Do Re Mi chel La Si Do
Hi I had make this test (try) : - create 12 txt's files of 100 MB (exactly 102 400 000 bytes) - create the file "tst.zip" who contains this 12 files (but the file result is only 1 095 965 bytes size...) - delete the 12 txt's files - try your code And... it's OK for me. But : the compress

Re: Self-modifying Code

2005-05-22 Thread Do Re Mi chel La Si Do
Hi ! I often use the auto-modification of code, to allow the users to adapt software to the evolution of their needs. When this technique is controlled, and framed well, it presents only few problems. AMHA, to speak about danger, it is the result of a lack of practice and tests. It is a litt

Re: no win32com.client

2005-05-23 Thread Do Re Mi chel La Si Do
Hi ! Or : http://sourceforge.net/project/showfiles.php?group_id=78018 @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Just remember that Python is sexy

2005-05-24 Thread Do Re Mi chel La Si Do
:-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Determine if windows drive letter is hard drive or optical from python?

2005-05-27 Thread Do Re Mi chel La Si Do
Hi ! You can use WMI, for that. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: write to the same file from multiple processes at the same time?

2005-05-28 Thread Do Re Mi chel La Si Do
Hi ! On windows, with PyWin32, to read this little sample-code : import time import win32file, win32con, pywintypes def flock(file): hfile = win32file._get_osfhandle(file.fileno()) win32file.LockFileEx(hfile, win32con.LOCKFILE_EXCLUSIVE_LOCK, 0, 0x, pywintypes.OVERLAPPED()) def f

Python boilerplate

2016-03-19 Thread Fernando Felix do Nascimento Junior
A simple boilerplate for those who don't know the structure of a project. https://goo.gl/lJRvS6 ## Features * Build and distribute with setuptools * Check code style with flake8 * Make and run tests with pytest * Run tests on every Python version with tox * Code coverage with coverage.py ## Str

Re: Python boilerplate

2016-03-20 Thread Fernando Felix do Nascimento Junior
@all I released version 1.0.0 with a tiny glossary and explanation of each file in the boilerplate. @Chris I made the boilerplate with intent that everyone can understand, download and use quickly. So, I didn't put extra dependence like cookiecutter (that depends jinja, that depends markupsaf

<    1   2