Ticket #2491 (closed defect: fixed)

Opened 9 months ago

Last modified 3 months ago

[with patch, positive review] Showing source from sloane_functions

Reported by: jsp Assigned to: mhansen
Priority: major Milestone: sage-3.1.2
Component: combinatorics Keywords:
Cc:

Description

From IRC #sage-devel

<mhansen> jaap: There's a difference between sloane.A000001?? and sage.combinat.sloane_functions.A000001??
<jaap> mhansen sage: sloane.A000001??
<jaap> Error getting source: arg is not a module, class, method, function, traceback, frame, or code object
<mhansen> jaap: A bit earlier I had said that  sloane.A000001?? doesn't work because of the way the sloane object works.
<jaap> ok, but how about the OEIS user who wants to see how things work?
<mhansen> If it's a bug, then it should be reported.
<jaap> I think so
sage: sloane.A000045
 Fibonacci numbers with index n >= 0

sage: sloane.A000045?

sage: sloane.A000045??
Error getting source: arg is not a module, class, method, function, traceback, frame, or code object

sage: sage.combinat.sloane_functions.A000045??

works ok.


Attachments

trac_2491.patch (0.9 kB) - added by mhansen on 08/26/2008 06:56:10 PM.

Change History

03/12/2008 08:36:29 AM changed by was

sage: sloane.A000045?? Error getting source: arg is not a module, class, method, function, traceback, frame, or code object

That this doesn't work should be considered a bug. The actual introspection is simply some python code I wrote, so it's fixable. Nick also knows something about it.

08/26/2008 06:56:10 PM changed by mhansen

  • attachment trac_2491.patch added.

08/26/2008 06:56:30 PM changed by mhansen

  • summary changed from Showing source from sloane_functions to [with patch, needs review] Showing source from sloane_functions.

08/26/2008 06:57:43 PM changed by mabshoff

  • summary changed from [with patch, needs review] Showing source from sloane_functions to [with patch, positive review] Showing source from sloane_functions.

Positive review. Works for me.

Cheers,

Michael

08/26/2008 07:17:20 PM changed by mabshoff

  • status changed from new to closed.
  • resolution set to fixed.

Merged in Sage 3.1.2.alpha1