Need python script to get last 6 month's monthly billing

2017-08-08 Thread sandeep . gk789
Hi, I would like to create AWS monthly billing graph using python and python flask.so for this i need python script using that i have to get last 6 month's monthly bill in AWS. for this, i have created one virtual environment in my local machine. for examplle my ip is: 127.0.0.0:5000. Here aft

[RELEASED] Python 3.5.4 is now available

2017-08-08 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm pleased to announce the availability of Python 3.5.4. Python 3.5.4 is the final 3.5 release in "bug fix" mode. The Python 3.5 branch has now transitioned into "security fixes mode"; all future improvements i

Re: Need python script to get last 6 month's monthly billing

2017-08-08 Thread Joel Goldstick
On Tue, Aug 8, 2017 at 6:18 AM, wrote: > Hi, > > > I would like to create AWS monthly billing graph using python and python > flask.so for this i need python script using that i have to get last 6 > month's monthly bill in AWS. > for this, i have created one virtual environment in my local machin

Re: Planning a Python Course for Beginners

2017-08-08 Thread Chris Angelico
On Wed, Aug 9, 2017 at 12:19 AM, Stefan Ram wrote: > I am planning a Python course. > Before answering any other questions, answer this one: Why a new Python course? How is it different from what already exists? The answer to that will govern just about everything else. The specifics that you

Re: Planning a Python Course for Beginners

2017-08-08 Thread Peter Heitzer
Stefan Ram wrote: > I am planning a Python course. [different topics] > Are there any other very simple things that > I have missed and that should be covered very > early in a Python course? The differences between blanks and tabs :-) -- Dipl.-Inform(FH) Peter Heitzer, peter.heit...@rz.u

Re: Planning a Python Course for Beginners

2017-08-08 Thread Chris Angelico
On Wed, Aug 9, 2017 at 1:02 AM, Stefan Ram wrote: > Chris Angelico writes: >>Why a new Python course? > > It is not a course in the sense of a written text > (which I would call "course notes"). > > It is a course in the sense of an event, where I will meet > participants in a classroom.

Re: Planning a Python Course for Beginners

2017-08-08 Thread justin walters
On Tue, Aug 8, 2017 at 7:19 AM, Stefan Ram wrote: > I am planning a Python course. > > I started by writing the course akin to courses I gave > in other languages, that means, the course starts roughly > with these topics: > > - number and string literals > - types of number and string li

Re: Planning a Python Course for Beginners

2017-08-08 Thread Grant Edwards
On 2017-08-08, Peter Heitzer wrote: > Stefan Ram wrote: >> I am planning a Python course. > [different topics] >> Are there any other very simple things that >> I have missed and that should be covered very >> early in a Python course? > > The differences between blanks and tabs :-) You've

[ANN] Daily Windows builds of Python 3.x

2017-08-08 Thread Steve Dower
Hi all As part of a deal with Zach Ware at PyCon, I agreed that if he removed the Subversion dependency from our builds, I would set up daily Windows builds of Python. Zach did an excellent job, and so I am now following through on my half of the deal :) For a while I've been uploading the o

Validating regexp

2017-08-08 Thread Larry Martell
Anyone have any code or know of any packages for validating a regexp? I have an app that allows users to enter regexps for db searching. When a user enters an invalid one (e.g. 'A|B|' is one I just saw) it causes downstream issues. I'd like to flag it at entry time. -- https://mail.python.org/mai

Re: Validating regexp

2017-08-08 Thread MRAB
On 2017-08-08 17:37, Larry Martell wrote: Anyone have any code or know of any packages for validating a regexp? I have an app that allows users to enter regexps for db searching. When a user enters an invalid one (e.g. 'A|B|' is one I just saw) it causes downstream issues. I'd like to flag it at

Re: Validating regexp

2017-08-08 Thread Skip Montanaro
> I have an app that allows users to enter regexps for db searching. > When a user enters an invalid one (e.g. 'A|B|' is one I just saw) it > causes downstream issues. I'd like to flag it at entry time. Just call re.compile(...) on it and catch any exceptions, modulo caveats about operating with u

