GithubHelp home page GithubHelp logo

Comments (12)

schinckel avatar schinckel commented on September 17, 2024 1

I'm not sure. It seems that @spulec hasn't been on GitHub much lately. He's likely the only one who can merge, and push releases. It is possible to reference a git-commit in a requirements.txt: you may have to do that until he has time to merge/push.

from freezegun.

spulec avatar spulec commented on September 17, 2024

Yeah, that's not great.

I'm working on a new branch (ctypes) that will solve this problem. It doesn't work with python 3 yet though. If you're using python2, it'd be great to have some people start testing that branch.

from freezegun.

fredrik avatar fredrik commented on September 17, 2024

I've noticed that datetime objects created by freezegun can't be pickled:
pickle.PicklingError: Can't pickle <type 'datetime.datetime'>: it's not the same object as datetime.datetime.

Is that related to the isinstance issue described here? Seems likely.

from freezegun.

spulec avatar spulec commented on September 17, 2024

Yes, most likely. You can try the ctypes branch and see if that gives you any luck.

from freezegun.

pnegahdar avatar pnegahdar commented on September 17, 2024

Any updates on this issue? The core should really return an instance of datetime...

from freezegun.

spulec avatar spulec commented on September 17, 2024

Not a perfect solution, but it seems like the best one for now.

from freezegun.

kingbuzzman avatar kingbuzzman commented on September 17, 2024

Any update on this? I'm running into this right now. The ctypes branch hasnt been touched in 5 years

from freezegun.

schinckel avatar schinckel commented on September 17, 2024

According to my understanding, this was fixed by the referenced commit.

from freezegun.

kingbuzzman avatar kingbuzzman commented on September 17, 2024

it looks like my issue is with issubclass() / not with isinstance()

from freezegun.

schinckel avatar schinckel commented on September 17, 2024

It looks like there's also a __subclasscheck__. Should by fairly easy to follow the same pattern in the commit that @spulec referenced above.

from freezegun.

kingbuzzman avatar kingbuzzman commented on September 17, 2024

How quickly can we get this merged and pushed to pypi O:)

from freezegun.

boxed avatar boxed commented on September 17, 2024

I am also a contributor that can merge. Unfortunately I can't cut releases to pypi at this time.

from freezegun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.