RE: for -- else: what was the motivation?

2022-10-09 Thread avi.e.gross
in English but also sometimes see words and phrases pop into my mind from other languages that mean about the same thing and then filter it out to focus on whichever language I am supposed to be using at the time. So back to the topic we are wandering in of what kinds of advice might apply in some

RE: for -- else: what was the motivation?

2022-10-09 Thread avi.e.gross
eter J. Holzer Sent: Sunday, October 9, 2022 4:02 PM To: python-list@python.org Subject: Re: for -- else: what was the motivation? On 2022-10-09 15:32:13 -0400, Avi Gross wrote: > and of course no pipelines. Since you've now used that term repeatedly: What is a pipeline in

Re: for -- else: what was the motivation?

2022-10-09 Thread Chris Angelico
On Mon, 10 Oct 2022 at 11:52, MRAB wrote: > > On 2022-10-10 00:40, dn wrote: > > On Sun, 9 Oct 2022 at 15:39, Axy via Python-list > > wrote: > > > >> "shortest block first" > > > > Have never heard this advice before. Kind-of rankled with me, as it did > > for others. > > > > Enquiring minds

Re: for -- else: what was the motivation?

2022-10-09 Thread dn
On 10/10/2022 13.47, MRAB wrote: On 2022-10-10 00:40, dn wrote: On Sun, 9 Oct 2022 at 15:39, Axy via Python-list wrote: "shortest block first" Have never heard this advice before. Kind-of rankled with me, as it did for others. Enquiring minds want to know... Played Duck, duck, go on

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Thomas Passin
er from jmd_dk. > > I don't think that one-liner solves Antoon's requirement of continuing > after an error. It uses just the normal python parser so it has exactly > the same limitations. Yes, of course. Interesting, though. py_compile tends to be what I use for a quick check. I linked

Re: for -- else: what was the motivation?

2022-10-09 Thread MRAB
On 2022-10-10 00:40, dn wrote: On Sun, 9 Oct 2022 at 15:39, Axy via Python-list wrote: "shortest block first" Have never heard this advice before. Kind-of rankled with me, as it did for others. Enquiring minds want to know... Played Duck, duck, go on this: zero hits amongst a pile of

Re: for -- else: what was the motivation?

2022-10-09 Thread dn
path of execution and perhaps not showing all the checking for odd cases first. much more important. Putting the main path first makes it easier to understand what the code is supposed to do normally. All those pesky exceptions are in the "small print" below. Absolutely! Has the term "

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Cameron Simpson
On 09Oct2022 21:46, Antoon Pardon wrote: Is it that onerous to fix one thing and run it again? It was once when you handed in punch cards and waited a day or on very busy machines. Yes I find it onerous, especially since I have a pipeline with unit tests and other tools that all have to redo

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Chris Angelico
a non-syntactic error, but an error of syntax *by definition* makes parsing the rest of the file dubious. What would it even *mean* to not give up? How should it interpret the following lines of code? All it can do is report the error. You know, if you'd not made this thread, the time you saved would hav

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Karsten Hilbert
Am Sun, Oct 09, 2022 at 07:51:12PM +0200 schrieb Antoon Pardon: > >But the point is: you can't (there is no way to) be sure the > >9+ errors really are errors. > > > >Unless you further constrict what sorts of errors you are > >looking for and what margin of error or

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Barry
;>> quits >>> after having found one syntax error. >> But the point is: you can't (there is no way to) be sure the >> 9+ errors really are errors. >> >> Unless you further constrict what sorts of errors you are >> looking for and what margin o

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Antoon Pardon
Op 9/10/2022 om 21:44 schreef Avi Gross: But an error like setting the size of a fixed length data structure to the right size may result in oodles of errors about being out of range that magically get fixed by one change. Sometimes too much info just gives you a headache. So? The user of

Re: for -- else: what was the motivation?

