[Scons-users] Oh dear, Winder has been an idiot…

Russel Winder russel at winder.org.uk
Sat Mar 8 14:51:59 EST 2014


Gary, Andrew,

Thanks muchly for speedy and frequent responses. I have discovered I
have been making a n00b "day 3" error, and that everything works exactly
as wanted. There is no need for the str stuff, so hopefully Andrew can
simplify his codes.

sources = Glob('*.cc')
special = File('flob.cc')
source.remove(special)

works exactly as required.

Of course this is true if and only if File('flob.cc') is a reference to
the same object created in the list by Glob('*.cc') which appears to be
true at present. But is this a pure fluke or deep magic of SCons?

The issue here is that SCons.Node.FS.File does not define __eq__,
__ne__, __hash__ and so is reliant on the identity equality that is the
default.

I am embarrassed and will now crawl into a whole and wish for the thread
to be removed from the Internet history and everyone's memory.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
Url : http://four.pairlist.net/pipermail/scons-users/attachments/20140308/095335fb/attachment.pgp


More information about the Scons-users mailing list