["python","python-2.7","set"]
Use curly braces to initialize a Set in Python

I'm learning python, and I have a novice question about initializing sets. Through testing, I've discovered that a set can be initialized like so: my_set = {'foo', 'bar', 'baz'} Are there any disadvantages of doing it this way, as opposed to the standard way of: my_set = set(['foo', 'bar', 'baz']) or is it just a question of style?
There are two issues with the set literal syntax: my_set = {'foo', 'bar', 'baz'} It's not available before Python 2.7 There's no way to express an empty set using that syntax (using {} creates an empty dict) The section of the docs outlining this syntax is here.