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
dbForge Studio for PostgreSQL 2.3.212
HTMLPad 2020 16.2
WeBuilder 2020 16.2
Rapid CSS 2020 16.2
Rapid PHP 2020 16.2
C# HTML to PDF 2020.8.1
Flowrigami 1.0.0.1
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Top Code
HTMLPad 2020 16.2
Video Conference Website Scripts 2.86
IcrediBB Bulletin Board System 1.0
Java-2-Pseudo 1.0
Billing System 1.0.1
Temperature Controller 1.0
Ticket Booking System 1.0
Cab Booking Script 1.3.2
MLM Software ONE 1.5.46
Uber Clone with Safety Measure Addons 2.0
WeBuilder 2020 16.2
ChequePRO Cheque Printing writing System 1.0
PosGenie 1.0
iScripts eSwap 3.0
PHP Hangman Game 1.2.0
Top Rated
Uber Clone with Safety Measure Addons 2.0
Answers phpSoftPro 3.12
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Apphitect Airbnb Clone Script 1.0
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
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