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:
>
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
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:
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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.
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
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
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
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
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
22 matches
Mail list logo