Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: library for C but written in Python
Post: library for C but written in Python

has anyone here ever created a library for C but written in Python? i assume the hardest part is the arguments and their types. is there any particular documentation or developed code focusing on th...
Skaperen News and Discussions 1 133 Apr-15-2024, 02:47 AM
    Thread: i have not decided which API to use
Post: RE: i have not decided which API to use

quite a variety of tutorials there at zetcode.com. and plenty at doc.qt.io. thanks for the links.
Skaperen GUI 3 287 Apr-14-2024, 02:21 AM
    Thread: i have not decided which API to use
Post: i have not decided which API to use

i have not decided which GUI API to use in Python. i am at the stage where having some single-purpose code examples would be helpful. sources of example code seem to all be focused on a single API l...
Skaperen GUI 3 287 Apr-05-2024, 04:27 AM
    Thread: the quest for a mutable string (buffer)
Post: RE: the quest for a mutable string (buffer)

that looks like a possibility. but it also looks like using a list. i think i need to try it and see how well it works. i do want to avoid having to code 'foobar' as 'f','o','o','b','a','r'. thing...
Skaperen News and Discussions 2 200 Apr-04-2024, 12:42 PM
    Thread: the quest for a mutable string (more)
Post: the quest for a mutable string (more)

i've been thinking about making Python easier to handle mutable strings in the type of bytearray. this should be possible in the definition of the language an its tools. there are many places where ...
Skaperen News and Discussions 0 126 Apr-04-2024, 04:01 AM
    Thread: the quest for a mutable string (buffer)
Post: the quest for a mutable string (buffer)

so often i am taking some logic from some program not in Python and need to implement it in Python. so many of these programs are constructing strings by putting string parts in over other string par...
Skaperen News and Discussions 2 200 Apr-04-2024, 03:46 AM
    Thread: reading a file like the unix tail -f command does
Post: RE: reading a file like the unix tail -f command d...

i think that excerpt tells me all i need to know ... that Python doesn't get in the way of doing this, such as setting a flag when reading get EOF that prevents further reading. well, maybe seek to S...
Skaperen News and Discussions 2 253 Mar-31-2024, 12:09 AM
    Thread: reading a file like the unix tail -f command does
Post: reading a file like the unix tail -f command does

i want to have my script read a file that another process may or may not have written more to that file extending its size. in unix, the "tail -f" command does this once it has reached EOF. i want m...
Skaperen News and Discussions 2 253 Mar-29-2024, 07:48 AM
    Thread: a better way to code this to fix a URL?
Post: RE: a better way to code this to fix a URL?

i understood post #8 until the output. the output at the end of #8 did not make sense to me. (Mar-19-2024, 09:15 AM)DeaD_EyE Wrote: Automatic correction of human input, leads to funny outcomes.thi...
Skaperen News and Discussions 10 678 Mar-27-2024, 01:10 AM
    Thread: a better way to code this to fix a URL?
Post: RE: a better way to code this to fix a URL?

now, i'm totally lost. i just want to keep it simple and obvious or well explained in comments.
Skaperen News and Discussions 10 678 Mar-25-2024, 11:59 PM
    Thread: a better way to code this to fix a URL?
Post: RE: a better way to code this to fix a URL?

(Mar-22-2024, 04:58 PM)Gribouillis Wrote: re.sub(r'^(?:(?:(?:(?:(?:h?t)?t)?p)?s)?\:)?//', 'https://', url)i don't understand it, but it seems to work.
Skaperen News and Discussions 10 678 Mar-25-2024, 03:26 AM
    Thread: a better way to code this to fix a URL?
Post: RE: a better way to code this to fix a URL?

(Mar-19-2024, 09:15 AM)DeaD_EyE Wrote: And sometimes gene sequences are also renamed because Excel has interpreted the text input and turned the name into a date.so that must be why i have so much d...
Skaperen News and Discussions 10 678 Mar-22-2024, 12:21 AM
    Thread: a better way to code this to fix a URL?
Post: RE: a better way to code this to fix a URL?

if characters are not missing, i want them to be correct. correctness will be tested later. this code needs to just pass provided characters as is so they can be tested. later code will test for "h...
Skaperen News and Discussions 10 678 Mar-22-2024, 12:16 AM
    Thread: a better way to code this to fix a URL?
Post: a better way to code this to fix a URL?

i have this silly code meant to fix a URL that is missing as many as 7 start characters: if url.startswith('//'): url = 'https:' + url if url.startswith('://'): url = 'https' + url if url.startswith('...
Skaperen News and Discussions 10 678 Mar-19-2024, 05:10 AM
    Thread: embedded Python scripts - is it worthwhile
Post: RE: embedded Python scripts - is it worthwhile

i have another project that i want to do embedded scripts in. this project make more sense to just do in Python (it's a text editor). maybe i should move ahead with this project to just try it out. ...
Skaperen News and Discussions 3 640 Feb-21-2024, 01:25 AM
    Thread: launch processes from threads
Post: RE: launch processes from threads

the application i will be starting in a process is heavy on CPU at times but is often waiting on network data (think web scraping). the application is not in Python but there may be a Python layer to...
Skaperen News and Discussions 9 755 Feb-21-2024, 01:16 AM
    Thread: launch processes from threads
Post: RE: launch processes from threads

another option i was thinking about was having all the monitor threads communicate with a process dedicated to launching processes on request. this one process could then notify the thread with the m...
Skaperen News and Discussions 9 755 Feb-20-2024, 06:44 AM
    Thread: launch processes from threads
Post: RE: launch processes from threads

hitting too many processes was happening when running 2 processes per task. for task N, process N.1 runs to application, while process N.2 runs a monitor in Python. if i can run all the monitor inst...
Skaperen News and Discussions 9 755 Feb-20-2024, 06:35 AM
    Thread: launch processes from threads
Post: RE: launch processes from threads

i want individual threads in the one parent process to start subprocesses. for example i start N threads, each of which starts a subprocess, so there will be N subprocesses running. these N threads ...
Skaperen News and Discussions 9 755 Feb-17-2024, 12:40 AM
    Thread: embedded Python scripts - is it worthwhile
Post: embedded Python scripts - is it worthwhile

i have an application i am creating. it's still in the planning stage. it could be written in C but i do expect to prototype it in Python. it will allow users to create scripts particularly to cust...
Skaperen News and Discussions 3 640 Feb-12-2024, 08:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020