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


Groups > comp.lang.python > #107714

Re: how to create a dictionary from csv file?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Sibylle Koczian <nulla.epistola@web.de>
Newsgroups comp.lang.python
Subject Re: how to create a dictionary from csv file?
Date Wed, 27 Apr 2016 11:10:20 +0200
Lines 6
Message-ID <mailman.144.1461748232.32212.python-list@python.org> (permalink)
References <246c571e-1793-4aa6-9405-19d7a1355598@googlegroups.com> <eb424848-fcb2-4973-b48f-be1a849cfc58@googlegroups.com> <b85c5dab-41c6-ff3e-1deb-75cd9c179804@web.de>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de zXZ/TYm7Xv73QOcwej0IJACfvmUUGW4HHw8PtYySYhOg==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:file': 0.07; 'csv': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:create': 0.09; 'python': 0.10; 'message-id:@web.de': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received :mnet-online.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'suggested': 0.20; 'header:In-Reply- To:1': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'everyone': 0.31; 'open': 0.33; 'file': 0.34; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'why': 0.39; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'charset:windows-1252': 0.62; 'here': 0.66; 'received:93': 0.72
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host ppp-93-104-147-140.dynamic.mnet-online.de
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0
In-Reply-To <eb424848-fcb2-4973-b48f-be1a849cfc58@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <b85c5dab-41c6-ff3e-1deb-75cd9c179804@web.de>
X-Mailman-Original-References <246c571e-1793-4aa6-9405-19d7a1355598@googlegroups.com> <eb424848-fcb2-4973-b48f-be1a849cfc58@googlegroups.com>
Xref csiph.com comp.lang.python:107714

Show key headers only | View raw


Am 27.04.2016 um 04:42 schrieb jfong@ms4.hinet.net:
> Just curious:-) why everyone here open the csv file without using newline='' as suggested in Python 3.4.4 document section 14.1?
>
And if the csv module is used anyway, why not simply read into a DictReader?

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


Thread

how to create a dictionary from csv file? "+dime+" <donald.ng@gmail.com> - 2016-04-26 07:18 -0700
  Re: how to create a dictionary from csv file? Peter Otten <__peter__@web.de> - 2016-04-26 16:40 +0200
  Re: how to create a dictionary from csv file? justin walters <walters.justin01@gmail.com> - 2016-04-26 07:51 -0700
  Re: how to create a dictionary from csv file? Tim Chase <python.list@tim.thechases.com> - 2016-04-26 09:36 -0500
    Re: how to create a dictionary from csv file? Hasan Diwan <hasandiwan+usenet@gmail.com> - 2016-04-27 00:36 +0000
  Re: how to create a dictionary from csv file? jfong@ms4.hinet.net - 2016-04-26 19:42 -0700
    Re: how to create a dictionary from csv file? Sibylle Koczian <nulla.epistola@web.de> - 2016-04-27 11:10 +0200
    Re: how to create a dictionary from csv file? Peter Otten <__peter__@web.de> - 2016-04-27 11:31 +0200
    Re: how to create a dictionary from csv file? Sibylle Koczian <nulla.epistola@web.de> - 2016-04-27 17:37 +0200
    Re: how to create a dictionary from csv file? Sibylle Koczian <nulla.epistola@web.de> - 2016-04-27 17:37 +0200

csiph-web