Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saving to file add inexistance characters #67320

Closed
Gravitania mannequin opened this issue Dec 30, 2014 · 2 comments
Closed

saving to file add inexistance characters #67320

Gravitania mannequin opened this issue Dec 30, 2014 · 2 comments
Labels
topic-IO type-bug An unexpected behavior, bug, or error

Comments

@Gravitania
Copy link
Mannequin

Gravitania mannequin commented Dec 30, 2014

BPO 23131
Nosy @benjaminp
Files
  • Python_Send.7z: File with the Python script, the xml examples and the .csv result
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2014-12-30.05:59:06.794>
    created_at = <Date 2014-12-30.04:21:10.466>
    labels = ['type-bug', 'invalid', 'expert-IO']
    title = 'saving to file add inexistance characters'
    updated_at = <Date 2014-12-30.05:59:06.792>
    user = 'https://bugs.python.org/Gravitania'

    bugs.python.org fields:

    activity = <Date 2014-12-30.05:59:06.792>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-12-30.05:59:06.794>
    closer = 'benjamin.peterson'
    components = ['IO']
    creation = <Date 2014-12-30.04:21:10.466>
    creator = 'Gravitania'
    dependencies = []
    files = ['37559']
    hgrepos = []
    issue_num = 23131
    keywords = []
    message_count = 2.0
    messages = ['233190', '233192']
    nosy_count = 2.0
    nosy_names = ['benjamin.peterson', 'Gravitania']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23131'
    versions = ['Python 3.4']

    @Gravitania
    Copy link
    Mannequin Author

    Gravitania mannequin commented Dec 30, 2014

    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.000000 is saved as 5010.0000002. 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

    @Gravitania Gravitania mannequin added topic-IO type-bug An unexpected behavior, bug, or error labels Dec 30, 2014
    @benjaminp
    Copy link
    Contributor

    That's because line 153 prints extra numbers at the end of the total.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IO type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant