A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/022045.html below:

[Python-Dev] Removing METH_OLDARGS

[Python-Dev] Removing METH_OLDARGS [Python-Dev] Removing METH_OLDARGSGuido van Rossum guido@python.org
Sun, 31 Mar 2002 17:43:56 -0500
> I forgot there is one case of METH_OLDARGS:  file.readinto().
> I didn't want to change this because I don't know how to use it
> and there is no test for it.
> 
> If someone can give me a use-case, I can add a test and fix it.

>>> from array import array
>>> a = array('c', 100*'x')
>>> f = open("/etc/passwd")
>>> f.readinto(a)
100
>>> a
array('c', 'root:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nol')
>>> 

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4