0

When I call Information of a function defined in Package I get always the result that shows the function with full name Private variables.

For example:

BeginPackage["test`"];

testFunction::usage="testFunction";
testMean::usage="data";

Begin["`Private`"];

testFunction[n_]:=Module[{data},data=RandomReal[10,{n,2}];
testMean=Mean[data]];

End[];

EndPackage[];

once I load the Package and enter:

?? testFunction

I get this result which shows clearly that the Private variable are shown in full name.

enter image description here

what to do to just view the name of the variables without its context.

Thank you

Basheer Algohi
  • 19,917
  • 1
  • 31
  • 78
  • I marked this as a duplicate of the question happy fish linked to as it surely looks like one to me. If you feel that you need something else please edit your question to reference that one and explain how your requirements differ. – Mr.Wizard Jul 09 '16 at 04:01
  • @Mr.Wizard it is a complete duplicate .) – Basheer Algohi Jul 09 '16 at 04:15

1 Answers1

1
Needs["GeneralUtilities`"];
PrintDefinitions[testFunction]

More methods here: 1742

vapor
  • 7,911
  • 2
  • 22
  • 55