Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66612
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Marko Rauhamaa <marko@pacujo.net> |
| Newsgroups | comp.lang.python |
| Subject | Re: Why is the interpreter is returning a 'reference'? |
| Date | Mon, 17 Feb 2014 19:09:52 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 15 |
| Message-ID | <87ob2564yn.fsf@elektro.pacujo.net> (permalink) |
| References | <9b80c233-ad31-44c8-8a6e-9002ab11bd0d@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Info | mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="32575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+SeVR0M70vcGO8i2Ys8ll" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
| Cancel-Lock | sha1:L38JSTDFDCHz1CY21FPXuJQ5Dr8= sha1:7X972O4H93ewJrTJ6gK1jWFbCOI= |
| Xref | csiph.com comp.lang.python:66612 |
Show key headers only | View raw
Nir <nirchernia@gmail.com>: >>>> k= [s.upper for s in k] >>>> k > [<built-in method upper of str object at 0x00000000021B2AF8>, <built-in method upper of str object at 0x0000000002283F58>] > > Why doesn't the python interpreter just return > ['HI, 'BOSS'] ? Try: k = [ s.upper() for s in k ] Marko
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why is the interpreter is returning a 'reference'? Nir <nirchernia@gmail.com> - 2014-02-17 09:00 -0800 Re: Why is the interpreter is returning a 'reference'? emile <emile@fenx.com> - 2014-02-17 09:08 -0800 Re: Why is the interpreter is returning a 'reference'? Joel Goldstick <joel.goldstick@gmail.com> - 2014-02-17 12:08 -0500 Re: Why is the interpreter is returning a 'reference'? Ned Batchelder <ned@nedbatchelder.com> - 2014-02-17 12:08 -0500 Re: Why is the interpreter is returning a 'reference'? Marko Rauhamaa <marko@pacujo.net> - 2014-02-17 19:09 +0200 Re: Why is the interpreter is returning a 'reference'? Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-02-17 11:14 -0600 Re: Why is the interpreter is returning a 'reference'? John Gordon <gordon@panix.com> - 2014-02-17 19:17 +0000
csiph-web