Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5078 > unrolled thread

Re: namespaces

Started by"Harvey P. Dale" <hpd1@nyu.edu>
First post2011-09-19 11:10 +0000
Last post2011-09-19 11:10 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: namespaces "Harvey P. Dale" <hpd1@nyu.edu> - 2011-09-19 11:10 +0000

#5078 — Re: namespaces

From"Harvey P. Dale" <hpd1@nyu.edu>
Date2011-09-19 11:10 +0000
SubjectRe: namespaces
Message-ID<j577vk$j9v$1@smc.vnet.net>
	Much, but not all, of the functions in Combinatorica have been
added to Mathematica's core.  Subsets is one example.
	Best,
	Harvey

-----Original Message-----
From: Alan [mailto:alan.isaac@gmail.com]
Sent: Sunday, September 18, 2011 4:13 AM
Subject: 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.
Needs["Combinatorica`"]
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.

Thanks,
Alan Isaac

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web