Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: runctx method of cProfile module.
Post: RE: runctx method of cProfile module.

import cProfile def f1(): f = [i**2 for i in range(1,200001)] return f def f2(): g = (j**2 for j in range(1,200001)) yield g cProfile.runctx('f1()',globals(),locals()) cProfile.runctx('f2()',globa...
FaizKarim Homework 5 10,506 Oct-23-2019, 05:43 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020