Fetch data from two dates query in python and mongoengine

2018-08-23 Thread mahesh d
Hii My model like this class ProcessedEmails(Document): subject = StringField(max_length=200) fromaddress =StringField(max_length=200) dateofprocessing = StringField(max_length=25) How can find out the records between two dates ?? Note: date of processing is string field Mongodb database using

Re: Unexpected behaviour with DeprecationWarning, Python 3.7 and escape codes

2018-08-23 Thread D'Arcy Cain
On 2018-08-23 06:08 AM, Peter via Python-list wrote: > I understand that Python 3.7 now issues DeprecationWarning for code > entered in the interactive shell and also for single-module programs. I > see this behaviour with: > > C:\wrk> python > python 3.7.0 (v3.7.0:... import imp > __main__:1

Re: Bottle framework references

2018-08-23 Thread tommy yama
More specifically, which online docs? > On 22 Aug 2018, at 8:38 am, Jason Friedman wrote: > >> >> I am building up the microsite based on Bottle framework now. >> Any references/books? I am unfamiliar with this framework yet. >> >> I have used it with success. The online documentation was su

Re: Partitioning a list

2018-08-23 Thread Oscar Benjamin
On Thu, 23 Aug 2018 at 15:32, Sibylle Koczian wrote: > > Am 21.08.2018 um 23:36 schrieb Poul Riis: > > I would like to list all possible ways to put N students in groups of k > > students (suppose that k divides N) with the restriction that no two > > students should ever meet each other in more

Unexpected behaviour with DeprecationWarning, Python 3.7 and escape codes

2018-08-23 Thread Peter via Python-list
I understand that Python 3.7 now issues DeprecationWarning for code entered in the interactive shell and also for single-module programs. I see this behaviour with: C:\wrk> python python 3.7.0 (v3.7.0:... import imp __main__:1: DeprecationWarning: the imp module is deprecated... But if I use

Re: printing to stdout

2018-08-23 Thread richard lucassen
On Mon, 20 Aug 2018 08:19:12 +1000 Cameron Simpson wrote: [sorry for late reply] > Someone else has descibed zip tersely: it pairs it the elements of 2 > lists. In fact it joins up matching elements of an arbitrary number > of iterables. Here is a 3 iterable example: > > >>> zip( (1,2,3), (

EuroPython 2018: Videos for Wednesday available

2018-08-23 Thread M.-A. Lemburg
We are pleased to announce the first batch of cut videos from EuroPython 2018 in Edinburgh, Scotland, UK. * EuroPython 2018 YouTube Playlist * https://www.youtube.com/watch?v=LoRq9yGeBWY&list=PL8uoeex94UhFrNUV2m5MigREebUms39U5 In this batch, we have included all videos for Wed

RE: Python Postgresql complete guide

2018-08-23 Thread David Raymond
Looks good. Having used psycopg2 a fair amount, here are some suggestions I have on extra things to cover or emphasize. -Postgres specific things like remembering to "set search_path to blargh, public;" etc as needed before querying. -An example case of cur.fetchone() returning None, or more

Re: Partitioning a list

2018-08-23 Thread Sibylle Koczian
Am 21.08.2018 um 23:36 schrieb Poul Riis: I would like to list all possible ways to put N students in groups of k students (suppose that k divides N) with the restriction that no two students should ever meet each other in more than one group. I think this is a classical problem and I think the

Re: Partitioning a list

2018-08-23 Thread Poul Riis
I find it surprisingly difficult to find information on this issue on the internet. Until now I've only found this preview of an article: https://www.jstor.org/stable/3615434?seq=1#page_scan_tab_contents Still, I can hardly believe that nobody has made some efforts to make a python algorithm to

Python Postgresql complete guide

2018-08-23 Thread vishalhule24
https://pynative.com/python-postgresql-tutorial/ I have added table of content at the start of the article This tutorial mainly focuses on installing Psycopg2 and use its API to access the PostgreSQL database. It then takes you through data insertion, data retrieval, data update and data dele