t;
The big problem with >>> is that it means a third level quote in email clients.
So when people cut-n-paste REPL output it’s formatted badly by email clients.
A prompt that avoided that issue would be nice.
>>> print(“this is not a quoted reply”)
Barry
>
> rofl
>
etween python 2 and
>> 3, they did).
>>
>> Any thoughts?
>
> Usually, you use 5 well known log levels: "DEBUG", "INFO", "WARNING",
> "ERROR" and "CRITICAL".
> No need to provide a special function listing those lev
S).
>>
>> The differences you cite should have thrown up issues every year.
>> I must see if I can find my old log books...
>>
>
> ISTR that the USA changes were the same as the EU until a few years ago.
I recall that DST changes have been at least 1 week diffe
an example of such a code snippet?
> I am very curious to see if someone has a solution to my problem.
By the way there is a great PyQt mailing list that you might like to join.
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Lots of knowledgeable PyQt developers hang out on that list.
Barry
>
> Regards
> Mohsen
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
onInterface.cxx
See the _DictCheck and ends up using PyObject_IsInstance.
My guess is that use PyDict_Check is a good and better for the future.
Barry
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
need to call getwd() before that happens.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
ymbols.
You can use the objdump(?) utility to check that the symbols are in the lib.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
I would run the whole set of tests under gdb and wait for the segv to happen.
You may find that an isolated test will pass. Sometimes it is a sequence of test
and lead to the segv.
Barry
> On 19 Nov 2021, at 23:48, Marco Sulla wrote:
>
> On Fri, 19 Nov 2021 at 20:38, MRAB wrote:
&
e taken 0.000548
> Failed to close epoll file descriptor
> Unlink_shm status: Bad file descriptor
> fn() took 0.000648 seconds to execute
> [Inferior 1 (process 12618) exited normally]
> (gdb)
>
> So my question is why do I get "BlockingIOError: [Errno 11] Resource
> temp
> On 25 Nov 2021, at 16:51, Ulli Horlacher
> wrote:
>
> Barry Scott wrote:
>>
>>
>>>> On 25 Nov 2021, at 09:20, Ulli Horlacher
>>>> wrote:
>>>
>>> When I compile my programs with pyinstaller, Windows classifies them
ave no problem running the script without pyinstaller ?
>
> so Might pyinstaller be compromised in some way ?
Not likely.
On windows pyinstall, and other tools like it, create .exe files on windows.
I would guess it’s that .exe that is triggering the malware detector false
positive.
Barry
>
hon fileno
> 4
> Python event
> 1
> Pipe value
> b'10\x00'
The C code does not need to write a 0 bytes at the end.
I assume the 0 is from the end of a C string.
UDS messages have a length.
In the C just write 2 byes in the case.
Barry
> child is looping
> child is lo
pr = os.open('/tmp/Pipe_01', os.O_RDWR)
> pw = os.open('/tmp/Pipe_02', os.O_RDWR)
You will need to set the fd’s to non blocking on parent and child.
Otherwise the parent will block on its write until the child reads the message.
Barry
>
> ep = select.epoll(-1)
>
own pthread?
Are you embedding python in an other program?
Barry
> I revised the Python program to be a multiprocessing loop using the Python
> multiprocessing module. That bypasses the GIL and allows Python to run
> concurrently with C. So far so good.
>
> Next I will use Linux pip
tead of python?
Does you C program block them?
What did strace tell you was the reason that your C parent program blocked?
Barry
>
> Jen
>
>
>
> Dec 5, 2021, 15:19 by ba...@barrys-emacs.org:
>
>
>
>>> On 5 Dec 2021, at 17:54, Jen Kris wrote:
>>
d a folder of files you can distribute. It’s also got a single file mode
that you might find useful. The end user does not need to install python.
I am looking at using it to build gui apps a macOs.
You will have to experiment to find out if it solves you glib case concerns.
Barry
>
>
&
able solution available to rewrite around redbaron | libcst? -
> I don't need to parse the comments just dump them out unedited whence they're
> found…
>
> Thanks for any suggestions
Have a look at the code that is used by https://github.com/asottile/pyupgrade
There are a
in the script?
You may struggle to duplicate the pattern of memory allocations and accesses
that lead to the segv.
Assuming you are on a unix, turn on coredumps and run the code until it
segfaults.
Then use gdb on the core file.
Barry
>
>> On Sat, 18 Dec 2021 at 18:33, Dieter Maurer wr
at they segfault in Python
> 3.7 on Debian 10. I checked and this is true.
I searched the web for Py_TRASHCAN_SAFE_BEGIN
And that quickly lead me to this bug.
https://bugs.python.org/issue40608.
That gives lots of clues for what might be the problem.
It seems that is a deprecated api.
Barry
&g
> Subject: [SPAM] =?UTF-8?B?8J+TtyBKb2huIEJheHRlci1C?=
> =?UTF-8?B?cm93biByZWNlbnRseSBw?=
> =?UTF-8?B?b3N0ZWQgYSBuZXcgcGhv?=
> =?UTF-8?B?dG8=?=
>
> It looks like some sort of mis-encoding of UTF-8 strings, can anyone
> suggest what might be going on and/or a way
I just wonder any way to recover my data.
>> I agree with Barry, Chris and Avi. IMHO your data is lost. Unpickling
>> it by hand is a harsh work and maybe unreliable.
>>
>> Is there any reason you can't simply add a semaphore to avoid writing
>> at the same time
the existing profile output or to
> generate
> it with more feedback?
Read the profile analyses docs/code and report using options that show you
which callers are using the builtins.
If you need details reply and I will look at the scripts I use that produce a
number of report types,
> On 23 Jan 2022, at 17:08, Chris Green wrote:
>
> Barry Scott wrote:
>>
>>
>>>> On 22 Jan 2022, at 21:26, Chris Green wrote:
>>>
>>> I have a script that walks a quite deep tree of mail messages to find
>>> and archive old mess
on macOS? I'd -love- to find a way of doing something
> analogous to Linux' desktop-file-install - that is, something that isn't
> click-happy, but GUI's are acceptable too if they'll get the job done.
I do not have experience with great, but you might try pyins
> On 23 Jan 2022, at 21:40, Barry wrote:
>
>
>
>> On 23 Jan 2022, at 18:02, Dan Stromberg wrote:
>>
>> Hi folks.
>>
>> I have a Python 3 script (built on top of gi.respository.Gtk) that runs on
>> Linux and macOS 11.5. It's at https
> On 24 Jan 2022, at 02:31, Cameron Simpson wrote:
>
> On 23Jan2022 21:37, Barry Scott wrote:
>> I do not have experience with great, but you might try pyinstaller.
>> I use it to make a PyQt Mac app successfully.
>
> And I have used py2app/py2applet to crea
gt; Yes, and that's why I was saying it would need a *second* incref.
>>
>> ChrisA
>
> Thank you to all of you for trying to help - I accept that the only way to
> make the code work is to do a 2nd increment.
>
> I don't understand why doing a 'return self' would result in a double
> decrement - that seems utterly bizzare behaviour - it obviously works, but
> why.
The return self in C will not change the ref count.
I would suggest setting a break point in your code and stepping out of the
function and seeing that python’s code does to the ref count.
Barry
>
>
>
> --
> Anthony Flury
> email : anthony.fl...@btinternet.com
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
> On 25 Jan 2022, at 02:56, Dan Stromberg wrote:
>
>
>
>> On Sun, Jan 23, 2022 at 1:37 PM Barry wrote:
>>
>> I do not have experience with great, but you might try pyinstaller.
>> I use it to make a PyQt Mac app successfully.
>>
>> It’s
> On 26 Jan 2022, at 05:17, Dan Stromberg wrote:
>
>
>
>> On Tue, Jan 25, 2022 at 6:41 PM Dan Stromberg wrote:
>>
>>> On Tue, Jan 25, 2022 at 2:23 PM Barry wrote:
>>>
>>>>> On 25 Jan 2022, at 02:56, Dan Stromberg wrote:
>&g
> On 25 Jan 2022, at 23:50, Tony Flury wrote:
>
>
>
>
>> On 25/01/2022 22:28, Barry wrote:
>>
>>>> On 25 Jan 2022, at 14:50, Tony Flury via Python-list
>>>> wrote:
>>>>
>>>>
>>>>> O
e.g. "gethostbyname".
And glibc does not have the ability to reload the /etc/resolv.conf I recall.
If you rely on that you will need to change to using something like dnsmasq or
systemd-resolved so that resolv.conf uses localhost.
Barry
> --
> https://mail.python.org/mailman/li
> On 1 Feb 2022, at 19:21, Michael Welle wrote:
>
> Hello,
>
> Barry writes:
>
>>>> On 31 Jan 2022, at 19:22, Dieter Maurer wrote:
>>>
>>> Michael Welle wrote at 2022-1-30 09:18 +0100:
>>>> ...
>>> The machine this is
ry barrier to force the data to be seen by another
cpu?
Maybe use shm lock operation to sync both sides?
Googling I see people talking about using stdatomic.h for this.
But I am far from clear what you would need to do.
Barry
>
> Thanks,
>
> Jen
>
> --
> https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
ust as I had to do with int.from_bytes(). In
> my case endianness was dictated by how the four bytes were populated,
> starting with the zero bytes on the left.
You can specify the endian explicitly in the format strings. It’s all in the
docs.
Barry
>
>
> Feb 1, 2022, 21:30 by wlfr...@i
> On 2 Feb 2022, at 21:12, Marco Sulla wrote:
>
> You could add a __del__ that calls stop :)
Didn’t python3 make this non deterministic when del is called?
I thought the recommendation is to not rely on __del__ in python3 code.
Barry
>
>> On Wed, 2 Feb 2022 at 21:23, C
te next_interval = max( .001, interval - time.time() -
start_time)
I use 1ms as the min interval.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
interested in doing any authentication.
>
> I just want to require that the client provide a certificate and then
> print it out using print(connection.getpeercert())
I am not near the pc with the code on. But in outline you provide a ssl context
that
returns true for the val
> underlying openssl context object and allow to to change its
> configuration values.
We started with the OpenSSL api and looked see what it provided.
Then looked for how to access that from python.
Barry
> --
> Grant
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
Python
> INSTALLER, and if you've already done the installation and want to
> "run Python" try ?
Better yet include the word setup in the installer .exe name.
Just like almost every other installer does.
Barry
>
> --
> Grant
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
do you prevent logging cluttering your actual code?
You seem to be thinking about how to log the flow of the code.
That is useful to log when debugging your code. But depending
on your performance goals you may have to remove from the
production version.
But it is not what you do to be abl
ion is to not do the activate.
You can run venv/bin/python without the activation.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
variable that is holding a ref to the code.
So it’s pointless.
Barry
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> about <https://compileralchemy.github.io/> | blog
> <https://www.pythonkitchen.com>
> github <https://github.com/Abdur-RahmaanJ>
> Mauriti
re we start.
>
> Of course, it can change in the seconds that follow. But it's too much pure
> logic at work.
Since you have to deal with things that you do not control changing after you
check what is the point in checking? You have to write the code to recover
anyway.
Barry
> --
> On 25 Feb 2022, at 23:00, Richard Damon wrote:
>
> On 2/25/22 2:47 PM, Chris Angelico wrote:
>>> On Sat, 26 Feb 2022 at 05:49, Richard Damon
>>> wrote:
>>> On 2/25/22 4:12 AM, BELAHCENE Abdelkader wrote:
Hi,
a lot of people think that C (or C++) is faster than python, yes I agree
ame.log again so glad to just be pointed in the right
> direction if way off base.
If you look at the code of the logging modules syslog handle you will see that
it does not use syslog. It’s assuming that it can network to a syslog listener.
Such a listener is not running on my systems as far as
> On 6 Mar 2022, at 16:53, Peter J. Holzer wrote:
>
> On 2022-03-05 17:59:48 +0100, Marco Sulla wrote:
>>> On Sat, 5 Mar 2022 at 17:36, Barry Scott wrote:
>>> Note: you usually cannot use pip when building an RPM with mock as the
>>> network is disabl
> On 6 Mar 2022, at 19:38, Peter J. Holzer wrote:
>
> On 2022-03-06 18:28:59 +0100, Peter J. Holzer wrote:
>>> On 2022-03-05 16:25:38 +, Barry Scott wrote:
>>> Using the syslog() function means that any platform/distro details are
>>> hidden from the us
> On 7 Mar 2022, at 02:33, Martin Di Paola wrote:
>
> Yes but I think that unpickle (pickle.loads()) does that plus
> importing any module needed
Are you sure that unpickle will import code? I thought it did not do that.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
e
from them.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
On 13 Mar 2022, at 22:34, Les wrote:
>
>
> I will, thanks. I just wanted to make sure that this is a real bug, and not a
> mistake on my side.
You followed the docs and got an error. Doc error? Docs out of date?
Barry
>
> Barry ezt írta (időpont: 2022. márc. 13., V 23:29
> On 14 Mar 2022, at 21:29, Dan Stromberg wrote:
>
> I expected to see an exec of /usr/bin/python2, but I don't. I just see an
> exec of /tmp/t.
I understand that the kernel handles the #! Line itself, which is why you do
not see it in strace.
Barry
--
https://mail.p
ception.
> This was evidently seen as more important than having efficient
> resumption of nested generators.
I would have thought that it would be possible to do both sets of
pointer/accounting.
One that supports your original fast implementation and add to that the info to
do the
trace bac
ployers look for?
Where I work we use python in the product and look for expertise in
object oriented design and python expertise. But will take people with
no python expertise if they are willing the learn python and have experience
of other OO languages, C+c, Java, etc.
We do not look fo
> On 30 Mar 2022, at 15:40, alister.ware wrote:
>
> OK
>
> where do you work & are there any vacancies (a junior position would suffice)
At the moment we are only hiring in India and for senior rolls.
Barry
>
>> On 30/03/2022 14:52, Barry wrote:
>>
>
.
>>>>
>>>> Any thoughts?
>>>
>>> Usually, you use 5 well known log levels: "DEBUG", "INFO", "WARNING",
>>> "ERROR" and "CRITICAL".
>>> No need to provide a special function listing th
script.py | tee script.log
And use py -u on windows.
Barry
>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
Inc.) based on
> on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>>
Py.exe is deterministic. You can edit an .ini file to configure it if the
defaults do not work for you.
Use py -0 to see what python’s it can find.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
level and then use global to use
them in your function.
a_static_var = 42
def func(value):
global a_static_var
a_static_var = value
Barry
>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> --
> https://mai
e, so there must be a
> function to compute the difference between to datetimes as a
> timedeltacal. It could be a method on datetime (maybe t.sub(u) for t-u
> like in Go) or a constructor which takes two datetime objects.
>
> In any case I think that u +
ld go get the source RPM for a python2 package from each distro you want
to supoort and read its .spec file.
I see on fedora that the way they install packages that are from pypi makes it
possible to use pip list to see them.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
hree 2019-02-16 08:30:56.821453
Notice that the time for 'one' and 'two' is the same.
Only the overridden default chanse.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
its not on PyPi but ther are kits for
>windows, mac. Debian and Fedora provide pysvn as well.
It allows you to provide the username and password via the api.
See https://pysvn.sourceforge.io/Docs/pysvn_prog_ref.html#pysvn_client_checkout
And
https://pysvn.sourceforge.io/Docs/pysvn_prog_ref.h
y other workaround to
> make SSM work in python natively?
You could use ctype to call setsockopt with the necessary struct for the
multicast calls.
Barry
>
> Best regards
> Max
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
In practice PyQt works very well and you do not encounter problems with memory
management or crashes.
Barry
> On 17 Aug 2019, at 10:39, Abdur-Rahmaan Janhangeer
> wrote:
>
> Was browsing when i came across this hilarious piece of text:
>
> *Once upon a time there was a pr
Have you tried asking on a blender user mailing list for help with this problem?
It seems that someone familiar with blender and its python interface should be
able to help get you going.
Barry
> On 24 Aug 2019, at 20:52, Paul St George wrote:
>
>> On 24/08/2019 01:23, Cameron S
implementation does its garbage
collection. The file is closed as a side effect of deleting the file object to
reclaiming the memory of the file object.
At the start of python 3 people where suprised when files and other resources
where not released at the same time that python 2 released them.
> On 1 Sep 2019, at 17:57, MRAB wrote:
>
> On 2019-09-01 16:46, Barry wrote:
>>> On 31 Aug 2019, at 15:41, Manfred Lotz wrote:
>>> When you say COULD this sounds like it is a matter of luck. My thinking
>>> was that USUALLY the file will be closed afte
> On 1 Oct 2019, at 10:12, Gisle Vanem wrote:
>
> Barry Scott wrote:
>
>> Here is an example:
>> from colour_text import ColourText
>> ct = ColourText()
>> ct.initTerminal()
>> print( ct( "The next section is in green: <>green example
is that I have looked into this for a production
server app and found only approximations.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
;>>> On Tue, Nov 19, 2019 at 5:06 AM Wildman via Python-list
>>>> wrote:
>>>>> On Sun, 17 Nov 2019 18:27:45 +, Barry Scott wrote:
>>>>>> Because you are installing from a deb you know the exact path to the
>>>>>> python you
Maybe port to SQLite? I would not choose dbm these days.
Barry
> On 27 Nov 2019, at 01:48, Tim Chase wrote:
>
> Working with the dbm module (using it as a cache), I've gotten the
> following error at least twice now:
>
> HASH: Out of overflow pages. Increase page
ontent-Type: multipart/form-data;
>> boundary=c8ef4837136fca99
>>
>< HTTP/1.1 100 Continue
>* HTTP 1.0, assume close after body
>< HTTP/1.0 201 CREATED
>< Content-Type: application/json
>< Content-Length: 46
>&
I guess the 2nd party is the user.
Barry
> On 13 Dec 2019, at 21:13, Abdur-Rahmaan Janhangeer
> wrote:
>
> Wonder where the 2nd party went to. Thanks will look into it!
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
> On 18 Dec 2019, at 17:33, Tobiah wrote:
>
> On 12/14/19 1:13 AM, Barry wrote:
>> I guess the 2nd party is the user.
>
> I think of the user as the first party
But that is not what Wikipedia article you linked says.
“ In commerce, a "third-party source&quo
output from command python setup.py egg_info:
>Traceback (most recent call last):
> File "", line 1, in
> File "/tmp/pip-build-qf95n0tt/couchdbkit/setup.py", line 25, in
>long_description = file(
>NameError: name 'file' is not define
is a text stream. Tarfiles need a binary stream.
I searched for “python 3 binary stdout” and found this
stack over flow question that has suggested fixes.
https://stackoverflow.com/questions/908331/how-to-write-binary-data-to-stdout-in-python-3#908440
Barry
>
> Sincerely,
> Rainer
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
on multiple threads. When your code does lots of I/O and uses extensions it’s
not the limiting factor. I guess you app will spent if time waiting of
PostgreSQL etc.
Barry
>
> In case further information is required do let me know.
>
> Thanks
> onlinejudge95
> --
>
s write up about the horror that is zip file name handling.
https://marcosc.com/2008/12/zip-files-and-encoding-i-hate-you/
This has been a pain point at work.
Barry
>
> -CHB
>
>
>
>
>
>> On Mon, Jan 6, 2020 at 5:50 PM Abdur-Rahmaan Janhangeer
>> wrote:
>>
> On 7 Jan 2020, at 01:48, Abdur-Rahmaan Janhangeer
> wrote:
>
>
>
>
>> On Tue, 7 Jan 2020, 01:57 Barry Scott, wrote:
>>
>>
>> Please cover the pro's and con's of the alernatives that have been raised as
>> comments
&g
any luck reading the docs on the import system.
Use python -vv then import you module. Python will print debug messages showing
where it looks for the modules. Usually that helps find the problem with the
PYTHONPATH.
Barry
>
> Thanks!
> -Patrick
> --
> https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
> On 16 Jan 2020, at 16:12, nerdynels...@gmail.com wrote:
>
> Still hoping a Python developer can weigh in on this or point me where to
> get this issue addressed.
Does this tell you what you want to know?
https://docs.python.org/3/c-api/buffer.html
Barry
> --
> https
ot
> being able to move the central widget by using
> self.centralwidget.setGeometry . The error is cannot find reference. Please
> advise.
Sounds like you have discover layouts yet.
Have read about them: https://doc.qt.io/qt-5/examples-layouts.html
Barry
> --
> https://mail.python
but cannot find the
email/webpage that I read.
These days I assume that __del__ will almost never be useful and use exploit
calls to tell an object I am finished with it and it can do its resource clean
up.
Barry
>
> Frank Millman
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
signature as that would certainly ensure security. And I generally use
> python for making apps. Thank you.
Have a look at PyQt5. It OO and cross platform with few quirks.
Barry
>
>> On Wed, Feb 26, 2020, 10:21 PM M.-A. Lemburg wrote:
>>
>> We are happy to announc
the python 3 way. If you do not have to care about python 2 then this
is the form to use.
Barry
>
>> Am Do., 12. März 2020 um 12:58 Uhr schrieb MRAB >> :
>>
>>> On 2020-03-12 10:54, joseph pareti wrote:
>>> The following code that uses a class 'Fahrzeug&
then list, rest run macOS python 3.8
Barry
--
https://mail.python.org/mailman/listinfo/python-list
cs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-dialogboxindirectparamw>
I assume you are a C++ developer and can look at the stack of the thread.
What is the thread doing? Is it in python code? Is it in windows code?
Barry
> .
>
> Eren
>
>> Am Mi., 15. Apr. 2020
s appears to be in the
>> same location as the system distutils?")
>>>>> distutils.__path__
>> ['/home/robin/LOCAL/3.9b1/lib/python3.9/distutils']
>>>>> distutils.__file__
>> '/home/robin/LOCAL/3.9b1/lib/python3.9/distutils/__init__.py'
>
> is this a bug or have I built python 3.9.0b1 wrongly?
I think that is correct __file__ value. What are you expecting to see?
Barry
> --
> Robin Becker
>
> --
> https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
ue in
> windows and thus Microsoft made DirectX.
Maybe the c runtime but not direct x that’s typically for games.
Barry
>
>> On Tue, 26 May, 2020, 11:14 pm Meet Agrawal, wrote:
>>
>> I have tried and installed the python application a lot of times but after
>> the in
://linux.die.net/man/3/strdup that tells you to use free() to delete
memory allocated by strdup.
You must remember the result of strdup and free it at an appropriate time.
Barry
>
> ---
> import ctypes
>
> libc = ctypes.cdll.LoadLibrary('libc.so.6')
> str
Search for PyQt mailing list will get you to
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Barry
> On 8 Jul 2020, at 21:17, artis.pain...@gmail.com wrote:
>
> I might be wrong but since I have not found anygroup newsgroup dedicated to
> PyQt5.
>
> My small prog
link, but
> I've to check on a list of 20-3 symlinks to delete it and avoid
> duplicates...
Don’t you have control of the code that is adding the symlinks?
Barry
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
ow do you check that the key is present?
Are you aware that there is one registry for 32 bit code and a separate
registry for 64 bit code.
if you run a 32 bit program to write the registry it will not be seen by 64 bit
code for example.
Barry
>
> Code:
>
the same problem appears.
> 1 PC works the other fails.
> I even tried "HTMLsession" which renders javascript. Same problem.
>
Sounds like the service you are accessing has a rate limit or other form of
defence.
And your requests are triggering the defences. What happens if you
n38.dll was not found. What
>> should I do in order to use the Python interpreter?
I have never had to reboot windows when installing python.
Was I lucky?
Barry
>>
>> Thank you!
>
>
> It's WIndows, did you try to reboot ?
>
> It seems to solve a lot of
Python, but statically compiled.
>
> (Yes, I know Cython, RPython, Julia, Rust...)
Have a look at Apple’s Swift. It reminds me of python as I read it.
I have not done more the read the language reference docs.
Sadly it seems that it has not been ported to none Apple platforms.
Barry
>
&
er keep the connect alive if you can.
The web server is allowed to close the connection if it wants too.
Barry
>
>
> import urllib.request as req
> headers = {"authorization": "Bearer {}".format(self.token),
> &qu
> os.execl('C:\\Python38\\python.exe', 'X2.py')
I think you need to have this (untested):
os.execl('C:\\Python38\\python.exe', 'C:\\Python38\\python.exe', 'X2.py')
You must put the path as the first arg, it is not done for you.
You version ra
ck gets corrupted(?).
When the app calls into python does the event loop of the gui block?
When you print does that trigger the event loop to run in a nested call back
into the cpp?
Maybe you need to run python in its own thread and Marshall in and out of the
gui main thread with the event loop?
File "/usr/lib/python3.8/email/generator.py", line 406, in write
>>>>>> self._fp.write(s.encode('ascii', 'surrogateescape'))
>>>>>> UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in
>
101 - 200 of 696 matches
Mail list logo