Re: virtualenv and ubuntu

2018-08-28 Thread Kunal Jamdade
Hi, If you install with sudo it is installed for 2 users i.e current logged in as well as root. So if one login as root can use the installed "env". But if you install it with pip it will be used by the current logged in user. In my opinion, use pip to install virtualenv On Tue, Aug 28, 2018 at

Re: Fetch data from two dates query in python and mongoengine

2018-08-24 Thread Kunal Jamdade
Hi Mahesh, Import Q from queryset. from mongoengine.queryset.visitor import Q ProcessedEmails.objects(Q(first_date) & Q(second_date)) On Fri, Aug 24, 2018 at 12:41 PM mahesh d wrote: > [image: Boxbe] This message is eligible > for Automatic Cleanup! (mahesh.

Regular expression

2017-07-26 Thread Kunal Jamdade
There is a filename say:- 'first-324-True-rms-kjhg-Meterc639.html' . I want to extract the last 4 characters. I tried different regex. but i am not getting it right. Can anyone suggest me how should i proceed.? Regards, Kunal -- https://mail.python.org/mailman/listinfo/python-list

Script to replace contents inside the files

2017-07-23 Thread Kunal Jamdade
I have thousands of html files inside a folder. I want to replace the filename present inside another files. Say for ex:- fileName :- 'abcd1234.html' is found inside another file say file2.html. Then I want to remove the last 4 digits of the fileName i.e,. 'abcd1234.html' => 'abcd.htm'. I have tri

Re: Overriding methods on a per instance basis

2017-05-30 Thread Kunal Jamdade
I tried to understand overriding methods on per instance class. But i am not getting it. Can you help me in getting the mail. Or can u suggest me at least what should i read before reading "this topic"? Can you explain me with one more example? On Tue, May 16, 2017 at 9:30 AM, Nathan Ernst wrot