Wow.. just wow.. Where do these myths come from??!
Snakes will grow to their genetically specified length, but that length can be influenced by a few different things such as food availability, environment(temperatures- too low= slow metabolism), stress level, etc. Cage size has nothing to do with it.