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

Not all entries in the directory stack are Path objects #12967

Open
illright opened this issue May 10, 2021 · 1 comment
Open

Not all entries in the directory stack are Path objects #12967

illright opened this issue May 10, 2021 · 1 comment
Labels

Comments

@illright
Copy link

Steps to reproduce

  • Execute %cd /home
  • Execute _dh

Expected result

A list of Path objects is printed: [PosixPath('/some/starting/path'), PosixPath('/home')]

Actual result

A mixed list of Path objects and strings is printed: [PosixPath('/some/starting/path'), '/home']

System info

Manjaro Linux, Python 3.9.4, IPython 7.22.0 (reproduces on IPython 8.0.0.dev)

@MrMino MrMino added the bug label May 11, 2021
@GalBr
Copy link
Contributor

GalBr commented Nov 17, 2021

This issue should be fixed as part of the work in #12515. We append to dhist (_dh) in osm.py (specifically in the cd() function) and we use os.getcwd() right now, which should be changed to Path.cwd().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants