resist accessing information not available as the
> user, and avoid the need to run as root at all.
>
> Cheers,
> Cameron Simpson
I appreciate the advice and will consider it.
--
GNU/Linux user #557453
The cow died so I don't need your bull!
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 05 May 2017 09:58:02 +1000, Chris Angelico wrote:
> On Fri, May 5, 2017 at 9:50 AM, Wildman via Python-list
> wrote:
>> I'm afraid that won't work. The user environment is different
>> than root. A different set of variables. However you have
>> gi
gentoo/hardened/259011
--
GNU/Linux user #557453
The cow died so I don't need your bull!
--
https://mail.python.org/mailman/listinfo/python-list
login = lambda: pwd.getpwuid(os.getuid())[0]
> default_username = getlogin()
I appreciate the reply but the problem has been fixed.
--
GNU/Linux user #557453
The cow died so I don't need your bull!
--
https://mail.python.org/mailman/listinfo/python-list
Googling "refactoring python code to create functions" I came to
https://wingware.com/doc/intro/tutorial-refactoring where the "Extract
Function/Method" does what I want. Is there a free Python tool that does this?
--
https://mail.python.org/mailman/listinfo/python-list
happens on 10). I've searched for online help
and seen nothing that I can follow, references to PIP are over my head. It's
very frustrating. Can somebody help?
Really appreciate it.
Thanks
-John
--
https://mail.python.org/mailman/listinfo/python-list
Did you call freeze_support() function after script start?
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.freeze_support
--
https://mail.python.org/mailman/listinfo/python-list
fficient way for improving my
general programming skills? Do you have any other suggestions or tips?
Much thanks for your time!
Mirko
--
https://mail.python.org/mailman/listinfo/python-list
have been anticipated when the
Python developers chose to make this change.
It's no wonder that some people (often women) who don't like contention,
find this list rather hostile.
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 27 Jun 2017 03:31:57 +1000, Chris Angelico wrote:
> On Tue, Jun 27, 2017 at 1:16 AM, Ben S. via Python-list
> wrote:
>> I installed Python v3.6.1 on win 7. Afterwards I tried to execute the
>> following simple python script from webpage
>> http://www.pythonforb
the world. I know! Let's all go and drop nuclear
> bombs on them. That'll fix the problem!
>
> OR... you could try just filtering it all out, and not stooping to their
> level.
>
> ChrisA
i say nuke em/ otherwise my /dev/null is going to need expanding ;-)
--
"To YOU I'm an atheist; to God, I'm the Loyal Opposition."
-- Woody Allen
--
https://mail.python.org/mailman/listinfo/python-list
ight help.
I have sent a couple but if everyone here did it maybe
Google will pay attention and do something. The same goes
for our Italian "friend".
--
GNU/Linux user #557453
The cow died so I don't need your bull!
--
https://mail.python.org/mailman/listinfo/python-list
python.org/mailman/listinfo/python-list
the tool scraps TPB proxies, which aren't legal per se. So if
I package and publish this tool, will it be accepted?
If someone could assist me with this?
Thank you.
Regards,
Rijul Gulati
--
https://mail.python.org/mailman/listinfo/python-list
ropriate directories.
>
> Any advice here?
> thanks fritz
yes
please do not top post
--
My face is new, my license is expired, and I'm under a doctor's care
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 25 Jul 2017 21:44:22 +, Grant Edwards wrote:
> On 2017-07-25, Wildman via Python-list wrote:
>
>> The posts are being made through Google Groups. Forwarding
>> the posts with headers to groups-ab...@google.com might help.
>
> I never has in the past. I (a
etely legal?
I could really use sone advice here.
Thank you.
--
https://mail.python.org/mailman/listinfo/python-list
#x27;t bother, given how low quality a lot of movies are these days...
>
> ChrisA
Reputable Pirate, now there is an oxymoron ;-)
--
It is the quality rather than the quantity that matters.
-- Lucius Annaeus Seneca
--
https://mail.python.org/mailman/listinfo/python-list
open-source.
Project link: https://github.com/kryptxy/torrench
I plan on hosting it on pypi as well as AUR (Arch User repository) :)
Hope you like this tool, and find it useful.
Feedback/suggestions are highly appreciated.
--
https://mail.python.org/mailman/listinfo/python-list
already have uploaded the package. But it's not visible
on pypi (neither under packages in my dashboard).
--
https://mail.python.org/mailman/listinfo/python-list
unction calls.)
if these are beginners with no basic programming knowledge then
try not to confuse them with anything unduly complicated, I would even go
so far as to start with psuedo code on a pen & paper processor & only
introduce the concepts of different data types only when they have
progressed to the point that they need to know.
--
Round Numbers are always false.
-- Samuel Johnson
--
https://mail.python.org/mailman/listinfo/python-list
ouse people, not from the internet.
The question would still be should the input be trusted & I would still
say no, accidental errors can cause as much damage as malicious input if
not correctly sanitised.
my experience with regex's is insufficient to help with any of the rest
of this query
--
For some reason, this fortune reminds everyone of Marvin Zelkowitz.
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 14 Aug 2017 15:48:02 -0700, zhilongch64 wrote:
Please do the whole world a big favour & NEVER reply to spam
if no-one responded this heinous practice would die.
--
I hate users
you sound like a sysadmin already!
--
https://mail.python.org/mailman/listinfo/python-list
--
GNU/Linux user #557453
May the Source be with you.
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 16 Aug 2017 19:11:16 +0100, MRAB wrote:
> On 2017-08-16 18:57, Wildman via Python-list wrote:
>> I am working on a program for the Linux platform that
>> reports system information. The program reports screen
>> information, number of monitors, resolution of each
On Wed, 16 Aug 2017 14:33:27 -0500, Wildman wrote:
> On Wed, 16 Aug 2017 19:11:16 +0100, MRAB wrote:
>
>> On 2017-08-16 18:57, Wildman via Python-list wrote:
>>> I am working on a program for the Linux platform that
>>> reports system information. The program
ring similar project-structure). They can be
really helpful. I did have a look at youtube-dl source. Not helpful. Seemed too
complex.
Hope for some positive response.
Thank you.
--
https://mail.python.org/mailman/listinfo/python-list
ing the indentation to place it after the class block instead.
>
> Thank you that had me bugged I just couldn't see it.
>
> Cheers
>
> Sayth
I think you shod also print tree_frog.type not frog.type
you create the object tree_frog which is of type frog.
Although not a fault it is also recommended that classes have a capital
first letter to make them more visible*
* this is imply style guidance & not compulsory see pep8 for more detail
when you feel ready for it.
--
who gives a shit about US law
anyone living in the US.
--
https://mail.python.org/mailman/listinfo/python-list
something that windows users have all but forgotten
exists.
--
The trouble is that things *never* get better, they just stay the same,
only more so.
(Eric)
--
https://mail.python.org/mailman/listinfo/python-list
es this syntax enable you to specify the value to be returned?
What new benefits would this addition provide beyond what is already
available?
--
My father was a saint, I'm not.
-- Indira Gandhi
--
https://mail.python.org/mailman/listinfo/python-list
emory address, and get the same id.
>
> --Ned.
This is all implementation dependent
--
If someone says he will do something "without fail", he won't.
--
https://mail.python.org/mailman/listinfo/python-list
How to run "pydoc3 -p port" in background?
TIA
James
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-08 21:59, Alan Bawden via Python-list wrote:
Karsten Hilbert writes:
Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more
information.
/listinfo/python-list
On 2024-10-11 22:13, AVI GROSS via Python-list wrote:
Is there some utility function out there that can be called to show what the
regular expression you typed in will look like by the time it is ready to be
used?
Obviously, life is not that simple as it can go through multiple layers with
each
On 2024-10-08 19:30, Karsten Hilbert via Python-list wrote:
Am Mon, Oct 07, 2024 at 08:35:32AM -0500 schrieb Michael F. Stemper via
Python-list:
I'm trying to discard lines that include the string "\sout{" (which is TeX, for
those who are curious. I have tried:
if not r
On 2024-10-07 14:35, Michael F. Stemper via Python-list wrote:
I'm trying to discard lines that include the string "\sout{" (which is TeX, for
those who are curious. I have tried:
if not re.search("\sout{", line):
if not re.search("\sout\{", line):
are scripts for poetry lock, poetry install, and whatever else is
needed.
A user pulls down the repository and runs
1. poetry lock
2. poetry install
And they have their environment with the proper dependencies.
On Sun, Oct 6, 2024, 09:47 Karsten Hilbert via Python-list <
python-list@python.
hey have their environment with the proper dependencies.
>
> On Sun, Oct 6, 2024, 09:47 Karsten Hilbert via Python-list <
> python-list@python.org> wrote:
>
>> Am Sun, Oct 06, 2024 at 12:21:09AM +0200 schrieb Karsten Hilbert via
>> Python-list:
>>
>>
ot;\\sout\{" : 1 match ( 7 steps, 360 μs )
--
https://mail.python.org/mailman/listinfo/python-list
but using it in a conversation would be campy.
--
https://mail.python.org/mailman/listinfo/python-list
hanks, that was quick and adding square brackets fixed my code.
>
> Me rocking Python?
>
> /Martin
You have to understand Stefan tries to use American slang, not always
entirely accurately. I think 'bee's knees' died out around 1931.
--
https://mail.python.org/mailman/listinfo/python-list
Oh god I am sorry :/ I somehow missed information about cache_info field.
I was expecting to see those cache instructions as normal opcodes. So its
working as expected.
Thanks for your help.
M.
št 10. 10. 2024 o 18:53 Barry napísal(a):
>
>
> > On 10 Oct 2024, at 14:18, stopa via
> On 10 Oct 2024, at 14:18, stopa via Python-list
> wrote:
>
> Hello,
> I noticed the change in dis module, no longer requiring show_caches to be
> set to True to show cache instructions. However I am not able to display
> them with get_instructions.
> Is ther
t is the probability of replacing os.lstat, os.close or os.rmdir from
another thread at just the right time?
--
https://mail.python.org/mailman/listinfo/python-list
> On 24 Oct 2024, at 15:07, Christian Buhtz via Python-list
> wrote:
>
> On one hand Fedora seems to use a tool called "mock" to build packages in a
> chroot environment.
> On the other hand the test suite of "Back In Time" does read and write to t
t calls, so they're in the same
thread.
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-24 16:17, Left Right via Python-list wrote:
From reading the code where the exception is coming from, this is how
I interpret the intention of the author: they build a list (not sure
why they used list, when there's a stack datastructure in Python)
which they use as a stack,
meshes with your own learning style.
It isn't a beginners tutorial but at some point 'Python Distilled' is
helpful.
https://www.dabeaz.com/python-distilled/
Usual disclaimer: i don't know Beazley and am not getting any kickback.
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-29 13:56, Loris Bennett via Python-list wrote:
Hi,
With Python 3.9.18, if I do
try:
with open(args.config_file, 'r') as config_file:
config = configparser.ConfigParser()
config.read(config_file)
print(config.sections()
63967
occasional updates to the project are available as screenshots on social media.
: Facebook -> https://www.facebook.com/profile.php?id=100069563501101
--
https://mail.python.org/mailman/listinfo/python-list
On 6/11/24 10:08, Jason Friedman via Python-list wrote:
(a) An error-prone "feature" is returning -1 if a substring is not found
by "find", since -1 currently refers to the last item. An example:
>>> s = 'qwertyuiop'
>>> s[s.find('r
> On 31 Oct 2024, at 16:42, Left Right via Python-list
> wrote:
>
> MS Windows doesn't have or use
> terminals (that's more of a Unix-related concept).
Windows does now. They implemented this feature over the last few years.
Indeed they took inspiration from how li
olour output and cursor movement all work.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
Greetings
There are mountains of books out there.
Any suggestions for documents for a just learning how to program and
starting with Python (3)?
Preference to a tool where I would be learning by doing - - - that
works well for me.
TIA
--
https://mail.python.org/mailman/listinfo/python-list
On 28/10/24 11:51, o1bigtenor via Python-list wrote:
Greetings
There are mountains of books out there.
Any suggestions for documents for a just learning how to program and
starting with Python (3)?
Preference to a tool where I would be learning by doing - - - that
works well for me
> On 26 Oct 2024, at 12:11, Christian Buhtz via Python-list
> wrote:
>
> As you can see in the linked issue it seems it was an incompatibility
> between the version of Python and PyFakeFS.
>
> In the end it was a Fedora packaging bug because that pyfakefs version
>
d for blind users on how to effectively use Python's
IDLE.
Any guidance or resources you could provide would be greatly appreciated.
Thank you for your assistance.
Best regards,
Jeff
--
https://mail.python.org/mailman/listinfo/python-list
On 12/11/24 10:17, Cameron Simpson via Python-list wrote:
On 11Nov2024 18:24, dieter.mau...@online.de
wrote:
Loris Bennett wrote at 2024-11-11 15:05 +0100:
I have the following in my program:
try:
logging.config.fileConfig(args.config_file)
config = configparser.ConfigParser
On 8/11/24 14:40, Mild Shock via Python-list wrote:
Well you can use your Browser, since
JavaScript understand post and pre increment:
Question: are we talking Python or JavaScript?
So we have x ++ equals in Python:
Trying to find a word-for-word translation serves as badly in
computer
On 2024-10-24 08:33, Christian Buhtz via Python-list wrote:
Hello,
I am upstream maintainer of "Back In Time" [1] investigating an issue a
distro maintainer from Fedora reported [2] to me.
On one hand Fedora seems to use a tool called "mock" to build packages
in a chroot
On 2024-10-25 17:25, marc nicole via Python-list wrote:
Hello Python fellows,
I hope this question is not very far from the main topic of this list, but
I have a hard time finding a way to check whether audio data samples are
containing empty noise or actual significant voice/noise.
I am using
On 2024-10-31 06:47, Loris Bennett via Python-list wrote:
Jon Ribbens writes:
On 2024-10-30, Loris Bennett wrote:
Jon Ribbens writes:
On 2024-10-30, Loris Bennett wrote:
Jon Ribbens writes:
As per the docs you link to, the read() method only takes filename(s)
as arguments, if you have
On 19/09/24 02:49, Ulrich Goebel via Python-list wrote:
Hi,
Debian Linux seems to love Python 3.7 - that is shown by apt-get list, and it's
installed on my Debian Server.
But I need at least Python 3.8
Is there a repository which I can give to apt to get Python 3.8 or later?
Or do I r
> On 20 Sep 2024, at 21:01, Loris Bennett via Python-list
> wrote:
>
> Hi,
>
> Apologies if the following description is to brief - I can expand if no
> one knows what I'm on about, but maybe a short description is enough.
>
> I am developing a command lin
> On 30 Sep 2024, at 06:52, Abdur-Rahmaan Janhangeer via Python-list
> wrote:
>
>
> import polars as pl
> pl.read_json("file.json")
>
>
This is not going to work unless the computer has a lot more the 60GiB of RAM.
As later suggested a streaming pars
On 8/11/24 11:15, Greg Ewing via Python-list wrote:
On 8/11/24 3:04 am, Mild Shock wrote:
This only works for small integers. I guess
this is because tagged pointers are used
nowadays ?
No, it's because integers in a certain small range are cached. Not sure
what the actual range is now
On 2024-10-15 21:16, Martin Schöön via Python-list wrote:
Some years ago I created a Python program that reads GPS data and
creates an animation stored in an mp4 file. Not very elegant but it
worked. Not very original as it was based on the example found here:
https://shorturl.at/dTCZZ
Last
> On 14 Nov 2024, at 14:07, Loris Bennett via Python-list
> wrote:
>
> I don't quite understand what your suggestion is. Do you mean that I
> should log to stderr and then run my program as
>
> my_program ... 2>&1 | logger
On almost all Linux distros you
On 30.12.24 18:29, Michael Torrie wrote:
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
sqalite
On 25/12/24 23:52, Abdur-Rahmaan Janhangeer via Python-list wrote:
Hey all,
I have been following discussions on Discourse (discuss.python.org) these
last times.
I think that it definitely lacks some of the joys of the mailing list:
1/ Categories
The discussion has fixed categories. No
,
Carlo
Carlo Pecoraro, Ph.D
Physalia-courses DIRECTOR
i...@physalia-courses.org
mobile: +49 17645230846
--
https://mail.python.org/mailman/listinfo/python-list
been supplanted by the (maintained)
'yt-dlp' these days
J^n
--
https://mail.python.org/mailman/listinfo/python-list
so.6 (0x7f9c5d1f9000)
libc.so.6 => /lib64/libc.so.6 (0x7f9c5d002000)
/lib64/ld-linux-x86-64.so.2 (0x7f9c5dab4000)
If I read the answers I come to the conclusion that the "supporters" at python
doesn't ever understand the problem.
--
https://mail.python.org/mailman/listinfo/python-list
On 14.12.24 10:56, Peter J. Holzer wrote:
On 2024-12-13 11:36:01 +0100, aotto1968 via Python-list wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some
configuration error because apparently a __private__ python installation
__isn't__
> On 13 Dec 2024, at 15:54, aotto1968 via Python-list
> wrote:
>
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared
> libraries: libpython3.12d.so.1.0: cannot open shared object file: No such
> file or directory
This is a debug b
On 13.12.24 19:24, Barry wrote:
On 13 Dec 2024, at 15:54, aotto1968 via Python-list
wrote:
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared
libraries: libpython3.12d.so.1.0: cannot open shared object file: No such file
or directory
This is a debug build
the right environment from
the installation directory of the *python3* executable.
even the `sudo -E make install` with "-E, --preserve-env" does help.
--
https://mail.python.org/mailman/listinfo/python-list
.1 (0x7f9c5d345000)
libm.so.6 => /lib64/libm.so.6 (0x7f9c5d1f9000)
libc.so.6 => /lib64/libc.so.6 (0x7f9c5d002000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9c5dab4000)
--
https://mail.python.org/mailman/listinfo/python-list
allation directory of the *python3* executable.
--
https://mail.python.org/mailman/listinfo/python-list
On 12/01/25 03:28, Chris Green via Python-list wrote:
I'm looking for Python packages that can help with text mode input,
i.e. for use with non-GUI programs that one runs from the command
prompt in a terminal window running a bash shell or some such.
What I'm specifically after i
On 18/01/25 12:33, Ian Pilcher via Python-list wrote:
I am making my first attempt to use type hinting in a new project, and
I'm quickly hitting areas that I'm having trouble understanding. One of
them is how to write type hints for a method decorator.
Here is an example that illu
This is what I was going to suggest. Rich is super easy to use.
--
https://mail.python.org/mailman/listinfo/python-list
On 25/12/24 08:00, Michael Torrie via Python-list wrote:
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.
Many devs use Markdown (or similar) text-only file-formats for technical
On 25/12/24 06:27, marc nicole via Python-list wrote:
Hello community,
I have created a Python code where a main algorithm uses three different
modules (.py) after importing them.
To illustrate and describe it I have created the following component
diagram?
[image: checkso.PNG]
Could it be
e of my code and how the modules
> relate to each other.
On 25/12/24 23:08, marc nicole via Python-list wrote:
the purpose of the diagram is to convey a minimalistic idea about the
structure of the code/implementation/software
In which case, and assuming the "algorithm" is the ap
4/python3.6/sqlite3/__init__.py", line 23, in
from sqlite3.dbapi2 import *
File "/usr/lib64/python3.6/sqlite3/dbapi2.py", line 27, in
from _sqlite3 import *
ImportError:
/usr/lib64/python3.6/lib-dynload/_sqlite3.cpython-36m-x86_64-linux-gnu.so:
undefined symbol: sqlite3_trace
--
https://mail.python.org/mailman/listinfo/python-list
/lib64/libsqlite3.so.0 ->
libsqlite3.so.0.8.6
> ls -al NHI1_EXT/lib64/libsqlite3.so.0.8.6
-rwxr-xr-x 1 dev1usr users 3851872 23. Dez 22:09
NHI1_EXT/lib64/libsqlite3.so.0.8.6
--
https://mail.python.org/mailman/listinfo/python-list
On 2025-01-10 19:15, Tim Johnson via Python-list wrote:
Using Python 3.12.3 on Ubuntu 24.04
I've converted a legacy python2 script to python3. All went well.
However, a glitch from python2 remains.
The script uses dmenu to create menus to pick applications. Applications
are then invoked
(check_if_stream_is_pipe(sys.stdin))
--
https://mail.python.org/mailman/listinfo/python-list
On 25.12.24 23:55, Chris Angelico 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 library
Yes.
On 26.12.24 06:46, Chris Angelico wrote:
On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list
wrote:
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
On 26.12.24 04:55, Michael Torrie wrote:
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&q
On 26.12.24 04:55, Michael Torrie wrote:
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&q
usr/bin/python3 OpenSUSE installation using
parts of *my* local *user* setup.
--
https://mail.python.org/mailman/listinfo/python-list
er used. I also appreciated f
strings when they were introduced, the walrus operator, and other
enhancements.
Another part of my renewed interest was the advent of many
microcontrollers capable of running MicroPython, which is a subset of
Python 3.x.
--
https://mail.python.org/mailman/listinfo/python-list
he basics
but overall I enjoyed it.
--
https://mail.python.org/mailman/listinfo/python-list
On 17/02/25 01:50, Jan Erik Moström via Python-list wrote:
I'm looking for a book that would teach me the lastest and greatest parts of
Python, does anyone have any recommendations?
I've looked at python.org and pythonbooks.org but I couldn't decide which one
to get.
I used to
n Distilled'. The author doesn't enumerate Python 3
features specifically but as the title suggests hits the important
concepts.
https://www.dabeaz.com/python-distilled/
--
https://mail.python.org/mailman/listinfo/python-list
On 16-02-2025 13:50, Jan Erik Moström via Python-list wrote:
I'm looking for a book that would teach me the lastest and greatest parts of
Python, does anyone have any recommendations?
I've looked at python.org and pythonbooks.org but I couldn't decide which one
to get.
I us
1401 - 1500 of 5713 matches
Mail list logo