In Python 2.7, if I use print statement followed by comma as the following:
print('Generation ...'),
X, y = generate_dataset(num_samples)
print('Done!')
The first print print('Generation ...'),
will NOT show up in the terminal until X, y = generate_dataset(num_samples)
is finished! How can I force the print to immediately step by step with the existence of comma?