Re: OT: Addition of a .= operator

2023-06-09 Thread Simon Ward via Python-list
On Wed, May 24, 2023 at 05:18:52PM +1200, dn via Python-list wrote: Note that the line numbers correctly show the true cause of the problem, despite both of them being ValueErrors. So if you have to debug this sort of thing, make sure the key parts are on separate lines (even if they're all one e

Re: OT: Addition of a .= operator

2023-05-24 Thread Peter J. Holzer
On 2023-05-24 12:10:09 +1200, dn via Python-list wrote: > Perhaps more psychology rather than coding? Both. As they say, coding means writing for other people first, for the computer second. So that means anticipating what will be least confusing for that other person[1] who's going to read that c

RE: OT: Addition of a .= operator

2023-05-24 Thread avi.e.gross
-list On Behalf Of dn via Python-list Sent: Wednesday, May 24, 2023 1:19 AM To: python-list@python.org Subject: Re: OT: Addition of a .= operator On 24/05/2023 12.27, Chris Angelico wrote: > On Wed, 24 May 2023 at 10:12, dn via Python-list wrote: >> However, (continuing @Peter'

Re: OT: Addition of a .= operator

2023-05-23 Thread dn via Python-list
On 24/05/2023 12.27, Chris Angelico wrote: On Wed, 24 May 2023 at 10:12, dn via Python-list wrote: However, (continuing @Peter's theme) such confuses things when something goes wrong - was the error in the input() or in the float()? - particularly for 'beginners' - and yes, we can expand the ab

Re: OT: Addition of a .= operator

2023-05-23 Thread Chris Angelico
On Wed, 24 May 2023 at 10:12, dn via Python-list wrote: > However, (continuing @Peter's theme) such confuses things when something > goes wrong - was the error in the input() or in the float()? > - particularly for 'beginners' > - and yes, we can expand the above discussion to talk about > error-h

OT: Addition of a .= operator

2023-05-23 Thread dn via Python-list
On 24/05/2023 10.21, Rob Cliffe via Python-list wrote: This sort of code might be better as a single expression. For example: user = ( request.GET["user"] .decode("utf-8") .strip() .lower() ) user = orm.user.get(name=user) LOL.  And I thought I was the one with a (self-co

OT: ~gohlke [Was: Installation hell]

2022-12-19 Thread Mike Dewhirst
On 20/12/2022 9:28 am, Mats Wichmann wrote: On 12/19/22 14:47, Eryk Sun wrote: If you search a bit deeper, you'll find a site with unofficial Windows builds of many packages, including pygame for Python 3.11: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame Semi-OT: that's bee

OT: Computer vision

2022-07-22 Thread GB
I'm looking for some help getting started with a computer vision project. Can anyone here either help or point me in the direction of a better NG/forum, please? -- https://mail.python.org/mailman/listinfo/python-list

Re: Request for assistance (hopefully not OT)

2022-05-21 Thread Michael Torrie
On 5/21/22 06:19, o1bigtenor wrote: > more useful - - - - well - - - - I don't have to wonder why 'linux' is > used as much > by the general populace as it is. The community likes to destroy > itself - - - it > is a pity - - - - the community has so much to offer. As far as community goes, the Lin

Re: Request for assistance (hopefully not OT)

2022-05-21 Thread o1bigtenor
On Tue, May 17, 2022 at 6:20 AM o1bigtenor wrote: > > Greetings > > I was having space issues in my /usr directory so I deleted some > programs thinking that the space taken was more an issue than having > older versions of the program. > Found the responses to my request quite interesting - - -

Re: Request for assistance (hopefully not OT)

2022-05-18 Thread Loris Bennett
Chris Angelico writes: > On Wed, 18 May 2022 at 04:05, Loris Bennett > wrote: >> >> [snip (26 lines)] >> >> > I think you had a problem before that. Debian testing is not an >> > operating system you should be using if you have a fairly good >> > understanding of how Debian (or Linux in genera

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Michael Torrie
On 5/17/22 05:20, o1bigtenor wrote: > What can I do to correct this self-inflicted problem? Those are always the fun ones. Reminds me of when I was first learning Linux using Red Hat Linux 5.0 or 5.1. This was long before nice dependency-solving tools like apt. I wanted to install and run StarO

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Chris Angelico
On Wed, 18 May 2022 at 04:05, Loris Bennett wrote: > > [snip (26 lines)] > > > I think you had a problem before that. Debian testing is not an > > operating system you should be using if you have a fairly good > > understanding of how Debian (or Linux in general) works. > > Should be > > I thin

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Chris Angelico
On Wed, 18 May 2022 at 04:05, Loris Bennett wrote: > > So now I have problems. > > I think you had a problem before that. Debian testing is not an > operating system you should be using if you have a fairly good > understanding of how Debian (or Linux in general) works. I take issue with that! D

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Grant Edwards
On 2022-05-17, Loris Bennett wrote: > It might be possible to fix the system. If will probably be fairly > difficult, but you would probably learn a lot doing it. However, if I > were you, I would just install Debian stable over your borked system and > then learn a bit more about package manag

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Loris Bennett
o1bigtenor writes: > Greetings > > I was having space issues in my /usr directory so I deleted some > programs thinking that the space taken was more an issue than having > older versions of the program. > > So one of the programs I deleted (using rm -r) was python3.9. Deleting anything from /us

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Loris Bennett
[snip (26 lines)] > I think you had a problem before that. Debian testing is not an > operating system you should be using if you have a fairly good > understanding of how Debian (or Linux in general) works. Should be I think you had a problem before that. Debian testing is not an operatin

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Chris Angelico
On Tue, 17 May 2022 at 21:22, o1bigtenor wrote: > > Greetings > > I was having space issues in my /usr directory so I deleted some > programs thinking that the space taken was more an issue than having > older versions of the program. > > So one of the programs I deleted (using rm -r) was python3.

Re: Request for assistance (hopefully not OT)

2022-05-17 Thread Martin Di Paola
Try to reinstall python and only python and if you succeeds, then try to reinstall the other tools. For this, use "apt-get" instead of "apt" $ sudo apt-get reinstall python3 When a system is heavily broken, be extra careful and read the output of the programs. If "apt-get" says than in order to

Request for assistance (hopefully not OT)

2022-05-17 Thread o1bigtenor
Greetings I was having space issues in my /usr directory so I deleted some programs thinking that the space taken was more an issue than having older versions of the program. So one of the programs I deleted (using rm -r) was python3.9. Python3.10 was already installed so I thought (naively!!!) t

OT: Alternatives to Jupyter Notebook

2021-11-15 Thread dn via Python-list
On 15/11/2021 12.24, Paige Bailey wrote: > If you're experiencing issues with Jupyter, perhaps try JupyterLab: > JupyterLab Documentation — JupyterLab 3.2.3 documentation > > > Or VS Code, which is also open-source and has support for Jupyter notebook

Re: OT: AttributeError

2021-09-29 Thread Greg Ewing
On 30/09/21 7:28 am, dn wrote: Oh yes! The D2 kit - I kept those books for years... https://www.electronixandmore.com/adam/temp/6800trainer/mek6800d2.html My 6800 system was nowhere near as fancy as that! It was the result of replacing the CPU in my homebrew Miniscamp. -- Greg -- https://mai

Re: OT: AttributeError

2021-09-29 Thread Rob Cliffe via Python-list
Ah, Z80s (deep sigh).  Those were the days!  You could disassemble the entire CP/M operating system (including the BIOS), and still have many Kb to play with!  Real programmers don't need gigabytes! On 29/09/2021 03:03, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-09-29 at 09:21:34 +1000,

Re: OT: AttributeError

2021-09-29 Thread dn via Python-list
On 29/09/2021 19.16, Greg Ewing wrote: > On 29/09/21 3:03 pm, 2qdxy4rzwzuui...@potatochowder.com wrote: >> Who thinks in little >> endian?  (I was raised on 6502s and 680XX CPUs; 8080s and Z80s always >> did things backwards.) > > The first CPU I wrote code for was a National SC/MP, which doesn't

Re: OT: AttributeError

2021-09-29 Thread MRAB
On 2021-09-29 03:03, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-09-29 at 11:38:22 +1300, > dn via Python-list wrote: > > > For those of us who remember

Re: OT: AttributeError

2021-09-29 Thread Greg Ewing
On 29/09/21 3:03 pm, 2qdxy4rzwzuui...@potatochowder.com wrote: Who thinks in little endian? (I was raised on 6502s and 680XX CPUs; 8080s and Z80s always did things backwards.) The first CPU I wrote code for was a National SC/MP, which doesn't have an endianness, since it never deals with more

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 12:06 PM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > ... Or, even better, to be able to read off a hex dump and see E8 03 > > and instantly read it as "1,000 little-endian". > > 59535 big endian. Warningm flamebait ahead: Who thinks in little > endian? (I was raised o

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: > ... read off a hex dump and see E8 > 03 and instantly read it as "1,000 little-endian". ITYM 000,1 little-endian. ;-) (Or possibly 000.1, depending on your locale.) -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: > On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > > > On 2021-09-29 at 11:38:22 +1300, > > dn via Python-list wrote: > > > > > For those of us who remember/can compute in binary, octal, hex, or > > > decimal a

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 11:59 AM dn via Python-list wrote: > If I hold up two fingers, am I insulting you, or asking for three of > something? > A Roman soldier walked into a bar holding up two fingers. "Five beers, please" ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread dn via Python-list
On 29/09/2021 12.21, Chris Angelico wrote: > On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: >> >> On 2021-09-29 at 11:38:22 +1300, >> dn via Python-list wrote: >> >>> For those of us who remember/can compute in binary, octal, hex, or >>> decimal as-needed: >>> Why do p

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 10:06 AM Greg Ewing wrote: > > On 29/09/21 12:21 pm, Chris Angelico wrote: > > to the extent that you automatically read 65 and 0x41 as the same > > number. > > Am I too geeky for reading both of them as 'A'? > Not even slightly, and I did deliberately choose a printable A

Re: OT: AttributeError

2021-09-28 Thread Greg Ewing
On 29/09/21 12:21 pm, Chris Angelico wrote: to the extent that you automatically read 65 and 0x41 as the same number. Am I too geeky for reading both of them as 'A'? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-09-29 at 11:38:22 +1300, > dn via Python-list wrote: > > > For those of us who remember/can compute in binary, octal, hex, or > > decimal as-needed: > > Why do programmers confuse All Hallows'/Halloween for Chr

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 11:38:22 +1300, dn via Python-list wrote: > For those of us who remember/can compute in binary, octal, hex, or > decimal as-needed: > Why do programmers confuse All Hallows'/Halloween for Christmas Day? That one is also very old. (Yes, I know the answer. No, I will not spoil i

OT: AttributeError

2021-09-28 Thread dn via Python-list
On 29/09/2021 10.50, Stefan Ram wrote: > (For Python programmers who have watched "Game of Thrones".) > > |>>> class girl: > |... pass > |... > |>>> girl = girl() > |>>> print( girl.name ) > |Traceback (most recent call last): > | File "", line 1, in > |AttributeError: A girl has no name.

(OT) Re: Applying winpdb_reborn

2021-05-29 Thread Greg Ewing
On 30/05/21 1:46 pm, dn wrote: We always referred to it as an "oh-two-nine" ("029"). I had the privilege of helping to dismantle a couple of those when they were decommissioned at the University of Canterbury. Amazing pieces of technology -- purely electromechanical, no electronics in sight. E

Re: OT: Autism in discussion groups

2021-05-10 Thread Mirko via Python-list
Am 09.05.2021 um 02:34 schrieb Michael Torrie: > On 5/8/21 3:28 PM, Mirko via Python-list wrote: >> >> I apologize for this OT post, especially because it's in reply to an >> at least partly troll post, but I just can't resist. Sorry. >> >> P.S.:

OT: Accessibility: Jana Schroeder's Holman Prize Application

2021-05-10 Thread Jonathan Fine
Perhaps Off Topic, but for a good cause. This year I met Jana Schroeder, a blind person forced to change jobs as part of the social cost of Covid. Her outsider experience of computer coding training became a wish to make things better. She has applied for a Holman Prize ($25,000 over a year) to

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-09 Thread Michael Torrie
On 5/9/21 11:26 AM, Abdur-Rahmaan Janhangeer wrote: > Out of curiosity, how do people without a Code of Conduct > manage and prevent abuse in between people? I was about > to organise something last year but did not find a better solution > than a code of conduct to ensure smoothness. Well the idea

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-09 Thread Abdur-Rahmaan Janhangeer
Greetings, Out of curiosity, how do people without a Code of Conduct manage and prevent abuse in between people? I was about to organise something last year but did not find a better solution than a code of conduct to ensure smoothness. Well the idea was a before-hand signed code of conduct. It be

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-09 Thread Jason C. McDonald
> I disagree. Many people are opposed to CoCs for a variety of reasons > including the fact that many CoCs are political in nature. Others > oppose them for legal liability reasons. On his radio show Ask Noah (a > radio show about Linux), Noah has interviewed several people who oppose > CoCs for

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-09 Thread Abdur-Rahmaan Janhangeer
On Sun, May 9, 2021 at 1:58 PM dn via Python-list wrote: > That said, there is nothing to be gained by upsetting people... > I misquoted the relevant section from Chris' answer, i wanted to quote: *I'm not saying that the previous situation was GOOD, but I'm far fromsure that the current si

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-09 Thread dn via Python-list
On 09/05/2021 20.31, Abdur-Rahmaan Janhangeer wrote: > On Sun, May 9, 2021 at 5:29 AM Chris Angelico wrote: > >> >> Probably the same reason it has never worked. The only thing that's >> changed is the social acceptability of vilifying those you don't like. >> Once upon a time, there were those i

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-09 Thread Abdur-Rahmaan Janhangeer
I meant to quote this part actually: I'm not saying that the previous situation was GOOD, but I'm far from sure that the current situation is any better - look at the arguments regarding branch naming, which completely sidelined all technical considerations in favour of one single political motiva

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-09 Thread Abdur-Rahmaan Janhangeer
On Sun, May 9, 2021 at 5:29 AM Chris Angelico wrote: > > Probably the same reason it has never worked. The only thing that's > changed is the social acceptability of vilifying those you don't like. > Once upon a time, there were those in the community who had all the > power, and those on the fri

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-08 Thread Chris Angelico
On Sun, May 9, 2021 at 11:10 AM Michael Torrie wrote: > > On 5/8/21 6:23 PM, Jason C. McDonald wrote: > > Usually, I find when people dump on CoCs, they're just angry at > > accountability. I haven't known anyone yet who was a productive > > member of Python and opposed to the CoC, at least in pri

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-08 Thread Michael Torrie
On 5/8/21 6:23 PM, Jason C. McDonald wrote: > Usually, I find when people dump on CoCs, they're just angry at > accountability. I haven't known anyone yet who was a productive > member of Python and opposed to the CoC, at least in principle > and aim. I disagree. Many people are opposed to CoCs f

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-08 Thread Michael Torrie
On 5/8/21 3:28 PM, Mirko via Python-list wrote: > > I apologize for this OT post, especially because it's in reply to an > at least partly troll post, but I just can't resist. Sorry. > > P.S.: *NOT* among the core symptoms of (the high-functioning levels) > of ASS is

Re: OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-08 Thread Jason C. McDonald
x27;re just angry at accountability. I haven't known anyone yet who was a productive member of Python and opposed to the CoC, at least in principle and aim. On 2021-05-08, Mirko wrote: > > I apologize for this OT post, especially because it's in reply to an > at least partly tro

OT: Autism in discussion groups (was: Re: Proposal: Disconnect comp.lang.python from python-list)

2021-05-08 Thread Mirko via Python-list
I apologize for this OT post, especially because it's in reply to an at least partly troll post, but I just can't resist. Sorry. Am 08.05.2021 um 14:09 schrieb Talkie Toaster: > On 06/05/2021 18:56, Mark Lawrence wrote: >> Quite frankly I don't care how this discu

Re: [OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-06 Thread Jim Byrnes
On 5/5/21 1:07 PM, Jan van den Broek wrote: On 2021-05-05, Jim Byrnes wrote: On 5/5/21 9:39 AM, Peter Otten wrote: On 05/05/2021 16:10, Ethan Furman wrote: I see your messages twice (occasionally with other posters as well). I have no idea how to fix it.?? :( OK, I'll try another option fr

Re: [OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-05 Thread Peter Otten
On 05/05/2021 20:08, Jan van den Broek wrote: On 2021-05-05, Peter Otten <__pete...@web.de> wrote: On 05/05/2021 16:10, Ethan Furman wrote: I see your messages twice (occasionally with other posters as well).?? I have no idea how to fix it.?? :( OK, I'll try another option from Thunderbird's

Re: [OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-05 Thread Jan van den Broek
On 2021-05-05, Peter Otten <__pete...@web.de> wrote: > On 05/05/2021 16:10, Ethan Furman wrote: > >> I see your messages twice (occasionally with other posters as well).?? I >> have no idea how to fix it.?? :( > > OK, I'll try another option from Thunderbird's context menu: Followup to > Newsgrou

Re: [OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-05 Thread Jan van den Broek
On 2021-05-05, Jim Byrnes wrote: > On 5/5/21 9:39 AM, Peter Otten wrote: >> On 05/05/2021 16:10, Ethan Furman wrote: >> >>> I see your messages twice (occasionally with other posters as well). >>> I have no idea how to fix it.?? :( >> >> OK, I'll try another option from Thunderbird's context m

Re: [OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-05 Thread Jim Byrnes
On 5/5/21 9:39 AM, Peter Otten wrote: On 05/05/2021 16:10, Ethan Furman wrote: I see your messages twice (occasionally with other posters as well). I have no idea how to fix it.  :( OK, I'll try another option from Thunderbird's context menu: Followup to Newsgroup. Does that appear once o

Re: [OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-05 Thread Ethan Furman
On 5/5/21 7:39 AM, Peter Otten wrote: > On 05/05/2021 16:10, Ethan Furman wrote: >> I see your messages twice (occasionally with other posters as well). I have no idea how to fix it. :( > > OK, I'll try another option from Thunderbird's context menu: Followup to Newsgroup. > > Does that appea

[OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-05 Thread Peter Otten
On 05/05/2021 16:10, Ethan Furman wrote: I see your messages twice (occasionally with other posters as well).  I have no idea how to fix it.  :( OK, I'll try another option from Thunderbird's context menu: Followup to Newsgroup. Does that appear once or twice? In theory it should go to the

Re: OT: ALGOL 60 at 60

2020-05-31 Thread Dennis Carachiola
Ah, but I have used it. Admittedly it was during a programming languages survey course at RPI in 1971-3. -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: ALGOL 60 at 60

2020-05-16 Thread Bill Campbell
On Sun, May 17, 2020, DL Neil via Python-list wrote: >ALGOL 60 at 60: The greatest computer language you've never used and >grandaddy of the programming family tree >Back to the time when tape was king >By Richard Speed 15 May 2020 at 09:47 >https://www.theregister.co.uk/2020/05/15/algol_60_at_60/

OT: ALGOL 60 at 60

2020-05-16 Thread DL Neil via Python-list
ALGOL 60 at 60: The greatest computer language you've never used and grandaddy of the programming family tree Back to the time when tape was king By Richard Speed 15 May 2020 at 09:47 https://www.theregister.co.uk/2020/05/15/algol_60_at_60/ NB 'El Reg' is known for its irreverent and cynical vie

Re: OT-Comic: Tabs vs Spaces

2020-05-02 Thread Chris Angelico
On Sun, May 3, 2020 at 7:55 AM DL Neil via Python-list wrote: > > On 3/05/20 9:07 AM, Chris Angelico wrote: > > On Sun, May 3, 2020 at 6:33 AM DL Neil via Python-list > > wrote: > >> > >> Is this the way to write Python Enhancement Proposals (PEPs)? > >> eg https://www.python.org/dev/peps/pep-000

Re: OT-Comic: Tabs vs Spaces

2020-05-02 Thread DL Neil via Python-list
On 3/05/20 9:07 AM, Chris Angelico wrote: On Sun, May 3, 2020 at 6:33 AM DL Neil via Python-list wrote: Is this the way to write Python Enhancement Proposals (PEPs)? eg https://www.python.org/dev/peps/pep-0008/#indentation TabError: inconsistent use of tabs and spaces in indentation https://w

Re: OT-Comic: Tabs vs Spaces

2020-05-02 Thread Chris Angelico
On Sun, May 3, 2020 at 6:33 AM DL Neil via Python-list wrote: > > Is this the way to write Python Enhancement Proposals (PEPs)? > eg https://www.python.org/dev/peps/pep-0008/#indentation > > TabError: inconsistent use of tabs and spaces in indentation > https://www.geeksaresexy.net/2020/05/01/the-

OT-Comic: Tabs vs Spaces

2020-05-02 Thread DL Neil via Python-list
Is this the way to write Python Enhancement Proposals (PEPs)? eg https://www.python.org/dev/peps/pep-0008/#indentation TabError: inconsistent use of tabs and spaces in indentation https://www.geeksaresexy.net/2020/05/01/the-tab-club-comic/ -- Regards, =dn -- https://mail.python.org/mailman/listin

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-17 Thread MRAB
On 2020-03-16 21:49, Grant Edwards wrote: On 2020-03-16, Irv Kalb wrote: I like both suggestions, and will probably go with the non-breaking space (Option space on my Mac). I tested that and it works well. Until somebody tries to cut/paste the snippets you post into a .py file and run them.

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread DL Neil via Python-list
On 17/03/20 10:49 AM, Grant Edwards wrote: On 2020-03-16, Irv Kalb wrote: I like both suggestions, and will probably go with the non-breaking space (Option space on my Mac). I tested that and it works well. Until somebody tries to cut/paste the snippets you post into a .py file and run them

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread Grant Edwards
On 2020-03-16, Irv Kalb wrote: > I like both suggestions, and will probably go with the non-breaking > space (Option space on my Mac). I tested that and it works well. Until somebody tries to cut/paste the snippets you post into a .py file and run them. At that point the "distance learning" se

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread Irv Kalb
> On Mar 16, 2020, at 11:31 AM, Irv Kalb wrote: > > This is for anyone who teaches Python and uses the Canvas Learning Management > System (maybe a small group). > > I teach Python at two colleges in Silicon Valley in California. At both > schools we use Canvas. Overall, it works very well.

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread Ethan Furman
On 03/16/2020 11:31 AM, Irv Kalb wrote: The problem is that in the feedback section for homework assignments, Canvas eliminates any leading space characters. So, I might write: if x == y: # do thing 1 else: # do thing 2 but when it gets posted and viewed by the student, it shows up

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread MRAB
On 2020-03-16 18:31, Irv Kalb wrote: This is for anyone who teaches Python and uses the Canvas Learning Management System (maybe a small group). I teach Python at two colleges in Silicon Valley in California. At both schools we use Canvas. Overall, it works very well. I use it to post notes

[Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread Irv Kalb
This is for anyone who teaches Python and uses the Canvas Learning Management System (maybe a small group). I teach Python at two colleges in Silicon Valley in California. At both schools we use Canvas. Overall, it works very well. I use it to post notes, sample programs, build tests, post h

[OT] A conversation with the creator of the world’s most popular programming language on removing brain friction for better work.

2019-11-26 Thread MRAB
Off-topic, but might be of interest: A conversation with the creator of the world’s most popular programming language on removing brain friction for better work. https://blog.dropbox.com/topics/work-culture/-the-mind-at-work--guido-van-rossum-on-how-python-makes-thinking -- https://mail.python.

OT language barrier, was: How execute at least two python files at once when imported?

2019-11-07 Thread Christian Gollwitzer
Am 06.11.19 um 17:34 schrieb Igor Korot: On Wed, Nov 6, 2019 at 10:22 AM Spencer Du wrote: Sorry if I haven't stated my requirements clearly. I just wanted a way to import at least two python files in parallel and I wanted to know how this can be done or a reason why its bad as stated in a

Re: OT: Using a fake Gmail address is probably not a good idea

2019-09-16 Thread Max Zettlmeißl via Python-list
On Mon, Sep 16, 2019 at 1:56 PM Skip Montanaro wrote: > Mails for someone here who goes by the handle "ast" with a fake > address of n...@gmail.com keep landing in my Gmail spam folder. I > suspect the same is true for all people subscribed to python-list who > use Gmail. Gmail (correctly, I think

OT: Using a fake Gmail address is probably not a good idea

2019-09-16 Thread Skip Montanaro
(I would have sent this off-list, but for obvious reasons I couldn't.) Mails for someone here who goes by the handle "ast" with a fake address of n...@gmail.com keep landing in my Gmail spam folder. I suspect the same is true for all people subscribed to python-list who use Gmail. Gmail (correctly

Re: [OT(?)] Ubuntu 18 vim now defaults to 4-space tabs

2019-09-10 Thread Tobiah
Since it does not appear to have "filetype=python" in there, maybe I should have specified "Run vim with a .py filename". Yes, that was a bit that took me a while to figure out! So I used your trick and did: :verbose set shiftwidth? and it revealed: cd /usr/share/vim/vim80/ftplugin A

Re: [OT(?)] Ubuntu 18 vim now defaults to 4-space tabs

2019-09-10 Thread Eli the Bearded
In comp.lang.python, Tobiah wrote: >> Your subject missed a critical word: vim. > It's there! I added it. > > Run vim. Then ':set' to see what's set different than default. Then, > > if it is tabstop you want to know about, ':verbose set tabstop?' will > > tell you where that setting was last a

Re: [OT(?)] Ubuntu 18 vim now defaults to 4-space tabs

2019-09-10 Thread Tobiah
Your subject missed a critical word: vim. It's there! Run vim. Then ':set' to see what's set different than default. Then, if it is tabstop you want to know about, ':verbose set tabstop?' will tell you where that setting was last altered. Nothing that seems to point to space indent: backg

Re: [OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-09 Thread Wildman via Python-list
On Mon, 09 Sep 2019 10:23:57 -0700, Tobiah wrote: > We upgraded a server to 18.04 and now when I start typing > a python file (seems to be triggered by the .py extension) > the tabs default to 4 spaces. We have decades of code that > use tab characters, and it has not been our intention to > chan

Re: [OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-09 Thread Wildman via Python-list
On Mon, 09 Sep 2019 10:23:57 -0700, Tobiah wrote: > We upgraded a server to 18.04 and now when I start typing > a python file (seems to be triggered by the .py extension) > the tabs default to 4 spaces. We have decades of code that > use tab characters, and it has not been our intention to > chan

Re: [OT(?)] Ubuntu 18 vim now defaults to 4-space tabs

2019-09-09 Thread Eli the Bearded
In comp.lang.python, Tobiah wrote: > We upgraded a server to 18.04 and now when I start typing Your subject missed a critical word: vim. There are a lot of editors in Ubuntu, and probably they don't all do that. > This is more of a vim question perhaps, but I'm already > subscribed here and I f

[OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-09 Thread Tobiah
We upgraded a server to 18.04 and now when I start typing a python file (seems to be triggered by the .py extension) the tabs default to 4 spaces. We have decades of code that use tab characters, and it has not been our intention to change that. I found a /usr/share/vim/vim80/indent/python.vim a

Re: OT: Is there a name for this transformation?

2019-07-17 Thread kamaraju kusumanchi
On Wed, Jul 10, 2019 at 3:08 PM Peter J. Holzer wrote: > > On 2019-07-10 08:57:29 -0400, kamaraju kusumanchi wrote: > > Given a csv file with the following contents > > > > 20180701, A > > 20180702, A, B > > 20180703, A, B, C > > 20180704, B, C > > 20180705, C > > > > I would like to transform the

Re: OT: Is there a name for this transformation?

2019-07-10 Thread Peter J. Holzer
On 2019-07-10 08:57:29 -0400, kamaraju kusumanchi wrote: > Given a csv file with the following contents > > 20180701, A > 20180702, A, B > 20180703, A, B, C > 20180704, B, C > 20180705, C > > I would like to transform the underlying data into a dataframe such as > > date, A, B, C

OT: Is there a name for this transformation?

2019-07-10 Thread kamaraju kusumanchi
Given a csv file with the following contents 20180701, A 20180702, A, B 20180703, A, B, C 20180704, B, C 20180705, C I would like to transform the underlying data into a dataframe such as date, A, B, C 20180701, True, False, False 20180702, True, True, False 20180703, True,

OT Re: Your IDE's?

2019-03-26 Thread DL Neil
Those of delicate disposition should look away now... The invention is not mine: aside from his name, have a look at the OP's purported email address, and his requested ReplyTo: address. Then check the veracity of those domainNMs... I only rarely do so as I can usually detect such from the pu

Re: Implement C's Switch in Python 3 [OT languages]

2019-02-07 Thread Christian Gollwitzer
Am 05.02.19 um 02:20 schrieb DL Neil: So, even with the French making their dates into sentences, not a single one uses ordinals! - did the computer people in all these languages/cultures decide that the more numeric approach was better/easier/... (ie simpler/less-complex) :) For the two lan

Re: Implement C's Switch in Python 3 [OT languages]

2019-02-04 Thread DL Neil
On 4/02/19 9:25 PM, Christian Gollwitzer wrote: Am 04.02.19 um 09:18 schrieb Christian Gollwitzer: I think English is quite "unique" with writing out the ending of the ordinals attached to arabic numerals. Of course, there is a Wikipedia page about it: https://en.wikipedia.org/wiki/Ord

Re: Implement C's Switch in Python 3 [OT languages]

2019-02-04 Thread Christian Gollwitzer
Am 04.02.19 um 09:18 schrieb Christian Gollwitzer: I think English is quite "unique" with writing out the ending of the ordinals attached to arabic numerals. Of course, there is a Wikipedia page about it: https://en.wikipedia.org/wiki/Ordinal_indicator So I was wrong and the abbrevi

Re: Implement C's Switch in Python 3 [OT languages]

2019-02-04 Thread Christian Gollwitzer
Am 04.02.19 um 04:11 schrieb DL Neil: > On 4/02/19 10:00 AM, Christian Gollwitzer wrote: Am 03.02.19 um 09:32 schrieb DL Neil: Now back to ordinal dates - the "st", "th", etc suffixes only work in English. You'd need another list (but no great coding complexity) to cope with a second, third, ..

Re: OT - need help with PHP

2019-02-02 Thread Bob Gailer
Thank you. I will get back to you on that shortly. Bob -- https://mail.python.org/mailman/listinfo/python-list

Re: OT - need help with PHP

2019-02-01 Thread Chris Angelico
On Sat, Feb 2, 2019 at 7:08 AM bob gailer wrote: > HOW TO CALL A FUNCTION USING VOIP.MS REST/JSON API > The following samples show how to get all Servers Information from our > database and how to select a specific Server for your display purposes. > > Please Note: > - When using our REST/JSON API

Re: OT - need help with PHP

2019-02-01 Thread bob gailer
Thank you for your various responses.  All helpful and encouraging. RE mailing list: I followed the instructions at http://php.net/manual/en/faq.mailinglist.php. I have had no response. Shouldn't I get something either welcoming me to the list or requesting a confirmation? Here are the inst

Re: OT - need help with PHP

2019-02-01 Thread mm0fmf
On 01/02/2019 15:36, Chris Angelico wrote: On Sat, Feb 2, 2019 at 2:31 AM Bob Gailer wrote: Trying to setup PHP on Windows 10 using the curl extension to run standalone. Why? I am trying to use an API where the only coding examples are written in PHP. My goal is to use python, and the place w

Re: OT - need help with PHP

2019-02-01 Thread Larry Martell
On Fri, Feb 1, 2019 at 10:30 AM Bob Gailer wrote: > I can't even figure out how to sign up for a PHP email list. http://php.net/manual/en/faq.mailinglist.php -- https://mail.python.org/mailman/listinfo/python-list

Re: OT - need help with PHP

2019-02-01 Thread Chris Angelico
On Sat, Feb 2, 2019 at 2:31 AM Bob Gailer wrote: > > Trying to setup PHP on Windows 10 using the curl extension to run > standalone. Why? I am trying to use an API where the only coding examples > are written in PHP. My goal is to use python, and the place where I'm stuck > is: the examples use C

OT - need help with PHP

2019-02-01 Thread Bob Gailer
Trying to setup PHP on Windows 10 using the curl extension to run standalone. Why? I am trying to use an API where the only coding examples are written in PHP. My goal is to use python, and the place where I'm stuck is: the examples use Curl to post requests; my attempts to translate this to urlli

This thread is closed (was: [OT] master/slave debate in Python)

2018-10-01 Thread Ben Finney
Ethan Furman writes: > This thread is closed. Coming from a moderator of this forum, I don't know how that statement is to be interpreted. Is that a statement that it is *impossible* (mechanically) to post replies in this thread? Across the different technologies that propogate this forum? If

Re: [OT] master/slave debate in Python

2018-10-01 Thread Ethan Furman
This thread is closed. -- ~Ethan~ Python List Moderator -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >