how to name an object via scripting

 From:  stevecim
6731.1 
Hi All

Wanted to make a change to the RingCircle2 script, where it names the circle after creating it , i.e if system "US" and size "9" was select from the menu the ring would be named "US 9" .

I thought this might be an easy start to scripting :) can objects be named via scripting? if yes can someone point me to some sample code?

Cheers, Stephen