Re: Validating regexp

2017-08-08 Thread Larry Martell
On Tue, Aug 8, 2017 at 12:51 PM, Chris Angelico wrote: > On Wed, Aug 9, 2017 at 2:37 AM, Larry Martell wrote: >> Anyone have any code or know of any packages for validating a regexp? >> >> I have an app that allows users to enter regexps for db searching. >> When a user enters an invalid one (e.g

Re: Validating regexp

2017-08-08 Thread Chris Angelico
On Wed, Aug 9, 2017 at 2:37 AM, Larry Martell wrote: > Anyone have any code or know of any packages for validating a regexp? > > I have an app that allows users to enter regexps for db searching. > When a user enters an invalid one (e.g. 'A|B|' is one I just saw) it > causes downstream issues. I'd

Re: Validating regexp

2017-08-08 Thread Larry Martell
On Tue, Aug 8, 2017 at 12:57 PM, Larry Martell wrote: > On Tue, Aug 8, 2017 at 12:51 PM, Chris Angelico wrote: >> On Wed, Aug 9, 2017 at 2:37 AM, Larry Martell >> wrote: >>> Anyone have any code or know of any packages for validating a regexp? >>> >>> I have an app that allows users to enter re

Re: Validating regexp

2017-08-08 Thread Chris Angelico
On Wed, Aug 9, 2017 at 2:57 AM, Larry Martell wrote: > On Tue, Aug 8, 2017 at 12:51 PM, Chris Angelico wrote: >> On Wed, Aug 9, 2017 at 2:37 AM, Larry Martell >> wrote: >>> Anyone have any code or know of any packages for validating a regexp? >>> >>> I have an app that allows users to enter reg

Re: Validating regexp

2017-08-08 Thread Jon Ribbens
On 2017-08-08, Chris Angelico wrote: > On Wed, Aug 9, 2017 at 2:57 AM, Larry Martell wrote: >> Yeah, it does not throw for 'A|B|' - but mysql chokes on it with empty >> subexpression for regexp' I'd like to flag it before it gets to SQL. > > Okay, so your definition of validity is "what MySQL wil

Re: [Python-Dev] [ANN] Daily Windows builds of Python 3.x

2017-08-08 Thread Paul Moore
On 8 August 2017 at 17:21, Steve Dower wrote: > For a while I've been uploading the official releases to nuget.org. These > packages can be installed with nuget.exe (latest version always available at > https://aka.ms/nugetclidl), which is quickly becoming a standard tool in > Microsoft's build to

Re: Planning a Python Course for Beginners

2017-08-08 Thread Bob Gailer
On Aug 8, 2017 10:20 AM, "Stefan Ram" wrote: > > I am planning a Python course. > > I started by writing the course akin to courses I gave > in other languages, that means, the course starts roughly > with these topics: > > - number and string literals > - types of number and string litera

__new__ and __init__ - why does this work?

2017-08-08 Thread Ian Pilcher
I have created a class to provide a "hash consing"[1] set. class UniqueSet(frozenset): _registry = dict() def __new__(cls, *args, **kwargs): set = frozenset(*args, **kwargs) try: return UniqueSet._registry[set] except KeyError:

Re: Validating regexp

2017-08-08 Thread Cameron Simpson
On 08Aug2017 17:31, Jon Ribbens wrote: On 2017-08-08, Chris Angelico wrote: On Wed, Aug 9, 2017 at 2:57 AM, Larry Martell wrote: Yeah, it does not throw for 'A|B|' - but mysql chokes on it with empty subexpression for regexp' I'd like to flag it before it gets to SQL. Okay, so your definit

Re: __new__ and __init__ - why does this work?

2017-08-08 Thread Ian Kelly
On Tue, Aug 8, 2017 at 6:08 PM, Ian Pilcher wrote: > I have created a class to provide a "hash consing"[1] set. > > class UniqueSet(frozenset): > > _registry = dict() > > def __new__(cls, *args, **kwargs): > set = frozenset(*args, **kwargs) > try: >