Re: Python Program Help

2020-07-22 Thread Elias Fotinis
On 21/07/2020 22:25, Terry Reedy wrote: The only way I discovered to get that error, on Windows, is to hit control-D in response to the prompt. Slight correction: On Windows, EOF is signaled with Ctrl-Z. This is the same as hitting F6 in the legacy console (can't check with Win10 at the momen

Re: Wgy isn't there a good RAD Gui tool fo python

2011-07-11 Thread Elias Fotinis
On Mon, 11 Jul 2011 20:11:56 +0300, Stefan Behnel wrote: Just a quick suggestion regarding the way you posed your question. It's usually better to ask if anyone knows a good tool to do a specific job (which you would describe in your post), instead of complaining about there being none. Opini

Re: Python and Lisp : car and cdr

2011-06-19 Thread Elias Fotinis
On Sun, 19 Jun 2011 15:56:27 +0300, Ethan Furman wrote: Lie Ryan wrote: def length(L): if not L: return 0 return 1 + length(cdr(L)) How is this different from regular ol' 'len' ? It's better, because len() can't overflow the stack. ;) -- http://mail.python.org/mailman/listinfo/py

Re: HTTPConncetion - HEAD request

2011-06-19 Thread Elias Fotinis
On Fri, 17 Jun 2011 20:53:39 +0300, gervaz wrote: I decided to implement this solution: class HeadRequest(urllib.request.Request): def get_method(self): return "HEAD" Now I download the url using: r = HeadRequest(url, None, self.headers) c = urllib.request.urlopen(r) but I don't

Re: Windows Registry Keys

2011-05-19 Thread Elias Fotinis
On Thu, 19 May 2011 21:03:34 +0300, Mathew wrote: I have installed a new version of Python27 in a new directory. I want to get this info into the registry so, when I install Numpy, it will use my new Python If I understand correctly (you have multiple Python 2.7 installations and what to mak

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