2022-10-09 Thread Peter J. Holzer
On 2022-10-09 15:32:13 -0400, Avi Gross wrote: > and of course no pipelines. Since you've now used that term repeatedly: What is a pipeline in Python? hp -- _ | Peter J. Holzer| Story must make more sense than reality. |_|_) || | | | h...@hjp

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Peter J. Holzer
On 2022-10-09 15:18:19 -0400, Avi Gross wrote: > Antoon, it may also relate to an interpreter versus compiler issue. > > Something like a compiler for C does not do anything except write code in > an assembly language. It can choose to keep going after an error and start > looking some more from

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Antoon Pardon
stable place. Interpreters for Python have to catch interrupts as they go and often run code in small batches. Continuing to evaluate after an error could cause weird effects. So what you want is closer to a lint program that does not run code at all, or merely writes pseudocode to a file to be run

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Antoon Pardon
stable place. Interpreters for Python have to catch interrupts as they go and often run code in small batches. Continuing to evaluate after an error could cause weird effects. So what you want is closer to a lint program that does not run code at all, or merely writes pseudocode to a file to be run

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Avi Gross
rors, which > would > >> allow me to easily correct 10 real errors, over the python strategy > which quits > >> after having found one syntax error. > > But the point is: you can't (there is no way to) be sure the > > 9+ errors really are errors. > > >

Re: for -- else: what was the motivation?

2022-10-09 Thread Avi Gross
as if it was in some poorer language. Python has idioms often used in making pipes of a sort but in languages with other forms, such as R, debugging is not that difficult as you can insert functions in middle of a pipeline that print what you want but return the data structure they were fed for the next step

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Avi Gross
to catch interrupts as they go and often run code in small batches. Continuing to evaluate after an error could cause weird effects. So what you want is closer to a lint program that does not run code at all, or merely writes pseudocode to a file to be run faster later. Many languages now have blocks

Re: for -- else: what was the motivation?

2022-10-09 Thread Avi Gross
by worrying about the size of blocks of code. But others obviously preach what they think works for them even when it may constrain others more than it helps. I have seen people suggest that all variables have short names like a3 but that does not mean it improves anything other than the size of the code

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread MRAB
are errors. Unless you further constrict what sorts of errors you are looking for and what margin of error or leeway for false positives you want to allow. Look when I was at the university we had to program in Pascal and the compilor we used continued parsing until the end. Sure there were times

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Weatherby,Gerard
: What to use for finding as many syntax errors as possible. *** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. *** I would like a tool that tries to find as many syntax errors as possible in a python file. I know there is the risk of false

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Antoon Pardon
what sorts of errors you are looking for and what margin of error or leeway for false positives you want to allow. Look when I was at the university we had to program in Pascal and the compilor we used continued parsing until the end. Sure there were times that after a number of reported errors

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Peter J. Holzer
On 2022-10-09 19:23:41 +0200, Karsten Hilbert wrote: > Am Sun, Oct 09, 2022 at 06:59:36PM +0200 schrieb Antoon Pardon: > > Op 9/10/2022 om 17:49 schreef Avi Gross: > > >My guess is that finding 100 errors might turn out to be misleading. If you > > >fix just the first, many others would go away. >

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Peter J. Holzer
quirement of continuing after an error. It uses just the normal python parser so it has exactly the same limitations. Some of the mentioned tools may do what Antoon wants, though. hp -- _ | Peter J. Holzer| Story must make more sense than reality. |_|_) ||

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Karsten Hilbert
ool that reported 100 errors, which would > allow me to easily correct 10 real errors, over the python strategy which > quits > after having found one syntax error. But the point is: you can't (there is no way to) be sure the 9+ errors really are errors. Unless you further constrict what s

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Thomas Passin
https://stackoverflow.com/questions/4284313/how-can-i-check-the-syntax-of-python-script-without-executing-it People seemed especially enthusiastic about the one-liner from jmd_dk. On 10/9/2022 12:17 PM, Peter J. Holzer wrote: On 2022-10-09 12:09:17 +0200, Antoon Pardon wrote: I would like a

