Re: emacs for python web development

2015-04-04 Thread Sayth
Thanks, got the python bit down is just the Web for flask and django. Getting the templates and snippets to work in a good flow is where I am looking for advice. Cheers Sayth -- https://mail.python.org/mailman/listinfo/python-list

Re: emacs for python web development

2015-04-04 Thread Ben Finney
Sayth writes: > Has anyone got a good configuration or advice for setting up a good > python web development environment in emacs? You can start at the Python Wiki page on Emacs as an editor https://wiki.python.org/moin/EmacsEditor>. -- \ “… a Microsoft Certified System Engineer is t

emacs for python web development

2015-04-04 Thread Sayth
Has anyone got a good configuration or advice for setting up a good python web development environment in emacs? Sayth -- https://mail.python.org/mailman/listinfo/python-list

Re: Python regex exercise

2015-04-04 Thread Vincent Davis
On Sat, Apr 4, 2015 at 5:51 PM, Thomas 'PointedEars' Lahn < pointede...@web.de> wrote: > > Do anyone have good links to python regex or other python problems for > > beginners but with solution. > > > > Please mail me. > ​I recently found​ this https://regex101.com/#python Vincent Davis 720-301

Re: Python regex exercise

2015-04-04 Thread Thomas 'PointedEars' Lahn
Robert Clove wrote: > Do anyone have good links to python regex or other python problems for > beginners but with solution. > > Please mail me.

MicroPython 1.4.1 released

2015-04-04 Thread Damien George
Hello everyone, We are pleased to announce the release of MicroPython version 1.4.1! MicroPython is an implementation of Python 3.4 which is optimised for systems with minimal resources, including microcontrollers. Since our last announcement, this release is both more "micro" and more "Python".

Re: OOP for System Administrator

2015-04-04 Thread Emile van Sebille
On 4/4/2015 8:56 AM, pankaj sharma wrote: Hi, I'm a Linux system administrator and my work requires me to write bash scripts (100-500 lines) for process monitoring, server health check and automate some manual processes. Now I've started to learn python as I want to write scripts in python ra

Re: How to set request module logging to certain level (python 3.4.2)

2015-04-04 Thread zljubisicmob
Looks like I have found (with your help) a solution. Instead of: logging.getLogger('requests.packages.urllib3').setLevel(logging.ERROR) the line should look like: logging.getLogger('urllib3').setLevel(logging.ERROR) After changing the line, everything is OK. Thank you all. Regards. -- http

Re: OOP for System Administrator

2015-04-04 Thread Michael Torrie
On 04/04/2015 09:56 AM, pankaj sharma wrote: > I'm a Linux system administrator and my work requires me to write > bash scripts (100-500 lines) for process monitoring, server health > check and automate some manual processes. Now I've started to learn > python as I want to write scripts in python r

Re: How to set request module logging to certain level (python 3.4.2)

2015-04-04 Thread zljubisicmob
On Saturday, April 4, 2015 at 5:23:02 PM UTC+2, Dennis Lee Bieber wrote: > implies the correct name to use for the logger is > "requests.packages.urllib3". I have changed a script log_test.py. Now it looks like this: #!/usr/bin/python3 import logging, requests logging.basicConfig(filename="obri

OOP for System Administrator

2015-04-04 Thread pankaj sharma
Hi, I'm a Linux system administrator and my work requires me to write bash scripts (100-500 lines) for process monitoring, server health check and automate some manual processes. Now I've started to learn python as I want to write scripts in python rather than bash or any shell. My questions i

Re: How to set request module logging to certain level (python 3.4.2)

2015-04-04 Thread Ian Kelly
On Sat, Apr 4, 2015 at 9:21 AM, Dennis Lee Bieber wrote: > On Sat, 4 Apr 2015 06:07:12 -0700 (PDT), zljubisic...@gmail.com declaimed > the following: > >From requests module, I would like to log from error level above. >> > > Unless the requests module documents that is uses a logger named

Re: beautifulSoup 4.1

2015-04-04 Thread Joe Farro
Could use zip: tds = iter(soup('td')) for abbr, defn in zip(tds, tds): print abbr.get_text(), defn.get_text() -- https://mail.python.org/mailman/listinfo/python-list

How to set request module logging to certain level (python 3.4.2)

2015-04-04 Thread zljubisicmob
Hi, if I execute: import logging, requests logging.basicConfig(filename="obrisi.log", level=10, format='%(asctime)s %(levelname)s %(message)s',datefmt='%d.%m.%Y %H:%M:%S') logging.getLogger('requests').setLevel(logging.ERROR) url = 'http://radio.hrt.hr/prvi-program/arhiva/povijest-cetvrtkom/126/