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.
NBC reportedly holds celebs hostage to Jimmy Fallon's show
Ray Liotta sues skin care company over use of likeness