A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-June/065804.html below:

[Python-Dev] UUID module

[Python-Dev] UUID module [Python-Dev] UUID moduleKa-Ping Yee python-dev at zesty.ca
Sat Jun 10 17:38:40 CEST 2006
On Sat, 10 Jun 2006, Thomas Heller wrote:
> I have not tested the speed, but extending my snippet to also work
> on 98 should be nearly trivial:
>
> try:
>     _func = windll.rpcrt4.UuidCreateSequential
> except AttributeError:
>     _func = windll.rpcrt4.UuidCreate
>
> def CreateGuid():
>     uuid = UUID()
>     if 0 == _func(byref(uuid)):
>         return str(buffer(uuid))

Okay.  Thanks for this.  I'll give it a shot.


-- ?!ng
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4