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

pstats.Stats: strip_dirs() method cannot handle file paths from different OS #72089

Closed
Jaroslav mannequin opened this issue Aug 30, 2016 · 7 comments
Closed

pstats.Stats: strip_dirs() method cannot handle file paths from different OS #72089

Jaroslav mannequin opened this issue Aug 30, 2016 · 7 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes docs Documentation in the Doc dir easy type-feature A feature request or enhancement

Comments

@Jaroslav
Copy link
Mannequin

Jaroslav mannequin commented Aug 30, 2016

BPO 27902
Nosy @pfmoore, @tjguk, @bitdancer, @methane, @zware, @zooba, @miss-islington
PRs
  • bpo-27902: Add compatibility note to Profile docs #7295
  • [3.7] bpo-27902: Add compatibility note to Profile docs (GH-7295) #7390
  • [2.7] bpo-27902: Add compatibility note to Profile docs (GH-7295) #7391
  • [3.6] bpo-27902: Add compatibility note to Profile docs (GH-7295) #7392
  • 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 2018-06-05.06:55:04.715>
    created_at = <Date 2016-08-30.20:49:35.748>
    labels = ['easy', '3.8', 'type-feature', '3.7', 'docs']
    title = 'pstats.Stats: strip_dirs() method cannot handle file paths from different OS'
    updated_at = <Date 2018-06-05.06:55:04.715>
    user = 'https://bugs.python.org/Jaroslav'

    bugs.python.org fields:

    activity = <Date 2018-06-05.06:55:04.715>
    actor = 'methane'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2018-06-05.06:55:04.715>
    closer = 'methane'
    components = ['Documentation']
    creation = <Date 2016-08-30.20:49:35.748>
    creator = 'Jaroslav'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 27902
    keywords = ['patch', 'easy']
    message_count = 7.0
    messages = ['273964', '273973', '274272', '318640', '318684', '318685', '318686']
    nosy_count = 9.0
    nosy_names = ['paul.moore', 'tim.golden', 'r.david.murray', 'methane', 'docs@python', 'zach.ware', 'steve.dower', 'Jaroslav', 'miss-islington']
    pr_nums = ['7295', '7390', '7391', '7392']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue27902'
    versions = ['Python 2.7', 'Python 3.7', 'Python 3.8']

    @Jaroslav
    Copy link
    Mannequin Author

    Jaroslav mannequin commented Aug 30, 2016

    Setup
    =====

    profile data from machine
    -------------------------

    • Win 7 (64bit)
    • Python 3.5.2 (32bit)

    data analyzed on
    ----------------

    • Lubuntu 16.04 (64bit) incl. Python 3

    issue
    -----
    method strip_dirs() cannot extract the base name since it assumes the Unix-style file paths. not tested for opposite direction. no exception emitted.

    comment
    -------

    1. optional argument controlling the used 'path' module can definitely help
    2. documentation update will be welcome

    @Jaroslav Jaroslav mannequin added type-bug An unexpected behavior, bug, or error OS-windows labels Aug 30, 2016
    @bitdancer
    Copy link
    Member

    We could add to the compatibility paragraph that compatibility with files produced by the same program on a different platform is not guaranteed.

    For the option, that would be an enhancement, and you should open a new issue for that.

    @bitdancer bitdancer added docs Documentation in the Doc dir and removed OS-windows labels Aug 30, 2016
    @bitdancer bitdancer added type-feature A feature request or enhancement and removed type-bug An unexpected behavior, bug, or error labels Aug 30, 2016
    @Jaroslav
    Copy link
    Mannequin Author

    Jaroslav mannequin commented Sep 2, 2016

    The paragraph is ok.

    I'll open. Thanks a lot.

    @csabella csabella added easy 3.7 (EOL) end of life 3.8 only security fixes labels Mar 13, 2018
    @methane
    Copy link
    Member

    methane commented Jun 4, 2018

    New changeset f7745e1 by INADA Naoki (Tobias Kunze) in branch 'master':
    bpo-27902: Add compatibility note to Profile docs (GH-7295)
    f7745e1

    @miss-islington
    Copy link
    Contributor

    New changeset 7548a93 by Miss Islington (bot) in branch '3.7':
    bpo-27902: Add compatibility note to Profile docs (GH-7295)
    7548a93

    @miss-islington
    Copy link
    Contributor

    New changeset 134bb46 by Miss Islington (bot) in branch '2.7':
    bpo-27902: Add compatibility note to Profile docs (GH-7295)
    134bb46

    @miss-islington
    Copy link
    Contributor

    New changeset 889a1ef by Miss Islington (bot) in branch '3.6':
    bpo-27902: Add compatibility note to Profile docs (GH-7295)
    889a1ef

    @methane methane closed this as completed Jun 5, 2018
    @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
    3.7 (EOL) end of life 3.8 only security fixes docs Documentation in the Doc dir easy type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants