RE: Beginner in python

2021-10-25 Thread Avi Gross via Python-list
. Avi -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Monday, October 25, 2021 6:25 PM To: Python Subject: Re: Beginner in python On Tue, Oct 26, 2021 at 9:23 AM Kian Kwame wrote: > > hi buddie > am new to python somebody kindly advice the coding which w

Re: Beginner in python

2021-10-25 Thread Chris Angelico
On Tue, Oct 26, 2021 at 9:23 AM Kian Kwame wrote: > > hi buddie > am new to python somebody kindly advice the coding which will count odd > number from 1 to 10 , and counting number from 1 tp 100 Sounds like homework. What have you written so far? ChrisA -- https://mail.python.org/mailman/li

Re: Beginner problem, please help. Building a simple menu + lists , cannot print list

2021-10-11 Thread Chris Angelico
On Tue, Oct 12, 2021 at 9:13 AM Felix Kjellström wrote: > > Hello! Please see the link to the code I have uploaded to my account at > replit.com > > https://replit.com/join/lftxpszwrv-felixkjellstrom Unfortunately, it's not public. Are you able to put the code on GitHub as a repository or gist,

Re: [Beginner] Spliting input

2020-06-25 Thread Andrew Jaffe
Hi, On 25/06/2020 12:50, Bischoop wrote: I try to split input numbers, for example: 12 so I cant add them, I tried separated split(' ') but it's not working. Any ideas how to do this? * numb1,numb2=input("enter 1st and 2nd no ").split() Avg=(int(numb1) + int(numb2)) / 2 print(Avg) So, this i

Re: [Beginner] Spliting input

2020-06-25 Thread Peter Otten
Bischoop wrote: > I try to split input numbers, for example: 12 so I cant add them, I > tried separated split(' ') but it's not working. > Any ideas how to do this? > > * > numb1,numb2=input("enter 1st and 2nd no ").split() > Avg=(int(numb1) + int(numb2)) / 2 > print(Avg) > * > > -- > Thanks To

Re: [Beginner] Spliting input

