Skip to content

os.rename and other raise WindowsError #49415

Closed

Description

@kristjanvalur
BPO 5165
Nosy @kristjanvalur

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 2009-02-06.13:36:40.138>
created_at = <Date 2009-02-06.10:20:33.116>
labels = ['interpreter-core', 'type-bug', 'invalid']
title = 'os.rename and other raise WindowsError'
updated_at = <Date 2009-02-06.13:36:40.137>
user = 'https://github.com/kristjanvalur'

bugs.python.org fields:

activity = <Date 2009-02-06.13:36:40.137>
actor = 'kristjan.jonsson'
assignee = 'none'
closed = True
closed_date = <Date 2009-02-06.13:36:40.138>
closer = 'kristjan.jonsson'
components = ['Interpreter Core']
creation = <Date 2009-02-06.10:20:33.116>
creator = 'kristjan.jonsson'
dependencies = []
files = []
hgrepos = []
issue_num = 5165
keywords = []
message_count = 3.0
messages = ['81256', '81265', '81266']
nosy_count = 2.0
nosy_names = ['kristjan.jonsson', 'mrabarnett']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue5165'
versions = ['Python 2.6', 'Python 2.5', 'Python 3.0', 'Python 3.1', 'Python 2.7']

Activity

  1. kristjanvalur commented on Feb 6, 2009

    kristjanvalurmannequin
    MannequinAuthor

    in lib/test/test_os.py, there is a test class, Win32ErrorTests, that
    tests that certain functions return a WindowsError on failure. And
    indeed they do that, but that is in contradiction with the
    documentation. From the 2.6 docs:
    Note
    All functions in this module raise OSError in the case of invalid or
    inaccessible file names and paths, or other arguments that have the
    correct type, but are not accepted by the operating system.

  2. added
    interpreter-core
    type-bug
    on Feb 6, 2009
  3. mrabarnett commented on Feb 6, 2009

    mrabarnettmannequin
    Mannequin

    WindowsError is a subclass of OSError, so it's not entirely
    contradictory, just a little misleading... :-)

  4. kristjanvalur commented on Feb 6, 2009

    kristjanvalurmannequin
    MannequinAuthor

    ah, well, silly me. then I'll just close this as "Invalid".

  5. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-coretype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions