Re: Reciprocal data structures

2017-06-18 Thread Chris Angelico
On Mon, Jun 19, 2017 at 3:54 PM, Steven D'Aprano wrote: >> With a list? No, I would say it's a bad idea. > > > Why a bad idea? > > As opposed to "can't be done", or "too hard and slow". Maintaining a record of list indices inside an object, with the specific proviso that: > If the list is change

Re: Reciprocal data structures

2017-06-18 Thread Steven D'Aprano
On Mon, 19 Jun 2017 06:04:57 +1000, Chris Angelico wrote: > On Mon, Jun 19, 2017 at 5:27 AM, wrote: >> I am thinking of a list that actively maintains in its items a member >> that contains the item's own index in the list. Basically, the item >> knows its index into the list and the list ensur

Re: Instagram: 40% Py3 to 99% Py3 in 10 months

2017-06-18 Thread Steven D'Aprano
On Sun, 18 Jun 2017 20:57:56 -0700, Paul Rubin wrote: > Paul Barry writes: >> The process they followed is discussed in their recent Keynote at PyCon >> 2017: https://youtu.be/66XoCk79kjM Well worth the 40 minutes it takes >> to watch :-) > > If it takes 40 minutes to describe how they did it,

Re: Instagram: 40% Py3 to 99% Py3 in 10 months

2017-06-18 Thread Paul Rubin
Paul Barry writes: > The process they followed is discussed in their recent Keynote at PyCon > 2017: https://youtu.be/66XoCk79kjM > Well worth the 40 minutes it takes to watch :-) If it takes 40 minutes to describe how they did it, that sounds like more hassle than most users of working py2 code

Error while connecting Teradata

2017-06-18 Thread mradul dhakad
Hi All , I am getting below Error while connecting Teradata using Python: - File "C:\Python27\Lib\site-packages\teradata\udaexec.py", line 183, in connect **args)) File "C:\Python27\Lib\site-packages\teradata\tdodbc.py", line 427, in __init__ connectParams["DRIVER"] = determineD

Re: Progress on the Gilectomy

2017-06-18 Thread Paul Rubin
I always thought the GIL removal obstacle was the need to put locks around every refcount adjustment, and the only real cure for that is to use a tracing GC. That is a good idea in many ways, but it would break the existing C API quite seriously. Reworking the C modules in the stdlib would be a l

Re: json to access using python

2017-06-18 Thread mm0fmf
On 18/06/2017 20:34, breamore...@gmail.com wrote: On Sunday, June 18, 2017 at 7:50:10 PM UTC+1, Xristos Xristoou wrote: hello I have a json url and i want from this url to update my table in microsoft access,how to do that using python or some tool of microsoft access ? You need to do some

Re: Reciprocal data structures

2017-06-18 Thread Chris Angelico
On Mon, Jun 19, 2017 at 5:27 AM, wrote: > I am thinking of a list that actively maintains in its items a member that > contains the item's own index in the list. Basically, the item knows its > index into the list and the list ensures that the index remains in sync. If > the list is changed,

Re: json to access using python

2017-06-18 Thread breamoreboy
On Sunday, June 18, 2017 at 7:50:10 PM UTC+1, Xristos Xristoou wrote: > hello > > > I have a json url and i want from this url to update my table in microsoft > access,how to do that using python or some tool of microsoft access ? You need to do some research first. Then you run an editor and

Reciprocal data structures

2017-06-18 Thread pavlovevidence
I'm not sure if "reciprocal" is the right word, or if there is an official term for this. I am thinking of a list that actively maintains in its items a member that contains the item's own index in the list. Basically, the item knows its index into the list and the list ensures that the index

json to access using python

2017-06-18 Thread Xristos Xristoou
hello I have a json url and i want from this url to update my table in microsoft access,how to do that using python or some tool of microsoft access ? -- https://mail.python.org/mailman/listinfo/python-list

Re: python and post gis question

2017-06-18 Thread Xristos Xristoou
Τη Παρασκευή, 16 Ιουνίου 2017 - 10:59:10 μ.μ. UTC+3, ο χρήστης Xristos Xristoou έγραψε: > I have create a python script where use post gis queries to automate some > intersection tasks using postgis database. > > in my database I have polygons,points and lines. > > here my snippet code of my sc