loading multiple module with same name using importlib.machinery.SourceFileLoader

2016-05-02 Thread ulf . worsoe
I have observed this behaviour, for some reason only on OS X (and Python 3.5.1): I use importlib.machinery.SourceFileLoader to load a long list of modules. The modules are not located in the loader path, and many of them have the same name, i.e. I would have: m1 = importlib.machinery.SourceFile

Re: Python ctypes on win64

2009-07-30 Thread ulf
On Jul 25, 3:09 am, a...@pythoncraft.com (Aahz) wrote: > In article , Thanks, I'll try there. > > ulf   wrote: > > >Does anybody know if python includes a win64 version ofctypes? > > >According to the documentation it should be included - at least > >there

Python ctypes on win64

2009-07-22 Thread ulf
Hi, Does anybody know if python includes a win64 version of ctypes? According to the documentation it should be included - at least there's no special remarks for win64, and I haven't found any recent notes saying that it shouldn't work on win64. Yet it looks like both the installer from Python.o

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-29 Thread Ulf Wiger
; Silverlight)? I guess the OpenGL binding for Erlang qualifies. The best exhibit of this would be Wings3D, an Open Source 3D graphics modeller, written in Erlang, and with quite a large user base. http://www.wings3d.com BR, Ulf W -- Ulf Wiger, Senior Specialist, / / / Architecture & D

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-03-07 Thread Ulf Göransson
[EMAIL PROTECTED] wrote: uhm i'm trying to make a very simple but large database: Let's say I want these fields : |name|age|country| Then I can't do this because I use the same key db["name"] = 'piet' db["age"] = '20' db["country"] = 'nl' #same keys so it wil overwrite db["name"] = 'jan' db["ag

Re: Fonts and PIL

2005-02-23 Thread Ulf Göransson
Greg Lindstrom wrote: I'm running Python 2.3 on a windows box and would like to use PIL to superimpose text over an existing pgn image. I have no problem getting the text on the image but can not figure out how to manage fonts. How to set the font style and size. From reading the archives I s

Re: goto, cls, wait commands

2005-02-10 Thread Ulf Göransson
Bruno Desthuilliers wrote: Duncan Booth a écrit : BOOGIEMAN wrote: Secondly, how do I clear screen (cls) from text and other content ? That depends on your computer, and how you are running your program. One way which *might* work is: import os os.system("cls") *might* work... !-) [EMAIL PRO

Re: Python mail filter

2005-02-09 Thread Ulf Göransson
Mailer wrote: The basic premise, as I understand is this: Read mail from stdin Parse headers etc using rfc822 or email module Process # Now I need to do one of the following: # Discard mail # Pass through # Forward to another account, possibly modifying the mail Now that I have coded up some stuff,

Re: Open Folder in Desktop

2005-01-25 Thread Ulf Göransson
Kamilche wrote: Is there a command you can execute in Python that will open a window on the desktop, such as 'My Documents'? Kind of like 'system', but for folder names, not just programs. I'm running on Windows 2000. Maybe this is good enough? os.system("explorer " + folder_path) /ug -- http://mai