Re: for -- else: what was the motivation?

2022-10-09 Thread Peter J. Holzer
On 2022-10-09 12:34:22 -0400, Avi Gross wrote: > I have seen programmers who have taken an elegant pipeline I have built > apart and made it into many lines of code reassignment the value of each > step to the same or different variables and other ways of lengthening or > obscuring my intent. I

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Antoon Pardon
Op 9/10/2022 om 17:49 schreef Avi Gross: My guess is that finding 100 errors might turn out to be misleading. If you fix just the first, many others would go away. At this moment I would prefer a tool that reported 100 errors, which would allow me to easily correct 10 real errors, over the

Re: for -- else: what was the motivation?

2022-10-09 Thread Peter J. Holzer
a rule but realistically not always a bad idea to write code in a > way that draws the attention of readers along the main path of execution > and perhaps not showing all the checking for odd cases first. much more important. Putting the main path first makes it easier to understand what the code i

Re: for -- else: what was the motivation?

2022-10-09 Thread Axy via Python-list
Since many languages allow placing multiple statements on one line or spreading one over many lines, it seems that the number of lines in code can be adjusted. If I have a line like: Alpha, beta, gamma, delta = 1, 2, 3, 4 Could that be rewritten as 4 or more lines? Surely! Especially if

Re: for -- else: what was the motivation?

2022-10-09 Thread Chris Angelico
On Mon, 10 Oct 2022 at 03:46, Avi Gross wrote: > > Chris, I was not arguing that at all. Maybe not intentionally, but you did lend a lot of weight to that argument :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: for -- else: what was the motivation?

2022-10-09 Thread Avi Gross
. For example, if something is expected to rarely or never happen, code within that branch may not be needed to be optimized in any way as long as it works in the remote chance it is called. I think what was suggested here is more about code readability considerations and for some of us, making us stand on our

Re: for -- else: what was the motivation?

2022-10-09 Thread Avi Gross
Since many languages allow placing multiple statements on one line or spreading one over many lines, it seems that the number of lines in code can be adjusted. If I have a line like: Alpha, beta, gamma, delta = 1, 2, 3, 4 Could that be rewritten as 4 or more lines? I have seen programmers who

Re: for -- else: what was the motivation?

2022-10-09 Thread Chris Angelico
On Mon, 10 Oct 2022 at 03:22, Avi Gross wrote: > > Smallest code blocks first may be a more modern invention. > > Some would argue for a rule related to efficiency of execution. When you > have multiple blocks as in an if-else or case statement with multiple > choices, that you order the most

Re: for -- else: what was the motivation?

2022-10-09 Thread Karsten Hilbert
Am Sun, Oct 09, 2022 at 05:37:59AM +0100 schrieb Axy via Python-list: > Python is awesome because it's semantic is clear for the majority, but there > are places > that look odd. In case of "for", "else" looks logically tied with "for" > clause, but > actually it is not. It's tied with "break"

Re: for -- else: what was the motivation?

2022-10-09 Thread Avi Gross
Smallest code blocks first may be a more modern invention. Some would argue for a rule related to efficiency of execution. When you have multiple blocks as in an if-else or case statement with multiple choices, that you order the most common cases first. Those shorten execution more often than

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Peter J. Holzer
On 2022-10-09 12:09:17 +0200, Antoon Pardon wrote: > I would like a tool that tries to find as many syntax errors as possible in > a python file. I know there is the risk of false positives when a tool tries > to recover from a syntax error and proceeds but I would prefer that over the > current

Re: What to use for finding as many syntax errors as possible.

2022-10-09 Thread Avi Gross
and resume checking the next function. But what if a function defines local functions within it? What if the mistake in one line of code could still allow checking the next line rather than skipping it all? My guess is that finding 100 errors might turn out to be misleading. If you fix just the first

Re: for -- else: what was the motivation?

2022-10-09 Thread Michael Speer
>Well, the value is productivity. No need to save puzzles "what this >hanging else belongs to?" if you get to the point where it's hard to tell which else lines up with which if or for statement, I would suggest breaking things out into well-named helper functions rather th

