Re: logging module - how to include method's class name when using %(funcName)

2018-09-10 Thread dieter
Malcolm Greene writes: > I'm using the Python logging module and looking for a way to include a > method's class name when using %(funcName). Is this possible? If it does not happen automatically, the standard logging components will not let you do it (the name "funcName" is rather explicit; you

Re: on rasberry pi 3 python 2.7 , trying to run code on geckodriver with selenium and getting error

2018-09-10 Thread dieter
alon.naj...@gmail.com writes: > on rasberry pi 3 python 2.7 , trying to run code on geckodriver with selenium > and getting an error the Firefox browser is opened automatically :) it just > don't work I'm not getting the stock value on the print BTW it works on my PC > with ChromeDriver - > > T

logging module - how to include method's class name when using %(funcName)

2018-09-10 Thread Malcolm Greene
I'm using the Python logging module and looking for a way to include a method's class name when using %(funcName). Is this possible? When you have several related classes, just getting the function (method) name is not enough information to provide context on the code being executed. I'm outputting

Re: perplexing error

2018-09-10 Thread Chris Angelico
On Tue, Sep 11, 2018 at 7:50 AM, Peter Pearson wrote: > On 8 Sep 2018 19:10:09 GMT, Stefan Ram wrote: >> Peter Pearson writes: >>>On 8 Sep 2018 17:25:52 GMT, Stefan Ram wrote: In such cases, I do: print( 'at position 1' ) >>>This approach is especially valuable when it turns out that >>

Re: perplexing error

2018-09-10 Thread Peter Pearson
On 8 Sep 2018 19:10:09 GMT, Stefan Ram wrote: > Peter Pearson writes: >>On 8 Sep 2018 17:25:52 GMT, Stefan Ram wrote: >>>In such cases, I do: >>>print( 'at position 1' ) >>This approach is especially valuable when it turns out that >>the file you're editing is not the file being included. > >

Re: "glob.glob('weirdness')" Any thoughts?

2018-09-10 Thread Max Zettlmeißl via Python-list
On Mon, Sep 10, 2018 at 3:05 PM, Thomas Jollans wrote: from glob import glob glob('test *') > ['test comment', 'test [co]mment', 'test [fallacy]', 'test [comments]', > 'test [comment] a'] glob('test [[]*') > ['test [co]mment', 'test [fallacy]', 'test [comments]', 'test [comment] a']

Re: don't quite understand mailing list

2018-09-10 Thread Tomasz Rola
On Thu, Sep 06, 2018 at 07:10:10PM +, VanDyk, Richard T wrote: > Greetings; > > I sent in a question on how to install robot framework on python 3.7 > using pip (or any other way). None of the commands on the >>> seem > to work for me. I was asked to update the c/c++ runtime which I > don't kn

Re: don't quite understand mailing list

2018-09-10 Thread Ethan Furman
On 09/10/2018 05:23 AM, Chris Angelico wrote: On Mon, Sep 10, 2018 at 10:03 PM, Ethan Furman wrote: Actually, you did say something at the time: https://mail.python.org/pipermail/python-list Not sure what this link is stating. Did you intend to link directly to a post? Or are you saying gene

Re: "glob.glob('weirdness')" Any thoughts?

2018-09-10 Thread Peter Otten
Max Zettlmeißl via Python-list wrote: >> glob('./Testfile [[]comment]*') >> > > That is about the least correct working solution one could conceive. > Of course your suggested "glob('./Testfile [[]comment]*')" works in > the positive case, but pretty much comes down to a glob('./Testfile > [[]*')

Re: "glob.glob('weirdness')" Any thoughts?

2018-09-10 Thread Thomas Jollans
On 10/09/18 14:40, Max Zettlmeißl via Python-list wrote: On Sun, Sep 9, 2018 at 6:03 PM, Thomas Jollans wrote: https://docs.python.org/3/library/glob.html#glob.escape demonstrates a way of escaping that works: glob('./Testfile [[]comment]*') That is about the least correct working solution o

Re: "glob.glob('weirdness')" Any thoughts?

2018-09-10 Thread Max Zettlmeißl via Python-list
On Sun, Sep 9, 2018 at 6:03 PM, Thomas Jollans wrote: > On 09/09/2018 02:20 PM, Gilmeh Serda wrote: >> >> >> # Python 3.6.1/Linux >> (acts the same in Python 2.7.3 also, by the way) >> > from glob import glob >> >> > glob('./Testfile *') >> >> ['./Testfile [comment] some text.txt'] >>

Re: don't quite understand mailing list

2018-09-10 Thread Chris Angelico
On Mon, Sep 10, 2018 at 10:03 PM, Ethan Furman wrote: > On 09/06/2018 07:40 PM, Steven D'Aprano wrote: >> Ethan, you are a great contributor on many of the Python mailing lists, >> but your tone-policing is inappropriate, and your CoC banning of Rick and >> Bart back in July was an excessive and u

Re: don't quite understand mailing list

2018-09-10 Thread Ethan Furman
On 09/06/2018 07:40 PM, Steven D'Aprano wrote: On Thu, 06 Sep 2018 13:06:22 -0700, Ethan Furman wrote: On 09/06/2018 12:42 PM, Reto Brunner wrote: What do you think the link, which is attached to every email you receive from the list, is for? Listinfo sounds very promising, doesn't it? And if

Re: "glob.glob('weirdness')" Any thoughts?

2018-09-10 Thread Max Zettlmeißl via Python-list
On Sun, Sep 9, 2018 at 2:20 PM, Gilmeh Serda wrote: > > # Python 3.6.1/Linux > (acts the same in Python 2.7.3 also, by the way) > from glob import glob > glob('./Testfile *') > ['./Testfile [comment] some text.txt'] > glob('./Testfile [comment]*') > [] > glob('./Testfile [comme

Lightweight Learn Python book

2018-09-10 Thread Abdur-Rahmaan Janhangeer
wrote a small guide on python, feedbacks appreciated https://www.pythonmembers.club/wp-content/uploads/2018/09/lightweight_learn_python_draft_1-1.pdf Abdur-Rahmaan Janhangeer -- https://mail.python.org/mailman/listinfo/python-list

on rasberry pi 3 python 2.7 , trying to run code on geckodriver with selenium and getting error

2018-09-10 Thread alon . najman
hi , on rasberry pi 3 python 2.7 , trying to run code on geckodriver with selenium and getting an error the Firefox browser is opened automatically :) it just don't work I'm not getting the stock value on the print BTW it works on my PC with ChromeDriver - Traceback (most recent call last): F

Re: (new try) - Running a second wsgi script from within the first wsgi script

2018-09-10 Thread Alister via Python-list
On Sun, 09 Sep 2018 18:47:49 -0700, Νίκος Βέργος wrote: > I have 3 wsgi scripts listening on 3 locations. What i'm trying to run > an wsgi script from within another wsgi script with the following > statement. > > page = 'clientele' > pdata = requests.get( 'http://superhost.gr/' + page ) > pdata