Re: [OT] Re: Python open proxy honeypot

2006-06-14 Thread imcs ee
On 13 Jun 2006 15:09:57 -0700, Serge Orlov [EMAIL PROTECTED] wrote:
 Alex Reinhart wrote:
 My spam folder at gmail is not growing anymore for many months (it is
 about 600-700 spams a month). Have spammers given up spamming gmail.com
 only or is it global trend?
Gmail said messages that have been in Spam more than 30 days will be
automatically deleted
so may be the speed of spam comes in counterbalanced to the speed spam goes out?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: prog1 | prog2 . How not to make prog2 block if not piped?

2006-06-14 Thread imcs ee
do u really need read something even when you run the scripts2.py directly?
why not just change script2.py to
 #script2.py
if __name__ == __main__:
x=sys.stdin.read()
print 'passed'
else:
print 'passed from else branch'

is it what  you want? or anything i misunderstand.

On 14 Jun 2006 08:13:04 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I googled around, but couldn't understand how to solve this problem.
 I have 2 scripts

 # script1.py #
 print 'something'

 #script2.py
 x=sys.stdin.read()
 print 'passed'

 if I run
 script1.py | script2.py
 all goes well.

 But if I run just
 script2.py
 the program blocks waiting forever for input.

 On *nix I used select.select to solve this problem, but on windows?
 I read that maybe I should use, from win32api, GetStdHandle and
 WaitForMultipleObjects, but how to do it it's far from my knowledge.

 Any help?

 Thank you,
 Riccardo

 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: prog1 | prog2 . How not to make prog2 block if not piped?

2006-06-14 Thread imcs ee
yeah, forget my post ,it;s useless.
sorry for my thoughtless
On 14 Jun 2006 10:40:15 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 imcs ee ha scritto:

  do u really need read something even when you run the scripts2.py directly?
  why not just change script2.py to
   #script2.py
  if __name__ == __main__:
  x=sys.stdin.read()
  print 'passed'
  else:
  print 'passed from else branch'
 
  is it what  you want? or anything i misunderstand.

 it won't do. clever btw.
 Script2 is not a module, it's a program that _could_ receive input via
 pipe.

 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: .py and running in Windows:

2006-06-13 Thread imcs ee
i modify 
C:\Python\python.exe -i %1 %* 
to 
cmd /k;C:\Python\python.exe -i %1 %* 
or
cmd /k;C:\Python\python.exe%1 %* 

just a little trick.
On 13 Jun 2006 06:48:23 -0700, Iain King [EMAIL PROTECTED] wrote:
Andrew Gwozdziewycz wrote: You'll have better results posting this to it's own thread.
He certainly should have, but since I've read it here anyway: On Jun 13, 2006, at 9:29 AM, Michael Yanowitz wrote:  Hello:   Presently in my Windows 2000 system, when I double-click on a
  .py file (open it) it automatically runs it in Python. I would  like to change that behavour. That is fine for .pyc file, but  for .py files, I would either like to have it run in Python but
  return to the Python shell prompt when finished rather than  exit the shell. How do I do that?  Or would it cause a problem (so that Python no longer works) if  I change the default .py extension to open in an editor rather
  than execute it if I open it? In an explorer window, go to Tools-Folder OptionsGo to the File Types tab, find the PY extension, then click onAdvanced*Select the 'open' action, and click Edit...
change the 'Application used to perform action', inserting a '-i'between the exe and the first parameter.For example, I changed mineto:C:\Python\python.exe -i %1 %*The exact line will depend on where your 
python.exe is.OK all the dialogs you've opened, then double click a .py file to testit.*I'm using WinXP, so the exact name of some of the buttons may bedifferent for you.Iain--
http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: daily python url - gmane links dead?

2006-06-13 Thread imcs ee
same error here.

On 6/14/06, K.S.Sreeram [EMAIL PROTECTED] wrote:
 Is it just me.. or are all the gmane links on daily-python dead?
 All the c.l.py.announce entries point to gmane, and none of them seem to
 be working. This is the error i get on gmane:

 Warning: fsockopen(): unable to connect to hugh:8010 in
 /home/httpd/gmane/php/lib.php on line 18
 Couldn't contact hugh:8010
 The web interface is down for maintenance.

 How about using google groups or the python.org archives instead of gmane?

 Regards
 Sreeram



 --
 http://mail.python.org/mailman/listinfo/python-list



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python editor recommendation.

2006-05-09 Thread imcs ee
freeand vim or wingide
On 5/9/06, DeepBlue [EMAIL PROTECTED] wrote:
Hi all,Can any one please recommend me an editor for coding Python. Thank u.I have Komodo (
www.activestate.com) in my mind. Is the editor any good?regards.--http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list