Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: srinivas devaki Newsgroups: comp.lang.python Subject: Re: How to use internal python c funtions, from python code Date: Fri, 11 Dec 2015 07:35:44 +0530 Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 7k1FLJCB24T00HT4S0rx9w0+AW2a9XwZ+epjIJTCnl7A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'subject:code': 0.07; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'c/c++': 0.09; 'trees': 0.09; 'python': 0.10; 'subject:python': 0.14; 'algorithmic': 0.16; 'chris,': 0.16; 'enough.': 0.16; 'heapq': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'segment': 0.16; 'later': 0.16; 'platforms': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'cc:no real name:2**0': 0.22; 'programming': 0.22; 'header:In- Reply-To:1': 0.24; 'feature': 0.24; 'message-id:@mail.gmail.com': 0.27; 'cool': 0.27; 'factor': 0.29; 'another': 0.32; 'received:google.com': 0.35; 'subject:use': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'cases': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'thank': 0.38; 'subject:from': 0.39; 'still': 0.40; 'competitive': 0.61; 'provide': 0.61; 'times': 0.63; 'limit': 0.65; 'decided': 0.66; 'cheating': 0.84; 'approach.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mvsB3KHgvxBp3dSGbaLmznRaneKdvBv7KjOL/ATZZCA=; b=fIfSGnbEdfI7WmBNy3TkjFeJsz80gbc1PwgifBJlERxvdp7s+oAqJdln3OoAdd5DHj lzwRyEiNYAu1xGIrJCbGkq0VpFqhpYbGfKDEu0YaMey4x3NXb/q0w/CGtbxUjYmzNdDY S3y8xZ2AM17cYsBwhKsqiX4MhAQL4kvmFp3NnqKHdmZFgdiN4PWdkH/RFfEg50ox309V K7zElOynvNPBGl86olkdnoAzPP9ANW/RPKg6zHsQY3EGx9XmWP77SVwnCDVl1IXCcwHr GZih23g7b+x1Me97vK4b6YZk27Tjfy4Kk8Fn7poLeSCVkhwQBMrtL4Gs+/diQYPohI5h t8kQ== X-Received: by 10.107.4.83 with SMTP id 80mr16918138ioe.143.1449799545017; Thu, 10 Dec 2015 18:05:45 -0800 (PST) In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.20+ X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100248 Thank you Chris, later I decided that this would be cheating and I have to think about another algorithmic approach. most of the competitive programming platforms provide python with a time limit of 5 times of c/c++ time limit. but in many cases like if the algorithms are recursive(like segment trees etc) that 5 factor is just not enough. but still I think it would be cool to be able to access internal c functions without any fuss. I can use such feature with heapq too(sift operations),