Please be more informative! Is this on Windows? Did Python 3 run as
you expected, before you uninstalled it? Exactly how did you try to
launch Python? Exactly what did you observe when it appeared not to run?
Did you try any other ways to run it? What version of Python are you
talking abou
You have strings, and you want to end up with numbers. The numbers are
not integers. Other responders have gone directly to whether you should
use float or decimal as the conversion, but that is a secondary matter.
If you have integers, convert with
integer = int(number_string)
If you don't
On 12/17/2022 1:41 PM, Mats Wichmann wrote:
On 12/17/22 07:15, Thomas Passin wrote:
You have strings, and you want to end up with numbers. The numbers
are not integers. Other responders have gone directly to whether you
should use float or decimal as the conversion, but that is a secondary
On 12/17/2022 3:45 PM, Paul St George wrote:
Thanks to all!
It was the rounding rounding error that I needed to avoid (as Peter J. Holzer
suggested). The use of decimal solved it and just in time. I was about to
truncate the number, get each of the characters from the string mantissa, and
then
>if 5 > 3: a = a * 3
> b = b * 3
That would be a fairly weird construction, neither one thing nor
another. But still, if you really want it that way, this is legal Python:
a = 2; b = 10
if 5 > 3: a = a * 3;\
b = b * 3
print(a, b) # 6 30
On 12/17/2022 6:57 PM, avi.e.gr...@
Pip is fine for most packages, as it looks like you know. Some distros
put some packages in unusual places, and those are the ones that either
are not or should not be installed via pip. Which ones varies from
distro to distro. (I just include this information here for others who
haven't dis
r the bonnet.
Here is a picture:
https://paulstgeorge.com/newton/cyclography.html
Thanks,
Paul
On 17 Dec 2022, at 16:54:05 EST 2022, Thomas Passin wrote:
On 12/17/2022 3:45 PM, Paul St George wrote:
Thanks to all!
It was the rounding rounding error that I needed to avoid (as Peter J. H
On 12/19/2022 9:10 AM, Peter J. Holzer wrote:
On 2022-12-19 09:25:17 +1100, Chris Angelico wrote:
On Mon, 19 Dec 2022 at 07:57, Stefan Ram wrote:
G = Decimal( 6.6743015E-11 )
r = Decimal( 6.371E6 )
M = Decimal( 5.9722E24 )
What's the point of using Decimal if you start with nothing more than
On 12/19/2022 9:59 AM, Weatherby,Gerard wrote:
Personally, I don’t use Windows and avoid it like the plague. Python is easy
to install on Linux and Mac.
That's not been my experience. Windows installers for Python have
worked well for me over many generations of Python releases. It's Linux
On 12/19/2022 11:36 AM, Chris Angelico wrote:
On Tue, 20 Dec 2022 at 03:05, Thomas Passin wrote:
That's not been my experience. Windows installers for Python have
worked well for me over many generations of Python releases. It's Linux
where I've found difficulties. For e
On 12/19/2022 12:28 PM, j via Python-list wrote:
I agree. Wasted too much time on last few installs.
It got to the point I downloaded python-embedded, unzipped it and set
the path manually for my work (needed it as part of a compiler).
I don't set those paths. If you have several different v
her, but it's a required starting point.
Without this kind of information, people who want to help feel frustrated.
jan
On 19/12/2022 17:55, Thomas Passin wrote:
On 12/19/2022 12:28 PM, j via Python-list wrote:
I agree. Wasted too much time on last few installs.
It got to the point I dow
On 12/19/2022 4:54 PM, Thomas Passin wrote:
On 12/19/2022 3:34 PM, j wrote:
I was unclear. I use the full path to the folder with the unzipped
python-embedded. I shouldn't have said 'set'.
I have complained on here before about broken installs but got
indifference. An i
On 12/19/2022 5:16 PM, Chris Angelico wrote:
On Tue, 20 Dec 2022 at 09:12, Thomas Passin wrote:
FWIW, I once set up a Python installation so that it could run from a
USB stick (Windows only). My launcher was a batch file that contained
the following:
@echo off
setlocal
: Find effective drive
On 12/19/2022 9:24 PM, Jach Feng wrote:
Mark Bourne 在 2022年12月20日 星期二凌晨4:49:13 [UTC+8] 的信中寫道:
Jach Feng wrote:
I have a script using the argparse module. I want to enter the string
"step\x0A" as one of its positional arguments. I expect this string has a
length of 5, but it gives 8. Obviously
On 12/20/2022 8:11 AM, Eryk Sun wrote:
[snipped]
I know we're not here to bash Windows, but... drive letters
really need to just die already.
I don't foresee drive-letter names getting phased out of Windows. And
Windows itself is unlikely to get phased out as long as Microsoft
continues to profi
On 12/21/2022 4:32 PM, Patrick EGLOFF wrote:
HI,
Some time ago I wrote a small software using pygame.midi
It worked just fine with Win10/ python 3.9 / SDL 2.0.14 / pygame 2.0.1
I had to change my computer and now I installed Win10 / Python 3.11.1 / SDL
2.0.18 / pygame 2.1.2
The following instru
This issue thread on Github says that everyone is waiting on the
packaging maintainer, but nothing from him for some time.
On 12/22/2022 5:04 AM, Peter J. Holzer wrote:
On 2022-12-21 17:23:47 -0500, Thomas Passin wrote:
The pygame web site says this:
"Pygame still does not run on Python
On 12/22/2022 8:35 AM, hongy...@gmail.com wrote:
I want to extract / scrape the “Matrix form” dataset from the BCS website [1],
a.k.a., the data appeared in the 3rd column.
I tried with the following python code snippet, but still failed to figure out
the trick:
Tell what you observed, and w
On 12/27/2022 8:25 AM, Antoon Pardon wrote:
Op 27/12/2022 om 13:46 schreef Chris Angelico:
On Tue, 27 Dec 2022 at 23:28, Antoon Pardon wrote:
At the moment I am happy with a solution that once the programmer has
imported from QYZlib.threaders that module will used as the threading
module.
On 12/28/2022 5:39 AM, Antoon Pardon wrote:
Op 27/12/2022 om 16:49 schreef Thomas Passin:
On 12/27/2022 8:25 AM, Antoon Pardon wrote:
Op 27/12/2022 om 13:46 schreef Chris Angelico:
On Tue, 27 Dec 2022 at 23:28, Antoon Pardon
wrote:
At the moment I am happy with a solution that once the
Happy New Year, everybody!
I'm new in the Python List, new in Python world, and new in coding.
A few days (weeks?) ago, I faced a problem trying to write a program for an
exercise. I asked for help and nobody answered.
In the meantime, I found a part of the solution, but a part still remains a
mys
that
returns the sorted list (without changing the original list).
The same thing is true of set.add(). The set is changed in place, and
nothing is returned.
On 12/31/2022 10:50 AM, Thomas Passin wrote:
Happy New Year, everybody!
I'm new in the Python List, new in Python world, and new in cod
single post. This may explain why "nobody answered".
However, ten hours after the above/first message, you posted again. This
time as "Thomas Passin".
That message was probably a mistaken one from me. I had composed a
reply but through some mental glitch had to re-do it
On 12/31/2022 10:17 PM, avi.e.gr...@gmail.com wrote:
Agreed, there are lots of pro/con arguments and the feature is what it is
historically and not trivial to change. Inline changes to an object make
sense to just be done "silently" and if there are errors, they propagate the
usual way.
As Guid
On 1/1/2023 8:47 AM, Stefan Ram wrote:
Thomas Passin writes:
Guido had been working on the ABC language for some years before he
developed Python. ABC was intended mainly as a teaching and prototyping
language.
In those days, there used to be a language called "Pascal".
Pa
On 1/1/2023 9:14 PM, avi.e.gr...@gmail.com wrote:
Thomas,
I used PASCAL before C and I felt like I was wearing a straitjacket
at times in PASCAL when I was trying to write encryption/decryption
functions and had to find ways to fiddle with bits. Similar things
were easy in C, and are even
were easy in C, and are
even easier in many more recent languages such as Python.
That's true of pure Pascal. But Thomas was talking about Turbo Pascal
which had extra functions and features for all those "real world" type
things. (And you could insert some inline assembler if all
Since you have an immediate need to have working installations, I
suggest that you downgrade to an earlier version of Python. V3.11.1 is
new and some binary libraries (such as numpy) may not be working
correctly yet with the latest version. Your students will not need any
of the new features t
to fiddle with bits. Similar things were easy in C, and are
even easier in many more recent languages such as Python.
That's true of pure Pascal. But Thomas was talking about Turbo Pascal
which had extra functions and features for all those "real world" type
things. (And you co
On 1/3/2023 10:35 AM, c.bu...@posteo.jp wrote:
Hello,
this posting isn't about asking for a technical solution. My intention
is to understand the design decision Python's core developers made in
context of that topic.
The logging module write everything to stderr no matter which logging
level i
On 1/3/2023 11:51 AM, Stefan Ram wrote:
Thomas Passin writes:
On 1/3/2023 10:35 AM, c.bu...@posteo.jp wrote:
Also, I think it would be confusing to sometimes have logging output go
to stdout and other times go to stderr.
In UNIX, the output of a program can be redirected,
so error
On 1/3/2023 10:35 AM, c.bu...@posteo.jp wrote:
The logging module write everything to stderr no matter which logging
level is used.
The OP wrote this, but it's not so by default. There is a HOW-TO page
that explains this and how to get the logging package to log everything
to a file, along w
On 1/5/2023 6:27 AM, Peter J. Holzer wrote:
On 2023-01-04 12:32:40 -0500, Thomas Passin wrote:
On 1/3/2023 10:35 AM, c.bu...@posteo.jp wrote:
The logging module write everything to stderr no matter which logging
level is used.
The OP wrote this, but it's not so by default.
By default
On 1/5/2023 2:18 PM, Peter J. Holzer wrote:
On 2023-01-05 08:31:40 -0500, Thomas Passin wrote:
The logging system is so configurable that a user could set a different
destination for each level of logging. So it seems that the O.P.'s original
question about why the package's develop
On 1/5/2023 3:29 PM, Grant Edwards wrote:
On 2023-01-05, Thomas Passin wrote:
The logging system is so configurable that...
I find it almost impossible to use unless I copy a working example I
find somewhere. ;)
I'm not at all surprised that the OP didn't understand how it
works.
day, January 5, 2023 at 3:31 PM
To: python-list@python.org
Subject: Re: What should go to stdout/stderr and why Python logging write
everything to stderr?
*** Attention: This is an external email. Use caution responding, opening
attachments or clicking on links. ***
On 2023-01-05, Thomas Passi
On 1/5/2023 4:24 PM, Stefan Ram wrote:
You often can replace threads in tkinter by coroutines using
asyncio when you write a replacement for the mainloop of
tkinter that uses asyncio. Now, try to read only the official
documentation of asyncio and tkinter and figure out only from
this
On 1/5/2023 7:52 PM, Stefan Ram wrote:
Thomas Passin writes:
On 1/5/2023 4:24 PM, Stefan Ram wrote:
You often can replace threads in tkinter by coroutines using
asyncio when you write a replacement for the mainloop of
tkinter that uses asyncio. Now, try to read only the official
documentation
On 1/8/2023 7:54 AM, Angitolol36 wrote:
Hello, i installed phyton in Windows 10 22H2 and i can’t find the program.
I used the repair that doesnt work.
This is as if you had said "I bought a car and it doesn't work". Please
tell us what you did and noticed that caused you to say "i can
On 1/9/2023 9:40 AM, om om wrote:
I'm installing playsound pip install playsound
but it keeps saying No module named playsound
and this error occurs on other packages
Did the installation by pip succeed? if not, what was the error message?
"It keeps saying ...". What keeps saying that (it's no
python than the one that used pip to install it."
On 1/9/2023 11:59 AM, Mats Wichmann wrote:
On 1/9/23 08:30, Thomas Passin wrote:
On 1/9/2023 9:40 AM, om om wrote:
I'm installing playsound pip install playsound
but it keeps saying No module named playsound
and this error occu
On 1/9/2023 2:10 PM, MRAB wrote:
On Windows it's best to use pip via the Python Launcher:
py -m pip show playsound
Sure - I just didn't want to complicate the post any more, though I did
mention it in passing. py is definitely the best way. I wonder how
many people know that py can launch
On 1/9/2023 12:29 PM, om om wrote:
I'm installing playsound and its saying
but it keeps saying No module named playsound
and this error occurs on other packages
when I install it saying Requirement already satisfied: playsound in
c:\users\omrio\appdata\local\programs\python\python39\lib\site-pac
On 1/9/2023 3:00 PM, Eryk Sun wrote:
On 1/9/23, MRAB wrote:
On Windows it's best to use pip via the Python Launcher:
py -m pip show playsound
Python's app distribution on the Microsoft Store doesn't include the
py launcher, and we don't (but should) have a standalone app or
desktop version
functions, classes and
methods have been removed.
- (Hey,* fellow core developer*, if a feature you find important is
missing from this list, let Thomas know .)
For more details on the changes to Python 3.12, see What's new in Python
3.12 <https://docs.python.org/dev/whatsnew/3.12
Just to add a possibly picky detail to what others have said, Python
does not have an "array" type. It has a "list" type, as well as some
other, not necessarily mutable, sequence types.
If you want to speed up list and matrix operations, you might use NumPy.
Its arrays and matrices are heavi
On 1/10/2023 5:11 PM, Chris Angelico wrote:
On Wed, 11 Jan 2023 at 09:08, Thomas Passin wrote:
Just to add a possibly picky detail to what others have said, Python
does not have an "array" type. It has a "list" type, as well as some
other, not necessarily mutable, seque
On 1/10/2023 5:21 PM, Jen Kris wrote:
There are cases where NumPy would be the best choice, but that wasn’t
the case here with what the loop was doing.
To sum up what I learned from this post, where one object derives from
another object (a = b[0], for example), any operation that would alter
On 1/15/2023 6:14 AM, Peter J. Holzer wrote:
On 2023-01-14 23:26:27 -0500, Dino wrote:
Hello, I have built a PoC service in Python Flask for my work, and - now
that the point is made - I need to make it a little more performant (to be
honest, chances are that someone else will pick up from where
On 1/15/2023 2:39 PM, Peter J. Holzer wrote:
On 2023-01-15 10:38:22 -0500, Thomas Passin wrote:
On 1/15/2023 6:14 AM, Peter J. Holzer wrote:
On 2023-01-14 23:26:27 -0500, Dino wrote:
Anyway, my Flask service initializes by loading a big "table" of 100k rows
and 40 columns or
On 1/15/2023 4:49 PM, Stefan Ram wrote:
dn writes:
Some programmers don't realise that SQL can also be used for
calculations, eg the eponymous COUNT(), which saves (CPU-time and
coding-effort) over post-processing in Python.
Yes, I second that! Sometimes, people only re-invent things
in
On 1/16/2023 10:14 AM, Stefan Ram wrote:
However, operating systems and databases also try to cache
information in main memory that is estimated to be accessed
often.
Yes, and you can only know by testing, when that's possible. Also, if
you know that you have the same queries repeated over
On 1/16/2023 11:56 AM, rbowman wrote:
On 16 Jan 2023 15:14:06 GMT, Stefan Ram wrote:
When none of those reasons matter, one can use dictionaries in Python
as well. And then what Chandler Carruth showed us applies:
I am missing something. Where is the data in your dictionary coming from
On 1/17/2023 8:46 PM, rbowman wrote:
On Tue, 17 Jan 2023 12:47:29 +, Stephen Tucker wrote:
2. Does the IDLE in Python 3.x behave the same way?
fwiw
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license()" for more information.
s
e%20other%20orderings%20are%20possible).coding-in-vs-code-on-ubuntu-leading-to-unicode-error/62652695#62652695
Stephen Tucker.
On Wed, Jan 18, 2023 at 9:41 AM Peter J. Holzer wrote:
On 2023-01-17 22:58:53 -0500, Thomas Passin wrote:
On 1/17/2023 8:46 PM, rbowman wrote:
On Tue, 17 Jan
On 1/18/2023 8:56 PM, Michael Torrie wrote:
On 1/18/23 18:01, Dan Kolis wrote:
Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C under
Ubuntu starts it up again. Click go rewrites al the fonts the thing can find in
a few windows Repeated.
Not sure what you mean by "sc
On 1/18/2023 11:46 PM, Thomas Passin wrote:
On 1/18/2023 8:56 PM, Michael Torrie wrote:
On 1/18/23 18:01, Dan Kolis wrote:
Hangs after maybe between 4 and 50 screen rewrites. sometimes CTRL C
under Ubuntu starts it up again. Click go rewrites al the fonts the
thing can find in a few windows
Works fine through 10 "go" button presses on my Windows 10 machine. You
might want to run pylint and pyflakes on it
On 1/19/2023 7:34 AM, Weatherby,Gerard wrote:
Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene
(https://github.com/plasma-umass/scalene) shows it using 9
20 Ulyana /Cinnamon 3.07 GB
Linux kernel 5.4.0-137-generic
tk: 0.1.0
On 1/19/2023 10:06 AM, Thomas Passin wrote:
Works fine through 10 "go" button presses on my Windows 10 machine. You
might want to run pylint and pyflakes on it
On 1/19/2023 7:34 AM, Weatherby,Gerard wrote:
W
On 1/19/2023 11:55 AM, Roel Schroeven wrote:
Op 19/01/2023 om 11:32 schreef Stefan Ram:
dn writes:
>The longer an identifier, the more it 'pushes' code over to the right
or >to expand over multiple screen-lines. Some thoughts on this are
behind >PEP-008 philosophies, eg line-limit.
Raymo
On 1/19/2023 10:21 AM, Dan Kolis wrote:
Hello !
Works fine on my work machine. (Ubuntu 20.04 / 32 G / 32 CPUS). Scalene
(https://github.com/plasma-umass/scalene) shows it using 9 MB of memory.
I ran your test program here and it generates 25 windows on my machine,
and I can click "run" at l
On 1/19/2023 1:30 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
On 2023-01-19 at 12:59:21 -0500,
Thomas Passin wrote:
Well, it's an art, not a science [...]
+1
# Create a plot
g2 = (
ggplot(df2,
aes('Days Since Jan 22', # Comments can clari
s" of sorts.
The code Thomas shared says:
- Set up the beginning of a plot using the arguments provided and create a
DATA STRUCTURE. This structure is a rather complex list structure composed
internally of many kinds of named parts, some optional.
- Then call a verb of sorts, called geom_point()
In another thread ("Improvement to imports, what is a better way ?")
there was a lot of talk about line length, PEP-8, etc. I realized that
one subject did not really come up, yet it can greatly affect the things
we were talking about.
I'm referring to the design of the functions, methods, an
On 1/21/2023 10:11 PM, Jach Feng wrote:
Fail on command line,
e:\Works\Python>py infix2postfix.py "-4^2+5.3*abs(-2-1)/2"
usage: infix2postfix.py [-h] [infix]
infix2postfix.py: error: unrecognized arguments: -4^2+5.3*abs(-2-1)/2
Also fail in REPL,
e:\Works\Python>py
Python 3.8.8 (tags/v3.8.8:02
On 1/22/2023 10:45 AM, Peter J. Holzer wrote:
Notice that this file is in its first release, version 0.0.1 - the metadata
that says it's 'Development Status :: 5 - Production/Stable' seems to be
bogus. So it may very well be buggy.
It is at least too incomplete to be useful. It handles only sin
On 1/21/2023 10:03 AM, Dino wrote:
I have a question that is a bit of a shot in the dark. I have this nice
bash utility installed:
$ tree -d unit/
unit/
├── mocks
├── plugins
│ ├── ast
│ ├── editor
│ ├── editor-autosuggest
│ ├── editor-metadata
│ ├── json-schema-validator
│ │ └─
On 1/23/2023 9:12 PM, Chris Angelico wrote:
On Tue, 24 Jan 2023 at 13:09, Jach Feng wrote:
Chris Angelico 在 2023年1月24日 星期二清晨5:00:27 [UTC+8] 的信中寫道:
On Tue, 24 Jan 2023 at 07:47, Cameron Simpson wrote:
But for Jach Feng: the "--" is really expected as something the user
does when they invoke
On 1/24/2023 10:13 AM, Mike Baskin wrote:
Can you stop please
It's way past time, isn't it!
Sent from Yahoo Mail for iPhone <https://overview.mail.yahoo.com/?.src=iOS>
On Tuesday, January 24, 2023, 10:12 AM, Thomas Passin
wrote:
On 1/23/2023 9:12 PM, Chris Angelico
On 1/25/2023 6:53 AM, 2qdxy4rzwzuui...@potatochowder.com wrote:
They used Java at my last job (as in, the last job I had before I
retired), and it was absolutely awful, for any number of reasons, the
gymnastics (on many levels) required to support "primitive types" being
one of them.
In my one
On 1/25/2023 10:53 AM, Dino wrote:
Hello, I could use something like Apache ab in Python (
https://httpd.apache.org/docs/2.4/programs/ab.html ).
The reason why ab doesn't quite cut it for me is that I need to define a
pool of HTTP requests and I want the tool to run those (as opposed to
run
On 1/25/2023 1:26 PM, Antoon Pardon wrote:
Op 23/01/2023 om 17:24 schreef Johannes Bauer:
Hi there,
is there an easy way to evaluate a string stored in a variable as if
it were an f-string at runtime?
I.e., what I want is to be able to do this:
x = { "y": "z" }
print(f"-> {x['y']}")
This p
On 1/25/2023 2:21 PM, avi.e.gr...@gmail.com wrote:
[...] Sharing can come at many levels. I am fairly certain many
very different languages may still share libraries written ages ago and
written in C or FORTRAN and thus external to other languages and just need
some way to interface to them.
On 1/25/2023 3:29 PM, Dino wrote:
On 1/25/2023 1:21 PM, Thomas Passin wrote:
I actually have a Python program that does exactly this.
Thank you, Thomas. I'll check out Locust, mentioned by Orzodk, as it
looks like a mature library that appears to do exactly what I was hoping.
On 1/25/2023 7:38 PM, Peter J. Holzer wrote:
On 2023-01-25 16:30:56 -0500, Thomas Passin wrote:
Great! Don't forget what I said about potential overheating if you
hit the server with as many requests as it can handle.
Frankly, if you can overheat a server by hitting it with HTTP req
On 1/25/2023 8:36 PM, Chris Angelico wrote:
On Thu, 26 Jan 2023 at 12:06, Thomas Passin wrote:
On 1/25/2023 7:38 PM, Peter J. Holzer wrote:
On 2023-01-25 16:30:56 -0500, Thomas Passin wrote:
Great! Don't forget what I said about potential overheating if you
hit the server with as
On 1/25/2023 11:23 PM, Dino wrote:
On 1/25/2023 3:27 PM, Dino wrote:
On 1/25/2023 1:33 PM, orzodk wrote:
I have used locust with success in the past.
https://locust.io
First impression, exactly what I need. Thank you Orzo!
the more I learn about Locust and I tinker with it, the more I lov
On 1/26/2023 11:02 AM, Grant Edwards wrote:
On 2023-01-26, Thomas Passin wrote:
On 1/25/2023 7:38 PM, Peter J. Holzer wrote:
On 2023-01-25 16:30:56 -0500, Thomas Passin wrote:
Great! Don't forget what I said about potential overheating if you
hit the server with as many requests as i
On 1/26/2023 11:41 AM, Chris Angelico wrote:
On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote:
A nice theory but nothing to do with the real world. I've had a number
of laptops that overheat (or would, if I let test program continue)
running this test program.
Define "overhea
On 1/26/2023 12:57 PM, Chris Angelico wrote:
On Fri, 27 Jan 2023 at 04:31, Thomas Passin wrote:
On 1/26/2023 11:41 AM, Chris Angelico wrote:
On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote:
A nice theory but nothing to do with the real world. I've had a number
of laptops that ove
On 1/26/2023 5:00 PM, Chris Angelico wrote:
On Fri, 27 Jan 2023 at 06:54, Thomas Passin wrote:
Did you get a warning, or did you just decide to stop the test?
(At least) one of the utilities, I forget which one, did show the
temperature in a danger zone.
I'm very curious as to
On 1/26/2023 10:32 PM, Chris Angelico wrote:
On Fri, 27 Jan 2023 at 14:21, Thomas Passin wrote:
2. "What is Tjunction max temperature?"
Tjunction max is the maximum thermal junction temperature that a
processor will allow prior to using internal thermal control mechanisms
to reduce
On 1/26/2023 6:39 PM, Barry wrote:
On 26 Jan 2023, at 17:32, Thomas Passin wrote:
On 1/26/2023 11:41 AM, Chris Angelico wrote:
On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote:
A nice theory but nothing to do with the real world. I've had a number
of laptops that overheat (or woul
On 1/27/2023 4:53 PM, Ivan "Rambius" Ivanov wrote:
Hello Cameron,
On Fri, Jan 27, 2023 at 4:45 PM Cameron Simpson wrote:
On 27Jan2023 15:31, Ivan "Rambius" Ivanov wrote:
I am developing a script that accepts a time zone as an option. The
time zone can be any from pytz.all_timezones. I have
7;s hard to write a function
that's any better than the ones we've seen.
Again, if this is addressed to the OP: I'm not his keeper. 😁
If it's addressed to me: "it" means a function that will take a string
and evaluate it at runtime as if it were an f-string. Sure, wi
On 1/27/2023 3:33 PM, Johannes Bauer wrote:
Am 25.01.23 um 20:38 schrieb Thomas Passin:
x = { "y": "z" }
s = "-> {target}"
print(s.format(target = x['y']))
Stack overflow to the rescue:
No.
Search phrase: "python evaluate string as fstrin
On 1/27/2023 5:10 PM, Christian Gollwitzer wrote:
Am 27.01.23 um 21:43 schrieb Johannes Bauer:
I don't understand why you fully ignore literally the FIRST example I
gave in my original post and angrily claim that you solution works
when it does not:
x = { "y": "z" }
s = "-> {x['y']}"
print(s.
On 1/28/2023 2:50 PM, Johannes Bauer wrote:
Am 28.01.23 um 02:51 schrieb Thomas Passin:
This is literally the version I described myself, except using triple
quotes. It only modifies the underlying problem, but doesn't solve it.
Ok, so now we are in the territory of "Tell us wh
On 1/29/2023 6:09 AM, Christian Gollwitzer wrote:
Am 28.01.23 um 02:56 schrieb Thomas Passin:
On 1/27/2023 5:10 PM, Christian Gollwitzer wrote:
Am 27.01.23 um 21:43 schrieb Johannes Bauer:
I don't understand why you fully ignore literally the FIRST example
I gave in my original pos
On 1/29/2023 4:15 PM, elvis-85...@notatla.org.uk wrote:
On 2023-01-28, Louis Krupp wrote:
On 1/27/2023 9:37 AM, mutt...@dastardlyhq.com wrote:
eval("print(123)")
123
Does OP expect the text to come from the eval or from the print?
x = print( [i for i in range(1, 10)] )
[1, 2, 3, 4, 5
On 1/31/2023 4:24 AM, mutt...@dastardlyhq.com wrote:
On Tue, 31 Jan 2023 12:57:33 +1300
Greg Ewing wrote:
On 30/01/23 10:41 pm, mutt...@dastardlyhq.com wrote:
What was the point of the upheaval of converting
the print command in python 2 into a function in python 3 if as a function
print() doe
On 1/31/2023 6:18 PM, Greg Ewing wrote:
On 1/02/23 7:33 am, Stefan Ram wrote:
Thomas Passin writes:
Some people say it is a function now so that you can redefine it.
Hmm, I didn't write these quotes. Maybe someone got confused by the
depth of the nested replies in this thread.
On 2/1/2023 12:36 PM, אורי wrote:
Thank you all.
I'm not familiar with snap update but I did `sudo apt update` & `sudo apt
upgrade`, but about one or two months ago.
אורי
u...@speedy.net
You can probably install it from the deadsnakes repository:
sudo add-apt-repository ppa:deadsnakes/ppa
M
On 2/1/2023 1:37 PM, Jack Dangler wrote:
If you're not familiar with snap, lookup 'snap' 'ubuntu' ...
Many people would rather avoid snap if possible ...
On 2/1/23 13:13, Thomas Passin wrote:
On 2/1/2023 12:36 PM, אורי wrote:
Thank you all.
I'm not famil
he highest Debian-supported version of Python on Buster is still 3.7+).
On Wed, Feb 1, 2023 at 8:14 PM Thomas Passin <mailto:li...@tompassin.net>> wrote:
On 2/1/2023 12:36 PM, אורי wrote:
> Thank you all.
>
> I'm not familiar with snap update but I did `sudo ap
On 2/3/2023 4:18 PM, transreductionist wrote:
Here is the situation. There is a top-level module (see designs below)
containing code, that as the name suggests, manages an ETL pipeline. A
directory is created called etl_helpers that organizes several modules
responsible for making up the pipel
On 2/3/2023 5:14 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
Keep It Simple: Put all four modules at the top level, and run with it
until you falsify it. Yes, I would give you that same advice no matter
what language you're using.
In my recent message I supported DESIGN 1. But I really don
On 2/4/2023 12:24 AM, dn via Python-list wrote:
The transform is likely dictated by your client's specification. So,
another separation. Hence Design 1.
There is a strong argument for suggesting that we're going out of our
way to imagine problems or future-changes (which may never happen). If
I haven't worked specifically with a Treeview, but I think you need to
detect the onClick event (or an onSelect event if there is one) and have
that trigger the flashing. Otherwise the selection probably overwrites
styling that you added. That's what I do for classic Tk buttons to make
them fl
701 - 800 of 3671 matches
Mail list logo