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
shafiq sahil added the comment:
http://www.mobile-phone.pk/search/
--
nosy: +shafiq sahil
___
Python tracker
<https://bugs.python.org/issue37151>
___
___
Pytho
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
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
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
[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
. 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