Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9150
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: String concatenation vs. string formatting |
| Date | 2011-07-09 22:55 -0700 |
| Organization | > Bestiaria Support Staff < |
| References | <4E17661D.6020307@gmail.com> <loom.20110709T125838-983@post.gmane.org> <4E18CFF8.1060908@gmail.com> <ivb494$mpv$1@dough.gmane.org> <4E191B34.8090100@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.826.1310277339.1164.python-list@python.org> (permalink) |
On Sat, 09 Jul 2011 22:23:32 -0500, Andrew Berg
<bahamutzero8825@gmail.com> declaimed the following in
gmane.comp.python.general:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
> On 2011.07.09 09:54 PM, Dennis Lee Bieber wrote:
> > "file" is a built-in (related to "open").
> It is? What is it?
>
Maybe it's been removed, but from the help file for my installation
doc> file( filename[, mode[, bufsize]])
doc>
doc> Constructor function for the file type, described further in
section 3.9, ``File Objects''. The constructor's arguments are the same
as those of the open() built-in function described below.
doc> When opening a file, it's preferable to use open() instead of
invoking this constructor directly. file is more suited to type testing
(for example, writing "isinstance(f, file)").
doc>
doc> New in version 2.2.
doc>
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: String concatenation vs. string formatting Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-07-09 22:55 -0700
csiph-web