What to use for finding as many syntax errors as possible.

2022-10-09 Thread Antoon Pardon
I would like a tool that tries to find as many syntax errors as possible in a python file. I know there is the risk of false positives when a tool tries to recover from a syntax error and proceeds but I would prefer that over the current python strategy of quiting after the first syntax error.

Re: for -- else: what was the motivation?

2022-10-09 Thread Peter J. Holzer
On 2022-10-09 05:37:59 +0100, Axy via Python-list wrote: > Actually the reason I never used "else" was the violation of the rule > of beauty "shortest block first". That's a weird rule. I can see justifications for "most common case first" and "most special case first", but ordering the cases in

Re: for -- else: what was the motivation?

2022-10-09 Thread Axy via Python-list
me elaboration on that. What's the value in it? Well, the value is productivity. No need to save puzzles "what this hanging else belongs to?" regardless of semantic, which ideally should not be a puzzle as well. Code small things first and return early, same as taking a test: do easy and quic

Re: for -- else: what was the motivation?

2022-10-08 Thread Chris Angelico
On Sun, 9 Oct 2022 at 16:05, Axy via Python-list wrote: > > > On 09/10/2022 05:47, Chris Angelico wrote: > > On Sun, 9 Oct 2022 at 15:39, Axy via Python-list > > wrote: > >> Got it, thanks! > >> > >> Actually the reason I never used "else" was the violation of the rule of > >> beauty "shortest

Re: for -- else: what was the motivation?

2022-10-08 Thread Axy via Python-list
On 09/10/2022 05:47, Chris Angelico wrote: On Sun, 9 Oct 2022 at 15:39, Axy via Python-list wrote: Got it, thanks! Actually the reason I never used "else" was the violation of the rule of beauty "shortest block first". With if--else you can easily follow this rule by inverting "if"

Re: for -- else: what was the motivation?

2022-10-08 Thread Chris Angelico
On Sun, 9 Oct 2022 at 15:39, Axy via Python-list wrote: > > Got it, thanks! > > Actually the reason I never used "else" was the violation of the rule of > beauty "shortest block first". With if--else you can easily follow this > rule by inverting "if" expression, but with for--else you can't. The

Re: for -- else: what was the motivation?

2022-10-08 Thread Axy via Python-list
Got it, thanks! Actually the reason I never used "else" was the violation of the rule of beauty "shortest block first". With if--else you can easily follow this rule by inverting "if" expression, but with for--else you can't. The loop body of the simplest example is already three lines, in

Re: for -- else: what was the motivation?

2022-10-08 Thread rbowman
On 10/7/22 21:32, Axy wrote: So, seriously, why they needed else if the following pieces produce same result? Does anyone know or remember their motivation? In real scenarios there would be more logic in the for block that would meet a condition and break out of the loop. If the condition is

Re: for -- else: what was the motivation?

2022-10-07 Thread Dan Stromberg
The else is executed if you don't "break" out of the loop early. It cuts down on boolean flags. On Fri, Oct 7, 2022 at 8:40 PM Axy via Python-list wrote: > Hi there, > > this is rather a philosophical question, but I assume I miss something. > I don't remember I ever used else clause for years

for -- else: what was the motivation?

2022-10-07 Thread Axy via Python-list
Hi there, this is rather a philosophical question, but I assume I miss something. I don't remember I ever used else clause for years I was with python and my expectation was it executed only if the the main body was never run. Ha-ha! I was caught by this mental trap. So, seriously, why they

Re: WHAT THIS EXCEPTION MEANT? I ATTCHED SCREENSOHT

2022-09-09 Thread Mats Wichmann
On 9/8/22 06:34, נתי שטרן wrote: [image: image.png] The mailing list strips attachments, replacing them by a placeholder as you see above. If you want to try again, please paste the text of the exception. -- https://mail.python.org/mailman/listinfo/python-list

