Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107885 > unrolled thread
| Started by | Christopher Reimer <christopher_reimer@icloud.com> |
|---|---|
| First post | 2016-04-29 18:55 -0700 |
| Last post | 2016-05-04 19:06 +1000 |
| Articles | 4 on this page of 24 — 10 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Not x.islower() has different output than x.isupper() in list output... Christopher Reimer <christopher_reimer@icloud.com> - 2016-04-29 18:55 -0700
Re: Not x.islower() has different output than x.isupper() in list output... Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-30 17:47 +1200
Re: Not x.islower() has different output than x.isupper() in list output... pavlovevidence@gmail.com - 2016-05-03 03:00 -0700
Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-03 20:25 +1000
Re: Not x.islower() has different output than x.isupper() in list output... Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-03 14:25 +0300
Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-03 22:00 +1000
Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-03 09:01 -0400
Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-03 23:13 +1000
Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-03 09:19 -0400
Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-03 23:23 +1000
Re: Not x.islower() has different output than x.isupper() in list output... Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-03 17:49 +0300
Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-03 11:12 -0400
Re: Not x.islower() has different output than x.isupper() in list output... Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-03 18:27 +0300
Re: Not x.islower() has different output than x.isupper() in list output... Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-03 15:42 +0000
Re: Not x.islower() has different output than x.isupper() in list output... Terry Reedy <tjreedy@udel.edu> - 2016-05-03 12:37 -0400
Re: Not x.islower() has different output than x.isupper() in list output... Steven D'Aprano <steve@pearwood.info> - 2016-05-04 13:28 +1000
Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-04 10:09 -0400
Re: Not x.islower() has different output than x.isupper() in list output... Chris Angelico <rosuav@gmail.com> - 2016-05-05 00:37 +1000
Re: Not x.islower() has different output than x.isupper() in list output... Steven D'Aprano <steve@pearwood.info> - 2016-05-05 01:37 +1000
Re: Not x.islower() has different output than x.isupper() in list output... DFS <nospam@dfs.com> - 2016-05-04 17:05 -0400
Re: Not x.islower() has different output than x.isupper() in list output... Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-05-03 17:42 +0300
Re: Not x.islower() has different output than x.isupper() in list output... Steven D'Aprano <steve@pearwood.info> - 2016-05-04 11:30 +1000
Re: Not x.islower() has different output than x.isupper() in list output... Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-05-04 20:34 +1200
Re: Not x.islower() has different output than x.isupper() in list output... Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-05-04 19:06 +1000
Page 2 of 2 — ← Prev page 1 [2]
| From | Jussi Piitulainen <jussi.piitulainen@helsinki.fi> |
|---|---|
| Date | 2016-05-03 17:42 +0300 |
| Message-ID | <lf5inyvdwyz.fsf@ling.helsinki.fi> |
| In reply to | #108062 |
Chris Angelico writes:
> On Tue, May 3, 2016 at 9:25 PM, Jussi Piitulainen wrote:
>> Chris Angelico writes:
>>
>>> This assumes, of course, that there is a function swapcase which can
>>> return a string with case inverted. I'm not sure such a function
>>> exists.
>>
>> str.swapcase("foO")
>> 'FOo'
>
> I suppose for this discussion it doesn't matter if it's imperfect.
Not sure. I may have misunderstood what this discussion is about - I
thought you had forgotten that Python has this function :)
>>>> "\N{ANGSTROM SIGN}".swapcase().swapcase() == "\N{ANGSTROM SIGN}"
> False
>>>> "\N{LATIN SMALL LETTER SHARP S}".swapcase().swapcase()
> 'ss'
>
> But drawing the analogy with the negation of real numbers implies
> something that doesn't exist.
I missed the relevance of that analogy.
Ceterum censeo, the only suggested use for .swapcase I've ever heard of
is encryption.
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve@pearwood.info> |
|---|---|
| Date | 2016-05-04 11:30 +1000 |
| Message-ID | <57295099$0$1612$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #108073 |
On Wed, 4 May 2016 12:42 am, Jussi Piitulainen wrote: > Ceterum censeo, the only suggested use for .swapcase I've ever heard of > is encryption. iF YOU'RE PROGRAMMING AN EDITOR, sWAP cASE IS REALLY USEFUL FOR THOSE LITTLE capslock ACCIDENTS THAT PLAGUE TYPISTS. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Gregory Ewing <greg.ewing@canterbury.ac.nz> |
|---|---|
| Date | 2016-05-04 20:34 +1200 |
| Message-ID | <dotqg1Flb0dU1@mid.individual.net> |
| In reply to | #108073 |
Jussi Piitulainen wrote: > Ceterum censeo, the only suggested use for .swapcase I've ever heard of > is encryption. Yep, all the smart terrorists these days are using a combination of swapcase and rot13. Totally bamboozles the FBI. -- Greg
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2016-05-04 19:06 +1000 |
| Message-ID | <5729bb93$0$2927$c3e8da3$76491128@news.astraweb.com> |
| In reply to | #108121 |
On Wednesday 04 May 2016 18:34, Gregory Ewing wrote: > Jussi Piitulainen wrote: >> Ceterum censeo, the only suggested use for .swapcase I've ever heard of >> is encryption. > > Yep, all the smart terrorists these days are using a > combination of swapcase and rot13. Totally bamboozles > the FBI. > Heh, the Australian government is getting their panties in a twist over the whole encryption thing, because Apple versus FBI proves that encryption is evil or something. Which lead to this exchange in the IRC channel we use at work: (handles have been removed to anonymize the discussion) XXXX: newsflash, most criminals are too stupid to use encryption XXXX: https://en.wikipedia.org/wiki/Mujahedeen_Secrets XXXX: It's hilarious, they turn off all the "western" ciphers YYYY: the great thing about Mujahedeen Secrets (apart fromt he crypto apparently being poor) is the cyphertext is trivially detectable YYYY: like "-----BEGIN PGP MESSAGE-----" but it's "-----DEATH TO INFIDELS-----" or something YYYY: so XKeyscore can just go "this person is using Mujahedeen Secrets" in their regular traffic matching ZZZZ: Wait, Mujahedeen Secrets was released anonymously, it has easily broken encryption and is trivially detectable? Can you say "schmuck bait"? I think I know who the authors were... -- Steve
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.python
csiph-web