Re: Dictionary order (Is it consistent up to py3.3 unless using -R or PYTHONHASHSEED is set)

2017-05-27 Thread Steve D'Aprano
On Sun, 28 May 2017 10:51 am, Bill Deegan wrote: > Greetings, > > As a follow up to a discussion on IRC #python channel today. > > Assuming the same order of insertions of the same items to a dictionary > would the iteration of a dictionary be the same (not as the order of > insertion, just from

Dictionary order (Is it consistent up to py3.3 unless using -R or PYTHONHASHSEED is set)

2017-05-27 Thread Bill Deegan
Greetings, As a follow up to a discussion on IRC #python channel today. Assuming the same order of insertions of the same items to a dictionary would the iteration of a dictionary be the same (not as the order of insertion, just from run to run) for Python 2.7 up to python 3.3? And again at Pytho

(ab)using NamedTuple

2017-05-27 Thread Ethan Furman
So I'm getting a list of dictionaries from an ORM, and the dicts have a couple static fields, plus fields requested by the user. For debugging purposes I'd like to show just the portion of the dict requested by the user, and on just one line. Using the NamedTuple type for aenum [1] I came up wi

Re: Top Python Interview Questions

2017-05-27 Thread alister
On Sat, 27 May 2017 14:15:07 +1000, Chris Angelico wrote: > On Sat, May 27, 2017 at 12:19 PM, Steve D'Aprano > wrote: >> On Sat, 27 May 2017 09:37 am, Chris Angelico wrote: >> >>> On Sat, May 27, 2017 at 8:56 AM, Larry Martell >>> >>> wrote: If they write a loop with range(1,10) they are go

Re: pip list --outdated gives all packages

2017-05-27 Thread Cecil Westerhof
On Saturday 27 May 2017 16:34 CEST, Cem Karan wrote: > > On May 27, 2017, at 7:15 AM, Cecil Westerhof wrote: > >> On Saturday 27 May 2017 12:33 CEST, Cecil Westerhof wrote: >> >>> I wrote a script to run as a cron job to check if I need to update >>> my Python installations. I migrated from openS

Re: pip list --outdated gives all packages

2017-05-27 Thread Cem Karan
On May 27, 2017, at 7:15 AM, Cecil Westerhof wrote: > On Saturday 27 May 2017 12:33 CEST, Cecil Westerhof wrote: > >> I wrote a script to run as a cron job to check if I need to update >> my Python installations. I migrated from openSUSE to Debian and that >> does not work anymore (pip2 and pip

Re: pip list --outdated gives all packages

2017-05-27 Thread Cecil Westerhof
On Saturday 27 May 2017 12:33 CEST, Cecil Westerhof wrote: > I wrote a script to run as a cron job to check if I need to update > my Python installations. I migrated from openSUSE to Debian and that > does not work anymore (pip2 and pip3): it displays the same with and > without --outdated. Anyone

pip3 list --outdated --format=legacy gives an exception

2017-05-27 Thread Cecil Westerhof
I migrated from an openSUSE systemto a Debian system. When I execute on the Debian system: pip3 list --outdated --format=legacy I get: Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main status = self.

pip list --outdated gives all packages

2017-05-27 Thread Cecil Westerhof
I wrote a script to run as a cron job to check if I need to update my Python installations. I migrated from openSUSE to Debian and that does not work anymore (pip2 and pip3): it displays the same with and without --outdated. Anyone knows what the problem could be? -- Cecil Westerhof Senior Softwa

Re: Sybil 1.0.0 Released!

2017-05-27 Thread MoonKid
Am Fri, 26 May 2017 18:56:31 -0500 schrieb Skip Montanaro: > The GitHub URL 404s for me. I think its -- https://mail.python.org/mailman/listinfo/python-list