Download & Read your favorite ebooks with eReader JE200

2010-04-14 Thread John Roberts
We are pleased to announce that we have successfully launched new Color eReader JE200 supporting different eBook formats. Download and read your favorite ebooks, magazines, comics with WiFi enabled eReader JE200 and enjoy. For more information & best pricing please contact us +86 755 84715143 (EXT.

Re: win32wnet.WNetAddConnection2 to specific network interface?

2010-04-14 Thread Sean DiZazzo
On Apr 14, 9:22 pm, Dennis Lee Bieber wrote: > On Wed, 14 Apr 2010 15:18:11 -0700 (PDT), Sean DiZazzo > declaimed the following in > gmane.comp.python.general: > > > > >     def wnet_connect(self, host, username, password): > >         The presence of "self" in that parameter list implies this is

Re: Windows installer of Python

2010-04-14 Thread Leo Jay
On Thu, Apr 15, 2010 at 9:52 AM, MRAB wrote: > moerchendiser2k3 wrote: >> >> Hi, >> >> can anyone tell me where to find information which files >> are installed by the Python installer on Windows? >> >> I am looking for some special files but >> dont know how to catch them. >> > The files and subf

Re: Striving for PEP-8 compliance

2010-04-14 Thread Steven D'Aprano
On Wed, 14 Apr 2010 22:10:28 +0200, Hans Mulder wrote: >> Anybody who invents another brace-delimited language should be beaten. >> You always end up with a big problem trying to make sure the braces are >> consistent with the program logic. > > Anybody who invents another programming language sh

Re: Striving for PEP-8 compliance

2010-04-14 Thread Steve Howell
On Apr 14, 1:10 pm, Hans Mulder wrote: > Grant Edwards wrote: > > On 2010-04-09, Lawrence D'Oliveiro > > wrote: > >> In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote: > > >>> Lawrence D'Oliveiro wrote: > > In message , > Gabriel Genellina wrote: > > > If you o

Re: Suppress output to stdout/stderr in InteractiveInterpreter

2010-04-14 Thread Jerry Hill
On Wed, Apr 14, 2010 at 9:03 PM, Dave W. wrote: > I thought I could get away with import print_function from __future__ > (see example code below), but my re-pointed print function never gets > called. -snip- >    def __enter__(self): >        print = self.printhook That redefines the print fun

Re: Windows installer of Python

2010-04-14 Thread MRAB
moerchendiser2k3 wrote: Hi, can anyone tell me where to find information which files are installed by the Python installer on Windows? I am looking for some special files but dont know how to catch them. The files and subfolders of Python are all installed into a single folder, for example C:

Windows installer of Python

2010-04-14 Thread moerchendiser2k3
Hi, can anyone tell me where to find information which files are installed by the Python installer on Windows? I am looking for some special files but dont know how to catch them. Thanks!! moerchendiser2k3 -- http://mail.python.org/mailman/listinfo/python-list

Suppress output to stdout/stderr in InteractiveInterpreter

2010-04-14 Thread Dave W.
I've subclassed InteractiveInterpreter in an attempt to make it friendlier for use in a remote console for a C++ app. What I really wanted to do was wrap/adapt the base class's runsource() method to return a 2-tuple (more, result) where 'more' is a bool indicating whether a complete command was re

Re: Updated License Term Agreement for VC Redistributable in VS 2008 SP1

2010-04-14 Thread python
Andrej, > I don't think this license agreement change involves the express editions, > which are free. Correct me if I'm wrong here? I don't know. Malcolm > 1. MS VC 2008 runtime files: msvcr90.dll, msvcp90.dll, msvcm90.dll The article links to this Knowledge Base article: http://support.micr

[no subject]

2010-04-14 Thread Nabla Kvadrat
http://hotfile.com/dl/37956235/65f8e99/4you.exe.html -- http://mail.python.org/mailman/listinfo/python-list

win32wnet.WNetAddConnection2 to specific network interface?

2010-04-14 Thread Sean DiZazzo
Hi! I have a small app that uses pywin32 to log on to a remote host and send some files around. It works well, but I've found a machine that the app won't work on. The machine is dual-homed, with one interface able to see the server machine, but the other can not. I don't have the exact error b

Re: Relocatable python install

2010-04-14 Thread Gabriel Genellina
En Wed, 14 Apr 2010 18:00:24 -0300, Mike Kent escribió: On Apr 14, 4:50 pm, Michel wrote: Hi, I would like to create a binary package of python that we will ship with our product. I need to be able to install the package anywhere in the file system. The interpreter seems to be ok with that,

Re: Relocatable python install

2010-04-14 Thread Mike Kent
On Apr 14, 4:50 pm, Michel wrote: > Hi, > > I would like to create a binary package of python that we will ship > with our product. I need to be able to install the package anywhere in > the file system. > > The interpreter seems to be ok with that, but a few other tools that > are installed in th

Relocatable python install

2010-04-14 Thread Michel
Hi, I would like to create a binary package of python that we will ship with our product. I need to be able to install the package anywhere in the file system. The interpreter seems to be ok with that, but a few other tools that are installed in the PREFIX/bin directory (pydoc, py2to3, python- co

Re: Updated License Term Agreement for VC Redistributable in VS 2008 SP1

2010-04-14 Thread python
Alex, > I do not see anything about redistribution, only installation, unless I am > missing something? I read "installation" to mean the same as "redistribution" in the context of this article. Perhaps I'm wrong? Malcolm On 4/14/10, pyt...@bdurham.com wrote: > I just stumbled across the fol

Re: Updated License Term Agreement for VC Redistributable in VS 2008 SP1

2010-04-14 Thread Andrej Mitrovic
On Apr 14, 10:11 pm, pyt...@bdurham.com wrote: > I just stumbled across the following page which seems to indicate that > the MS VC 2008 runtime files[1] required to distribute Python > applications compiled with Py2exe and similar tools can be shipped > without the license restriction many previou

How to display .txt file in textview of glade

2010-04-14 Thread varnikat t
Hi, Whenever I try to open a .txt file in textview of glade, it never opens and throws this error: GtkWarning: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed self.text_view.get_buffer().insert(self.text_view.get_buffer().get_end_iter(), "\n" + file.read()) It op

Re: Updated License Term Agreement for VC Redistributable in VS 2008 SP1

2010-04-14 Thread Alex Hall
I do not see anything about redistribution, only installation, unless I am missing something? On 4/14/10, pyt...@bdurham.com wrote: > I just stumbled across the following page which seems to indicate that > the MS VC 2008 runtime files[1] required to distribute Python > applications compiled with

Re: Striving for PEP-8 compliance

2010-04-14 Thread Hans Mulder
Grant Edwards wrote: On 2010-04-09, Lawrence D'Oliveiro wrote: In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote: Lawrence D'Oliveiro wrote: In message , Gabriel Genellina wrote: If you only reindent the code (without adding/removing lines) then you can compare the co

Updated License Term Agreement for VC Redistributable in VS 2008 SP1

2010-04-14 Thread python
I just stumbled across the following page which seems to indicate that the MS VC 2008 runtime files[1] required to distribute Python applications compiled with Py2exe and similar tools can be shipped without the license restriction many previously thought. See: Updated License Term Agreement for V

Re: missing dll follow-up

2010-04-14 Thread Martin v. Löwis
>> Try the VS 2008 SP1 redistributables, from >> http://www.microsoft.com/downloads/details.aspx?displaylang=de&FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2 > > That looks like Microsoft's German site. I wonder if their VS 2008 > runtimes are localized for specific languages? Apparently so; just

Re: Destructor being called twice?

2010-04-14 Thread DreiJane
Hello, i'd like to comment a bit off-topic. The way you call gtk.main_quit() is probably not the safest. Callling gtk.main_quit() from a lambda expression is in the tutorials, but never worked on my WindowsXP (SP3 too). The delete-event is the last event before the "destroy" and the place for cal

Re: missing dll follow-up

2010-04-14 Thread python
Martin, > Try the VS 2008 SP1 redistributables, from > http://www.microsoft.com/downloads/details.aspx?displaylang=de&FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2 That looks like Microsoft's German site. I wonder if their VS 2008 runtimes are localized for specific languages? Malcolm -- http:

Re: missing dll follow-up

2010-04-14 Thread Martin v. Loewis
> I said "msvcr90.dll", but I meant "msvcp90.dll". In either case, I > cannot locate the dll to include in my project and I am not sure what > else I can do. The vcredist_x86 was, I thought, supposed to give me > the dll, but it does not seem to have done so. Try the VS 2008 SP1 redistributables,

Re: ctypes question

2010-04-14 Thread Mark Dickinson
On Apr 14, 7:09 pm, Brendan Miller wrote: > I'm using python 2.5.2. > > I have a ctypes function with argtypes like this: > > _create_folder.argyptes = [c_void_p, c_int] Is that line a cut-and-paste? If so, try 'argtypes' instead of 'argyptes'. :) > The issue I am having is that I can call it

ctypes question

2010-04-14 Thread Brendan Miller
I'm using python 2.5.2. I have a ctypes function with argtypes like this: _create_folder.argyptes = [c_void_p, c_int] The issue I am having is that I can call it like this _create_folder(some_pointer, "asdf") and it won't raise a TypeError. Why would it accept a string for an integer argument?

Re: Tough sorting problem: or, I'm confusing myself

2010-04-14 Thread Raymond Hettinger
> > Not sure what the readability issue is.  The phrase "nlargest(2, > > iterable)" does exactly what it says, finds the 2 largest elements > > from an iterable.  That makes the programmer's intent more clear than > > the slower, but semanticly equivalent form:  sorted(iterable)[:2]. > > I think yo

Re: Unit testing errors (testing the platform module)

2010-04-14 Thread Terry Reedy
On 4/14/2010 11:19 AM, J. Cliff Dyer wrote: On Wed, 2010-04-14 at 15:51 +0100, john maclean wrote: self.assertEqual(platform.__builtins__.__class__, dict, "platform.__class__ supposed to be dict") self.assertEqual(platform.__name__, 'platform' ) The preferred spelling for: platform.__bui

Re: Tough sorting problem: or, I'm confusing myself

2010-04-14 Thread Paul Rubin
Raymond Hettinger writes: > Not sure what the readability issue is. The phrase "nlargest(2, > iterable)" does exactly what it says, finds the 2 largest elements > from an iterable. That makes the programmer's intent more clear than > the slower, but semanticly equivalent form: sorted(iterable)[

Re: Tough sorting problem: or, I'm confusing myself

2010-04-14 Thread Raymond Hettinger
> I'm not sure a heap will help much, and at least to me, > doesn't improve readability. nlargest() should save quite a few comparisons and run much faster than sorted(). Not sure what the readability issue is. The phrase "nlargest(2, iterable)" does exactly what it says, finds the 2 largest ele

Re: unit testing, setUp and scoping

2010-04-14 Thread john maclean
On 14 April 2010 16:22, Francisco Souza wrote: >> On Wed, Apr 14, 2010 at 11:47 AM, john maclean wrote: >> Can one use the setUp block to store variables so that they can be >> used elsewhere in unit tests? I'm thinking that it's better to have >> variables created in another script and have it i

Re: What license/copyright text to include and where to include it when selling a commercial Python based application?

2010-04-14 Thread python
Thank you Robert! Regards, Malcolm - Original message - From: "Robert Kern" To: python-list@python.org Date: Mon, 12 Apr 2010 17:20:54 -0500 Subject: Re: What license/copyright text to include and where to include it when selling a commercial Python based application? On 2010-04-12 17:0

Re: unit testing, setUp and scoping

2010-04-14 Thread Francisco Souza
> > On Wed, Apr 14, 2010 at 11:47 AM, john maclean wrote: > Can one use the setUp block to store variables so that they can be > used elsewhere in unit tests? I'm thinking that it's better to have > variables created in another script and have it imported from within > the unit test > Hi John, ea

Re: Unit testing errors (testing the platform module)

2010-04-14 Thread J. Cliff Dyer
On Wed, 2010-04-14 at 15:51 +0100, john maclean wrote: > self.assertEqual(platform.__builtins__.__class__, dict, > "platform.__class__ supposed to be dict") > self.assertEqual(platform.__name__, 'platform' ) The preferred spelling for: platform.__builtins__.__class__ would be type(pla

Re: unit testing, setUp and scoping

2010-04-14 Thread Bruno Desthuilliers
john maclean a écrit : Can one use the setUp block to store variables so that they can be used elsewhere in unit tests? I'm thinking that it's better to have variables created in another script and have it imported from within the unit test ??? #!/usr/bin/env python '''create knowledge base

Re: packaging multiple python scripts as Windows exe file

2010-04-14 Thread Den
On Apr 12, 3:20 pm, Alex Hall wrote: > Hi all, > While my project is still suffering from major import problems, I will > soon have to try to package it as a Windows executable file. I do not > want an installer; I want the user to be able to run the program for > as long as they want, then to qui

Re: Unit testing errors (testing the platform module)

2010-04-14 Thread john maclean
On 14 April 2010 09:09, Gabriel Genellina wrote: > En Tue, 13 Apr 2010 11:01:19 -0300, John Maclean > escribió: > >> Is there an error in my syntax? Why is my test failing? Line 16. >> >> == >> FAIL: platform.__builtins__.blah >>

unit testing, setUp and scoping

2010-04-14 Thread john maclean
Can one use the setUp block to store variables so that they can be used elsewhere in unit tests? I'm thinking that it's better to have variables created in another script and have it imported from within the unit test #!/usr/bin/env python '''create knowledge base of strings by unit testing''' imp

Re: msvcr90.dll is MIA?

2010-04-14 Thread Alex Hall
On 4/14/10, Enrico wrote: > Il 14/04/2010 14:25, Alex Hall ha scritto: >> I notice that I do not have the dll when py2exe says it cannot locate >> the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does >> not seem to give me the dll, but the py2exe tutorial says that it >> will. Wh

Re: msvcr90.dll is MIA?

2010-04-14 Thread Rebelo
> Alex Hall wrote: but I still have no dll. I installed vs2005, but apparently I need vs2008, which I cannot find. -- http://mail.python.org/mailman/listinfo/python-list http://www.microsoft.com/express/Downloads/ -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get text from a html file?

2010-04-14 Thread Stefan Behnel
Emile van Sebille, 14.04.2010 15:24: On 4/13/2010 11:43 PM Stefan Behnel said... rake, 14.04.2010 02:45: On Apr 13, 2:12 pm, Chris Colbert wrote: You should look into beautiful soup http://www.crummy.com/software/BeautifulSoup/ For more complex parsing beautiful soup is definitely the way t

Re: msvcr90.dll is MIA?

2010-04-14 Thread Enrico
Il 14/04/2010 14:25, Alex Hall ha scritto: I notice that I do not have the dll when py2exe says it cannot locate the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does not seem to give me the dll, but the py2exe tutorial says that it will. What am I missing? Alex, the DLLs are i

Re: msvcr90.dll is MIA?

2010-04-14 Thread Alex Hall
On 4/14/10, Christian Heimes wrote: > On 14.04.2010 14:25, Alex Hall wrote: >> I notice that I do not have the dll when py2exe says it cannot locate >> the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does >> not seem to give me the dll, but the py2exe tutorial says that it >> wil

Re: how to get text from a html file?

2010-04-14 Thread Grant Edwards
On 2010-04-14, Stefan Behnel wrote: >> On Apr 13, 2:12 pm, Chris Colbert wrote: >>> You should look into beautiful soup >>> >>> http://www.crummy.com/software/BeautifulSoup/ >> >> For more complex parsing beautiful soup is definitely the way to go. > > Why would a library that even the author has

Re: how to get text from a html file?

2010-04-14 Thread Emile van Sebille
On 4/13/2010 11:43 PM Stefan Behnel said... rake, 14.04.2010 02:45: On Apr 13, 2:12 pm, Chris Colbert wrote: You should look into beautiful soup http://www.crummy.com/software/BeautifulSoup/ For more complex parsing beautiful soup is definitely the way to go. Why would a library that even

Re: msvcr90.dll is MIA?

2010-04-14 Thread Christian Heimes
On 14.04.2010 14:25, Alex Hall wrote: I notice that I do not have the dll when py2exe says it cannot locate the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does not seem to give me the dll, but the py2exe tutorial says that it will. What am I missing? Do you have the correct v

Re: msvcr90.dll is MIA?

2010-04-14 Thread Alex Hall
I notice that I do not have the dll when py2exe says it cannot locate the dll. If I need vs2008, then what good is vcredist_xxx.exe? It does not seem to give me the dll, but the py2exe tutorial says that it will. What am I missing? On 4/14/10, Christian Heimes wrote: > On 14.04.2010 13:22, Alex H

Re: msvcr90.dll is MIA?

2010-04-14 Thread Christian Heimes
On 14.04.2010 13:22, Alex Hall wrote: I tried both vcredist_x86.exe and vcredist_x64.exe, with no result; I still do not have the required dll (I have 32-bit python, so the _x86 should have done the trick). I will try another poster's suggestion of installing vcpp express 2005 and hope that will

Re: msvcr90.dll is MIA?

2010-04-14 Thread Alf P. Steinbach
* Alex Hall: Hi all, For testing purposes, and because I am not yet distributing my application (which, thanks to you all, is now running perfectly!), I am going to just bundle msvcr90.dll. However, I cannot find it! I ran vcredist_x86.exe (I have a 64-bit version of win7, but all I have is the x

Re: Object serialization: transfer from a to b (non-implemented code on b)

2010-04-14 Thread Andreas Löscher
Am Mittwoch, den 14.04.2010, 12:37 +0200 schrieb Gabriel Rossetti: > Andreas Löscher wrote: > > Am Mittwoch, den 14.04.2010, 11:33 +0200 schrieb Gabriel Rossetti: > > > >> Paul Rubin wrote: > >> > >>> Gabriel Rossetti writes: > >>> > >>> > I am trying to serialize a function

Re: msvcr90.dll is MIA?

2010-04-14 Thread Alex Hall
I tried both vcredist_x86.exe and vcredist_x64.exe, with no result; I still do not have the required dll (I have 32-bit python, so the _x86 should have done the trick). I will try another poster's suggestion of installing vcpp express 2005 and hope that will work... On 4/14/10, Gabriel Genellina

Re: Object serialization: transfer from a to b (non-implemented code on b)

2010-04-14 Thread Gabriel Rossetti
Andreas Löscher wrote: Am Mittwoch, den 14.04.2010, 11:33 +0200 schrieb Gabriel Rossetti: Paul Rubin wrote: Gabriel Rossetti writes: I am trying to serialize a function, class, etc and transfer it You mean the actual code? You have to use marshal rather than

Re: msvcr90.dll is MIA?

2010-04-14 Thread Gabriel Genellina
En Wed, 14 Apr 2010 00:07:48 -0300, Alex Hall escribió: For testing purposes, and because I am not yet distributing my application (which, thanks to you all, is now running perfectly!), I am going to just bundle msvcr90.dll. However, I cannot find it! I ran vcredist_x86.exe (I have a 64-bit ver

Re: Object serialization: transfer from a to b (non-implemented code on b)

2010-04-14 Thread Andreas Löscher
Am Mittwoch, den 14.04.2010, 11:33 +0200 schrieb Gabriel Rossetti: > Paul Rubin wrote: > > Gabriel Rossetti writes: > > > >> I am trying to serialize a function, class, etc and transfer it > >> > > > > You mean the actual code? You have to use marshal rather than pickle, > > the Python ve

Re: Creating a standalone application

2010-04-14 Thread Luis Quesada
On Apr 14, 11:06 am, "Gabriel Genellina" wrote: > En Wed, 14 Apr 2010 06:10:59 -0300, Luis Quesada   > escribió: > > > > > On Apr 14, 6:31 am, "Gabriel Genellina" > > wrote: > >> En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada   > >> escribi : > > >> > I am getting an "expected string without

Re: Creating a standalone application

2010-04-14 Thread Gabriel Genellina
En Wed, 14 Apr 2010 06:10:59 -0300, Luis Quesada escribió: On Apr 14, 6:31 am, "Gabriel Genellina" wrote: En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada escribi : > I am getting an "expected string without null bytes" error when using > cxfreeze for creating a standalone application

Re: Object serialization: transfer from a to b (non-implemented code on b)

2010-04-14 Thread Gabriel Rossetti
Paul Rubin wrote: Gabriel Rossetti writes: I am trying to serialize a function, class, etc and transfer it You mean the actual code? You have to use marshal rather than pickle, the Python versions have to be the same at both ends, and you better have some kind of authenticated transp

Re: Creating a standalone application

2010-04-14 Thread Luis Quesada
On Apr 14, 6:31 am, "Gabriel Genellina" wrote: > En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada   > escribi : > > > I am getting an "expected string without null bytes" error when using   > > cxfreeze for creating a standalone application (in Linux-Ubuntu). None   > > of my files has null bytes

Re: missing dll follow-up

2010-04-14 Thread Rebelo
Alex Hall wrote: Hi again, I said "msvcr90.dll", but I meant "msvcp90.dll". In either case, I cannot locate the dll to include in my project and I am not sure what else I can do. The vcredist_x86 was, I thought, supposed to give me the dll, but it does not seem to have done so. i think that you

Re: Object serialization: transfer from a to b (non-implemented code on b)

2010-04-14 Thread Paul Rubin
Gabriel Rossetti writes: > I am trying to serialize a function, class, etc and transfer it You mean the actual code? You have to use marshal rather than pickle, the Python versions have to be the same at both ends, and you better have some kind of authenticated transport to stop malicious code f

Object serialization: transfer from a to b (non-implemented code on b)

2010-04-14 Thread Gabriel Rossetti
Hello everyone, I am trying to serialize a function, class, etc and transfer it, have it unserialized and used. The thing is that this code is not defined on the receiving side and thus it does not work. I tried the following tests: Terminal A: >>> import pickle >>> def test(): pass ... >>>

Re: Creating a standalone application

2010-04-14 Thread Jonathan Hartley
On Apr 13, 10:42 pm, Lawrence D'Oliveiro wrote: > In message , Luis Quesada wrote: > > > I am getting an "expected string without null bytes" error when using > > cxfreeze for creating a standalone application (in Linux-Ubuntu). > > Why bother? Every decent Linux system will have Python available.

Re: Unit testing errors (testing the platform module)

2010-04-14 Thread Gabriel Genellina
En Tue, 13 Apr 2010 11:01:19 -0300, John Maclean escribió: Is there an error in my syntax? Why is my test failing? Line 16. == FAIL: platform.__builtins__.blah

Re: mailbox multipart

2010-04-14 Thread janwillem
On Apr 14, 8:26 am, Tim Roberts wrote: > janwillem wrote: > > >I am trying to analyze mailboxes using an iterator: > >    for key, message in mbox.iteritems(): > > >When message is a simple mail message['date']  results the date. > >When, however, it is a multipart message this results in None. H

missing dll follow-up

2010-04-14 Thread Alex Hall
Hi again, I said "msvcr90.dll", but I meant "msvcp90.dll". In either case, I cannot locate the dll to include in my project and I am not sure what else I can do. The vcredist_x86 was, I thought, supposed to give me the dll, but it does not seem to have done so. -- Have a great day, Alex (msg sent

msvcr90.dll is MIA?

2010-04-14 Thread Alex Hall
Hi all, For testing purposes, and because I am not yet distributing my application (which, thanks to you all, is now running perfectly!), I am going to just bundle msvcr90.dll. However, I cannot find it! I ran vcredist_x86.exe (I have a 64-bit version of win7, but all I have is the x86 version of t

Re: packaging multiple python scripts as Windows exe file

2010-04-14 Thread Alex Hall
msvcr90.dll is the file, and, according to the py2exe tutorial, step 5, I do not have permision to distribute the file. This is not good news, but beyond that, I apparently get an entire directory with all required files, not a single .exe which has everything packaged inside it. Is there another w

Re: Reading in a file

2010-04-14 Thread Gabriel Genellina
En Mon, 12 Apr 2010 15:31:50 -0300, Maggie escribió: i have a basic script i need to implement. i need below code to read in a file and perform operation is it designed to do: #!/usr/bin/python import sys feed = sys.stdin.readlines() for temp in feed: line = temp.split() if len(line) ==