Police said the pedestrian heard noise coming from the dumpster Tuesday night and looked inside to find the large snake slithering around, the Canadian Broadcasting Corp. reported Wednesday.
The pedestrian called police and officers brought in the animal services department to capture the snake.
Police said they do not know how the python ended up in the dumpster.
Watch: Robber bugs clerk, gets sprayed with Raid
'Zombie-proof' cabin being sold online