Re: Deditor -- pythonic text-editor

2010-08-16 Thread eliasf
On Mon, 16 Aug 2010 14:26:09 +0300, Peter Otten <__pete...@web.de> wrote: Steven D'Aprano wrote: If nobody asks for any changes, then just keep doing what you're doing. Or you can introduce a bug; if your users don't start complaining you don't have any... Even that doesn't work. They may blo

Re: Comparing lists

2010-08-16 Thread eliasf
On Mon, 16 Aug 2010 13:46:07 +0300, Francesco Bochicchio wrote: anybody can point me to a description of how the default comparison of list objects (or other iterables) works? Sequences of the same type are compared using lexicographical ordering: http://docs.python.org/tutorial/datastructur

Re: Nice copy in interactive terminal

2009-08-13 Thread Elias Fotinis (eliasf)
"casebash" wrote: I've been wondering for a while if there exists an interactive terminal which has nice copy feature (ie. I can copy code without getting the >>> in front of every line). It would help if we knew what platform you're interested in -- your User-Agent is G2/1.0, but I don't know

Re: Pywin32 @ windows 7

2009-08-08 Thread Elias Fotinis (eliasf)
"Dennis Lee Bieber" wrote: Has it been built under a 64-bit OS though? (I'll confess I've not looked -- I always install the ActiveState binary for my WinXP (32bit) system, and that library is part of the install) Yes, both Python x64 and pywin32 x64 are native 64-bit applications -- they can'

Re: Bug or feature: double strings as one

2009-08-08 Thread Elias Fotinis (eliasf)
"Carl Banks" wrote: http://www.geocities.com/connorbd/tarpit/magentaaarm.html (It's on Geocities, yikes, someone better archive that) http://web.archive.org/web/*/http://www.geocities.com/connorbd/tarpit/magentaaarm.html :) -- http://mail.python.org/mailman/listinfo/python-list

Re: www.python.org website is down?

2009-08-08 Thread Elias Fotinis (eliasf)
"Caezar" wrote: I cannot connect to the official Python website. [snip] Are you experiencing the same problem? Yes, it's been down for a while. A useful site to check in such occasions is http://downforeveryoneorjustme.com/. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pywin32 @ windows 7

2009-08-08 Thread Elias Fotinis (eliasf)
"Algirdas Brazas" wrote: Did anyone manage to get windows extensions installet on windows 7 64 bit? As far as I try I get only "Setup program invalid or damaged". Try downloading the installer again. It should work then. I haven't tested it on Win7, but my Vista machine has Python and pywin32

Re: Pywin32 @ windows 7

2009-08-08 Thread Elias Fotinis (eliasf)
"Dennis Lee Bieber" wrote: Ever consider that the name has WIN32 in, and not WIN64, for a reason? Win32 is a misnomer; it just means "non-Win16". The same API exists in Windows x64 (with pointers expanded to 64-bit, of course). -- http://mail.python.org/mailman/listinfo/python-list

Re: unique-ifying a list

2009-08-08 Thread Elias Fotinis (eliasf)
"kj" wrote: I suppose that I could write something like def uniquify(items): seen = set() ret = [] for i in items: if not i in seen: ret.append(i) seen.add(i) return ret But this seems to me like such a commonly needed operation that I find it hard to be

Re: Get Cliet IP Address

2009-08-02 Thread eliasf
"Fred Atkinson" wrote: What is the function to obtain the client browser's IP address? Do you mean the external public IP to the Internet? When I wanted to log the dynamic IP that my ADSL connection gets, I used whatismyip.com like this: import urllib2 QUERY_URL = 'http://www.whatismy

Re: Test for Pythonwin?

2009-07-31 Thread eliasf
"steve" wrote: Is there a good way to check if a script is running inside Pythonwin? Perhaps a property or method that is exposed by that environment? I don't know how foolproof it is, but this works: 'pywin' in sys.modules -- http://mail.python.org/mailman/listinfo/python-list