RE: WHAT THIS EXCEPTION MEANT? I ATTCHED SCREENSOHT

2022-09-09 Thread avi.e.gross
Nati, If you thought a bit first, you might remember this mailing list does not forward attachments so we are not seeing the image you called image.png and you neglected to also give us some text telling us what exception you saw or lots of additional details that might help. And, just FYI

WHAT THIS EXCEPTION MEANT? I ATTCHED SCREENSOHT

2022-09-09 Thread נתי שטרן
[image: image.png] -- -- https://mail.python.org/mailman/listinfo/python-list

Re: What can I do about this?

2022-08-29 Thread gene heskett
On 8/29/22 15:12, Peter J. Holzer wrote: On 2022-08-29 13:43:18 -0400, gene heskett wrote: On 8/29/22 12:50, Mark Bourne wrote: Roel Schroeven wrote: $ pip3 install -r requirements.txt  # finally invoke pip3 or: $ {path_to_venv}/bin/pip3 install -r requirements.txt That got me to

Re: What can I do about this?

2022-08-29 Thread Mark Bourne
s are unaffected, and when you close the current shell the venv is not activated anymore. Explicitly using the path is easier for one-off calls, or in things like crontab. Thank you Mark Bourne, this looks like actual progress in what has turned into a cast iron bitch. I'll not touch that

Re: What can I do about this?

2022-08-29 Thread Peter J. Holzer
On 2022-08-29 11:12:17 -0400, gene heskett wrote: > I've not had to deal with venv's before. Can more than one of these > venv things peacefully coexist? Yes. Having multiple venvs is the main reason for their existence. hp -- _ | Peter J. Holzer| Story must make more sense

Re: What can I do about this?

2022-08-29 Thread Peter J. Holzer
On 2022-08-29 13:43:18 -0400, gene heskett wrote: > On 8/29/22 12:50, Mark Bourne wrote: > > Roel Schroeven wrote: > > > $ pip3 install -r requirements.txt  # finally invoke pip3 > > > > > > or: > > > > > > $ {path_to_venv}/bin/pip3 install -r requirements.txt > That got me to showstopper #2:

Re: What can I do about this?

2022-08-29 Thread gene heskett
env. Note that activating the venv only has effect on the current shell; other shells are unaffected, and when you close the current shell the venv is not activated anymore. Explicitly using the path is easier for one-off calls, or in things like crontab. Thank you Mark Bourne, thi

Re: What can I do about this?

2022-08-29 Thread Roel Schroeven
Mark Bourne schreef op 29/08/2022 om 13:02: Roel Schroeven wrote: > $ source {path_to_venv}/bin/pip3  # activate the venv I think this first line should probably be: $ source {path_to_venv}/bin/activate # activate the venv i.e. with `activate` rather than `pip3`? Oops, yes, of course.

Re: What can I do about this?

2022-08-29 Thread Dennis Lee Bieber
On Mon, 29 Aug 2022 04:51:13 -0400, gene heskett declaimed the following: >What, on the arms, substitutes for the missing "*.whl" file? > In Debian -- apt-get https://packages.debian.org/stable/source/wxpython4.0 of course, that will install things system-wide,

Re: What can I do about this?

2022-08-29 Thread Mark Bourne
Roel Schroeven wrote: Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv: When the package

Re: What can I do about this?

2022-08-29 Thread gene heskett
tic forever bottles are made from, much stronger than the PLA most folks use for artwork and what I'm doing needs its physical strength. It also raises the printhead temp around 50C, which causes teflon to slowly ablate with phosgene gas as output. Dangerous stuff, and high maintenance too. What I

Re: What can I do about this?

2022-08-29 Thread Roel Schroeven
Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv: When the package manager version will

Re: What can I do about this?

2022-08-29 Thread gene heskett
good to go for inclusion in bookworm. I;ve created a separate venv to install printrun, I does not work either. So in that venv, I've done a git clone of printrun. Then after that, it appears there is no such critter as a wxPython.whl for the arms, only x86_64's. So whats the diff if it ru

