Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43070 > unrolled thread
| Started by | dbv <dineshbvadhia@hotmail.com> |
|---|---|
| First post | 2013-04-08 06:12 -0700 |
| Last post | 2013-04-09 00:20 +0000 |
| Articles | 8 — 4 participants |
Back to article view | Back to comp.lang.python
is "_io.py" missing from 2.7.4 ? dbv <dineshbvadhia@hotmail.com> - 2013-04-08 06:12 -0700
Re: is "_io.py" missing from 2.7.4 ? Dylan Evans <dylan@dje.me> - 2013-04-08 23:29 +1000
Re: is "_io.py" missing from 2.7.4 ? dbv <dineshbvadhia@hotmail.com> - 2013-04-08 06:42 -0700
Re: is "_io.py" missing from 2.7.4 ? dbv <dineshbvadhia@hotmail.com> - 2013-04-08 06:59 -0700
Re: is "_io.py" missing from 2.7.4 ? dbv <dineshbvadhia@hotmail.com> - 2013-04-08 06:59 -0700
Re: is "_io.py" missing from 2.7.4 ? Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2013-04-08 17:02 +0200
Re: is "_io.py" missing from 2.7.4 ? dbv <dineshbvadhia@hotmail.com> - 2013-04-08 06:42 -0700
Re: is "_io.py" missing from 2.7.4 ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-09 00:20 +0000
| From | dbv <dineshbvadhia@hotmail.com> |
|---|---|
| Date | 2013-04-08 06:12 -0700 |
| Subject | is "_io.py" missing from 2.7.4 ? |
| Message-ID | <f38eaec4-3367-40c6-b4ca-b929dfd4ddac@googlegroups.com> |
In 2.7.4, io.py shows:
import _io
import abc
from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, UnsupportedOperation,
open, FileIO, BytesIO, StringIO, BufferedReader,
BufferedWriter, BufferedRWPair, BufferedRandom,
IncrementalNewlineDecoder, TextIOWrapper)
but, cannot find _io.py, though there is the old _pyio.py in the //Python27//Lib folder.
[toc] | [next] | [standalone]
| From | Dylan Evans <dylan@dje.me> |
|---|---|
| Date | 2013-04-08 23:29 +1000 |
| Message-ID | <mailman.289.1365427756.3114.python-list@python.org> |
| In reply to | #43070 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Apr 8, 2013 at 11:12 PM, dbv <dineshbvadhia@hotmail.com> wrote: > In 2.7.4, io.py shows: > > import _io > import abc > > from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, > UnsupportedOperation, > open, FileIO, BytesIO, StringIO, BufferedReader, > BufferedWriter, BufferedRWPair, BufferedRandom, > IncrementalNewlineDecoder, TextIOWrapper) > > but, cannot find _io.py, though there is the old _pyio.py in the > //Python27//Lib folder. > > >>> _io.__file__ '/usr/lib/python2.7/lib-dynload/_io.so' Looks like it's implemented in C. > -- > http://mail.python.org/mailman/listinfo/python-list > -- "The UNIX system has a command, nice ... in order to be nice to the other users. Nobody ever uses it." - Andrew S. Tanenbaum
[toc] | [prev] | [next] | [standalone]
| From | dbv <dineshbvadhia@hotmail.com> |
|---|---|
| Date | 2013-04-08 06:42 -0700 |
| Message-ID | <4af0c0a6-4a5f-4738-a529-e7338fddd7c2@googlegroups.com> |
| In reply to | #43072 |
Ah, okay. Then on Windows, _io.pyd should be in the /DLLs folder but it isn't there ?
[toc] | [prev] | [next] | [standalone]
| From | dbv <dineshbvadhia@hotmail.com> |
|---|---|
| Date | 2013-04-08 06:59 -0700 |
| Message-ID | <cf30c6ed-2dfd-4ec4-8992-f56bcca5dff4@googlegroups.com> |
| In reply to | #43073 |
_io is a builtin module
[toc] | [prev] | [next] | [standalone]
| From | dbv <dineshbvadhia@hotmail.com> |
|---|---|
| Date | 2013-04-08 06:59 -0700 |
| Message-ID | <mailman.290.1365429610.3114.python-list@python.org> |
| In reply to | #43073 |
_io is a builtin module
[toc] | [prev] | [next] | [standalone]
| From | Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> |
|---|---|
| Date | 2013-04-08 17:02 +0200 |
| Message-ID | <kjum68$qsf$1@r01.glglgl.de> |
| In reply to | #43073 |
Am 08.04.2013 15:42 schrieb dbv: > Ah, okay. Then on Windows, _io.pyd should be in the /DLLs folder but it isn't there ? > It seems to be a built-in module: >>> import _io >>> _io <module '_io' (built-in)> alike to >>> import __builtin__ >>> __builtin__ <module '__builtin__' (built-in)> as opposed to >>> import win32ui >>> win32ui <module 'win32ui' from 'C:\Python27\lib\site-packages\Pythonwin\win32ui.pyd'> and >>> import os >>> os <module 'os' from 'C:\Python27\lib\os.pyc'> Thomas
[toc] | [prev] | [next] | [standalone]
| From | dbv <dineshbvadhia@hotmail.com> |
|---|---|
| Date | 2013-04-08 06:42 -0700 |
| Message-ID | <mailman.296.1365439491.3114.python-list@python.org> |
| In reply to | #43072 |
Ah, okay. Then on Windows, _io.pyd should be in the /DLLs folder but it isn't there ?
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-04-09 00:20 +0000 |
| Message-ID | <51635ed1$0$30003$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #43070 |
On Mon, 08 Apr 2013 06:12:02 -0700, dbv wrote: > In 2.7.4, io.py shows: > > import _io > import abc > > from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, > UnsupportedOperation, > open, FileIO, BytesIO, StringIO, BufferedReader, > BufferedWriter, BufferedRWPair, BufferedRandom, > IncrementalNewlineDecoder, TextIOWrapper) > > but, cannot find _io.py, though there is the old _pyio.py in the > //Python27//Lib folder. If "from _io import ..." succeeds with no error, then it is physically impossible for it to be missing. To find where the _io module lives, at the interactive interpreter run this: import _io _io.__file__ Under Linux, you should get something like this: '/usr/local/lib/python2.7/lib-dynload/_io.so' and the equivalent under Windows. Note that in Python 3.3, the _io module is now built-in into the compiler, so _io.__file__ no longer exists. -- Steven
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web