Re: Python3.6 a little conundrum

2017-03-02 Thread Chris Angelico
On Fri, Mar 3, 2017 at 4:56 PM, Gilmeh Serda wrote: > I'll check if I can get that into the mix, eventually. Python's already > installed, so I guess I have to backtrack to remove it. Further > investigation required. You didn't install, so you should be able to rerun ./configure and make to rebu

Re: asyncio does not always show the full traceback

2017-03-02 Thread Frank Millman
"INADA Naoki" wrote in message news:caefz+tz8hvwmh5cf17mv3accdqthj1axddga8umnznuuwes...@mail.gmail.com... > For completeness, if I place '1/0' in aenum(), I get exactly the same > traceback as the first one above. > I can't reproduce it too. Did you 3.6.0 this time? Or did you used 3.6b4 aga

Re: list of the lists - append after search

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 3:31:36 PM UTC-5, Jussi Piitulainen wrote: > Andrew Zyman writes: > > > On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote: > >> Peter Otten <__pete...@web.de> writes: > >> > >> > Andrew Zyman wrote: > >> > > >> >> On Thursday, March 2, 2017 at 1

Re: list of the lists - append after search

2017-03-02 Thread Jussi Piitulainen
Andrew Zyman writes: > On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote: >> Peter Otten <__pete...@web.de> writes: >> >> > Andrew Zyman wrote: >> > >> >> On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: >> >>> Andrew Zyman wrote: >> >>> . >> >>> .

Re: list of the lists - append after search

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 2:57:02 PM UTC-5, Jussi Piitulainen wrote: > Peter Otten <__pete...@web.de> writes: > > > Andrew Zyman wrote: > > > >> On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: > >>> Andrew Zyman wrote: > >>> . > >>> . > >>> > End result: > >>> > ll

Re: spam issue

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 2:28:04 PM UTC-5, bream...@gmail.com wrote: > On Thursday, March 2, 2017 at 4:08:44 PM UTC, Andrew Zyman wrote: > > Why is this group have such an obscene number of spam posts ? > > I'm subscribed to a few other google groups and this is the only one that > > has this

Re: list of the lists - append after search

2017-03-02 Thread Jussi Piitulainen
Peter Otten <__pete...@web.de> writes: > Andrew Zyman wrote: > >> On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: >>> Andrew Zyman wrote: >>> . >>> . >>> > End result: >>> > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ] >>> >>> >>> outer = [["a", 1], ["b", 2]

Re: spam issue

2017-03-02 Thread breamoreboy
On Thursday, March 2, 2017 at 4:08:44 PM UTC, Andrew Zyman wrote: > Why is this group have such an obscene number of spam posts ? > I'm subscribed to a few other google groups and this is the only one that has > this issue. The bulk having lots of block capitals and in Italian? Been happening fo

Re: Python3.6 a little conundrum

2017-03-02 Thread Chris Angelico
On Fri, Mar 3, 2017 at 6:01 AM, Gilmeh Serda wrote: > After compiling and NOT installing (need to keep the 2.7 around, > undisturbed). > > Just testing something out: > > $ python36 > Python 3.6.0 (default, Mar 1 2017, 22:11:43) > [GCC 4.6.3] on linux > Type "help", "copyright", "credits" or "lic

Re: list of the lists - append after search

2017-03-02 Thread Peter Otten
Andrew Zyman wrote: > On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: >> Andrew Zyman wrote: >> . >> . >> > End result: >> > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ] >> >> >>> outer = [["a", 1], ["b", 2], ["c", 3], ["blah", 1000]] >> >>> for inner in out

Re: list of the lists - append after search

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 11:27:34 AM UTC-5, Peter Otten wrote: > Andrew Zyman wrote: > . > . > > End result: > > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ] > > >>> outer = [["a", 1], ["b", 2], ["c", 3], ["blah", 1000]] > >>> for inner in outer: > ... if inner[0] == "b

Re: spam issue

2017-03-02 Thread Chris Angelico
On Fri, Mar 3, 2017 at 5:57 AM, Andrew Zyman wrote: >> Or the mailing list, depending on how you like to read things. The >> list has some additional filtering and moderation, which I appreciate. >> >> ChrisA > > > you mean on python.org ? Yeah. You can sign up here: https://mail.python.org/mail

Re: spam issue

2017-03-02 Thread Andrew Zyman
On Thursday, March 2, 2017 at 1:39:54 PM UTC-5, Chris Angelico wrote: > On Fri, Mar 3, 2017 at 5:31 AM, Cholo Lennon wrote: > > Google groups act like a "web frontend" for nntp protocol (on which this > > group is based). I suppose Google doesn't filter spam messages in its > > interface. Try usin

dnspython update dns record issue

2017-03-02 Thread stamnik
I'm trying to use dnspython to do a TSIG based dynamic DNS update. I've followed the example code : #!/usr/bin/env python import sys import dns.update import dns.query import dns.tsigkeyring keyring = dns.tsigkeyring.from_text({ 'keyname.' : 'VarFF=2Xts7T5Vb/xd&8ir==' }) update = dns.update

Re: spam issue

