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

2018-08-24 Thread mahesh d
Thanks! On Fri 24 Aug, 2018, 9:01 PM Kunal Jamdade, wrote: > 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

Fetch data from two dates query in python and mongoengine

2018-08-24 Thread mahesh d
. How to write the query in python by using mongoengine Thanks Mahesh D. -- https://mail.python.org/mailman/listinfo/python-list

Read data from .msg all files

2018-05-15 Thread mahesh d
import glob import win32com.client files = glob.glob('C:/Users/A-7993/Desktop/task11/sample emails/*.msg') for file in files: print(file) with open(file) as f: msg=f.read() print(msg) outlook =

Extract data from multiple text files

2018-05-15 Thread mahesh d
import glob,os import errno path = 'C:/Users/A-7993\Desktop/task11/sample emails/' files = glob.glob(path) '''for name in files: print(str(name)) if name.endswith(".txt"): print(name)''' for file in os.listdir(path): print(file) if file.endswith(".txt"):

Extract data

2018-05-15 Thread mahesh d
Hii. I have folder.in that folder some files .txt and some files .msg files. . My requirement is reading those file contents . Extract data in that files . -- https://mail.python.org/mailman/listinfo/python-list

Extract

2018-05-14 Thread mahesh d
Hii I have a directory. In that folder .msg files . How can I extract those files. Thanks & regards Mahesh -- https://mail.python.org/mailman/listinfo/python-list

not able to run python.exe file successsfully

2016-12-23 Thread MAHESH MISHRA
i have installed 3.5.2 version of python my system windows 8.1 64 bit. after successful installation it is not executing python.exe file.whenever i try a dialof box pop up with an error message "python has stopped working". i hav tried reinstalling it several times.please help --

Please Help to build an addon for Anki

2015-04-20 Thread Mahesh Chiramure
as a reward. I am not a programmer yet, please guide. Hoping for a quick response. Mahesh Chirmure # -*- coding: utf-8 -*- # Picture-Flasher (a plugin for Anki) # Authors: # Emanuel Rylke, ema-...@web.de # D_Malik, malik6...@gmail.com # Version 2 # License: GNU GPL, version 3 or later; http

need help in adding xlrd file to the dictionary.

2014-04-27 Thread uma mahesh
Mahesh -- https://mail.python.org/mailman/listinfo/python-list

libc Sleep api performs a busy waiting

2010-03-08 Thread Mahesh
Hi, I am having a problem while using sleep function from libc , the thread in which i am calling it is getting struck and not allowing other threads to execute. Here is a simple code that i am trying to exeute import threading import time import dl def dummy1():

Re: socket.inet_ntop, and pton question

2009-08-05 Thread Mahesh Poojary S
Martin-298 wrote: Hi Are these functions (inet_ntop(), inet_pton()) from the socket library supported on Windows. If not is there an equivalent for them using Windows Ive seen mention of people creating their own in order to use them Appreciate the help ty --

Re: Using python 3 for scripting?

2009-03-22 Thread mahesh
python 2.5 is prefered; On Mar 22, 7:22 pm, timo.my...@gmail.com (Timo Myyrä) wrote: Hi, I'll have to do some scripting in the near future and I was thinking on using the Python for it. I would like to know which version of Python to use? Is the Python 3 ready for use or should I stick

Re: Pycon disappointment

2008-03-17 Thread mahesh . prakriya
On Mar 16, 7:10 am, Bruce Eckel [EMAIL PROTECTED] wrote: If the following seems unnecessarily harsh, it was even more harsh for me to discover that the time and money I had spent to get to my favorite conference had been sold to vendors, presenting me as a captive audience they could pitch to.

Re: ANN: Leo 4.4a1 released

2005-10-17 Thread Mahesh Padmanabhan
for Emacs keystrokes! I would keep installing Leo only to uninstall it afterwards because I would get frustrated. Another welcome change is complete keyboard control. Cheers, Mahesh -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl's documentation come of age

2005-10-05 Thread Mahesh Padmanabhan
In article [EMAIL PROTECTED], Xah Lee [EMAIL PROTECTED] wrote: snip lot of drivel While I don't like to feed the trolls, I do find his posts amusing. He is like a spoilt child seeking attention. -- http://mail.python.org/mailman/listinfo/python-list

Re: Annoying behaviour of the != operator

2005-06-08 Thread Mahesh
No, why should Python assume that if you use != without supplying a __ne__ that this is what you want? Without direction it will compare the two objects which is the default behavior. So, s != t is True because the ids of the two objects are different. The same applies to, for example s t and s

Re: Annoying behaviour of the != operator

2005-06-08 Thread Mahesh
implicit philosophy too far and acts dumb but I think it is acting consistently. Cheers, Mahesh -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib2 pinger : insight as to use, cause of hang-up?

2005-06-06 Thread Mahesh
socket.setdefaulttimeout() is what I have used in the past and it has worked well. I think it is set in the global namespace though I could be wrong. I think it retains its value within the module it is called in. If you use it in a different module if will probably get reset though it is easy

Re: urllib2 pinger : insight as to use, cause of hang-up?

2005-06-05 Thread Mahesh
Timing it out will probably solve it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4.1 hang

2005-04-15 Thread Mahesh
Yes, it is stupid but I am debugging some poorly written C++ code so I cannot change it. It was easier for me to use python to try various combinations (since the C++ code uses a non-standard re engine). I just chanced upon the problem and was curious as to what Python was up to. Thanks for

Cross platform distribution of standalone executable

2005-03-27 Thread Mahesh
this, Macmillan installer was a good contender but now that website seems to be AWOL. Are there any alternate installers out there? Googling didn't bring up any other maintained installer. This installer should be able to build on Windows, Linux and AIX. Thanks, Mahesh -- http://mail.python.org