Re: Stopping an iterator and continuing later

2017-11-27 Thread nospam . Gregory Ewing
november nihal wrote: > I should have added I switch off the machine when I stop. ( I dont have options > to keep it in a sleep mode or in hibernation ) The iterator returned by itertools.combinations is pickleable: >>> from pickle import dumps, loads >>> from itertools import combinations >>

Re: Increasing the diversity of people who write Python (was:

2017-11-27 Thread nospam . Rustom Mody
On Monday, November 27, 2017 at 8:07:47 PM UTC+5:30, Chris Angelico wrote: > On Tue, Nov 28, 2017 at 1:25 AM, Rustom Mody wrote: > > You could go one step more sophisticated and use TeX-input method > > (C-x RET C-\) > > After which \'e will collapse as ÄC > > â £Yeah ok but how the ^)*^$# am I to

Multiprocessing interactive processes with connections

2016-09-06 Thread nospam . Charles Hixson
I want to process a bunch of processes that all talk to each other. I've figured out how to do this using queues with the main process as the mail handler, but I'd rather have them talk directly. If I use connections, then I can pass the pipes to the processes, but there doesn't seem to be anythin

gettext on Windows

2006-10-28 Thread russ . phillips . nospam
Hi, I'm trying to use gettext to internationalise my project [1], but I'm getting the following error message with some translations: "Traceback (most recent call last): file PanicButton.py line 36 in ? file Gettext.pyc line 177 in _init_ file Gettext.pyc line 274 in _parse struct.error : unpack

Re: gettext on Windows

2006-10-28 Thread russ . phillips . nospam
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > lan = gettext.GNUTranslations (open (sLang)) > > are you sure the data file is a text file? what happens if you change > the above to > >lan = gettext.GNUTranslations (open (sLang, "rb")) The .mo files aren't text files, they're binary, bu

Re: gettext on Windows

2006-10-28 Thread russ . phillips . nospam
Martin v. Löwis wrote: > [EMAIL PROTECTED] schrieb: > > Traceback (most recent call last): > > File "panicbutton.py", line 36, in ? > > lan = gettext.GNUTranslations (open (sLang, "rb")) > > File "C:\Python24\lib\gettext.py", line 177, in __init__ > > self._parse(fp) > > File "C:\Pyt

Re: gettext on Windows

2006-10-28 Thread russ . phillips . nospam
Leo Kislov wrote: > Try msgunfmt > http://www.gnu.org/software/gettext/manual/html_node/gettext_128.html#SEC128 > to see if it can convert your files back to text. Just tried it, and it was able to convert each of the .mo files back to text without any problems. Russ -- http://mail.python.org/

Re: I want to ask you the most important question of your life. The quest

2005-05-24 Thread phil-news-nospam
In comp.lang.c [EMAIL PROTECTED] wrote: | | THE MOST IMPORTANT QUESTION OF YOUR LIFE | | This is the most important question of your life. | | The question is: Are you saved? ^X^S I am now :-) -- - | Phil Howard KA9W

Re: Argh!! Can't wrap my head around this Python stuff!

2017-11-26 Thread nospam . Vincent Vande Vyvre
Le 26/11/17 Ä 10:09, Greg Tibbet a ÄCcritâ : > I'm an old timer, have programmed in Fortran, C, C++, Perl, and a bit > of Java and trying to learn this new-fangled Python language! > > I've got a small program that uses PIL to create an image, draw some > primitives (rectanges, ellipses, etc...) a

urllib2 and proxies support ?

2006-01-04 Thread tomazi75-nospam(at)gmail.com
Hello all, I've a problem using urllib2 with a proxy which need authentication. I've tested the 'simple way' : -- code -- import urllib # example values for the post my_url = 'http://www.python.org' proxy_info = { 'host' : 'netcache.monentreprise.com', 'port' : 3128,

Problem Python 2.6.1 vs 2.6 & pyWin32

2008-12-15 Thread Michel Claveau - NoSpam SVP ; merci
Hi, all! I have several softwares using Python+PyWin32, often as COMèserver. Ok with Python 2.5.x. I want migrate to Python 2.6. But when I install python-2.6.1.msi + pywin32-212.win32-py2.6, my softs don't run. Tried on five machines (two XP & three Vista). But... if I install python-2.6.

Re: Problem Python 2.6.1 vs 2.6 & pyWin32

2008-12-15 Thread Michel Claveau - NoSpam SVP ; merci
Hi! Thank you very much for your answer. I appreciate many to receive an answer of somebody as you. But I, always, install Python 2.6.1 "for all users" (and, on Vista, UAC is always deactivated). After some tests, the problem seems a bit more complex: call the Python-COM-servers run OK, fr

Re: Problem Python 2.6.1 vs 2.6 & pyWin32

2008-12-15 Thread Michel Claveau - NoSpam SVP ; merci
Hi! I noted, also, than, in some cases, Python26.dll is not copied in %WINDIR%\system32 After that, external softs don't find the DLL. But it's a detail, because it's easy to copy the DLL with install scripts. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/pytho

Re: Python COM

2008-07-29 Thread Michel Claveau - NoSpam SVP ; merci
Re! Pywin32 can use dynamic COM server (without tlb). Therefore, I prefer to wait the return from birdprince... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding Full Path to Process EXE

2008-03-29 Thread Michel Claveau - NoSpam SVP ; merci
Hi! Warning : WMI give the "command-line" of a process only for windows > 2000 @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: mmap and ctypes

2008-08-16 Thread Michel Claveau - NoSpam SVP ; merci
Hi! I use mmap for interchange data between Python & Autoit. For that, I use (Autoit's side) a little DLL. This DLL can, perhaps, be used with ctypes. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6, GUI not working on vista?

2008-10-04 Thread Michel Claveau - NoSpam SVP ; merci
Hi! Another way is to de-activate UAC. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

<    1   2