All the list getting appended of a dict if you are updating only first element list of dict

2017-11-15 Thread Radhey Parashar
Hi python , I am facing 1 issue with python related to append command in a list I am attaching PDB code for more understanding:- *I am having two classes :- * *class CITY:* *num = 0* *connectivity = []* *class CON:* * name = 0* * type = 0* (Pdb) p cities {1: <__

Re: All the list getting appended of a dict if you are updating only first element list of dict

2017-11-15 Thread Peter Otten
Radhey Parashar wrote: > I am facing 1 issue with python related to append command in a list > class CITY: > > num = 0 > > connectivity = [] The way you wrote it the connectivity list is shared between all instances of the CITY class. Consult a Python tutorial to learn why. To get p

SQLObject 3.5.0

2017-11-15 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.5.0, the first stable release of branch 3.5 of SQLObject. What's new in SQLObject === Contributors for this release are Shailesh Mungikar and Michael S. Root. Minor features -- * Add Python3 special methods for division

EuroPython 2018: Location and Dates

2017-11-15 Thread M.-A. Lemburg
After a two month RFP bidding process with 19 venues from all over Europe, we are pleased to announce our selection of the location and venue for EuroPython 2018: * Location: Edinburgh, UK * Venue: Edinburgh International Conference Center (EICC) http://www.eicc.co.uk/ * Dates: July 23 -

Re: Windows - py363 crashes with "vonLöwis.py"

2017-11-15 Thread breamoreboy
On Wednesday, November 15, 2017 at 8:53:44 AM UTC, wxjm...@gmail.com wrote: > Sorry, to have to say it. > > Have a nice day. Do you mean it segfaults or simply provides a traceback? If the latter is your environment set correctly? -- https://mail.python.org/mailman/listinfo/python-list

MySQLdb and conn.select_db()

2017-11-15 Thread Tobiah
I have an older Ubuntu machine, 8.04 that errors when I try to do conn.select_db(). AttributeError: 'Connection' object has no attribute 'select_db' My 16.4 box acts as I'd expect. Did this get added at some point? I'd really like to be able to get generic links so I can do things like "show d

Re: Windows - py363 crashes with "vonLöwis.py"

2017-11-15 Thread Terry Reedy
On 11/15/2017 6:58 AM, breamore...@gmail.com wrote: On Wednesday, November 15, 2017 at 8:53:44 AM UTC, wxjm...@gmail.com wrote: Sorry, to have to say it. Have a nice day. Do you mean it segfaults or simply provides a traceback? If the latter is your environment set correctly? Why bother?

To ASCII Or Not To ASCII? (Posting On Python-List Prohibited)

2017-11-15 Thread Lawrence D’Oliveiro
From : def raıse(self) : "raises this exception." libm.feraiseexcept(self.mask) #end raıse raiise = raıse # if you prefer -- https://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb and conn.select_db() (Posting On Python-List Prohibited)

2017-11-15 Thread Lawrence D’Oliveiro
On Thursday, November 16, 2017 at 5:32:23 AM UTC+13, Tobiah wrote: > AttributeError: 'Connection' object has no attribute 'select_db' You could always execute a “use «db_name»” MySQL command. -- https://mail.python.org/mailman/listinfo/python-list