Search
New Code
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
dbExpress driver for SQL Server 8.2
Grobino Online Grocery Shopping 1.1
PortalNest: Dynamics CRM Customer Portal 1.0
Purbis: JustEat Clone Scripts 1.1
Monoline MLM Software 1.3.4
Cab Booking Android Application by iNet Mobile 1.4
Shopping Cart Script by i-Netsolution 1.3.4
PortalNest: SuiteCRM Customer Portal 1.0
SugarCRM WordPress Customer Portal 3.2.0
The C# PDF Library 2020.6.0
Top Code
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
Code Listing by Ian Eloff

Code 1-2 of 2   






Managing ref-counting is a complex and error prone business. If you choose C++ to extend or embed Python, you can simply use a modification on std::auto_ptr. Instead of calling delete on the managed pointer, it will decref it.

So now you can do:

auto_py str = PyStr_FromString("Hello World!");

and forget about having to decref it altogether! Just like auto_ptr you can get the PyObject * with get(),...



This could also be easily modified to return n iterators, but was outside of my needs. Handy for splitting up the workload for use with multiple threads/processes.