[issue16417] Integer converted in tuple without request

2012-11-05 Thread Rosa Maria

New submission from Rosa Maria:

in instruction:
  b = int(input('Dame valor (mayor) de b = '))

later is an instruction:
  while b > 0:

and the result is:
  Traceback (most recent call last):
  File "H:\Soft_nuevo\Reptil\GCD_MCD_Euclides_Extendido-0.py", line 39, in 

while b > 0:
TypeError: unorderable types: tuple() > int()

--
components: IDLE
files: GCD_MCD_Euclides_Extendido-0.py
messages: 174945
nosy: Gravitania
priority: normal
severity: normal
status: open
title: Integer converted in tuple without request
type: crash
versions: Python 3.3
Added file: http://bugs.python.org/file27904/GCD_MCD_Euclides_Extendido-0.py

___
Python tracker 
<http://bugs.python.org/issue16417>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16417] Integer converted in tuple without request

2012-11-06 Thread Rosa Maria

Rosa Maria added the comment:

Thanks Thanks Thanks Thanks Thanks Thanks Thanks you very much,

You are going to go to heaven with your shoes included.

Best regards and have a nice year end.

Rosa María

 
"Cuídate de la Ciencia que no Llora, de la Filosofía que no Ríe y de la 
Grandeza que no se inclina ante los niños"

"Madre es el nombre de dios en los labios y en los corazones de todos los niños"

>
> De: R. David Murray 
>Para: rosem...@yahoo.com.mx 
>Enviado: Lunes, 5 de noviembre, 2012 17:17:35
>Asunto: [issue16417] Integer converted in tuple without request
> 
>
>R. David Murray added the comment:
>
>You did request a tuple:
>
>  r = a - q * b,
>
>That is equivalent to
>
>  r = (a - q * b,)
>
>which is a single element tuple.
>
>I had to put in some print statements in your loop to find that, it wasn't 
>obvious.  This is perhaps a disadvantage of Python's tuple notation, but the 
>benefits of the notation outweigh this small disadvantage, I think.
>
>--
>nosy: +r.david.murray
>resolution:  -> invalid
>stage:  -> committed/rejected
>status: open -> closed
>type: crash -> behavior
>
>___
>Python tracker 
><http://bugs.python.org/issue16417>
>___
>
>
>

--

___
Python tracker 
<http://bugs.python.org/issue16417>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23131] saving to file add inexistance characters

2014-12-29 Thread Rosa Maria

New submission from Rosa Maria:

I make an xml extractor for mexican internet invoices; the extraction is 
correct, but when save to csv, some numbers has additional numbers that does 
not exist, for example 5010.00 is saved as 5010.002. As you can see in 
the print function at line 155.

The problem is in Python 3.4.2 in machines with windows xp, windows 7 and 
windows 8
It is an small error, but this data is used for Accounting.

Thanks in advance and best regards.
Rosa Maria

--
components: IO
files: Python_Send.7z
messages: 233190
nosy: Gravitania
priority: normal
severity: normal
status: open
title: saving to file add inexistance characters
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file37559/Python_Send.7z

___
Python tracker 
<http://bugs.python.org/issue23131>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23543] encoding error trying to save string to file

2015-02-27 Thread Rosa Maria

New submission from Rosa Maria:

I made a program to read which files are in a windows folder, and saves in a 
file in order to print it, but when it tries to write in a file the following 
error appears:   

UnicodeEncodeError: 'charmap' codec can't encode character '\u2010' in position 
8: character maps to 

I extpected that being Python-3 an utf8 native, I do'n have this problems.

I send the Python script and some examples of files to read.
One of the failures example is the file named:

'LKC.6558‐100‐HD‐P‐101_C.xlsx\n'
which appears in windows as:
'LKC6558100HDP101_C.xlsx\n'

--
components: Unicode
files: Redear_Carpetotas.py
messages: 236841
nosy: Gravitania, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: encoding error trying to save string to file
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file38268/Redear_Carpetotas.py

___
Python tracker 
<http://bugs.python.org/issue23543>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com