Re: What can I do about this?

2022-08-28 Thread Dennis Lee Bieber
2.0 tar.gz version of wxPython? Maybe try overriding it with a 4.1 variant of it -- or whatever you can find in the OS's package manager. > >What do I need to do to fix this? It supposedly works on a rpi4b, but >this is a rock64, V2, >older stuff with 4 gigs of dram. > >Thank yo

Re: What can I do about this?

2022-08-28 Thread gene heskett
On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv: When the package manager version will only run the gui-less "pronsole" but nothing else

Re: What can I do about this?

2022-08-28 Thread gene heskett
On 8/28/22 19:36, Chris Angelico wrote: On Mon, 29 Aug 2022 at 08:41, gene heskett wrote: Greatings all; Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv: When the package manager version will only run the gui-less "pronsole"

Re: What can I do about this?

2022-08-28 Thread Peter J. Holzer
On 2022-08-28 18:40:17 -0400, gene heskett wrote: > Persuant to my claim the py3.10 is busted, here is a sample. This is me, > trying to make > pronterface, inside a venv: When the package manager version will only run > the gui-less "pronsole" > but nothing else from that all python kit runs as

Re: What can I do about this?

2022-08-28 Thread Chris Angelico
On Mon, 29 Aug 2022 at 08:41, gene heskett wrote: > > Greatings all; > > Persuant to my claim the py3.10 is busted, here is a sample. This is me, > trying to make > pronterface, inside a venv: When the package manager version will only > run the gui-less "pronsole" > but nothing else from that

What can I do about this?

2022-08-28 Thread gene heskett
problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. What do I need to do to fix this? It supposedly works on a rpi4b, bu

Re: WHAT THE ERROR ON MY CODE???

2022-06-29 Thread Calvin Spealman
You also forgot to include any information about an error or problem you got in using this code. We can't help you if you don't have an actual question to ask. ‪On Wed, Jun 29, 2022 at 1:36 AM ‫נתי שטרן‬‎ wrote:‬ > Sorry but i forgor to delete this token data > > בתאריך יום שלישי, 28 ביוני

Re: WHAT THE ERROR ON MY CODE???

2022-06-28 Thread נתי שטרן
Sorry but i forgor to delete this token data בתאריך יום שלישי, 28 ביוני 2022, מאת De ongekruisigde < ongekruisi...@news.eternal-september.org>: > On 2022-06-28, Chris Angelico wrote: > > ‪On Wed, 29 Jun 2022 at 01:37, ‫נתי שטרן‬‎ wrote:‬ > >> headers["Authorization"] = "Basic > >>

Re: WHAT THE ERROR ON MY CODE???

2022-06-28 Thread De ongekruisigde
On 2022-06-28, Chris Angelico wrote: > ‪On Wed, 29 Jun 2022 at 01:37, ‫נתי שטרן‬‎ wrote:‬ >> headers["Authorization"] = "Basic >> YjMwMzcwODY3NTUzNDMwNTg5NzA2MjkyNDFmMDE1YWY6VjNKYTk2Y1F4RTFzeTdYbzRnbkt0a2k1djhscXUyU01oSE5VWUwwRg==" >> > > The error is that you just revealed your credentials to

Re: WHAT THE ERROR ON MY CODE???

2022-06-28 Thread David Lowry-Duda
Please don't use all caps in the subject line. It comes across as if you're yelling at the list --- this doesn't make people want to be more helpful. Instead, use meaningful, specific subject headers. Also, please be precise and informative about what your problem is. It's not clear what you

Re: WHAT THE ERROR ON MY CODE???

2022-06-28 Thread Chris Angelico
‪On Wed, 29 Jun 2022 at 01:37, ‫נתי שטרן‬‎ wrote:‬ > headers["Authorization"] = "Basic > YjMwMzcwODY3NTUzNDMwNTg5NzA2MjkyNDFmMDE1YWY6VjNKYTk2Y1F4RTFzeTdYbzRnbkt0a2k1djhscXUyU01oSE5VWUwwRg==" > The error is that you just revealed your credentials to the whole world. This is a public mailing list.

