[issue32570] Python crash 0xc00000fd Windows10 x64 - "fail without words"

2018-01-18 Thread Василь Коломієць

Василь Коломієць <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"

2018-01-18 Thread Василь Коломієць

Василь Коломієць <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"

2018-01-16 Thread Василь Коломієць

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)

2016-01-15 Thread Василь Коломієць

Василь Коломієць 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)

2016-01-14 Thread Василь Коломієць

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)

2016-01-14 Thread Василь Коломієць

Василь Коломієць 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)

2016-01-14 Thread Василь Коломієць

Василь Коломієць 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"

2016-01-14 Thread Василь Коломієць

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