On 2016-09-23 16:58, Lawrence D’Oliveiro wrote:
> Duck type is great for sticking pieces of Python code together.
>
> And anybody who doesn’t like it can go Java themselves...
Sorry, my source code doesn't declare that I support JavaInterface...
-tkc
--
https://mail.python.org/mailman/lis
On Friday, September 23, 2016 at 3:38:21 AM UTC+12, Chris Angelico wrote:
> This is why, despite the confusion it sometimes causes, we all prefer
> duck typing to static typing. The csv.DictReader wants a "file-like
> object", not necessarily a file - and in this case, all it asks is an
> iterable
On Thu, Sep 22, 2016 at 8:36 PM, Malcolm Greene wrote:
> Oscar/MRAB,
>
>> You could put something between the file and the reader ...
>
> Thank you both for your suggestions ... brilliant! You guys helped me
> solve my problem and gave me an excellent strategy for future scenarios.
This is why, d
Oscar/MRAB,
> You could put something between the file and the reader ...
Thank you both for your suggestions ... brilliant! You guys helped me
solve my problem and gave me an excellent strategy for future scenarios.
Malcolm
--
https://mail.python.org/mailman/listinfo/python-list
On 21 September 2016 at 21:28, Malcolm Greene wrote:
> Looking for ideas on how I can obtain the raw line of text read by a
> CSVDictReader. I've reviewed the CSV DictReader documentation and there
> are no public attributes that expose this type of data.
>
> My use case is reporting malformed lin
On 2016-09-21 21:28, Malcolm Greene wrote:
Looking for ideas on how I can obtain the raw line of text read by a
CSVDictReader. I've reviewed the CSV DictReader documentation and there
are no public attributes that expose this type of data.
My use case is reporting malformed lines detected when m
Looking for ideas on how I can obtain the raw line of text read by a
CSVDictReader. I've reviewed the CSV DictReader documentation and there
are no public attributes that expose this type of data.
My use case is reporting malformed lines detected when my code
validates the dict of data returned by