Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73548
| References | <lobued$r48$1@speranza.aioe.org> <mailman.11218.1403617680.18130.python-list@python.org> <loc07h$9l$1@speranza.aioe.org> |
|---|---|
| Date | 2014-06-25 00:04 +1000 |
| Subject | Re: Error in PyDev but not in the standard python interpreter |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11219.1403619019.18130.python-list@python.org> (permalink) |
On Tue, Jun 24, 2014 at 11:59 PM, Fabien <fabien.maussion@gmail.com> wrote: > Hi Chris, > > thanks for the hint. Indeed they are not an instance of the same class: > >>>> isinstance(d1, datetime) > Out[6]: False >>>> isinstance(d2, datetime) > Out[7]: True > > so this is something I should check with the NetCDF4 package developers. > > While The python interpreter can compare them, my pydev environment can't. > Is pydev doing something "better" then python3 "alone"? > Here's what I'd try: >>> import sys >>> sys.modules[d1.__class__.__module__].__file__ >>> sys.modules[d2.__class__.__module__].__file__ Do those in both environments and see where things are actually coming from. (In PyDev, I expect that to tell you exactly the same file names as your question-mark inspection tells you, as that'll be how it obtains the information.) It might be that your module search path is different. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Error in PyDev but not in the standard python interpreter Fabien <fabien.maussion@gmail.com> - 2014-06-24 15:28 +0200
Re: Error in PyDev but not in the standard python interpreter Chris Angelico <rosuav@gmail.com> - 2014-06-24 23:47 +1000
Re: Error in PyDev but not in the standard python interpreter Fabien <fabien.maussion@gmail.com> - 2014-06-24 15:59 +0200
Re: Error in PyDev but not in the standard python interpreter Chris Angelico <rosuav@gmail.com> - 2014-06-25 00:04 +1000
Re: Error in PyDev but not in the standard python interpreter Fabien <fabien.maussion@gmail.com> - 2014-06-24 16:27 +0200
Re: Error in PyDev but not in the standard python interpreter Chris Angelico <rosuav@gmail.com> - 2014-06-25 00:35 +1000
Re: Error in PyDev but not in the standard python interpreter Fabien <fabien.maussion@gmail.com> - 2014-06-24 17:40 +0200
Re: Error in PyDev but not in the standard python interpreter Chris Angelico <rosuav@gmail.com> - 2014-06-25 01:58 +1000
Re: Error in PyDev but not in the standard python interpreter Ethan Furman <ethan@stoneleaf.us> - 2014-06-24 09:02 -0700
Re: Error in PyDev but not in the standard python interpreter Ethan Furman <ethan@stoneleaf.us> - 2014-06-24 08:08 -0700
Re: Error in PyDev but not in the standard python interpreter Fabio Zadrozny <fabiofz@gmail.com> - 2014-06-24 10:46 -0300
Re: Error in PyDev but not in the standard python interpreter Tony the Tiger <tony@tiger.invalid> - 2014-06-28 20:39 +0000
csiph-web