Re: TypeError: can only concatenate str (not "int") to str
On 2/27/2023 2:15 PM, avi.e.gr...@gmail.com wrote: Karsten, There are limits to the disruption a group should tolerate even from people who may need some leeway. I wonder if Hen Hanna has any idea that some of the people he is saying this to lost most of their family in the Holocaust and had parents who barely survived passing through multiple concentration camps, I doubt he would change his words or attitude in the slightest as some of his other gems indicate a paranoid view of the world at best. This whole paragraph is about a person with speculation on his views. Please let's deprecate writing about people this way :) It is disproportionate to call everyone a Nazi at the slightest imagined slight. But we are not here in this forum to discuss world affairs or politics or how to replace python with the same language they have been using and likely abusing. Like every resource, it is best used as intended and that tends to mean not treating all the recipients as being willing to receive every thought you have had since breakfast followed by demanding everyone stop responding to him privately or in public or disagreeing in any way. I apologize for my part in even bothering to try to help him as it clearly is a thankless task and a huge waste of andwidth. Again, this paragraph is commentary and speculation about another poster. It's so easy to write things like this without even realizing we're doing it (I'm not immune). -Original Message- From: Python-list On Behalf Of Karsten Hilbert Sent: Monday, February 27, 2023 6:32 AM To: python-list@python.org Subject: Re: TypeError: can only concatenate str (not "int") to str Am Sun, Feb 26, 2023 at 08:56:28AM -0800 schrieb Hen Hanna: so far, i think Paul Rubin's post (in another thread) was esp. concise, informative, --- but he's also made a comment about 'shunting' beginners (questions) to a concentration camp, and sounded a bit like a cold-hearted (or warm-hearted) Nazi officer / scientist. Now, I have a lot of sympathy -- not least from a professional point of view -- and see quite some leeway for people acting neuro-atypically, but the last line of the above really isn't necessary to be read on this list. Best, Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
RE: TypeError: can only concatenate str (not "int") to str
Karsten, There are limits to the disruption a group should tolerate even from people who may need some leeway. I wonder if Hen Hanna has any idea that some of the people he is saying this to lost most of their family in the Holocaust and had parents who barely survived passing through multiple concentration camps, I doubt he would change his words or attitude in the slightest as some of his other gems indicate a paranoid view of the world at best. It is disproportionate to call everyone a Nazi at the slightest imagined slight. But we are not here in this forum to discuss world affairs or politics or how to replace python with the same language they have been using and likely abusing. Like every resource, it is best used as intended and that tends to mean not treating all the recipients as being willing to receive every thought you have had since breakfast followed by demanding everyone stop responding to him privately or in public or disagreeing in any way. I apologize for my part in even bothering to try to help him as it clearly is a thankless task and a huge waste of andwidth. -Original Message- From: Python-list On Behalf Of Karsten Hilbert Sent: Monday, February 27, 2023 6:32 AM To: python-list@python.org Subject: Re: TypeError: can only concatenate str (not "int") to str Am Sun, Feb 26, 2023 at 08:56:28AM -0800 schrieb Hen Hanna: > so far, i think Paul Rubin's post (in another thread) was esp. > concise, informative, --- but he's also made a comment > about 'shunting' beginners (questions) to a > concentration camp, and sounded a bit like a cold-hearted (or > warm-hearted) Nazi officer / scientist. Now, I have a lot of sympathy -- not least from a professional point of view -- and see quite some leeway for people acting neuro-atypically, but the last line of the above really isn't necessary to be read on this list. Best, Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
Am Sun, Feb 26, 2023 at 08:56:28AM -0800 schrieb Hen Hanna: > so far, i think Paul Rubin's post (in another thread) was > esp. concise, informative, --- but he's also made a comment > about 'shunting' beginners (questions) to a > concentration camp, and sounded a bit like a cold-hearted > (or warm-hearted) Nazi officer / scientist. Now, I have a lot of sympathy -- not least from a professional point of view -- and see quite some leeway for people acting neuro-atypically, but the last line of the above really isn't necessary to be read on this list. Best, Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On 2/26/2023 8:40 PM, MRAB wrote: On 2023-02-26 16:56, Hen Hanna wrote: On Sunday, February 26, 2023 at 6:41:01 AM UTC-8, Thomas Passin wrote: On 2/25/2023 8:12 PM, Hen Hanna wrote: > 2. the rude guy ('dn') hasn't offered a single word of comment that's directly relevant to it. > > but he did offer related stuff which he thinks i should be [grateful] for Please let's stop the ad hominem messages. If someone doesn't like a particular person's messages, send them to spam or don't read them. If too many people start to get too rude or personal, remind the whole list of the guidelines for respectful participation. If you feel that someone's contribution was especially helpful in part because it was concise and to the point, you could say that. yes. let's stop... If you (Thomas Passin) feel that someone's contribution was especially helpful in part because it was concise and to the point, you could say that. and pls don't hesitate to reproduce such a comment. i'm sure a few others were also rude, but it was the rudest of them all ('dn') that told me to read some [Code of Conduct] document. Do not EVER do that again. Another rude guy who "asked" me why i write in a Hard-to-read way Why don't you at least also make a comment that's On-Topic besides the insulting remark ? so far, i think Paul Rubin's post (in another thread) was esp. concise, informative, --- but he's also made a comment about 'shunting' beginners (questions) to a concentration camp, and sounded a bit like a cold-hearted (or warm-hearted) Nazi officer / scientist. Oh dear. An example of Godwin's Law. +1 Nicely put! -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On Sun, Feb 26, 2023 at 5:46 PM Chris Angelico wrote: > On Mon, 27 Feb 2023 at 12:44, MRAB wrote: > > Oh dear. An example of Godwin's Law. > > Yeah, is that finally enough to get this user banned ? I hope so > -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On Mon, 27 Feb 2023 at 12:44, MRAB wrote: > Oh dear. An example of Godwin's Law. Yeah, is that finally enough to get this user banned already? ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On 2023-02-26 16:56, Hen Hanna wrote: On Sunday, February 26, 2023 at 6:41:01 AM UTC-8, Thomas Passin wrote: On 2/25/2023 8:12 PM, Hen Hanna wrote: > 2. the rude guy ('dn') hasn't offered a single word of comment that's directly relevant to it. > > but he did offer related stuff which he thinks i should be [grateful] for Please let's stop the ad hominem messages. If someone doesn't like a particular person's messages, send them to spam or don't read them. If too many people start to get too rude or personal, remind the whole list of the guidelines for respectful participation. If you feel that someone's contribution was especially helpful in part because it was concise and to the point, you could say that. yes. let's stop... If you (Thomas Passin) feel that someone's contribution was especially helpful in part because it was concise and to the point, you could say that. and pls don't hesitate to reproduce such a comment. i'm sure a few others were also rude, but it was the rudest of them all ('dn') that told me to read some [Code of Conduct] document. Do not EVER do that again. Another rude guy who "asked" me why i write in a Hard-to-read way Why don't you at least also make a comment that's On-Topic besides the insulting remark ? so far, i think Paul Rubin's post (in another thread) was esp. concise, informative, --- but he's also made a comment about 'shunting' beginners (questions) to a concentration camp, and sounded a bit like a cold-hearted (or warm-hearted) Nazi officer / scientist. Oh dear. An example of Godwin's Law. -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On Sunday, February 26, 2023 at 6:41:01 AM UTC-8, Thomas Passin wrote: > On 2/25/2023 8:12 PM, Hen Hanna wrote: > > 2. the rude guy ('dn') hasn't offered a single word of comment that's > > directly relevant to it. > > > but he did offer related stuff which he thinks i should be > > > [grateful] for > Please let's stop the ad hominem messages. If someone doesn't like a > particular person's messages, send them to spam or don't read them. If > too many people start to get too rude or personal, remind the whole list > of the guidelines for respectful participation. If you feel that > someone's contribution was especially helpful in part because it was > concise and to the point, you could say that. yes. let's stop... If you (Thomas Passin) feel that someone's contribution was especially helpful in part because it was concise and to the point, you could say that. and pls don't hesitate to reproduce such a comment. i'm sure a few others were also rude, but it was the rudest of them all ('dn') that told me to read some [Code of Conduct] document. Do not EVER do that again. Another rude guy who "asked" me why i write in a Hard-to-read way Why don't you at least also make a comment that's On-Topic besides the insulting remark ? so far, i think Paul Rubin's post (in another thread) was esp. concise, informative, --- but he's also made a comment about 'shunting' beginners (questions) to a concentration camp, and sounded a bit like a cold-hearted (or warm-hearted) Nazi officer / scientist. I think you can speed this up by building two sets and intersecting them: from itertools import combinations ww = "JSOYOMFUBELR SCDUARWDRLYE DASNAGEFERTY CLULOOTSCEHN USENEARSEYNE".split() ss = set(''.join(s) for w in ww for s in combinations(w.lower(),6)) d6 = set(d.strip().lower() for d in open('/usr/share/dict/words') if len(d)==7) print(ss & d6) i too often use short Var names x, xx, w,ww,s,ss .. and also long ones. -- https://mail.python.org/mailman/listinfo/python-list
RE: TypeError: can only concatenate str (not "int") to str
Alan, Good tack. By not welcoming someone who is paranoid about being welcomed you are clearly the right kind of welcoming! Kidding aside, you have a point about one of the barrage of messages probably not getting a great answer on your tutor forum. It is the MANY messages often about fairly simple aspects of python, taken together, that lead to the conclusion that this person is fairly new to python and still thinking about things from a lifetime of experience using other languages. I will say that at this point, it does not matter where they post as I cannot imagine anyone having to pay them $1,000/hour for the privilege of trying to tutor them. There are topics raised that can be informative and lead to good discussions amicably and as far as I can tell, many agree it would be nice if some "error" messages provided more detail and perhaps some eventually will. But as has been pointed out, these messages are only a small part of the python environment and lots of other tools are typically used to debug that do allow access to all kinds of details at breakpoints. I think many would be satisfied with some of the answers provided here and note, FEW OR NONE OF US here (or am I wrong) are necessarily in a position to make changes like this to the current or next versions of python. We are all users who take what we get and work with it or look for a way around things. The example used did not strike me as hard to figure out which of X/Y was an int/str and what their values were. More time is wasted demanding and debating a feature that is not there rather than solving the problem in other ways. In the interest of civility, I find removing myself sometimes works well. We are volunteers and I don't need to volunteer to help any particular person who does not seem to appreciate it. And if a forum fills up with nonsense so the signal is hard to find amid the noise, why bother contributing? Avi -Original Message- From: Python-list On Behalf Of Alan Gauld Sent: Sunday, February 26, 2023 4:15 AM To: python-list@python.org Subject: Re: TypeError: can only concatenate str (not "int") to str On 26/02/2023 00:54, Greg Ewing via Python-list wrote: > On 26/02/23 10:53 am, Paul Rubin wrote: >> I'm not on either list but the purpose of the tutor list is to shunt >> beginner questions away from the main list. I'm not sure that's why we set it up but it is certainly a large part of our remit. But protecting newbies from overly complex responses and covering wider topics (beyond pure Pyhon) is also a large part of our purpose. > There's a fundamental problem with tutor lists. They rely on > experienced people, the ones capable of answering the questions, to go > out of their way to read the tutor list -- something that is not of > personal benefit to them. In practice, the "tutors" tend to be split between folks who inhabit both lists and those who only interact on the tutor list. eg. I lurk here and only occasionally partake. But the problem with this particular thread is that, if directed to the tutor list, the OP would simply be told that "that's the way Python works". The tutor list is not for discussing language enhancements etc. It is purely about answering questions on how to use the language (and standard library) as it exists. (We also cover beginner questions about programming in general.) So this thread is most definitely in the right place IMHO. -- Alan G Tutor list moderator -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On 2/25/2023 8:12 PM, Hen Hanna wrote: 2. the rude guy ('dn') hasn't offered a single word of comment that's directly relevant to it. > but he did offer related stuff which he thinks i should be [grateful] for Please let's stop the ad hominem messages. If someone doesn't like a particular person's messages, send them to spam or don't read them. If too many people start to get too rude or personal, remind the whole list of the guidelines for respectful participation. If you feel that someone's contribution was especially helpful in part because it was concise and to the point, you could say that. -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On 26/02/2023 00:54, Greg Ewing via Python-list wrote: > On 26/02/23 10:53 am, Paul Rubin wrote: >> I'm not on either list but the purpose of the tutor list is to shunt >> beginner questions away from the main list. I'm not sure that's why we set it up but it is certainly a large part of our remit. But protecting newbies from overly complex responses and covering wider topics (beyond pure Pyhon) is also a large part of our purpose. > There's a fundamental problem with tutor lists. They rely on > experienced people, the ones capable of answering the questions, > to go out of their way to read the tutor list -- something that > is not of personal benefit to them. In practice, the "tutors" tend to be split between folks who inhabit both lists and those who only interact on the tutor list. eg. I lurk here and only occasionally partake. But the problem with this particular thread is that, if directed to the tutor list, the OP would simply be told that "that's the way Python works". The tutor list is not for discussing language enhancements etc. It is purely about answering questions on how to use the language (and standard library) as it exists. (We also cover beginner questions about programming in general.) So this thread is most definitely in the right place IMHO. -- Alan G Tutor list moderator -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On Saturday, February 25, 2023 at 1:54:14 PM UTC-8, Paul Rubinwrote: > Hen Hanna writes: > > is this guy (dn) always this rude??? is he even more rude on this > > Python-Tutor list ? > I'm not on either list but the purpose of the tutor list is to shunt > beginner questions away from the main list. Yes your questions do seem > excessively frequent even here on Usenet. I have mostly been ignoring > them after seeing the first few. not sure... what you mean by "either" list this rude guy ('dn' who writes poorly) is someone i want to see posting less (and fewer), and (from what i've seen) , Paul Rubin is someone i wish to see posting more. -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On Saturday, February 25, 2023 at 4:54:36 PM UTC-8, Greg Ewing wrote: > On 26/02/23 10:53 am, Paul Rubin wrote: > > I'm not on either list but the purpose of the tutor list is to shunt > > beginner questions away from the main list. > There's a fundamental problem with tutor lists. They rely on > experienced people, the ones capable of answering the questions, > to go out of their way to read the tutor list -- something that > is not of personal benefit to them. > > Also, pointing people towards tutor lists, if not done carefully, > can give the impression of saying "newcomers are not welcome here". > That's not a message we want to send to Python newcomers at all. > > -- > Greg 1. i still think that my original question about (not "int") is a good one. it may seem like a stupid [beginner question] , but it really isn't. 2. the rude guy ('dn') hasn't offered a single word of comment that's directly relevant to it. but he did offer related stuff which he thinks i should be [grateful] for 3. it's pretty clear that the rude guy ('dn') intended-intends to insult me as a Newbie... that much is certain. ___ It'd be easy for the Error-Msg to include the VALUE of the int. A LISP programmer knows the value of everything, but the cost of nothing. >>> TypeError: can only join an iterable Here she's not even telling me the TYPE of the offending object. -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
> PS are you aware that there is a Python-Tutor list for the use of people > learning Python? is this guy (dn) always this rude???is he even more rude on this Python-Tutor list ? he must have a reputation (for being rude)... On Friday, February 24, 2023 at 7:41:44 PM UTC-8, dn wrote: > On 25/02/2023 09.36, Hen Hanna wrote: > > TypeError: can only concatenate str (not "int") to str > > > > thanks for the comments, --- esp. 2 or 3 (?) ppl who directly addressed it > > or commented on it. > If you haven't already, please review the Python Software Foundation's > Code of Conduct https://www.python.org/psf/conduct/ > > py and pypy don't tell me what the (offending) int is > > > > (even tho' it'd be easy to show me the int, or number) > > > > because a Tuple, List... may produce a long output and they don't want to > > deal with ways of abbreviating it (with ... ) > > > > and because User-defined Class object may cause another error while > > printing it. > > > > > > > > _ > > TypeError: can only join an iterable > > > > Here too it'd help me if pypy (Jeannie) could tell me what the offending > > data object is. > Observation: > - python doesn't tell you what you want > - correspondents are not telling you what you want and/or how you want > There's a common theme developing... > > Suggestion: if you want help, and at the frequency with which you've > been posting recently, would it be better not to sound like a 'troll'? > > > Please understand everyone here is volunteering time, in a bid to > provide you (and each-other) with benefit. > > Does the FACT that you have failed to answer several questions from > colleagues really entitle you to demand others only directly-address you > (and only your questions)? > > -- > Regards, > =dn -- https://mail.python.org/mailman/listinfo/python-list
RE: TypeError: can only concatenate str (not "int") to str
Greg, Yes, the forum should be open. The first requests from the person were replied to politely. At some point a pattern was emerging of lots of fairly irreverent posts by someone who is having trouble shifting programming paradigms. The suggestion was then made as a SUGGESTION by several people that "some" of their questions might be better asked on the tutor list where others new to python may have similar questions and can learn. This forum has all kinds of people and of course many topics are of more interest to some that others. Programming styles differ too and I note some here reacted to a suggestion that maybe constants could be more efficiently be initiated in ways that use less resources. Some insisted it makes more sense to be able to type what you want more compactly. Yes, of course, multiple ways are equally valid especially as now, efficiency is not seen as a major goal. The reality is that several mailing lists are intended to be used for occasional questions and people who have more serious needs should be using local resources or taking courses and reading books as their main learning method. An occasional question is welcomed. A barrage is an position and a barrage where most of the answers are ignored or claimed to be wrong, can generate an "attitude" some of us find less than appealing. I continue to believe that a programmers job is to learn how to use a language well, or switch languages, and not to keep moaning why it does not do what you want or expect. Many answers have suggested how the OP can solve some issues and apparently that is not of interest to them and they just keep complaining. I speak for nobody except myself. As I have said, I have chosen to not respond and become frustrated. -Original Message- From: Python-list On Behalf Of Greg Ewing via Python-list Sent: Saturday, February 25, 2023 7:54 PM To: python-list@python.org Subject: Re: TypeError: can only concatenate str (not "int") to str On 26/02/23 10:53 am, Paul Rubin wrote: > I'm not on either list but the purpose of the tutor list is to shunt > beginner questions away from the main list. There's a fundamental problem with tutor lists. They rely on experienced people, the ones capable of answering the questions, to go out of their way to read the tutor list -- something that is not of personal benefit to them. Also, pointing people towards tutor lists, if not done carefully, can give the impression of saying "newcomers are not welcome here". That's not a message we want to send to Python newcomers at all. -- Greg -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On 26/02/23 10:53 am, Paul Rubin wrote: I'm not on either list but the purpose of the tutor list is to shunt beginner questions away from the main list. There's a fundamental problem with tutor lists. They rely on experienced people, the ones capable of answering the questions, to go out of their way to read the tutor list -- something that is not of personal benefit to them. Also, pointing people towards tutor lists, if not done carefully, can give the impression of saying "newcomers are not welcome here". That's not a message we want to send to Python newcomers at all. -- Greg -- https://mail.python.org/mailman/listinfo/python-list
Re: TypeError: can only concatenate str (not "int") to str
On 25/02/2023 09.36, Hen Hanna wrote: TypeError: can only concatenate str (not "int") to str thanks for the comments, --- esp. 2 or 3 (?) ppl who directly addressed it or commented on it. If you haven't already, please review the Python Software Foundation's Code of Conduct https://www.python.org/psf/conduct/ py and pypy don't tell me what the (offending) int is (even tho' it'd be easy to show me the int, or number) because a Tuple, List... may produce a long output and they don't want to deal with ways of abbreviating it (with ... ) and because User-defined Class object may cause another error while printing it. _ TypeError: can only join an iterable Here too it'd help me if pypy (Jeannie) could tell me what the offending data object is. Observation: - python doesn't tell you what you want - correspondents are not telling you what you want and/or how you want There's a common theme developing... Suggestion: if you want help, and at the frequency with which you've been posting recently, would it be better not to sound like a 'troll'? Please understand everyone here is volunteering time, in a bid to provide you (and each-other) with benefit. Does the FACT that you have failed to answer several questions from colleagues really entitle you to demand others only directly-address you (and only your questions)? -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list
TypeError: can only concatenate str (not "int") to str
TypeError: can only concatenate str (not "int") to str thanks for the comments, --- esp. 2 or 3 (?) ppl who directly addressed it or commented on it. py and pypy don't tell me what the (offending) int is (even tho' it'd be easy to show me the int, or number) because a Tuple, List... may produce a long output and they don't want to deal with ways of abbreviating it (with ... ) and because User-defined Class object may cause another error while printing it. _ TypeError: can only join an iterable Here too it'd help me if pypy (Jeannie) could tell me what the offending data object is. -- https://mail.python.org/mailman/listinfo/python-list