Re: % string formatting - what special method is used for %d?

2016-12-10 Thread Ian Kelly
On Sat, Dec 10, 2016 at 11:40 PM, Veek M wrote: > Well take a look at this: > ### > #!/usr/bin/python > > class Foo(int): > def __init__(self, value): > self.value = value > > def __str__(self): > print '__str__' > return str(

Help in creating a dynamic/loop based on variables and CSV files

2016-12-10 Thread Umar Yusuf
Hi all, I need your help with any of these questions? 1- http://stackoverflow.com/questions/41083699/python-create-dynamic-loop-based-on-variables-and-csv 2- http://stackoverflow.com/questions/41081800/python-pandas-how-to-use-dataframe-cell-to-search-another-dataframe-column-and Thanks in adv

Re: % string formatting - what special method is used for %d?

2016-12-10 Thread Veek M
Steve D'Aprano wrote: > On Sat, 10 Dec 2016 06:06 pm, Veek M wrote: > >> When we do: >> >> print '%s %d' % ('hello', 10) >> >> what special method is being invoked internally within the string- >> format-specifier? > > %d requires the argument to be an int, or able to be converted to int > usi

Can't find setuptools

2016-12-10 Thread Alonso López
Hi, I'm trying to install the package py-webrtcvad (github.com/wiseman/py-webrtcvad) and running into problems. Here's a summary of what I've tried so far: ·Installed Python 3.5 and set up the Windows path environment so that it works from any directory. ·Installed pip for Pyt

Re: CLP stats: last 500 posts

2016-12-10 Thread Terry Reedy
On 12/10/2016 9:43 AM, Steve D'Aprano wrote: On Sat, 10 Dec 2016 09:28 pm, Terry Reedy wrote: The spammer will still be counted, Why reward someone who actively evades defenses? If you want to count spam, it is mostly missing, at least as far as python-list is concerned. Its not a reward.

Re: CLP stats: last 500 posts

2016-12-10 Thread Peter Otten
Wildman via Python-list wrote: > On Fri, 09 Dec 2016 16:07:16 -0500, DFS wrote: > >> code (py2.7) >> -- >> import sys as y,nntplib as t,datetime as d >> s='' >> g=y.argv[1] >> n=t.NNTP(s,119,'','') >> r,a,b,e,gn=n.group(g) >> def printSt

Re: CLP stats: last 500 posts

2016-12-10 Thread Wildman via Python-list
On Sat, 10 Dec 2016 12:31:33 -0500, DFS wrote: > On 12/10/2016 12:06 PM, Wildman wrote: >> On Fri, 09 Dec 2016 16:07:16 -0500, DFS wrote: >> >>> code (py2.7) >>> -- >>> import sys as y,nntplib as t,datetime as d >>> s='' >>> g=y.argv[1] >

Pexpect

2016-12-10 Thread Iranna Mathapati
Hi Team, The fallowing script(function) is working if its in PDB mode(trace line by line) but same script is not working if its remove/comment PDB and run one shot. log.info("Time out expection") uut_con1 = pexpect.spawn('telnet %s'%power_ip) uut_con1.logfile = sys.s

Re: CLP stats: last 500 posts

2016-12-10 Thread Wildman via Python-list
On Fri, 09 Dec 2016 16:07:16 -0500, DFS wrote: > code (py2.7) > -- > import sys as y,nntplib as t,datetime as d > s='' > g=y.argv[1] > n=t.NNTP(s,119,'','') > r,a,b,e,gn=n.group(g) > def printStat(st,hd,rg): > r,d=n.xhdr(st,'%s-%s'%

Re: CLP stats: last 500 posts

2016-12-10 Thread Skip Montanaro
On Sat, Dec 10, 2016 at 4:28 AM, Terry Reedy wrote: >> comp.lang.python is a mirror of the python-list at python dot org mailing >> list, which has an official web archive: >> >> https://mail.python.org/pipermail/python-list/ > > > These slanderous posts, in particular, are hand-removed from the a

Re: CLP stats: last 500 posts

2016-12-10 Thread Steve D'Aprano
On Sat, 10 Dec 2016 09:28 pm, Terry Reedy wrote: >>> The spammer will still be counted, > > Why reward someone who actively evades defenses? If you want to count > spam, it is mostly missing, at least as far as python-list is concerned. Its not a reward. Spammers are not like trolls, they don't

Painting Contractors in Vasant nagar | Painting Contractors in Rajaji nagar

2016-12-10 Thread busybizz bizz
Painting Contractors in Bangalore - List of top painting services, works, companies in Bangalore and get painting price, companies contact addresses, phone numbers, ratings and evaluations right away on busybizz.com http://busybizz.com/Painting-Contractors-Bangalore.php -- https://mail.python.or

Re: CLP stats: last 500 posts

2016-12-10 Thread Terry Reedy
On 12/10/2016 3:13 AM, Steve D'Aprano wrote: On Sat, 10 Dec 2016 03:15 pm, DFS wrote: Normally I don't censor, at all. But the spams are apparently way off-topic, so I'll filter out Subjects containing certain keywords. python-list is a spam-moderated list. 95+% of spam is filtered out. I

Re: % string formatting - what special method is used for %d?

2016-12-10 Thread Steve D'Aprano
On Sat, 10 Dec 2016 06:06 pm, Veek M wrote: > When we do: > > print '%s %d' % ('hello', 10) > > what special method is being invoked internally within the string- > format-specifier? %d requires the argument to be an int, or able to be converted to int using the __int__ special method. py> cl

Re: CLP stats: last 500 posts

2016-12-10 Thread Steve D'Aprano
On Sat, 10 Dec 2016 03:15 pm, DFS wrote: > On 12/09/2016 08:39 PM, Steve D'Aprano wrote: >> On Sat, 10 Dec 2016 08:07 am, DFS wrote: >> >>> >>> As of 04:04PM December 09, 2016 >>> >>> Posts 85 Posters >> [...] >> >> >> Interesting stats, but couldn't you have post-processed the results >> to avoi