Re: [BangPypers] ubutu fonts..

2011-11-08 Thread Vinay Shastry
On 8 November 2011 18:51, Sreenivas Reddy T wrote: > Hi, > > Please pardon me for this off-topic post. > > I really like default font of ubuntu command line. I don’t know the name of > it or I don’t know how to get the name of it. > > Anybody know the name of that font? > > Are they present in win

Re: [BangPypers] plist files

2011-03-14 Thread Vinay Shastry
On 15 March 2011 01:21, Vinay Shastry wrote: > On 14 March 2011 17:21, Python User wrote: >> Hi All, >> >> I have a plist file, test.plist, All I want is read the scriptNO tag value >> 12345 and replace it with 67899. Can any one please help me out for &

Re: [BangPypers] plist files

2011-03-14 Thread Vinay Shastry
On 14 March 2011 17:21, Python User wrote: > Hi All, > > I have a plist file, test.plist, All I want is read the scriptNO tag value > 12345 and replace it with 67899. Can any one please help me out for > this. The file content is > > > http://www.test.com/DTDs/PropertyList-1.0.dtd";> > > > >

Re: [BangPypers] Dictionary : An elementary question

2010-08-18 Thread Vinay Shastry
On 18 August 2010 22:58, Anand Shankar wrote: > During a tutorial python session with my colleagues I was presented with a > basic > question > d = {'apple':2,'banana':5, 'coke': 6} print d.keys() > ['coke', 'apple', 'banana'] > > > Question is why does it not return > > ['apple','banan

Re: [BangPypers] Imaging will not compile

2010-08-04 Thread Vinay Shastry
On 4 August 2010 16:30, Noufal Ibrahim wrote: > There isn't a PIL or an Imaging top level module in the PIL package. > http://www.pythonware.com/library/pil/handbook/ > > If importing "Image" works, I think it's installed properly. A lot of 3rd party apps/modules (plone for example) do "from PIL

Re: [BangPypers] Imaging will not compile

2010-08-04 Thread Vinay Shastry
On 4 August 2010 13:00, Kenneth Gonsalves wrote: > > thanks - I am an idiot! easy_install worked, I see the egg in site-packages, > but import PIL, or import Imaging both fail. Does "import Image" work? If yes, easy_install and PIL don't work well with each other. For some reason, PIL module is

Re: [BangPypers] date range

2010-02-24 Thread Vinay Shastry
On 25 February 2010 09:21, Shashwat Anand wrote: >> >> It can be called just once too... >> >> >>> def foo(): >> ...   print "called" >> ...   return 0 >> ... >> >>> 1 < foo() and foo() < 3 >> called >> False >> > > This is because AND operator short-circuits. So when 1 < foo() is false, it > term

Re: [BangPypers] date range

2010-02-24 Thread Vinay Shastry
On 10 February 2010 09:37, Srinivas Reddy Thatiparthy wrote: > > It's called TWICE  , no matter with or without side effects. > I asked this on SO,somebody came up with this answer! > def check(): >        print 'Called Once' >        return 2 > 1 Called Once > True 1 Called Once >