Re: Generating a specific list of intsgers

2018-08-24 Thread Steven D'Aprano
On Fri, 24 Aug 2018 14:40:00 -0700, tomusatov wrote: > I am looking for a program able to output a set of integers meeting the > following requirement: > > a(n) is the minimum k > 0 such that n*2^k - 3 is prime, or 0 if no such > k exists > > Could anyone get me started? (I am an amateur) That

Re: Bottle framework references

2018-08-24 Thread Jason Friedman
> > > > 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 sufficient > for > > my nee

Re: zpifile.py error - no crc 32 attribute

2018-08-24 Thread jacob m
Hi all, Thanks for your help, I reinstalled my Python and now it seems to be working :) Before building Python3 i uncommented: #zlib zlibmodule.c -I$(prefix)/include in Modules/Setup.dist and then I enabled ipv6 during the configuration. Regards On Thu, 23 Aug 2018 at 01:59, MRAB wrote: > On 201

Re: Generating a specific list of intsgers

2018-08-24 Thread MRAB
On 2018-08-24 22:54, Ian Kelly wrote: On Fri, Aug 24, 2018 at 3:47 PM wrote: I am looking for a program able to output a set of integers meeting the following requirement: a(n) is the minimum k > 0 such that n*2^k - 3 is prime, or 0 if no such k exists Could anyone get me started? (I am an

Re: Generating a specific list of intsgers

2018-08-24 Thread Ian Kelly
On Fri, Aug 24, 2018 at 3:47 PM wrote: > > I am looking for a program able to output a set of integers meeting the > following requirement: > > a(n) is the minimum k > 0 such that n*2^k - 3 is prime, or 0 if no such k > exists > > Could anyone get me started? (I am an amateur) Is there some kno

Generating a specific list of intsgers

2018-08-24 Thread tomusatov
I am looking for a program able to output a set of integers meeting the following requirement: a(n) is the minimum k > 0 such that n*2^k - 3 is prime, or 0 if no such k exists Could anyone get me started? (I am an amateur) Thanks, Musatov -- https://mail.python.org/mailman/listinfo/python-lis

Re: Path-like objects in the standard library

2018-08-24 Thread Terry Reedy
On 8/24/2018 5:28 AM, Paul Moore wrote: On Fri, 24 Aug 2018 at 09:57, Torsten Bronger wrote: Hallöchen! Path-like objects are accepted by all path-processing functions in the standard library since Python 3.6. Unfortunately, this is not made explicit everywhere. In particular, if I pass a P

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 d wrote: > >> [image: Boxbe]

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.

Re: Path-like objects in the standard library

2018-08-24 Thread Paul Moore
On Fri, 24 Aug 2018 at 09:57, Torsten Bronger wrote: > > Hallöchen! > > Path-like objects are accepted by all path-processing functions in > the standard library since Python 3.6. Unfortunately, this is not > made explicit everywhere. In particular, if I pass a Path in the > first argument of su

Path-like objects in the standard library

2018-08-24 Thread Torsten Bronger
Hallöchen! Path-like objects are accepted by all path-processing functions in the standard library since Python 3.6. Unfortunately, this is not made explicit everywhere. In particular, if I pass a Path in the first argument of subprocess.run, do I use an implementation detail of CPython? Becaus