2017-03-02 Thread Cholo Lennon
On 02/03/17 13:08, Andrew Zyman wrote: Why is this group have such an obscene number of spam posts ? I'm subscribed to a few other google groups and this is the only one that has this issue. Google groups act like a "web frontend" for nntp protocol (on which this group is based). I suppose G

Re: spam issue

2017-03-02 Thread Chris Angelico
On Fri, Mar 3, 2017 at 5:31 AM, Cholo Lennon wrote: > Google groups act like a "web frontend" for nntp protocol (on which this > group is based). I suppose Google doesn't filter spam messages in its > interface. Try using a newsreader like Mozilla Thunderbird and point it to a > news server. In my

Re: list of the lists - append after search

2017-03-02 Thread Peter Otten
Andrew Zyman wrote: > Hello, > please advise. > > I'd like search and append the internal list in the list-of-the-lists. > > Example: > ll =[ [a,1], [b,2], [c,3], [blah, 1000] ] > > i want to search for the internal [] based on the string field and, if > matches, append that list with a va

Re: asyncio does not always show the full traceback

2017-03-02 Thread INADA Naoki
FYI, you can easily find this changelog of Python 3.6rc1: - bpo-28843: Fix asyncio C Task to handle exceptions __traceback__. See also: https://bugs.python.org/issue28843 On Fri, Mar 3, 2017 at 1:11 AM, INADA Naoki wrote: >> For completeness, if I place '1/0' in aenum(), I get exactly the same

Re: asyncio does not always show the full traceback

2017-03-02 Thread INADA Naoki
> For completeness, if I place '1/0' in aenum(), I get exactly the same > traceback as the first one above. > I can't reproduce it too. Did you 3.6.0 this time? Or did you used 3.6b4 again? Please don't use beta when asking question or reporting bug. -- https://mail.python.org/mailman/listinfo/p

spam issue

2017-03-02 Thread Andrew Zyman
Why is this group have such an obscene number of spam posts ? I'm subscribed to a few other google groups and this is the only one that has this issue. -- https://mail.python.org/mailman/listinfo/python-list

list of the lists - append after search

2017-03-02 Thread Andrew Zyman
Hello, please advise. I'd like search and append the internal list in the list-of-the-lists. Example: ll =[ [a,1], [b,2], [c,3], [blah, 1000] ] i want to search for the internal [] based on the string field and, if matches, append that list with a value. if internal_list[0] == 'blah':

Re: asyncio does not always show the full traceback

2017-03-02 Thread Frank Millman
"Frank Millman" wrote in message news:o994og$84k$1...@blaine.gmane.org... If I place '1/0' in main(), this is the traceback - Traceback (most recent call last): File "test_db1a.py", line 25, in loop.run_until_complete(main()) File "/usr/local/lib/python3.6/asyncio/base_events.py", lin

Re: asyncio does not always show the full traceback

2017-03-02 Thread Chris Angelico
On Thu, Mar 2, 2017 at 11:55 PM, Frank Millman wrote: > If I place '1/0' in main(), this is the traceback - > > Traceback (most recent call last): > File "test_db1a.py", line 25, in >loop.run_until_complete(main()) > File "/usr/local/lib/python3.6/asyncio/base_events.py", line 466, in > run

Re: asyncio does not always show the full traceback

2017-03-02 Thread INADA Naoki
Could you use 3.6.0 instead of b4? I added 1/0 at: ... async def main(): 1/0 await aenum() ... then: $ pyenv/versions/3.6.0/bin/python3 -VV Python 3.6.0 (default, Jan 16 2017, 19:41:10) [GCC 6.2.0 20161005] $ pyenv/versions/3.6.0/bin/python3 a.py Traceback (most recent call last): File

Re: asyncio does not always show the full traceback

2017-03-02 Thread Frank Millman
"INADA Naoki" wrote in message news:caefz+tyudwjesyttqzg2_romphmjrxqaga2ulgfqv5qbpii...@mail.gmail.com... I can't reproduce it on Linux. Maybe, it's windows specific bug? import asyncio from itertools import count async def aenumerate(aiterable): counter = count() async for x in aite

Re: asyncio does not always show the full traceback

2017-03-02 Thread INADA Naoki
I can't reproduce it on Linux. Maybe, it's windows specific bug? On Wed, Mar 1, 2017 at 11:25 PM, Frank Millman wrote: > "Frank Millman" wrote in message news:o93vs2$smi$1...@blaine.gmane.org... >> >> >> I use asyncio in my project, so most of my functions start with 'async' >> and > > most of m

Re: Manual parameter substitution in sqlite3

2017-03-02 Thread Tim Chase
On 2017-03-02 09:55, Christian Gollwitzer wrote: > you could do it "the (theoretical) right way", which is using > another table. Insert your keys into a table, maybe temporary one, > and then do > > select * from mumble where key in (select key from keytable) > > In theory that should also be fa

Re: Manual parameter substitution in sqlite3

2017-03-02 Thread Christian Gollwitzer
Am 28.02.17 um 18:28 schrieb Skip Montanaro: Most of the time (well, all the time if you're smart), you let the database adapter do parameter substitution for you to avoid SQL injection attacks (or stupid users). So: curs.execute("select * from mumble where key = ?", (key,)) If you want to