rest of the solution (and 'learnings' from those steps) may
(eventually) realise just as many, or even more, of the benefits of 'our
approach' of producing a cohesive overall-design first! Possibly even
more than the benefits we intended in 'our' approach(?).
Unfortunately, it is a difficult adjustment to make (as related), and
there are undoubtedly stories of how the 'fools rush in where angels
fear to tread' approach is but a road to disaster and waste. The 'trick'
is to "cherry pick" from today's affordances and modify our
training/habits and experience to take the best advantages from both...
Hope this helps to explain why you may have misunderstood some
contributions 'here', or felt like arguing-back. Taking a step back or a
'wider' view, as has been attempted here, may show the implicit and
intended value of (many) contributions.
I'll leave you with a quote from Donald Knuth in The Art of Computer
Programming, Volume 1: Fundamental Algorithms (which IIRC was first
published in the late-60s/early-70s): “Premature optimization is the
root of all evil.” So, maybe early-coding/prototyping and later
"optimisation" isn't all bad!
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/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,
ou're implementing a CPU, though.
Oh yes! The D2 kit - I kept those books for years...
https://www.electronixandmore.com/adam/temp/6800trainer/mek6800d2.html
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
act that in my
Python-life I've never been put into a corner where I absolutely must
use one), I'm no longer a fan...
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
deed we can become rather more 'creative'
"+" " add,
...
}
Thereafter, we can apply the dict to solve the problem:
calculator.get( command,
"Error message/advice, eg mentioning add, or + etc"
)
NB it has been left to you to perfect the technique so that the value(s)
to be calculated are properly communicated to the chosen function.
PS you may find the Python-Tutor Discussion List helpful
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
es, eg an integer and a
floating-point number, both utilise the same operator-symbol, enables us
to draw analogies (and in this case, probably get it 100% correct), but
this does not imply a complete equivalence across-the-board
(particularly when crazy-people are let-loose with custom classes! Thus
"a" + "b" should not be pronounced "add", even though the operator looks
very much like the one we use to add two numbers!
For fun, and quickly now, what happens here:
2 + 2
2 + 2.0
2.0 + 2
2.0 + 2.0
"2" + "2"
2 + "2"
"2" + 2
(they're all 'the same', except the last two?three - aren't they???)
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
elenium/docs/api/py/api.html#webdriver-firefox)
Finally, (Warning: un-read, so un-tested) I recalled that my 'reading
pile' includes "How to Create Firefox Profile in Selenium WebDriver"
(https://www.guru99.com/firefox-profile-selenium-webdriver.html) which
*may* offer hints about the 'new' handling of FF profiles. Again, YMMV!
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
r to expand it afterwards
> than to restrict it, or to have the feature rejected because people
> are scared of some small aspect of it.
ie neither can one use subscripted elements, eg list-elements, as the
LHS of an assignment expression.
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
With apologies for pressing Send too early...
On 23/10/2021 08.41, dn via Python-list wrote:
> On 23/10/2021 08.34, Chris Angelico wrote:
>> On Sat, Oct 23, 2021 at 6:24 AM Jon Ribbens via Python-list
>> wrote:
>>>
>>> On 2021-10-22, Stefan Ram wrote:
>&
On 23/10/2021 12.51, Greg Ewing wrote:
> On 23/10/21 8:49 am, dn wrote:
>> Whereas, creating a list (or tuple...) is legal because the structure's
>> name is an "identifier"!
>
> No, the restriction only applies to the LHS. The list construction
> is on the
ide from 'starting small' with an option to widen/'open-up' later, is
there a particular reason why 'the walrus' has not been made available
(could not be ...?) for use with object-attributes?
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
heme
developed throughout the talk.
Have searched, but been unable to re-locate this video. Do you recall
the talk? Please advise its URL...
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 27/10/2021 11.16, Stefan Ram wrote:
> dn writes:
>> Some time ago I watched a video of a Raymond Hettinger talk. In it he
>> recounted answering his son's question of 'what do you do, Dad?'
>
> The Mental Game of Python - Raymond Hettinger (PyBay 2019)
&
cation) aren't 'that bad' after all!
Programmers of the world unite!
You have nothing to lose but your 0
- or your 1
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
security than the many organisations which
have been breached?
5. No guarantee of anonymity - your shadow-author will have a 'hold'
over you, forever
6. Bribery - perhaps that essay should be about blackmail, how it could
start, and what might be its effects?
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
#x27;problem' then, has been phrased as these three objectives ask too
much of the (current implementation of the) walrus-operator.
NB after one (or more) cycles, when the loop 'returns to the top', what
I've termed 'new' a and b (above), will become (my reference) the
e written in the user's terms (those of the
"domain"). Thus, the easiest (and accuracy/consistency promoting) path,
is to maintain the use of that terminology/names all the way through
from spec to code.
Above also reduces my cognitive load - an appealing characteristic for
such a lazy "bear of little brain"...
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 30/10/2021 11.42, Shaozhong SHI wrote:
> Python script works well, but seems to stop running at a certain point when
> handling very large dataset.
>
> Can anyone shed light on this?
Storage space?
Taking time to load/format/process data-set?
--
Regards,
=dn
--
https://mai
ed to ask because 'everyone' knows!
(OK, so am I allowed to give you a few PTRs about politesse?)
NB I find that 'modern IDEs' and sundry plug-ins are possibly more
responsible for making me PEP-008-compliant than any human(s). The
nagging splatters of queries and criticisms are even les
it prints the files and folders in
> site-packages
>
> This is an analogy for a package i have.
>
> Well forgetting about the lines above, how do i get the path from
> which miaw the command is called from?
try:
file_path = __file__
print( file_path )
and process
can't be wrong!
Either one could help the OP, exactly the advice intended by the above post!
Web.Refs:
https://vscodium.com/
https://www.reddit.com/r/privacy/comments/n7l444/vscode_vs_vscodium/
Further philosophy:
- "Liberté, égalité, fraternité " as a catch-cry of the French
Revolution (translates to: liberty, equality, brotherhood)
- becoming "created equal" and "Life, Liberty, and the Pursuit of
Happiness" in the (US) Declaration of Independence
- "some...more equal than others" purported corruption of 'purity'
illustrated in Orwell's "Animal Farm"
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
n )
The use of default-values for mutables is something of a Python
'gotcha'. My use-case is that some wise-soul's decision to do things
this way prevents me from falling into that debugging "slough of despond".
(does such qualify as a "use case"?)
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
rprets their (?perfect) instruction and exactly where
things fall-over - with-out the added complication/cognitive-load of
having to master a debugger!
If you're still determined to invest a lot of time, it looks as if Phil
has invested a lot of time, more recently, in widening the range of
la
ignorance' is particularly noticeable in folk who have
come 'up' through the 'CodeCamp'/'BootCamp' approach to training. On the
other hand, if one is not intending to 'get into' a scientific or highly
mathematical branch of computing/Python, eg commercial applications
using (only) Decimal (or int), the average web-app, and similar; why
bother?
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 20/11/2021 10.21, Chris Angelico wrote:
> On Sat, Nov 20, 2021 at 7:39 AM dn via Python-list
> wrote:
>>>> >>> 0.3 + 0.3 + 0.3 == 0.9
>>>> False
>>>
>>> That's because 0.3 is not 3/10. It's not because floats are
>>>
:len( x ) ]
If the last item in x is to be excluded: x[ :-1 ]
If the last two items ... excluded: x[ :-2 ]
(etc)
and another way to write those two specific examples is
x[ :len( x ) - 1 ] and x[ :len( x ) - 2 ]
and while we are taking things 'away' from the end of the iterable, the
missing x[ :len( x ) ]
is the same as x[ :len( x ) - 0 ]
Thus, by now, you've leaped ahead of me, to:
>>> for y in [ 0, 1, 2, 3, 4, 5 ]:
... print( y, x[ :len( x ) - y ] )
...
0 ['a', 'b', 'c', 'd', 'e']
1 ['a', 'b', 'c', 'd']
2 ['a', 'b', 'c']
3 ['a', 'b']
4 ['a']
5 []
and yes, if computing y is expensive/ugly, for extra-credit, calculate
the 'stop' value outside/prior-to the for-loop!
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
es Dept
Yet, such seems a quite-reasonable (updated for dataclasses) approach.
Do you agree?
Do you not bother with docstring style at all?
Have you stuck with PEP-257, after all these years?
Do you (still) use the Sphinx/RST format for docstrings, even though it
seems even more repetitive and wordy?
Have you updated your conventions/style-manual to acknowledge
dataclasses? If so, how?
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 27/11/2021 19.11, Frank Millman wrote:
> On 2021-11-26 11:24 PM, dn via Python-list wrote:
>> On 26/11/2021 22.17, Frank Millman wrote:
>>> In my program I have a for-loop like this -
>>>
>>>>>> for item in x[:-y]:
>>> ... [do stuff]
a web-browser, the flags
appear, as desired.
Is this a terminal short-coming (locale charmap -> UTF-8 - which brings
to mind the old UCS-4 questions), a font issue, or what (to fix)?
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 29/11/2021 12.06, Cameron Simpson wrote:
> On 29Nov2021 09:19, Chris Angelico wrote:
>> On Mon, Nov 29, 2021 at 8:10 AM dn via Python-list
>> wrote:
>>> However, when trying the above, with our local flag in (Fedora Linux,
>>> Gnome) Terminal or PyCharm's
f not, at least we will have some common terminology to be able to
express and solve any remaining problem...
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 27/11/2021 21.23, Chris Angelico wrote:
> On Sat, Nov 27, 2021 at 7:21 PM dn via Python-list
> wrote:
>> The expression list is evaluated once; it should yield an iterable
>> object. An iterator is created for the result of the expression_list.
>> The suite is the
to jump between panels/windows/screens,
is seductive.
Don't tell my trainees! Every course sees three or four who 'cry for
help' because making some change in their choice of editor/IDE does not
result in similar within the web-browser. Did you forget to save the
source, Luke? That
On 29/11/2021 10.08, dn via Python-list wrote:
> On 29/11/2021 02.18, Chris Angelico wrote:
>> On Mon, Nov 29, 2021 at 12:10 AM Abdur-Rahmaan Janhangeer
>> wrote:
>>
>> Flags are actually constructed from multiple codepoints. What you want
>> is to insert each
collection or as an implied-tuple:
def function_list():
a_list = [ i for i in range( 9 ) ]
return a_list
def function_multiples():
a = 1
b = 2
c = 3
return a, b, c
thus:
x, y, z = function_multiples()
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 08/12/2021 11.07, Chris Angelico wrote:
> On Wed, Dec 8, 2021 at 9:04 AM dn via Python-list
> wrote:
>>
>> plus Python, unlike some other languages, allows us to return multiple
>> values, either as a collection or as an implied-tuple:
>>
>> def function_
, terminal suggestions...
(during my post-op recovery period, am hoping to experiment with another
Linux distro (and Window Manager), which may alter the playing-field...)
Meantime, casting-off the terminal-Grinch, compliments of the season to
you...
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
ion be necessary).
Hopefully, you have now figured-out both the algorithm, and the code to
implement same. Does it work? Is the list properly sorted by the end?
If not, come back to us with a more detailed question (plus code and
sample output).
If you're successful, also revert (with pride), and we'll try showing
you another way to implement the same algorithm - but in a manner
many?most other programming languages cannot. In other words, a
'pythonic' solution...
Apologies - I've taken several sessions to write this msg, with breaks
to rest my eyes in-between. Now I've clicked the wrong button on the
Spelling-Checker, but can't figure-out what I did/didn't correct, or
correct correctly. Confused? So am I. Please be understanding for this
and any other typos or proof-reading failings...
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
d with your solution, or any further question
(with the next version of the code so-far, per this first-post - which
we appreciate!)
Regardless, you asked 'the right question' (curiosity is the key to
learning) and in the right way/manner. Well done!
NBB the above code-outline does not consider the situation where the
search fails/the keys are not found!
For further information, please review:
https://docs.python.org/3/library/functions.html?highlight=zip#zip
Also, further to the above discussion of combining lists and loops:
https://docs.python.org/3/tutorial/datastructures.html?highlight=zip#looping-techniques
and with a similar application (to this post):
https://docs.python.org/3/faq/programming.html?highlight=zip#how-can-i-sort-one-list-by-values-from-another-list
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
On 14/01/2022 09.48, Dennis Lee Bieber wrote:
> On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber
> declaimed the following:
>
> Talking to myself in public again... Bad habit...
Recommend that you not start any arguments then
- they will be unwinnable!
--
Regards,
=
ites the entire key in one column, but I
> would like to do the same with write(). Any idea to fix that?
This is 'CSV' rather than 'Python'. The solution is to "escape" the
string. Ref:
https://stackoverflow.com/questions/769621/dealing-with-commas-in-a-csv-file
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
in: https://docs.python.org/3/using/windows.html#setting-envvars
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
from left to right.
...
A list of the remaining items in the iterable is then assigned to the
starred target (the list can be empty).
https://docs.python.org/3/reference/simple_stmts.html#assignment-statements
Python Reference Manual: 6.3.4. Calls
A call calls a callable object (e
alling routine'/outer-block would then be able to utilise a
try...except...else...finally structure - arguably both 'richer' and
better-understood by 'the average pythonista' than for...else/while...else
(per previous discussions 'here')
Your thoughts?
Apologies to OP, if am 'hi-jacking' original post.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
time ago, and evidently
the client has not seen fit to even consider upgrading as part of any
sprint, to-date. Note to self...)
So, please be aware of:
https://docs.python.org/3/whatsnew/3.8.html#positional-only-parameters
https://www.python.org/dev/peps/pep-0570/
If you are running a more recent release, perhaps you might like to
re-run the snippets, experiment, and document any contrary findings?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
ed and actual output, but irrelevant
for 'closed-box testing')
This also has the effect of side-stepping any unintended issues caused
by changing the values of mutable parameters!
(although sometimes it's a equally-good idea to do-so!)
Accordingly, binding argument-values to mutable
27;corner' that
I can't explain - such represents both a challenge and learning
opportunity, and probably useful that the Junior Programmer-concerned
should appreciate that no-one knows 'everything'.
(hopefully, others 'playing along at home' using the summary of our
On 8/07/20 11:11 PM, o1bigtenor wrote:
On Tue, Jul 7, 2020 at 2:30 AM Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote:
Original message ----From: dn via Python-list
mailto:python-list@python.org>> Date:
7/7/20 16:04 (GMT+10:00) To: 'Python
correct result would be 0.
Did you notice any warning or error messages?
https://unix.stackexchange.com/questions/308207/exit-code-at-the-end-of-a-bash-script--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
27;t have
to go to the other team to ask their 'permission'/agreement/cooperation
or wait for them to build the requisite method!
Is passing a function as an argument a safe and valid way to do
business, or is it 'showing off'?
Does the pass-a-function idea making testing easier (of both the call-ed
and the call-ing routines) and might it make a change (eg adding another
field) easier to manage in-future?
What do you do?
Refs:
Steve McConnell, "Code Complete", Microsoft Press, 2004.
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
ay) a dozen data
elements, but could be just-enough data, and data-combinations which
identify the addressee and which represent the components of the address.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
you importing the Excel data into the Python environment?
Are you able to import a single cell's value, eg "01/11/2017 00:00"
Assuming the import produces a string, are you able to "slice" the
string into the requisite components?
--
Regards =dn
--
https://mail.python.or
On 18/07/20 11:06 AM, Dennis Lee Bieber wrote:
On Sat, 18 Jul 2020 09:08:50 +1200, dn via Python-list
declaimed the following:
Assuming the import produces a string, are you able to "slice" the
string into the requisite components?
Given the OP's stated output --
on getting the same modify setup prompt. I am not sure of what to do?
Thank you in advance.
Regret that this mailing list does not support graphics attachments.
Which part of https://docs.python.org/dev/using/windows.html failed?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python
On 17/07/20 7:22 PM, Shanmika Sugavaneswaran wrote:
Though I install the setup , I couldn’t find Python in my system . I don’t know
what cause the problem. Please help me!
Please advise if the answer is not already covered in
https://docs.python.org/dev/using/windows.html
--
Regards =dn
ask a
specific question about the situation which is challenging you.
Be advised that the members of this list are volunteers. That said, if
you want to pay someone to code for you, perhaps mention your budget...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 18/07/20 3:29 PM, boB Stepp wrote:
On Fri, Jul 17, 2020 at 9:48 PM dn via Python-list
wrote:
On 18/07/20 1:53 PM, Castillo, Herbert S wrote:
I downloaded python not to long ago, and today when I opened Python on Windows
it gave me a modify setup prompt. I have tried to click on modify
On 18/07/20 11:48 PM, Oscar Benjamin wrote:
On Sat, 18 Jul 2020 at 05:39, dn via Python-list wrote:
On 18/07/20 3:29 PM, boB Stepp wrote:
On Fri, Jul 17, 2020 at 9:48 PM dn via Python-list
wrote:
On 18/07/20 1:53 PM, Castillo, Herbert S wrote:
I downloaded python not to long ago, and
isn't that the purpose of output-formatting?
Given all the 'pretty', I'd suggest that the learning-objectives*
include Python's string formatting language!
* um, er, given earlier comment about age/language, perhaps the words
"should have" should have appeared in that sentence?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
y dislike this picture, so don't tell anyone I said-so...)
Further tutorials you may find helpful:
https://towardsdatascience.com/python-basics-iteration-and-looping-6ca63b30835c
https://www.w3schools.com/python/gloss_python_iterator_vs_iterable.asp
https://www.tutorialspoint.com/difference-between-python-iterable-and-iterator
https://www.python-course.eu/python3_iterable_iterator.php
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
output stream and print only
the first n-characters? (on the grounds that 'close-enough is
good-enough'. However, it's your spec...)
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
Conda instructions, Python docs, and the NumPy docs
(if relevant)?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
This may change when the new PEG-parser brings us Python 3.9
(https://www.python.org/dev/peps/pep-0617/)
I'm looking forward to seeing how this change will impact/improve the
quality of feedback/traces/err.msgs...
OP: you may be interested in SuperHELP - Help for Humans!
https://git
https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/turing-machine/one.html)
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 23/07/2020 11:51, Chris Angelico wrote:
On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list
wrote:
However, questions remain:-
Robot: any machine or mechanical device that operates automatically with
humanlike skill
What about a human that operates mechanically with merely robot-like
On 22/07/2020 05:37, Peter J. Holzer wrote:
On 2020-07-13 17:21:40 +1200, dn via Python-list wrote:
On 12/07/20 10:10 PM, Barry Scott wrote:
I'd expect to see something like this:
def mail_label( person, address ):
first_name = person.first_name
# or if you want a function inte
Like the decision to use vim or emacs, this topic can generate a lot of
heat and emotion. Is there room for both? (and for 'modern IDEs')
The "dare not speak out" is sad - both for the individuals and/or the
organisation. Wither "inclusion" and "tolerance"?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
e who 'lurk' on the list - which is fine. Presumably
they are able to read contributions and learn from what seems
interesting. This behavior is (to me) a major justification for the
digest service - not being 'bombarded' by many email msgs is how some
voice their
eration.
Conversely, if prepared to iterate continuously, don't ever want to see
that exception.
How to differentiate?
Solution already available:
perhaps cycle() or chain()
itertools — Functions creating iterators for efficient looping
https://docs.python.org/3/library/itertools.html
each embedded data-structure
- the number of characters displayed from each embedded d-s
- depth of data-structure t-d
- something else?
On 25/07/2020 10:52, Stavros Macrakis wrote:
dn, Thanks again.
For background, I come from C and Lisp hacking (one of the MIT
developers of Macsyma <https
link. The size of a symbolic link is the length of the pathname it
contains, without a terminating null byte.
Thus, compare the results of the two calls to detect a difference.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
PYTHONPATH dirs
could be copied/mirrored to the 'difficult machine'.
However, if the machine is 'locked-down', am slightly puzzled that 'the
man' would allow you to add proscribed software by some other
(non-Internet, eg USB) means!
--
Regards =dn
--
https://mail.pyth
riginal
message and emailing again to python-list@python.org ? I'll reply both ways
to test this.
Be aware, using "Reply" (only) in at least some
email-clients/webmail-apps will result in the reply going only to the
previous-sender cf to the list.
--
Regards =dn
--
https://mail.pyth
s talking about datetime calculations?
Please copy-paste code showing this "lock".
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 01/08/2020 23:36, o1bigtenor wrote:
On Sat, Aug 1, 2020 at 1:29 AM dn via Python-list
mailto:python-list@python.org>> wrote:
On 31/07/2020 02:52, o1bigtenor wrote:
> I regularly work in planning through multiple years at once.
> This means that I like to have a
On 02/08/2020 12:24, o1bigtenor wrote:
On Sat, Aug 1, 2020 at 6:29 PM dn via Python-list
wrote:
On 01/08/2020 23:36, o1bigtenor wrote:
On Sat, Aug 1, 2020 at 1:29 AM dn via Python-list
mailto:python-list@python.org>> wrote:
On 31/07/2020 02:52, o1bigtenor wrote:
> I regul
On 02/08/2020 12:42, o1bigtenor wrote:
On Sat, Aug 1, 2020 at 7:24 PM o1bigtenor wrote:
On Sat, Aug 1, 2020 at 6:29 PM dn via Python-list
wrote:
On 01/08/2020 23:36, o1bigtenor wrote:
On Sat, Aug 1, 2020 at 1:29 AM dn via Python-list
mailto:python-list@python.org>> wrote:
On 31/0
be ironic if Popeye’s chicken was fried in Olive Oil?
The irony was that the marketing drive behind Popeye eating spinach was
based upon research that was in-error by at least a factor of ten.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
term you'll find in the Python docs) ie
Local, Enclosing, Global, and Built-in scopes:
https://realpython.com/python-scope-legb-rule/
and more in:
https://realpython.com/python-namespaces-scope/
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
exactly "sparse") - but forgetting that this
technology required the data-arrays to be zeroed first! So, random data
from previous use of the same storage area, in random formats, threw all
manner of 'spanners in the works'. When you take such news to your boss
and colleagues, do NOT even try to convince yourself that they will not
"shoot the messenger"!
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
ollects a list of changes
to the file which will be saved to the file, as above.
Further, databases have been designed for this sort of partial update
scenario. If/when updates become too frequent, or the file becomes
extensive, recommend you look at using an RDBMS instead of using this
'flat-file' approach...
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
you can test to ensure a library is available, or take
evasive-action if it is not:
>>> import so
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'so'
(there is a module called "os" though!)
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 10/08/2020 05:23, Dennis Lee Bieber wrote:
On Sun, 9 Aug 2020 11:50:51 +1200, dn via Python-list
declaimed the following:
To be a logomach, let's talk about "update":-
May I advise that a 'good practice' would be to create a new file, and
thus be able to (also) main
would need to
wait for Plan A.
1 PIL was discontinued about a decade back. Please use "Pillow" (a fork
- note first three letters), which is available from PyPI (pip3)
2 Bad news though, IIRC it requires Python 3.5+
3 Don't degrade to Py2 if you can at all avoid doing-so!
=dn
--
https://mail.python.org/mailman/listinfo/python-list
my
computer. I would like to receive help since always when installing and
opening, it indicates the same page.
Holá,
Yes, your message has been received.
Please advise which operating system is used on your computer, and the
download source you have been using.
--
Regards =dn
--
https
st recent call last):
File "", line 1, in
ValueError: Unknown format code '\x20' for object of type 'str'
>>> f'{ line = :20}'
" line = The mill's closed "
>>> f'{line = :20}'
"line = The mill's closed "
Should the closing brace be considered part of a conversion or
format-specification? The space (I'd like to add) cannot be considered
part of a conversion or format-specification (see BNF, see text of web.ref)!
(when you compare how long it took me to (speed) type this message, and
how long it took me to figure-out that my 'excess space' was causing a
fault in an f-string, the time-cost was about the same. Grrr! (the
relative frustrations-caused, somewhat different!)
Will be interested in explanations, and improvements to understanding.
(but not so much in 'corrections' to my (mis-)behavior - I already pay
that price!)
If you're operating at the 'bleeding edge', will be interested to hear
how the 'new parser' handles same.
Web.Ref:
https://docs.python.org/3/reference/lexical_analysis.html
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
.
How should I approach this?
Does the word "public" mean world-wide, or perhaps only amongst your
work-colleagues?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 15/08/2020 08:01, Dennis Lee Bieber wrote:
On Fri, 14 Aug 2020 16:29:18 +1200, dn via Python-list
declaimed the following:
it is ignored by Python. (yes, this discussion disdains comments!) For
example, whitespace is no problem when it comes to defining a list:
month_names = ['Ja
on package management
https://stackoverflow.com/questions/63320653/private-python-package-management
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
vide an
automatic check of the type of the argument(s) or of the result as in Java.
There are 'pros' and 'cons'!
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
fferings (they've recently/finally moved off their
own platform to edX) at https://www.edx.org/school/stanfordonline
(ignoring all 'the other stuff'). Personal recommendation: anything with
Jennifer Widom is worth attending!
--
Regards =dn
Disclaimer: I use the edX platform,
w.classcentral.com/ for example includes
descriptions of courses available from all over the world...
Web.Refs:
https://www.edx.org/course/programming-for-everybody-getting-started-with-pyt
https://www.coursera.org/learn/python-basics
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
- exactly what happened as a result
- use a descriptive message title that will help other beginners with
similar problems to benefit from answers-given
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
itle that will help other beginners with
similar problems to benefit from answers-given
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
as. Such should offer training and tutorial assistance
to newcomers (in varying degrees) and be part of your choice-criteria.
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
x27;X2.py')
# File X2.py
print("This is X2")
# File X1.py
import os
def fn():
print("This is X1")
os.execl('C:\\Python38\\python.exe', 'X2.py')
# !
# File X2.py
def fn():
print("This is X2")
# File x3.py
import x1
import x2
x1.fn()
x2.fn()
print( "x3 terminating" )
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 24/08/2020 09:04, Chris Angelico wrote:
On Mon, Aug 24, 2020 at 6:39 AM dn via Python-list
wrote:
On 23/08/2020 19:31, Rob Cliffe via Python-list wrote:
On WIndows 10, running Python programs in a DOS box, I would like one
Python program to chain to another. I.e. the first program to be
the $free option allows access to quizzes, tests, and assignments but
not to any grading process. That said, any 'problems', phrased with at a
Python background, could likely be discussed/corrected in posts to the
Python-Tutor List (don't forget to declare the course and noti
e built-in to VS-Code, or
something else?
Please be advised that everyone here is volunteering his/her assistance,
so the more you help us, the better we can help you! Also, are you aware
that there is a Python-Tutor list specifically for Python trainers and
trainees?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
301 - 400 of 540 matches
Mail list logo