Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: namespaces

  • To: mathgroup at
  • Subject: [mg121550] Re: namespaces
  • From: "Harvey P. Dale" <hpd1 at>
  • Date: Mon, 19 Sep 2011 07:06:21 -0400 (EDT)
  • Delivered-to:
  • References: <>

	Much, but not all, of the functions in Combinatorica have been
added to Mathematica's core.  Subsets is one example.

-----Original Message-----
From: Alan [mailto:alan.isaac at]
Sent: Sunday, September 18, 2011 4:13 AM
To: mathgroup at
Subject: [mg121550] namespaces

Newbie question (by example):
How can I access KSubsets (which I believe is only in Combinatorica)
without hiding the kernel's graph functions?  (I.e., I would like to be
able access the Combinatorica functions *only* when I specify e.g.
Combinatorica`KSubsets, so that  if e.g. I just use the short name Graph
this refers to System`Graph.

So I don't want to say e.g.
because then I cannot just use Graph to refer to System`Graph.

Ideally, I'd like an equivalent to a name import from a Python package
(e.g., ``from mypackage import myfunction``).

Short of that, I thought about reordering the $ContextPath, but I'm not
sure this is a good idea (or how to do it correctly).

Hope that's clear enough.

Alan Isaac

  • References:
  • Prev by Date: 2 parameter bifurcation diagrams
  • Next by Date: Plot axis length and size ratio (TwoPlot revive)
  • Previous by thread: namespaces
  • Next by thread: Re: namespaces