Skip to content

fully deprecate (i.e. remove) some RFed years ago methods #477

Closed
@yarikoptic

Description

@yarikoptic

I see that to_filespec was deprecated in 2010 (36d8c21, i.e. upstream/1.0.0.dev~16) so may be it is time to prune those which were marked deprecated in 1.x series completely in 2.x or at least in some 3.x at least whenever that one comes?
Now it seems a good portion of .to_ methods is deprecated, complicating "guess writing" of code via completions ;)

I think I saw somewhere (thought it was numpy but their decorator seems to be not as sophisticated), some decorator so you could mark your version when you are going to deprecate the method, so if originally you did

@deprecate('2.0.0')
def to_be_removed():

then whenever you release 2.0.0 (adjust __version__ to be 2.0.0), it would simply cause an error demanding physical removal, and thus reminding about necessity... or I just dreamed it up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions