[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"
Василь Коломієць <vasilij.kolomi...@gmail.com> added the comment: Thanks a lot! Grace and Honor! -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32570> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"
Василь Коломієць <vasilij.kolomi...@gmail.com> added the comment: sorry - wrong ideone example this one better to look: https://ideone.com/aV9Z8p -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32570> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"
New submission from Василь Коломієць <vasilij.kolomi...@gmail.com>: The code https://ideone.com/ctx92s works for 1 000 000. But on my PC it works only for 1024. Wen i am trting give him 1 000 000 - the Python crashes without any words: https://i.stack.imgur.com/1do06.png and in windows we can found this crash report: https://i.stack.imgur.com/nruoa.png --- so it works for low values and crashes on higher values. Buy its no bug... Than - What is it? -- components: Windows messages: 310095 nosy: Vasyl Kolomiets, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Python crash 0xc0fd Windows10 x64 - "fail without words" type: crash versions: Python 3.6 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32570> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26116] CSV-module. The example code don't work. Have to be: reader = csv.reader(csvfile, dialect=dialect)
Василь Коломієць added the comment: )) Thanks! Be happy! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26116> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26116] CSV-module. The example code don't work. Have to be: reader = csv.reader(csvfile, dialect=dialect)
Changes by Василь Коломієць <vasilij.kolomi...@gmail.com>: Added file: http://bugs.python.org/file41620/CSV-ex.png ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26116> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26116] CSV-module. The example code don't work. Have to be: reader = csv.reader(csvfile, dialect=dialect)
Василь Коломієць added the comment: Thanx a lot. And sorry. But with ..., dialect=dialect, the same code is working. . Ok. i'll try to understand. With best wishes - VK. С уважением, Василий Коломиец +38050 45 22 559 2016-01-15 0:18 GMT+02:00 SilentGhost <rep...@bugs.python.org>: > > SilentGhost added the comment: > > Vasyl, this line in your code is causing the problem: > > for row in readed: > > The error reasonably clear states that it's due to your `fieldnames' > parameter being non-iterable. Again, this has nothing whatsoever to do with > `dialect' argument and documentation of Sniffer. > > Please, do not open new issues about this. This is not a issue with csv > library or its documentation. Try to use use stackoverflow or python-tutor > list to get help on this. > https://mail.python.org/pipermail/tutor/ > > -- > nosy: +SilentGhost > resolution: -> not a bug > stage: -> resolved > status: open -> closed > > ___ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue26116> > ___ > -- title: CSV-module. The example code don't work.Have to be: reader = csv.reader(csvfile, dialect=dialect) -> CSV-module. The example code don't work. Have to be: reader = csv.reader(csvfile, dialect=dialect) ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26116> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26116] CSV-module. The example code don't work. Have to be: reader = csv.reader(csvfile, dialect=dialect)
Василь Коломієць added the comment: I am very happy! Thx for attention to my opinion. Sorry for my english. so - in attachment two codes and source csv-file. With best wishes, Vasyl Kolomiets. +38050 45 22 559 2016-01-15 0:38 GMT+02:00 Georg Brandl <rep...@bugs.python.org>: > > Georg Brandl added the comment: > > We'll need at least the two full examples (one not working, one working) > to make a call here. > > -- > nosy: +georg.brandl > > ___ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue26116> > ___ > -- Added file: http://bugs.python.org/file41617/may_be-error_csv_exmpl.py Added file: http://bugs.python.org/file41618/from_to_proportions.csv Added file: http://bugs.python.org/file41619/may_be-good_csv_exmpl.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26116> ___from tkinter import * from PIL import Image import csv filename = "from_to_proportions.csv" with open(filename) as csvfile: dialect=csv.Sniffer().sniff(csvfile.read(1024)) csvfile.seek(0) print(dialect) readed = csv.DictReader(csvfile, dialect) for row in readed: print(row) print (row["from_id"],row["from_name"],row['to_id'],row['to_name'], row['barcodes_percentage'],row['rows_to_be']) from_id;from_name;to_id;to_name;barcodes_percentage;rows_to_be 1;ÐиÑв;2;ÐнÑпÑо;75%;4 1;ÐиÑв;3;ÐапоÑÑжжÑ;10%;4 1;ÐиÑв;4;ÐдеÑа;15%;4 1;ÐиÑв;5;ÐÑвÑв;0%;4 2;ÐнÑпÑо;1;ÐиÑв;50%;4 2;ÐнÑпÑо;3;ÐапоÑÑжжÑ;10%;4 2;ÐнÑпÑо;4;ÐдеÑа;25%;4 2;ÐнÑпÑо;5;ÐÑвÑв;15%;4 3;ÐапоÑÑжжÑ;1;ÐиÑв;0%;4 3;ÐапоÑÑжжÑ;2;ÐнÑпÑо;33%;4 3;ÐапоÑÑжжÑ;4;ÐдеÑа;33%;4 3;ÐапоÑÑжжÑ;5;ÐÑвÑв;34%;4 4;ÐдеÑа;1;ÐиÑв;25%;4 4;ÐдеÑа;2;ÐнÑпÑо;25%;4 4;ÐдеÑа;3;ÐапоÑÑжжÑ;25%;4 4;ÐдеÑа;5;ÐÑвÑв;25%;4 5;ÐÑвÑв;1;ÐиÑв;0%;4 5;ÐÑвÑв;2;ÐнÑпÑо;50%;4 5;ÐÑвÑв;3;ÐапоÑÑжжÑ;15%;4 5;ÐÑвÑв;4;ÐдеÑа;35%;4 from tkinter import * from PIL import Image import csv filename = "from_to_proportions.csv" with open(filename) as csvfile: dialect=csv.Sniffer().sniff(csvfile.read(1024)) csvfile.seek(0) print(dialect) readed = csv.DictReader(csvfile, dialect=dialect) for row in readed: print(row) print (row["from_id"],row["from_name"],row['to_id'],row['to_name'], row['barcodes_percentage'],row['rows_to_be']) ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26112] Error on example using "dialect" parameter. have to be: "dialect=dialect"
New submission from Василь Коломієць: with open('example.csv') as csvfile: dialect = csv.Sniffer().sniff(csvfile.read(1024)) csvfile.seek(0) reader = csv.reader(csvfile, dialect) # ... process CSV file contents here ... -- have to be: ... reader = csv.reader(csvfile, dialect=dialect) # ... process CSV file contents here ... It's here: https://docs.python.org/3.4/library/csv.html -- assignee: docs@python components: Documentation messages: 258214 nosy: docs@python, Василь Коломієць priority: normal severity: normal status: open title: Error on example using "dialect" parameter. have to be: "dialect=dialect" type: enhancement versions: Python 3.4 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26112> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com