Re: Connecting Terminal to Python 3.5

2015-08-30 Thread Mark Lawrence
On 29/08/2015 07:44, Nick Sarbicki wrote: On Sat, 29 Aug 2015 07:08 Sam Miller Will you please stop top posting here, thank you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/list

[RELEASE] ‘python-daemon’ version 2.0.6 released

2015-08-30 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.0.6 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. Starting with this version, the uploads to PyPI are signed with my GnuPG key, so the downloaded file can be au

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
In a message of Sun, 30 Aug 2015 10:34:18 -0700, kbtyo writes: >@Laura - thank you. I observed this earlier. Please see my reply to Ben and >MRAB for the most up to date status. For the more general problem of 'how do I parse my XML' download and use this package. https://pypi.python.org/pypi/x

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Sunday, August 30, 2015 at 1:16:12 PM UTC-4, MRAB wrote: > On 2015-08-30 17:31, kbtyo wrote: > > On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: > >> On 2015-08-30 03:05, kbtyo wrote: > >> > I am using Jupyter Notebook and Python 3.4. I have a data structure in > >> > the format,

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
When you get TypeError: unhashable type: 'dict' it almost always means that you are trying to use a dict as a key for a different dict. Python 2.7.10 (default, Jul 1 2015, 10:54:53) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> d={1:'one', 2:'t

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread MRAB
On 2015-08-30 17:31, kbtyo wrote: On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: On 2015-08-30 03:05, kbtyo wrote: > I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): > > [{'AccountNumber': N, > 'Amount': '0', > 'Answer': '12:00:00

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Saturday, August 29, 2015 at 11:04:53 PM UTC-4, Ben Finney wrote: > kbtyo writes: > > > I am using Jupyter Notebook and Python 3.4. > > Thank you for saying so! It is not always required, but when it matters, > this information is important to state up front. > > > I have a data structure in

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: > On 2015-08-30 03:05, kbtyo wrote: > > I am using Jupyter Notebook and Python 3.4. I have a data structure in the > > format, (type list): > > > > [{'AccountNumber': N, > > 'Amount': '0', > > 'Answer': '12:00:00 PM', > >'ID': No

Re: Automation of Windows app?

2015-08-30 Thread Grant Edwards
On 2015-08-30, Laura Creighton wrote: > In a message of Sun, 30 Aug 2015 07:25:55 -0700, ryguy7272 writes: > >>I know this is an old post, but anyway, can't you just use Windows Scheduler? >>http://windows.microsoft.com/en-us/windows/schedule-task#1TC=windows-7 > > I think you may have missed the

Re: Automation of Windows app?

2015-08-30 Thread Laura Creighton
In a message of Sun, 30 Aug 2015 07:25:55 -0700, ryguy7272 writes: >I know this is an old post, but anyway, can't you just use Windows Scheduler? >http://windows.microsoft.com/en-us/windows/schedule-task#1TC=windows-7 I think you may have missed the original post, where poor old Grant Edwards sai

Re: Automation of Windows app?

2015-08-30 Thread ryguy7272
On Tuesday, March 31, 2015 at 9:14:38 PM UTC-4, alex23 wrote: > On 23/03/2015 1:43 PM, Michael Torrie wrote: > > As near as I can tell the standard go-to utility for this is a program > > called AutoIt. https://www.autoitscript.com/site/autoit/ > > > > Nothing to do with Python, and its scripting

Re: Casting to a "number" (both int and float)?

2015-08-30 Thread Mark Lawrence
".esnes sekam ti wonk uoY .daer ot ysae os sgniht ekam seod yllaer ti ,niaga gnitsop potrof s'knahT" On 30/08/2015 12:38, Sven R. Kunze wrote: Well, it comes down to "can he switch from JSON to YAML" in the first place as he is going to parse "by-third-party" generated json. So, if he can pers

Re: Casting to a "number" (both int and float)?

2015-08-30 Thread Steven D'Aprano
On Sat, 29 Aug 2015 02:15 am, Robin Koch wrote: > Am 28.08.2015 um 18:09 schrieb Sven R. Kunze: > > >> I'm reading JSON output from an input file, and extracting values. > > >> for proper parsing into native Python types, I would recommend YAML. > > "What's the best way to get from A to B?" >

Re: Casting to a "number" (both int and float)?

2015-08-30 Thread Sven R. Kunze
Well, it comes down to "can he switch from JSON to YAML" in the first place as he is going to parse "by-third-party" generated json. So, if he can persuade MongoDB to output YAML instead, he would be all fine. Just my 2 cents. On 28.08.2015 18:15, Robin Koch wrote: Am 28.08.2015 um 18:09 schr