Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102824

Re: Suggested datatype for getting latest information from log files

From jmp <jeanmichel@sequans.com>
Newsgroups comp.lang.python
Subject Re: Suggested datatype for getting latest information from log files
Date 2016-02-11 19:16 +0100
Message-ID <mailman.57.1455214580.22075.python-list@python.org> (permalink)
References <621f72dc-ad32-48e8-ad37-a2e7eb2d4bd8@googlegroups.com>

Show all headers | View raw


On 02/11/2016 07:07 PM, ltomassmail@gmail.com wrote:
> I thought a dictionary would be a good idea because of the key restrictions ensuring no duplicates, so the data would always update - However because they are unordered and I need to do some more processing on the data afterwards I'm having trouble.

If it's your only concern about using dictionaries, then you may have a 
look  at 
https://docs.python.org/2/library/collections.html#collections.OrderedDict

JM




Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Suggested datatype for getting latest information from log files ltomassmail@gmail.com - 2016-02-11 10:07 -0800
  Re: Suggested datatype for getting latest information from log files jmp <jeanmichel@sequans.com> - 2016-02-11 19:16 +0100
    Re: Suggested datatype for getting latest information from log files ltomassmail@gmail.com - 2016-02-11 10:25 -0800
    Re: Suggested datatype for getting latest information from log files ltomassmail@gmail.com - 2016-02-11 10:31 -0800
  Re: Suggested datatype for getting latest information from log files "Martin A. Brown" <martin@linux-ip.net> - 2016-02-11 10:58 -0800
  Re: Suggested datatype for getting latest information from log files Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-02-11 20:19 -0500

csiph-web