[issue40675] Add missing mimetypes for fonts

2020-05-18 Thread Sahil
New submission from Sahil : Currently guess_type method of mimetype fails to identity fonts from their extensions. -- components: Library (Lib) messages: 369312 nosy: sahil.prajapati priority: normal pull_requests: 19498 severity: normal status: open title: Add missing mimetypes

[issue37151] Calling code cleanup after PEP 590

2019-06-10 Thread shafiq sahil
shafiq sahil added the comment: http://www.mobile-phone.pk/search/ -- nosy: +shafiq sahil ___ Python tracker <https://bugs.python.org/issue37151> ___ ___ Pytho

[issue23322] parser module docs missing second example

2015-02-21 Thread Sahil Chelaramani
Sahil Chelaramani added the comment: A patch for this bug. Please let me know if I have to change something. First patch, please be kind :) -- keywords: +patch nosy: +SahilC Added file: http://bugs.python.org/file38196/mywork.patch ___ Python

Re: Running Python Demo on the Web?

2011-09-07 Thread Sahil Tandon
On Wed, 2011-09-07 at 18:40:23 -0700, Laurent wrote: Neat. But I can see some print(x) and some print x. What is the Python version? See: http://docs.python.org/release/3.2.2/whatsnew/3.0.html#print-is-a-function http://www.python.org/dev/peps/pep-3105/ -- Sahil Tandon sa...@freebsd.org

Re: idiomatic analogue of Perl's: while () { ... }

2011-09-02 Thread Sahil Tandon
Dennis Lee Bieber wrote: On Thu, 1 Sep 2011 00:56:50 -0400, Sahil Tandonsa...@freebsd.org # process input, line-by-line, and print responses after parsing input while 1: rval = parse(raw_input()) if rval == None: There is only ONE None object so the preferred method

Re: idiomatic analogue of Perl's: while () { ... }

2011-09-01 Thread Sahil Tandon
[Thanks to everyone who responded] Steven D'Aprano wrote: On Thu, 1 Sep 2011 02:56 pm Sahil Tandon wrote: %% # unbuffer STDOUT sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) I've never bothered with unbuffered stdout, but that looks fine to me. I'm not sure if it is necessary though

idiomatic analogue of Perl's: while () { ... }

2011-08-31 Thread Sahil Tandon
. Is there a recommended way to disable such buffering? Am I taking a totally wrong approach? Feel free to just link me to previous discussions on the topic(s) if I have missed them. Please be gentle with your cluebats. :-) Thanks, -- Sahil Tandon sa...@freebsd.org -- http://mail.python.org