[BangPypers] File operations

Shashidhar Paragonda shashidhar85 at gmail.com
Wed Oct 19 15:01:03 CEST 2011


Our customer wants some addon and our tool at customer place is still
running with Python v2.3.5 & Zope v2.7.X I dont have option to change now
,ya in near future I am migrating to newer version of python & zope.


On Wed, Oct 19, 2011 at 6:13 PM, Noufal Ibrahim <noufal at gmail.com> wrote:

> Shashidhar Paragonda <shashidhar85 at gmail.com> writes:
>
> > Hello Noufal  I have tried your solution but i get invalid syntax for
> this
> > line *with open(............)
> > *I am using python 2.3.5 what could be the problem.
>
> You could simply use f = open("file.txt","r") instead.
>
> The with statement was added only later.
> 2.3.5 is quite old. Why don't you upgrade?
>
>
> [...]
>
>
> --
> ~noufal
> http://nibrahim.net.in
>
> May I ask a question?
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>



-- 
-----------------------------------
Regards,

Shashidhar N.Paragonda
shashidhar85 at gmail.com
+919449073835


More information about the BangPypers mailing list