2020-06-25 Thread Frank Millman
On 2020-06-25 2:13 PM, Bischoop wrote: On 2020-06-25, Andrew Bell wrote: Without knowing the problem you're having, it's hard to answer. This seems generally correct. Error track: Traceback (most recent call last): File "splitting.py", line 1, in numb1,numb2=input("enter 1st and 2

Re: [Beginner] Spliting input

2020-06-25 Thread Bischoop
On 2020-06-25, Andrew Bell wrote: > Without knowing the problem you're having, it's hard to answer. > This seems generally correct. > > Error track: Traceback (most recent call last): File "splitting.py", line 1, in numb1,numb2=input("enter 1st and 2nd no ").split() ValueError: not

Re: [Beginner] Spliting input

2020-06-25 Thread Andrew Bell
Without knowing the problem you're having, it's hard to answer. This seems generally correct. On Thu, Jun 25, 2020 at 7:57 AM Bischoop wrote: > I try to split input numbers, for example: 12 so I cant add them, I > tried separated split(' ') but it's not working. > Any ideas how to do this? > > *

Re: beginner question-very basic

2019-08-11 Thread Wildman via Python-list
On Sun, 11 Aug 2019 12:50:29 -0400, slefkowitz wrote: > Just getting started with Python. > > Downloaded 3.7.4 rom python.org > > I wrote program in Notepad, saved it with a ".py" extension. > > What do I do next? How do I execute a program? I am assuming you are using Windows since you poste

Re: Beginner help

2017-02-05 Thread breamoreboy
On Sunday, February 5, 2017 at 11:27:19 PM UTC, pha...@u.rochester.edu wrote: > Hi everyone. I'm new to python and have hit a bit of a wall with an > assignment I'm working on. I created a number of classes and instantiated > them, now I need to create a list out of them. I am looking for somethi

Re: Beginner Question

2016-06-02 Thread sohcahtoa82
On Thursday, June 2, 2016 at 6:38:56 AM UTC-7, Igor Korot wrote: > Steven, > > On Thu, Jun 2, 2016 at 1:20 AM, Steven D'Aprano > wrote: > > On Thursday 02 June 2016 14:21, Igor Korot wrote: > > > >> Hi, guys, > >> > >> On Wed, Jun 1, 2016 at 9:42 PM, boB Stepp wrote: > >>> On Wed, Jun 1, 2016 at

Re: Beginner Question

2016-06-02 Thread Igor Korot
Steven, On Thu, Jun 2, 2016 at 1:20 AM, Steven D'Aprano wrote: > On Thursday 02 June 2016 14:21, Igor Korot wrote: > >> Hi, guys, >> >> On Wed, Jun 1, 2016 at 9:42 PM, boB Stepp wrote: >>> On Wed, Jun 1, 2016 at 7:55 PM, Marcin Rak >>> wrote: Hi to all I have a beginner question

Re: Beginner Question

2016-06-02 Thread Marcin Rak
That linked help clear up my confusion...yes you really have to know how things work internally to understand why things happen the way they happen. Thanks again to all -- https://mail.python.org/mailman/listinfo/python-list

Re: Beginner Question

2016-06-01 Thread Steven D'Aprano
On Thursday 02 June 2016 14:21, Igor Korot wrote: > Hi, guys, > > On Wed, Jun 1, 2016 at 9:42 PM, boB Stepp wrote: >> On Wed, Jun 1, 2016 at 7:55 PM, Marcin Rak >> wrote: >>> Hi to all >>> >>> I have a beginner question to which I have not found an answer I was able >>> to understand. Could so

Re: Beginner Question

2016-06-01 Thread Igor Korot
Hi, guys, On Wed, Jun 1, 2016 at 9:42 PM, boB Stepp wrote: > On Wed, Jun 1, 2016 at 7:55 PM, Marcin Rak > wrote: >> Hi to all >> >> I have a beginner question to which I have not found an answer I was able to >> understand. Could someone explain why the following program: >> >> def f(a, L=[])

Re: Beginner Question

2016-06-01 Thread Steven D'Aprano
On Thursday 02 June 2016 10:55, Marcin Rak wrote: > Hi to all > > I have a beginner question to which I have not found an answer I was able to > understand. Could someone explain why the following program: > > def f(a, L=[]): > L.append(a) > return L The default value is set once, and

Re: Beginner Question

2016-06-01 Thread boB Stepp
On Wed, Jun 1, 2016 at 7:55 PM, Marcin Rak wrote: > Hi to all > > I have a beginner question to which I have not found an answer I was able to > understand. Could someone explain why the following program: > > def f(a, L=[]): > L.append(a) > return L > > print(f(1)) > print(f(2)) > print

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-18 Thread Steven D'Aprano
On Monday 18 April 2016 12:01, Random832 wrote: > On Sun, Apr 17, 2016, at 21:39, Steven D'Aprano wrote: >> Oh no, it's the thread that wouldn't die! *wink* >> >> Actually, yes it is. At least, according to this website: >> >> http://www.mit.edu/~jcb/Dvorak/history.html > > I'd really rather see

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 11:39 AM, Steven D'Aprano wrote: > With QWERTY, the eight home keys only cover a fraction over a quarter of > all key presses: ASDF JKL; have frequencies of > > 8.12% 6.28% 4.32% 2.30% 0.10% 0.69% 3.98% and effectively 0% > > making a total of 25.79%. If you also include G

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-17 Thread Random832
On Sun, Apr 17, 2016, at 21:39, Steven D'Aprano wrote: > Oh no, it's the thread that wouldn't die! *wink* > > Actually, yes it is. At least, according to this website: > > http://www.mit.edu/~jcb/Dvorak/history.html I'd really rather see an instance of the claim not associated with Dvorak marketi

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-17 Thread Steven D'Aprano
Oh no, it's the thread that wouldn't die! *wink* On Sun, 10 Apr 2016 01:53 am, Random832 wrote: > On Fri, Apr 8, 2016, at 23:28, Steven D'Aprano wrote: >> This is the power of the "slowing typists down is a myth" meme: same >> Wikipedia contributor takes an article which *clearly and obviously*

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-10 Thread pyotr filipivich
Ian Kelly on Sun, 10 Apr 2016 07:43:13 -0600 typed in comp.lang.python the following: >On Sat, Apr 9, 2016 at 9:09 PM, pyotr filipivich wrote: >> ASINTOER are the top eight English letters (not in any order, it >> is just that "A Sin To Err" is easy to remember. > >What's so hard to reme

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-10 Thread Ian Kelly
On Sat, Apr 9, 2016 at 9:09 PM, pyotr filipivich wrote: > ASINTOER are the top eight English letters (not in any order, it > is just that "A Sin To Err" is easy to remember. What's so hard to remember about ETA OIN SHRDLU? Plus that even gives you the top twelve. :-) -- https://mail.pyth

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-10 Thread Gregory Ewing
Steven D'Aprano : But when you get down to fundamentals, character sets and alphabets have always blurred the line between presentation and meaning. W ("double-u") was, once upon a time, UU And before that, it was VV, because the Romans used V the way we now use U, and didn't have a letter U.

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-10 Thread Gregory Ewing
Ben Bacarisse wrote: The problem with that theory is that 'er/re' (this is e and r in either order) is the 3rd most common pair in English but have been placed together. No, they haven't. The order of the characters in the type basket goes down the slanted columns of keys, so E and R are separa

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-09 Thread pyotr filipivich
Dennis Lee Bieber on Sat, 09 Apr 2016 14:52:50 -0400 typed in comp.lang.python the following: >On Sat, 09 Apr 2016 11:44:48 -0400, Random832 >declaimed the following: > >>I don't understand where this idea that alternating hands makes you >>slows you down came from in the first place... I suspec

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-09 Thread Stephen Hansen
On Sat, Apr 9, 2016, at 12:25 PM, Mark Lawrence via Python-list wrote: > Again, where is the relevance to Python in this discussion, as we're on > the main Python mailing list? Please can the moderators take this stuff > out, it is getting beyond the pale. You need to come to grip with the fact

RE: [E] QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-09 Thread Coll-Barth, Michael via Python-list
-Original Message- From: Ben Finney >> This is an often-repeated myth, with citations back as far as the 1970s. >> It is false. >> The design is intended to reduce jamming the print heads together, but the >> goal of this is not to reduce speed, but to enable *fast* typing. >> It aims

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-09 Thread Mark Lawrence via Python-list
On 09/04/2016 17:08, Rustom Mody wrote: On Saturday, April 9, 2016 at 7:14:05 PM UTC+5:30, Ben Bacarisse wrote: The problem with that theory is that 'er/re' (this is e and r in either order) is the 3rd most common pair in English but have been placed together. ou and et (in either order) are th

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-09 Thread Ben Bacarisse
Rustom Mody writes: > On Saturday, April 9, 2016 at 7:14:05 PM UTC+5:30, Ben Bacarisse wrote: >> The problem with that theory is that 'er/re' (this is e and r in either >> order) is the 3rd most common pair in English but have been placed >> together. ou and et (in either order) are the 15th and

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-09 Thread Rustom Mody
On Saturday, April 9, 2016 at 7:14:05 PM UTC+5:30, Ben Bacarisse wrote: > The problem with that theory is that 'er/re' (this is e and r in either > order) is the 3rd most common pair in English but have been placed > together. ou and et (in either order) are the 15th and 22nd most common > and the

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-09 Thread Random832
On Fri, Apr 8, 2016, at 23:28, Steven D'Aprano wrote: > This is the power of the "slowing typists down is a myth" meme: same > Wikipedia contributor takes an article which *clearly and obviously* > repeats the conventional narrative that QWERTY was designed to > decrease the number of key presses p

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-09 Thread Random832
On Fri, Apr 8, 2016, at 23:28, Steven D'Aprano wrote: > And how did it enable fast typing? By *slowing down the typist*, and thus > having fewer jams. Er, no? The point is that type bars that are closer together collide more easily *at the same actual typing speed* than ones that are further apart

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-09 Thread Ben Bacarisse
Ben Bacarisse writes: > alister writes: > >> >> the design of qwerty was not to "Slow" the typist bu to ensure that the >> hammers for letters commonly used together are spaced widely apart, >> reducing the portion of trier travel arc were the could jam. >> I and E are actually such a pair w

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-09 Thread Ben Bacarisse
alister writes: > > the design of qwerty was not to "Slow" the typist bu to ensure that the > hammers for letters commonly used together are spaced widely apart, > reducing the portion of trier travel arc were the could jam. > I and E are actually such a pair which is why they are at opposite

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-09 Thread alister
On Fri, 08 Apr 2016 20:20:02 -0400, Dennis Lee Bieber wrote: > On Fri, 8 Apr 2016 11:04:53 -0700 (PDT), Rustom Mody > declaimed the following: > >>Its reasonably likely that all our keyboards start QWERT... >> Doesn't make it a sane design. >> > It was a sane design -- for early mechanical

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-08 Thread Steven D'Aprano
On Sat, 9 Apr 2016 10:43 am, Ben Finney wrote: > Dennis Lee Bieber writes: > >> [The QWERTY keyboard layout] was a sane design -- for early mechanical >> typewrites. It fulfills its goal of slowing down a typist to reduce >> jamming print-heads at the platen. > > This is an often-repeated myth,

QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-08 Thread Ben Finney
Dennis Lee Bieber writes: > [The QWERTY keyboard layout] was a sane design -- for early mechanical > typewrites. It fulfills its goal of slowing down a typist to reduce > jamming print-heads at the platen. This is an often-repeated myth, with citations back as far as the 1970s. It is false. The

Re: [beginner] What's wrong?

2016-04-08 Thread Mark Lawrence via Python-list
On 08/04/2016 23:59, sohcahto...@gmail.com wrote: On Friday, April 1, 2016 at 3:57:40 PM UTC-7, Mark Lawrence wrote: On 01/04/2016 23:44, sohcahto...@gmail.com wrote: On Friday, April 1, 2016 at 3:10:51 PM UTC-7, Michael Okuntsov wrote: Nevermind. for j in range(1,8) should be for j in range(8

Re: [beginner] What's wrong?

2016-04-08 Thread sohcahtoa82
On Friday, April 1, 2016 at 3:57:40 PM UTC-7, Mark Lawrence wrote: > On 01/04/2016 23:44, sohcahto...@gmail.com wrote: > > On Friday, April 1, 2016 at 3:10:51 PM UTC-7, Michael Okuntsov wrote: > >> Nevermind. for j in range(1,8) should be for j in range(8). > > > > I can't tell you how many times I

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Marko Rauhamaa
Steven D'Aprano : > But when you get down to fundamentals, character sets and alphabets have > always blurred the line between presentation and meaning. W ("double-u") > was, once upon a time, UU But as every Finnish-speaker now knows, "w" is only an old-fashioned typographic variant of the glyph

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Steven D'Aprano
On Sat, 9 Apr 2016 03:21 am, Peter Pearson wrote: > On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano > wrote: >> On Fri, 8 Apr 2016 02:51 am, Peter Pearson wrote: >>> >>> The Unicode consortium was certifiably insane when it went into the >>> typesetting business. >> >> They are not, and neve

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Rustom Mody
Adding link On Friday, April 8, 2016 at 11:48:07 PM UTC+5:30, Rustom Mody wrote: > 5.12 Deprecation > > In the Unicode Standard, the term deprecation is used somewhat differently > than it is in some other standards. Deprecation is used to mean that a > character or other feature is strongly d

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Rustom Mody
On Friday, April 8, 2016 at 11:33:38 PM UTC+5:30, Peter Pearson wrote: > On Sat, 9 Apr 2016 03:50:16 +1000, Chris Angelico wrote: > > On Sat, Apr 9, 2016 at 3:44 AM, Marko Rauhamaa wrote: > [snip] > >> (As for ligatures, I understand that there might be quite a bit of > >> legacy software that ded

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Rustom Mody
On Friday, April 8, 2016 at 11:14:21 PM UTC+5:30, Marko Rauhamaa wrote: > Peter Pearson : > > > On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano wrote: > >> They are not, and never have been, in the typesetting business. > >> Perhaps characters are not the only things easily confused *wink* >

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Peter Pearson
On Sat, 9 Apr 2016 03:50:16 +1000, Chris Angelico wrote: > On Sat, Apr 9, 2016 at 3:44 AM, Marko Rauhamaa wrote: [snip] >> (As for ligatures, I understand that there might be quite a bit of >> legacy software that dedicated code points and code pages for ligatures. >> Translating that legacy soft

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Rustom Mody
On Friday, April 8, 2016 at 10:24:17 AM UTC+5:30, Chris Angelico wrote: > On Fri, Apr 8, 2016 at 2:43 PM, Rustom Mody wrote: > > No I am not clever/criminal enough to know how to write a text that is > > visually > > close to > > print "Hello World" > > but is internally closer to > > rm -rf / >

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 3:44 AM, Marko Rauhamaa wrote: > Unicode heroically and definitively solved the problems ASCII had posed > but introduced a bag of new, trickier problems. > > (As for ligatures, I understand that there might be quite a bit of > legacy software that dedicated code points and

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Marko Rauhamaa
Peter Pearson : > On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano > wrote: >> They are not, and never have been, in the typesetting business. >> Perhaps characters are not the only things easily confused *wink* > > Defining codepoints that deal with appearance but not with meaning is > going

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-08 Thread Peter Pearson
On Fri, 08 Apr 2016 16:00:10 +1000, Steven D'Aprano wrote: > On Fri, 8 Apr 2016 02:51 am, Peter Pearson wrote: >> >> The Unicode consortium was certifiably insane when it went into the >> typesetting business. > > They are not, and never have been, in the typesetting business. Perhaps > character

Re: From email addresses sometimes strange on this list - was Re: [beginner] What's wrong?

2016-04-08 Thread Cameron Simpson
On 05Apr2016 08:58, Chris Angelico wrote: On Tue, Apr 5, 2016 at 8:55 AM, Michael Torrie wrote: Usenet-orginating posts look fine. For example: From: Marko Rauhamaa Newsgroups: comp.lang.python Whereas email ones are sometimes looking like this: From: Mark Lawrence via Python-list Reply-

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-07 Thread Chris Angelico
On Fri, Apr 8, 2016 at 4:00 PM, Steven D'Aprano wrote: > Or for that matter: > > a = akjhvciwfdwkejfc2qweoduycwldvqspjcwuhoqwe9fhlcjbqvcbhsiauy37wkg() + 100 > b = 100 + akjhvciwfdwkejfc2qweoduycwldvqspjcwuhoqew9fhlcjbqvcbhsiauy37wkg() > > How easily can you tell them apart at a glance? Ouch! Can'

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-07 Thread Steven D'Aprano
On Fri, 8 Apr 2016 02:51 am, Peter Pearson wrote: > Seriously, it's cute how neatly normalisation works when you're > watching closely and using it in the circumstances for which it was > intended, but that hardly proves that these practices won't cause much > trouble when they're used more casual

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-07 Thread Chris Angelico
On Fri, Apr 8, 2016 at 2:43 PM, Rustom Mody wrote: > No I am not clever/criminal enough to know how to write a text that is > visually > close to > print "Hello World" > but is internally closer to > rm -rf / > > For me this: > >>> Α = 1 A = 2 Α + 1 == A > True > > > is cure enoug

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-07 Thread Rustom Mody
On Friday, April 8, 2016 at 10:13:16 AM UTC+5:30, Rustom Mody wrote: > No I am not clever/criminal enough to know how to write a text that is > visually > close to > print "Hello World" > but is internally closer to > rm -rf / > > For me this: > >>> Α = 1 > >>> A = 2 > >>> Α + 1 == A > True >

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-07 Thread Rustom Mody
On Thursday, April 7, 2016 at 10:22:18 PM UTC+5:30, Peter Pearson wrote: > On Thu, 07 Apr 2016 11:37:50 +1000, Steven D'Aprano wrote: > > On Thu, 7 Apr 2016 05:56 am, Thomas 'PointedEars' Lahn wrote: > >> Rustom Mody wrote: > > > >>> So here are some examples to illustrate what I am saying: > >>>

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-07 Thread Chris Angelico
On Fri, Apr 8, 2016 at 2:51 AM, Peter Pearson wrote: > The pile-of-poo character was just frosting on > the cake. > > (Sorry to leave you with that image.) No. You're not even a little bit sorry. You're an evil, evil man. And funny. ChrisA who knows that its codepoint is 1F4A9 without looking i

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-07 Thread Peter Pearson
On Thu, 07 Apr 2016 11:37:50 +1000, Steven D'Aprano wrote: > On Thu, 7 Apr 2016 05:56 am, Thomas 'PointedEars' Lahn wrote: >> Rustom Mody wrote: > >>> So here are some examples to illustrate what I am saying: >>> >>> Example 1 -- Ligatures: >>> >>> Python3 gets it right >> flag = 1 >> flag

Re: Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-06 Thread Marko Rauhamaa
Steven D'Aprano : > So even in English, capitalisation can make a semantic difference. It can even make a pronunciation difference: polish vs Polish. Marko -- https://mail.python.org/mailman/listinfo/python-list

Unicode normalisation [was Re: [beginner] What's wrong?]

2016-04-06 Thread Steven D'Aprano
On Thu, 7 Apr 2016 05:56 am, Thomas 'PointedEars' Lahn wrote: > Rustom Mody wrote: >> So here are some examples to illustrate what I am saying: >> >> Example 1 -- Ligatures: >> >> Python3 gets it right > flag = 1 > flag >> 1 Python identifiers are intentionally normalised to reduce secu

Re: [beginner] What's wrong?

2016-04-06 Thread Chris Angelico
On Thu, Apr 7, 2016 at 5:56 AM, Thomas 'PointedEars' Lahn wrote: >> Example 1 -- Ligatures: >> >> Python3 gets it right > flag = 1 > flag >> 1 > > Fascinating; confirmed with > > | $ python3 > | Python 3.4.4 (default, Jan 5 2016, 15:35:18) > | [GCC 5.3.1 20160101] on linux > | […] > > I do

Re: [beginner] What's wrong?

2016-04-06 Thread Thomas 'PointedEars' Lahn
Rustom Mody wrote: > On Sunday, April 3, 2016 at 5:17:36 PM UTC+5:30, Thomas 'PointedEars' Lahn > wrote: >> Rustom Mody wrote: >> > When python went to full unicode identifers it should have also added >> > pragmas for which blocks the programmer intended to use -- something >> > like a charset de

Re: From email addresses sometimes strange on this list - was Re: [beginner] What's wrong?

2016-04-04 Thread Michael Torrie
On 04/04/2016 04:58 PM, Chris Angelico wrote: > O That probably explains it. It's because of Yahoo and mailing > lists. Yahoo did stuff that breaks stuff, so Mailman breaks stuff > differently to make sure that only Yahoo people get messed up a bit. > It means their names and addresses get

Re: From email addresses sometimes strange on this list - was Re: [beginner] What's wrong?

2016-04-04 Thread Chris Angelico
On Tue, Apr 5, 2016 at 8:55 AM, Michael Torrie wrote: > Usenet-orginating posts look fine. For example: > > From: Marko Rauhamaa > Newsgroups: comp.lang.python > > Whereas email ones are sometimes looking like this: > > From: Mark Lawrence via Python-list > Reply-To: Mark Lawrence O T

From email addresses sometimes strange on this list - was Re: [beginner] What's wrong?

2016-04-04 Thread Michael Torrie
On 04/04/2016 08:04 AM, Mark Lawrence via Python-list wrote: > On 02/04/2016 23:49, Michael Torrie wrote: >> Mark, your messages are showing up to the list as being from "python," >> at least on my email. Any reason for this? >> > > Assuming that you're referring to me, frankly I haven't a clue.

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-04 Thread Ben Finney
"Loop.IO" writes: > You now seem to be on some sort of rampage You've mis-interpreted Erik's attempts to help. Somehow the requests for details have made you defensive; I'm not sure why. Erik certainly was not being hostile to you. Hopefully you can take a more dispassionate position when you a

Re: [beginner] What's wrong?

2016-04-04 Thread BartC
On 04/04/2016 15:04, Mark Lawrence wrote: On 02/04/2016 23:49, Michael Torrie wrote: Mark, your messages are showing up to the list as being from "python," at least on my email. Any reason for this? Assuming that you're referring to me, frankly I haven't a clue. I read this list with Thunde

Re: [beginner] What's wrong?

2016-04-04 Thread Mark Lawrence via Python-list
On 02/04/2016 23:49, Michael Torrie wrote: Mark, your messages are showing up to the list as being from "python," at least on my email. Any reason for this? Assuming that you're referring to me, frankly I haven't a clue. I read this list with Thunderbird on Windows, I hit "reply" to somethi

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
On 03/04/16 22:49, Loop.IO wrote: You now seem to be on some sort of rampage I offered you some valuable advice. *plonk* E. -- https://mail.python.org/mailman/listinfo/python-list

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 10:27:16 PM UTC+1, Erik wrote: > Loop.IO: > > On 03/04/16 21:25, Loop.IO wrote: > > On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: > >> On 03/04/16 20:54, Loop.IO wrote: > >>> The original post said what did happen, the code runs and hangs on > >>> the create

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
Loop.IO: On 03/04/16 21:25, Loop.IO wrote: On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: On 03/04/16 20:54, Loop.IO wrote: The original post said what did happen, the code runs and hangs on the create file, and once i press Enter it then finishes and creates the file, not sure how

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 9:21:44 PM UTC+1, BartC wrote: > On 03/04/2016 20:36, Loop.IO wrote: > > On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: > > >> The issue is that it hangs, there is no error. its like it pauses until i > >> press enter, ill try what you've posted one momen

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: > On 03/04/16 20:54, Loop.IO wrote: > > The original post said what did happen, the code runs and hangs on > > the create file, and once i press Enter it then finishes and creates > > the file, not sure how you missed that but thanks > > Ye

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 20:36, Loop.IO wrote: On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: The issue is that it hangs, there is no error. its like it pauses until i press enter, ill try what you've posted one momen Ok the Bartc code gives me an error. This is confusing! I know you

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
On 03/04/16 20:54, Loop.IO wrote: The original post said what did happen, the code runs and hangs on the create file, and once i press Enter it then finishes and creates the file, not sure how you missed that but thanks Yes, I read your original post. That was days ago. The comment I was reply

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 8:49:28 PM UTC+1, Erik wrote: > Hi Loop.IO, > > On 03/04/16 15:41, Loop.IO wrote: > >> If you don't want the user to enter anything, then I explained how > >> before, just use: > >> > >>name='C:\\Documents\\PythonCoding\\launch2.bat' > >> > >> if that's the file

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 1:38:48 AM UTC+1, Mark Lawrence wrote: > On 03/04/2016 01:12, BartC wrote: > > On 02/04/2016 23:31, Loop.IO wrote: > > > >> Oh i see, so the code prompts for a name.. so i'm more lost than i > >> thought, what do I need to change to make it just create the file with > >>

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Michael Selik
How do you know when you're done typing the name of the file? It's hard to get tone right on the internet, so I'll clarify: this is not a rhetorical question and I mean you, LoopIO, not a generic person. On Sun, Apr 3, 2016, 8:40 PM Loop.IO wrote: > On Sunday, April 3, 2016 at 8:32:06 PM UTC+1,

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
Hi Loop.IO, On 03/04/16 15:41, Loop.IO wrote: If you don't want the user to enter anything, then I explained how before, just use: name='C:\\Documents\\PythonCoding\\launch2.bat' if that's the file name you need. -- Bartc Hi Bartc, i tried that, didn't work FYI, for the future. Te

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: > On Sunday, April 3, 2016 at 4:11:49 PM UTC+1, BartC wrote: > > On 03/04/2016 15:41, Loop.IO wrote: > > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > > >> On 02/04/2016 23:31, Loop.IO wrote: > > >> > > >>> Oh i see, so t

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 4:11:49 PM UTC+1, BartC wrote: > On 03/04/2016 15:41, Loop.IO wrote: > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > >> On 02/04/2016 23:31, Loop.IO wrote: > >> > >>> Oh i see, so the code prompts for a name.. so i'm more lost than i > >>> thought, what

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 09:49:03 -0700, Rustom Mody wrote: > On Sunday, April 3, 2016 at 9:41:11 PM UTC+5:30, Dan Sommers wrote: >> On Sun, 03 Apr 2016 08:46:59 -0700, Rustom Mody wrote: >> >> > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> >> Yes, it's marginally annoying, a

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 10:18:45 -0700, Rustom Mody wrote: > On Sunday, April 3, 2016 at 9:56:24 PM UTC+5:30, Dan Sommers wrote: >> On Sun, 03 Apr 2016 08:39:02 -0700, Rustom Mody wrote: >> >> > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> >> On Sun, 03 Apr 2016 07:30:47 -07

Re: [beginner] What's wrong?

2016-04-03 Thread Chris Angelico
On Mon, Apr 4, 2016 at 3:18 AM, Rustom Mody wrote: > While I personally dont know enough about security to be able to demonstrate a > full sequence of events, here's a little fun I had with Chris: > > https://mail.python.org/pipermail/python-list/2014-May/672413.html > > Do you not think this coul

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 9:56:24 PM UTC+5:30, Dan Sommers wrote: > On Sun, 03 Apr 2016 08:39:02 -0700, Rustom Mody wrote: > > > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: > >> On Sun, 03 Apr 2016 07:30:47 -0700, Rustom Mody wrote: > >> > >> > So here are some examples

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 9:30:40 PM UTC+5:30, Chris Angelico wrote: > Exactly why did you have root ssh access with a password? Umm... Dont exactly remember. Probably it was not strictly necessary. Combination of carelessness, stupidity, hurry Brings me to... On Sunday, April 3, 2016 at 9

Re: [beginner] What's wrong?

2016-04-03 Thread Chris Angelico
On Mon, Apr 4, 2016 at 2:22 AM, Dan Sommers wrote: > What about the A vs a case, which comes up even with ASCII-only > characters? If those are the same, then I, as a reader of Python code, > have to understand all the rules about ß (which I think have changed > over time), and potentially þ and

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 08:39:02 -0700, Rustom Mody wrote: > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> On Sun, 03 Apr 2016 07:30:47 -0700, Rustom Mody wrote: >> >> > So here are some examples to illustrate what I am saying: >> >> [A vs a, A vs A, flag vs flag, etc.] > >>

Re: [beginner] What's wrong?

2016-04-03 Thread Chris Angelico
On Mon, Apr 4, 2016 at 2:24 AM, Michael Okuntsov wrote: > As an OP, can I participate in the discussion? Here in Russia we have a > monstrous bookkeeping system called 1C-Predpriyatiye that is used by almost > all firms and organizations, from kiosks to huge factories. This system has > a Basic-li

Re: [beginner] What's wrong?

2016-04-03 Thread Michael Okuntsov
03.04.2016 20:52, Rustom Mody пишет: To really localize python one would have to 1. Localize the keywords 2. Localize all module names 3. Localize all the help strings 4. Localize the entire stuff up at https://docs.python.org/3/ 5. ... That is probably one or two orders of magnitude more work

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 08:46:59 -0700, Rustom Mody wrote: > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> Yes, it's marginally annoying, and a security hole waiting to happen, >> that A and A often look very much alike. > > "A security hole waiting to happen" = "Marginally a

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 16:25, Rustom Mody wrote: On Sunday, April 3, 2016 at 8:41:49 PM UTC+5:30, BartC wrote: You can create the path manually outside of Python. Or look up the docs to find out how to do that. A quick google suggested using os.makedirs (to create multiple nested paths at the same time

Re: [beginner] What's wrong?

2016-04-03 Thread Chris Angelico
On Mon, Apr 4, 2016 at 1:46 AM, Rustom Mody wrote: > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> Yes, it's marginally annoying, and a security hole waiting to happen, >> that A and A often look very much alike. > > > "A security hole waiting to happen" = "Marginally anno

Re: [beginner] What's wrong?

2016-04-03 Thread Larry Martell
On Sun, Apr 3, 2016 at 11:46 AM, Rustom Mody wrote: > Personal note: I once was idiot enough to have root with password root123 I changed my password to "incorrect," so whenever I forget it the computer will say, "Your password is incorrect." -- https://mail.python.org/mailman/listinfo/python-li

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: > Yes, it's marginally annoying, and a security hole waiting to happen, > that A and A often look very much alike. "A security hole waiting to happen" = "Marginally annoying" Frankly I find this juxtaposition alarming Personal

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: > On Sun, 03 Apr 2016 07:30:47 -0700, Rustom Mody wrote: > > > So here are some examples to illustrate what I am saying: > > [A vs a, A vs A, flag vs flag, etc.] > I understand that in some use cases, flag and flag represent the s

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 07:30:47 -0700, Rustom Mody wrote: > So here are some examples to illustrate what I am saying: [A vs a, A vs A, flag vs flag, etc.] Are identifiers text or bytes? or something else entirely that takes natural language rules and the appearance of the glyphs into account? I, fo

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 8:41:49 PM UTC+5:30, BartC wrote: > On 03/04/2016 15:41, Loop.IO wrote: > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > >> On 02/04/2016 23:31, Loop.IO wrote: > >> > >>> Oh i see, so the code prompts for a name.. so i'm more lost than i > >>> thought, w

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 15:41, Loop.IO wrote: On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: On 02/04/2016 23:31, Loop.IO wrote: Oh i see, so the code prompts for a name.. so i'm more lost than i thought, what do I need to change to make it just create the file with the chosen name Launch2

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 5:19:33 AM UTC+5:30, Steven D'Aprano wrote: > On Sun, 3 Apr 2016 03:12 am, Thomas 'PointedEars' Lahn wrote: > > > Marko Rauhamaa wrote: > > > >> Steven D'Aprano : > >>> So you're saying that learning to be a fluent speaker of English is a > >>> pre-requisite of being a

  1   2   3   4   5   6   7   >