Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
White-label Grocery Delivery App Solution 2.0
Best Classified Script 5.1
Readymade B2B Script 1.3.1
Uber Clone with Safety Measure Addons 2.0
Equity Investing Software 1.3.2
C# QR Code Generator 2020.6.0.0
The .Net PDF Library 2020.7.1
dbExpress driver for MySQL 7.2
dbForge Documenter for Oracle 1.2
dbForge Studio for Oracle 4.2
Excel .Net Library 2020.6
fsMediaLibrary.NET 2019.11
VaxVoIP SIP Server SDK 5.2.0
Database Workbench Pro 5.7.4
dbForge Data Generator for Oracle 2.2
Top Code
Database Workbench Pro 5.7.4
dbExpress driver for SQL Server 4.45
Availability Booking Calendar PHP 1.0
ATN Site Builder 3.0
dbExpress driver for MySQL 3.00
IcrediBB Bulletin Board System 1.0
Invoice Manager by PHPJabbers 3.0
dbForge Studio for Oracle 3.10
MLM Software ONE 1.5.46
MLM Unilevel Plan Software 1.0.2
Monoline MLM Software 1.3.4
Simple Web Content Management System for Scripts 1.1
ICPennyBid Penny Auction Script 4.0
VBA Recovery 2007
ATN Resume Finder 2.0
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Heap (Priority Queue) extension type in Python  2.2
File ID: 66505






Heap (Priority Queue) extension type in Python  2.2
Download Heap (Priority Queue) extension type in Python 2.2http://code.activestate.com/recipes/252496-heap-priority-queue-extension-type-in-python-22/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 33
Submit Rating:
Heap (Priority Queue) extension type in Python  2.2 Description
Description: A simple example of a heap data structure as a C extension. This data structure can store and sort any python object that has a comparison function (i.e. strings, numbers, etc.).

License: Freeware

Related: extending

O/S:Windows

Downloads: 33



More Similar Code

You may have needed a priority queue with the ability to change the priorities of elements that were in the queue. This recipe solves this problem in an efficient way.



This is a variation on the existing recipe "Constants in Python" by Alex Martelli. It binds a variable to the type value at first usage. Further usage is then restricted to values of the same type. This avoids a variable of, say, type...



My First Poem Written in Python



I saw something like this in C++ as an introduction to Monte Carlo, so I decided to make something similar in Python. My original code used for loops, but I vectorized it with no small amount of effort, and it now runs orders of magnitude faster....



Linux Network Block Device server in Python

This is a simplified version based on Kragen Sitaker's http://lists.canonical.org/pipermail/kragen-hacks/2004-May/000397.html

Close is never actually called, at least not on the...



This is my first poem writing in python.
Why i do that?
I do because i saw some perl poems and not so much in python, just it! =)
Python developers let's go express your art, and domain of langague Python...!!!!



How To Determine Browser Type in Server-Side Code Without the BrowserType Object in ASP.NET is a web based tutorial in which author tells about the step by step method that have to be adapted to determine the browser type of the users by using...



This recipe can be used to sort very large files (millions of records) in Python. No record termination character is required, hence a record may contain embedded binary data, newlines, etc. You can specify how many temporary files to use and...



The with statement in Python 2.5 can be used similarly to the anonymous blocks of code in Ruby.



This is a simple maze generator & solver written in Python. It is written as a game, consisting of classes which can read mazes from STDIN or a file. It provides a a random maze generator game, which can generate mazes of any dimension and...

User Review for Heap (Priority Queue) extension type in Python
- required fields
     

Please enter text on the image