What is the best way to import the synchronized queue class that is
compatible with both Python2 and Python3. Right now I am using the
following:

>if sys.version_info < (3, 0):
>    import Queue as queue
>else:
>    import queue

This seems somewhat unpythonic. Is there a better way without
installing extra packages?

Thanks,
     Ben
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to