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

copy() of a Munch gives dict() object #10

Closed
nivw opened this issue May 17, 2016 · 3 comments
Closed

copy() of a Munch gives dict() object #10

nivw opened this issue May 17, 2016 · 3 comments

Comments

@nivw
Copy link

nivw commented May 17, 2016

import munch
x=munch.Munch()
type(x.copy())
--> dict

I want this to give me a munch object

@lballan
Copy link

lballan commented May 17, 2016

import munch
x=munch.Munch()
cp=x.copy()
y=munch.Munch(cp)

type(y) —> munch.Munch

@lballan lballan closed this as completed May 17, 2016
@omergertel
Copy link

Having a workaround is not the same as having a solution.
I think copy should generally return the correct type. I'm re-opening.

@omergertel omergertel reopened this May 17, 2016
wiggin15 pushed a commit that referenced this issue May 17, 2016
@wiggin15
Copy link

Fixed.

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

No branches or pull requests

4 participants