On 10/19/23 19:32, Bongo Ferno via Python-list wrote:
>
>> You can actually just do that with simple assignment!
>>
>> short_view = my_object.stuff.long_stuff.sub_object
>> print(short_view.some_method())
>
> but then have to delete the variable manually
>
> del short_view
Why? It's just a
On 10/25/23 05:51, o1bigtenor via Python-list wrote:
> Looks like I have another area to investigate. (grin!)
> Any suggestions?
Seems to me you're trying to run before you have learned to walk.
Slow down, go to the beginning and just learn python, write some code,
see if it runs. Go through the
On 10/26/23 06:34, o1bigtenor wrote:
> Interesting - - - - ". . . see if it runs." - - - that's the issue!
> When the code is accessing sensors there isn't an easy way to
> check that the code is working until one has done the all of the
> physical construction. If I'm trying to control a pulsatio
On 10/26/23 10:41, Michael Torrie wrote:
> By the way you definitely can step
> through MicroPython code one line at a time with a remote debugger, say
> with Visual Studio Code.
I meant to edit that bit out. After doing a bit more research, it
appears remote debugging with MicroPython may not b
On 11/1/23 04:09, Simon Connah via Python-list wrote:
> Hi,
>
> I'm building a simple project using smtplib and have a question. I've been
> doing unit testing but I'm not sure how to check if an email message is
> valid. Using regex sounds like a bad idea to me and the other options I found
>
On 11/2/23 00:42, Simon Connah via Python-list wrote:
> Basically I'm writing unit tests and one of them passess in a string
> with an invalid email address. I need to be able to check the string
> to see if it is a valid email so that the unit test passess.
If you truly have managed to code an
On 11/4/23 02:51, Simon Connah via Python-list wrote:
> Wow. I'm half tempted to make a weird email address to see how many websites
> get it wrong.
>
> Thank you for the link.
Nearly all websites seem to reject simple correct email addresses such
as myemail+sometext@example.domain. I like to u
On 11/7/23 18:26, Julieta Shem via Python-list wrote:
> For the first time I'm trying to write a tail-recursive
> square-and-multiply and, even though it /seems/ to work, I'm not happy
> with what I wrote and I don't seem to understand it so well.
>
> --8<---cut here---star
On 12/22/23 11:42, Thomas Passin via Python-list wrote:
> There is some important context that is missing here. Python on Windows
> does not normally install to that location. That is not even a Windows
> path, neither by directory name nor by path separators.
No, that's just the way the py la
On 12/22/23 07:02, Thomas Passin via Python-list wrote:
> On my Windows 10 machine, Python scripts run without a shebang line.
> Perhaps Windows 11 has added the ability to use one, but then you would
> need to use the actual location of your Python executable.
Yes if you associate .py or .pyw w
On 12/22/23 20:56, Thomas Passin via Python-list wrote:
> It's just better not to make assumptions about which version of Python
> will be running. Just specify it yourself when you can, and then you can
> be sure.
Precisely, which is why the shebang is so useful, even on Windows with
py launche
On 12/22/23 20:16, rbowman via Python-list wrote:
> On Fri, 22 Dec 2023 17:27:58 -0700, Michael Torrie wrote:
>
>> Using the py launcher as your Windows association with .py and.pyw files
>> you can have multiple versions of python installed and everything works
>> as it should, according to your
On 8/13/24 3:24 AM, Robin Becker via Python-list wrote:
> I am clearly one of the troglodytes referred to in recent discussions around
> the PSF. I've been around in python land
> for far too long, my eyesight fails etc etc.
>
> I feel strongly that a miscarriage of justice has been made in the 3
On 11/14/24 12:03 AM, Left Right wrote:
>> On any Unix system this is untrue. Rotating a log file is quite simple:
>
> I realized I posted this without cc'ing the list:
> http://jdebp.info/FGA/do-not-use-logrotate.html .
>
> The link above gives a more detailed description of why log rotation
>
On 11/12/24 12:10 PM, Left Right via Python-list wrote:
> But, it's
> impossible to reliably rotate a log file. There's always a chance
> that during the rotation some log entries will be written to the file
> past the point of rotation, but prior to the point where the next logs
> volume starts.
On 12/9/24 12:19 PM, marc nicole via Python-list wrote:
> Hello,
>
> The fatal error exits the program with a code -1 while referencing the
> memory address involved and nothing else.
>
> How to catch it in Python 2.7?
Does the problem occur with Python 3.x? At this date, Python 2.7 is
only sup
On 12/26/24 12:34 AM, aotto1968 via Python-list wrote:
> sorry you don't understand the problem…
>
> > You managed to make a build of Python that attempts to link to a DLL
>
> I never touch the OpenSUSE python. the OpenSUSE python try to use my
> sqalite3.
The *only* mechanism that would cause
On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
> On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
> wrote:
>> It is not only an *usage* error it is also an *security* error because:
>>
>> 1) "cnf" is using OS python
>> 2) os "root" python
>> 3) using **my** local non-root librar
On 12/25/24 8:55 PM, Michael Torrie wrote:
> This is Python related, but
> it's not necessarily python's fault per se.
It's also a good reminder to use venv. Then there's no way of
activating your custom python with its custom sqlite3 library unless you
explicitly activate the venv.
--
https://m
On 12/25/24 10:46 PM, Chris Angelico wrote:
> Right. That's exactly what would happen if he'd built Python using
> absolute paths to libraries, which is the normal way to do it. And so
> the solution is to rebuild Python using absolute paths to libraries.
You're right. Definitely appears to be a p
On 12/14/24 10:31 AM, aotto1968 via Python-list wrote:
> The CORE problem is that python3 works well in *my* environment but the
> installation is done as root and root does not use *my* environment.
>
> the mono build search for a working python3 and find *my*
> > HOME/ext/x86_64-suse-linux-gnu/
On 12/16/24 12:08 AM, aotto1968 via Python-list wrote:
> If I read the answers I come to the conclusion that the "supporters" at
> python doesn't ever understand the problem.
Sorry you feel that way. Various people gave the best advice they could
based on what you had provided. You were given s
On 12/13/24 1:56 PM, aotto1968 via Python-list wrote:
> the problem is *not* to setup an environment variable, the problem is that
> python is *not*
> able to setup the *python* environment by it self.
You're mistaken in this case. Nothing you've posted indicates the
problem is in Python itself.
On 12/14/24 2:56 AM, Peter J. Holzer via Python-list wrote:
> So it might be because it's in a different directory ("HOME/ext/..." is
> a relative path. That will not work in a different directory. Also
> "HOME" is a strange choice for a directory name. Did you mean $HOME?) or
> because the accepta
On Tue, Dec 31, 2024, 17:04 Tim Johnson via Python-list <
python-list@python.org> wrote:
> I am as of today, getting an import error for mutagen. Mutagen package
> is installed at /root/.local/share/pipx/shared/lib/python3.12/site-packages
> Pip-installed packages that go to /root/.local are onl
On 12/24/24 10:27 AM, marc nicole via Python-list wrote:
> the diagram is also attached here
This text-only mailing list does not allow attachments, just FYI.
--
https://mail.python.org/mailman/listinfo/python-list
26 matches
Mail list logo