WHAT THE ERROR ON MY CODE???

2022-06-28 Thread נתי שטרן
import requests from requests.structures import CaseInsensitiveDict url = "https://api.crowdstrike.com/oauth2/token; headers = CaseInsensitiveDict() headers["Content-Type"] = "application/x-www-form-urlencoded" headers["Authorization"] = "Basic

Re: windows 11 what is wrong?

2022-04-27 Thread Dennis Lee Bieber
On Wed, 27 Apr 2022 19:45:34 +, Lars Martin Hambro declaimed the following: >Repair passed but pip3 and pip did not find pip.exe and missing modules. > This forum only accepts text. Do not attach screen grabs of windows, just highlight the console TEXT and cut/paste same.

Re: windows 11 what is wrong?

2022-04-27 Thread Lars Martin Hambro
Repair passed but pip3 and pip did not find pip.exe and missing modules. Lars Martin hambro Fra: Lars Martin Hambro Sendt: onsdag 27. april 2022, 21:31 Til: python-list@python.org Emne: windows 11 what is wrong? [cid:image001.png@01D85A7E.07A48030

Re: What to do to correct the error written below:

2022-04-12 Thread Peter Pearson
On Tue, 12 Apr 2022 04:56:22 -0700 (PDT), NArshad wrote: > >>By looping over elements in "books" and incrementing counter i, >>which is used as an index both for "books" and for "students", >>you will produce an error whenever the number of books exceeds >>the number of students. Is there some

Re: What to do to correct the error written below:

2022-04-12 Thread Greg Ewing
On 12/04/22 2:28 am, Peter Pearson wrote: By looping over elements in "books" and incrementing counter i, which is used as an index both for "books" and for "students", you will produce an error whenever the number of books exceeds the number of students. More fundamentally, it assumes there

Re: What to do to correct the error written below:

2022-04-11 Thread Dennis Lee Bieber
On Mon, 11 Apr 2022 00:14:49 -0700 (PDT), NArshad declaimed the following: >for i in issuedBooks: Loop control variable is "i"... >i=0 Control variable "i" has been overwritten so any use of "i" following this is suspicious >for l in books:

Re: What to do to correct the error written below:

2022-04-11 Thread Dennis Lee Bieber
t's a return to a long cryptic thread from January... <199c23c7-de58-44ae-a216-760c8f36c5...@googlegroups.com> "What to write or search on github to get the code for what is written below:" It is nice to see that the insistence on using Excel for the data storage seems to

Re: What to do to correct the error written below:

2022-04-11 Thread Peter Pearson
On Mon, 11 Apr 2022 00:14:49 -0700 (PDT), NArshad wrote: [snip] > books = list(models.Book.objects.filter(isbn=i.isbn)) > students = list(models.Student.objects.filter(user=i.student_id)) > i=0 > for l in books: > >

Re: What to do to correct the error written below:

2022-04-10 Thread Peter Pearson
On Sat, 9 Apr 2022 04:59:05 -0700 (PDT), NArshad wrote: > I have accidentally deleted one account in a Django project because of > which one of the pages is no more accessible and is giving the error > written below: > > IndexError at /view_issued_book/ > list index out of range > > and the error

[issue401043] Description of what can go wrong in ioctl

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue401043] Description of what can go wrong in ioctl

2022-04-10 Thread admin
Change by admin : -- github: None -> 32871 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25743] [doc] Clarify exactly what \w matches in UNICODE mode

