quite expensive to import. The way you are doing it is fine.
2016-05-16 1:43 GMT+02:00, eric cuver <
amihaco...@gmail.com>:
> I silly I should watch with the dir method
>
>
>>>> import string
>>>> dir(string)
> ['ChainMap', 'Formatter', 'Template', '_TemplateMetaclass', '__bases__',
> '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__file__',
> '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__',
> '__init__', '__initializing__', '__le__', '__loader__', '__lt__',
> '__name__', '__ne__', '__new__', '__or__', '__package__', '__repr__',
> '__setattr__', '__spec__', '__str__', '__subclasshook__', '_re', '_string',
>
> 'ascii_letters', 'ascii_lowercase', 'ascii_uppercase', 'capwords',
> 'digits', 'hexdigits', 'octdigits', 'printable', 'punctuation', 'toString',
>
> 'whitespace']
>>>>
>
> Le dimanche 15 mai 2016 23:30:46 UTC+2, kiko (on pybonacci) a écrit :
>>
>> 2016-05-15 14:58 GMT+02:00 eric cuver <
amihaco...@gmail.com
>>
>>> I found nothing for Brython and validate form I did a test to see how it
>>>
>>> works with Brython I'll try to create something better as
>>> jquery.validate :
>>>
>>>
>> Is this a question?, an example you want to show to receive feedback?
>>
>> I will provide some feedback.
>>
>> Some functions could be tested easily in regular Python.
>>
>>
>>> <script type="text/javascript"
>>> src="
>>>
https://cdn.rawgit.com/brython-dev/brython/3.2.2/www/src/brython.js">
>>> </script>
>>> <h1>Ceci est le modèle default/brython.html </h1>
>>>
>>> <script type="text/python">
>>>
>>> from browser import document, alert
>>>
>>> def only_letters(tested_string):
>>> for letter in tested_string:
>>> if not letter in "abcdefghijklmnopqrstuvwxyz":
>>>