Re: [Python-Dev] Inconsistent behaviour in import/zipimport hooks

2005-11-08 Thread Guido van Rossum
You didn't show us what's in the zip file. Can you show a zipinfo output? My intention with import was always that without -O, *.pyo files are entirely ignored; and with -O, *.pyc files are entirely ignored. It sounds like you're saying that you want to change this so that .pyc and .pyo are alwa

[Python-Dev] Inconsistent behaviour in import/zipimport hooks

2005-11-08 Thread Osvaldo Santana Neto
Hi, I'm working on Python[1] port for Maemo Platform[2] and I've found a inconsistent behavior in zipimport and import hook with '.pyc' and '.pyo' files. The shell section below show this problem using a 'module_c.pyc', 'module_o.pyo' and 'modules.zip' (with module_c and module_o inside): $ ls mo

Re: [Python-Dev] PEP submission broken?

2005-11-08 Thread David Goodger
[Nick Coghlan] > Would it be worth having a PEP category on the RFE tracker, rather than > submitting pre-PEP's directly to the PEP editors? Couldn't hurt. -- David Goodger signature.asc Description: OpenPGP digital signature

Re: [Python-Dev] PEP submission broken?

2005-11-08 Thread David Goodger
[Bryan Olson] > Though I tried to submit a (pre-) PEP in the proper form through the > proper channels, it has disappeared into the ether. Indeed, it has; I can't find it in my mailbox. Could you re-send the latest text? I'll review it right away. > From what I can tell, We need to address fixi

Re: [Python-Dev] Event loops, PyOS_InputHook, and Tkinter

2005-11-08 Thread Martin v. Löwis
Michiel Jan Laurens de Hoon wrote: > 1) Did I miss something? Is there some way to get an event loop with > Tkinter? Yes, and yes. You are missing multi-threading, which is the widely used approach to doing things simultaneously in a single process. In one thread, user interaction can occur; in a

Re: [Python-Dev] Unifying decimal numbers.

2005-11-08 Thread Bill Janssen
Might be more interesting to think about replacing ints and Decimal with implicit-denominator rational type. In the HTTP-NG typing proposal, we called this a "fixed-point" type. See Section 4.5.1 of http://www.w3.org/Protocols/HTTP-NG/1998/08/draft-frystyk-httpng-arch-00.txt for details. The cur

[Python-Dev] Event loops, PyOS_InputHook, and Tkinter

2005-11-08 Thread Michiel Jan Laurens de Hoon
Dear Pythoneers, I use Python heavily for scientific computing, originally for computational physics and nowadays for computational biology. One of the extension modules I support is pygist, a module for scientific visualization. For this (and similar) packages to work, it is important to have

Re: [Python-Dev] Unifying decimal numbers.

2005-11-08 Thread Josiah Carlson
winlinchu <[EMAIL PROTECTED]> wrote: > Now, Python unified ints and long ints. > For Python 3k, could be introduced a "Decimal" type > (yes, Decimal, the library module!) in place of the > actual float object. Of course, the Decimal type would > be rewritten in C. There is code which relies on st

[Python-Dev] For Python 3k, drop default/implicit hash, and comparison

2005-11-08 Thread Technical Support of Intercable Co
Why 'identity' objects can't define: def __getKey__(self): return Key(self, id(self)) Then they would act as usually, while value object can define def __getKey__(self): return Key(self, self.i, self.j, self.a[1]) (Key is an abstraction to handle subclassing) Of course,

[Python-Dev] Unifying decimal numbers.

2005-11-08 Thread winlinchu
Now, Python unified ints and long ints. For Python 3k, could be introduced a "Decimal" type (yes, Decimal, the library module!) in place of the actual float object. Of course, the Decimal type would be rewritten in C. Thanks. ___ Yahoo! Messenger