2022-02-27 Thread Stanley
Stanley added the comment: Would a change like this be accurate? Matches Unicode word characters; this includes most alphanumeric characters as well as the underscore. In Unicode, alphanumeric characters are defined to be the general categories L + N (see

Re: What to write or search on github to get the code for what is written below:

2022-01-31 Thread Dennis Lee Bieber
On Mon, 31 Jan 2022 01:32:15 -0800 (PST), NArshad declaimed the following: >What about CGI? >Do you know any Library Management System based on CGI just like the one on >Django? Pure CGI is 30 year old technology... https://en.wikipedia.org/wiki/Common_Gateway_Interface

Re: What to write or search on github to get the code for what is written below:

2022-01-31 Thread Chris Angelico
On Tue, 1 Feb 2022 at 02:38, NArshad wrote: > > What about CGI? > Do you know any Library Management System based on CGI just like the one on > Django? > Have you done any research, or are you just picking up a new acronym to see if you can suck some more volunteer time o

Re: What to write or search on github to get the code for what is written below:

2022-01-31 Thread NArshad
What about CGI? Do you know any Library Management System based on CGI just like the one on Django? -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-29 Thread Dennis Lee Bieber
On Fri, 28 Jan 2022 14:31:20 -0700, Cousin Stanley declaimed the following: >Dennis Lee Bieber wrote: > >> Ignoring the code spam I presume >> > > I'm an sqlite user myself and was glad to see > the code you posted and have a couple of tiny example > book/author sql3 databases but

Re: What to write or search on github to get the code for what is written below:

2022-01-28 Thread Cousin Stanley
Dennis Lee Bieber wrote: > Ignoring the code spam I presume > I'm an sqlite user myself and was glad to see the code you posted and have a couple of tiny example book/author sql3 databases but nothing resembling an actual library check in/out program I've never used

Re: What to write or search on github to get the code for what is written below:

2022-01-28 Thread Dennis Lee Bieber
On Fri, 28 Jan 2022 09:34:39 -0700, Cousin Stanley declaimed the following: > > Your patience and willingness to help and guide someone else > with such a complete and understanable post is hihgly commendable. > Ignoring the code spam I presume I seem to have scared off the

Re: What to write or search on github to get the code for what is written below:

2022-01-28 Thread Cousin Stanley
Dennis Lee Bieber wrote: > > How would you do this assignment on paper ? > Your patience and willingness to help and guide someone else with such a complete and understanable post is hihgly commendable. Thanks -- Stanley C. Kitching Human Being Phoenix, Arizona --

Re: What to write or search on github to get the code for what is written below:

2022-01-24 Thread NArshad
On Sun, 23 Jan 2022 09:17:38 +1100, Chris Angelico <> declaimed the following: > >Absolutely agree with making a console app first. Though I rather >suspect the OP doesn't want to write any code at all. > I am not writing any code because I don’t know what code to do next. S

Re: What to write or search on github to get the code for what is written below:

2022-01-24 Thread Dennis Lee Bieber
On Mon, 24 Jan 2022 00:25:34 -0800 (PST), NArshad declaimed the following: > >I am not writing any code because I don’t know what code to do next. Still, I >have made a dictionary now searching for what to do next in which one choice >is MS SSIS and the second is numpy or pandas

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Dennis Lee Bieber
er day, over the last 16 days, they should have 160 lines of code (whether it works or not) that could be presented for evaluation. What is considered industry standard? 10 lines an hour? Assuming the OP isn't spending time on requirements analysis and documentation. (My best example is somethin

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Chris Angelico
On Sun, 23 Jan 2022 at 09:15, Dennis Lee Bieber wrote: > A web > application has every action as a distinct connection and needs identifying > tokens [cookies] to let the logic know what was done previously > Usually. Fortunately, we have SOME features that can make life easier, bu

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Dennis Lee Bieber
okens [cookies] to let the logic know what was done previously) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: What to write or search on github to get the code for what is written below:

2022-01-22 Thread Avi Gross via Python-list
other functionality. What I gather is that the web page, irrelevant if in HTML or JAVA or JavaScript or a connection with a server running python or anything else, asks the user to type in a book name to search for. NOTHING is of any importance here except capturing the exact text and sending

<    1   2   3   4   5   6   7   8   9   10   >