What about using flock()? I don't know if it works on Windows, but it works
really well for Unix/Linux systems. I typically create a log file in a known
location using any atomic method that doesn't replace/overwrite a file, and
flock() it for the duration of the script.
Thanks,
Cem Karan
On Mon
What about using flock()? I don't know if it works on Windows, but it works
really well for Unix/Linux systems. I typically create a log file in a
known location using any atomic method that doesn't replace/overwrite a
file, and flock() it for the duration of the script.
Thanks,
Cem Karan
On Mon
Hi all, this is just an FYI in case anyone else has the same issue I just
ran into. If you use python 3.6 or 3.7 under Ubuntu with lxc, you may
discover that your site-packages aren't being imported correctly within the
container, but when you SSH in, everything works correctly. If that
happens, ch
On Oct 5, 2017 2:02 PM, "Roel Schroeven" wrote:
Thomas Jollans schreef op 5/10/2017 10:30:
On 2017-10-05 06:47, Steve D'Aprano wrote:
>
>> On Thu, 5 Oct 2017 02:54 pm, Chris Angelico wrote:
>>
>>> (There are exceptions even to the longer form of the rule, but only a
>>> handful. English isn't a
On Wed, Apr 26, 2017 at 10:38 PM, Cem Karan wrote:
>
> On Apr 24, 2017, at 8:54 PM, Jon Ribbens
> wrote:
>
> > On 2017-04-24, CFK wrote:
> >> Long version: I'm trying to write bindings for python via ctypes to
> control
> >> a library writte
On Jun 22, 2017 4:03 PM, "Chris Angelico" wrote:
On Fri, Jun 23, 2017 at 5:22 AM, CFK wrote:
> On Jun 22, 2017 9:32 AM, "Chris Angelico" wrote:
>
> On Thu, Jun 22, 2017 at 11:24 PM, CFK wrote:
>> When
>> I draw memory usage graphs, I see sawtooth w
On Jun 22, 2017 9:32 AM, "Chris Angelico" wrote:
On Thu, Jun 22, 2017 at 11:24 PM, CFK wrote:
> When
> I draw memory usage graphs, I see sawtooth waves to the memory usage which
> suggest that the garbage builds up until the GC kicks in and reaps the
> garbage.
Interestin
On Jun 22, 2017 12:38 AM, "Paul Rubin" wrote:
Lawrence D’Oliveiro writes:
> while “memory footprint” depends on how much memory is actually being
> retained in accessible objects.
If the object won't be re-accessed but is still retained by gc, then
refcounting won't free it either.
> Once agai
On Jun 21, 2017 1:38 AM, "Paul Rubin" wrote:
Cem Karan writes:
> I'm not too sure how much of performance impact that will have. My
> code generates a very large number of tiny, short-lived objects at a
> fairly high rate of speed throughout its lifetime. At least in the
> last iteration of th
On Wed, Apr 26, 2017 at 10:38 PM, Cem Karan wrote:
>
> On Apr 24, 2017, at 8:54 PM, Jon Ribbens
> wrote:
>
> > On 2017-04-24, CFK wrote:
> >> Long version: I'm trying to write bindings for python via ctypes to
> control
> >> a library writte
TLDR version: the bdwgc garbage collector (http://www.hboehm.info/gc/) and
python's collector are not playing nice with one another, and I need to
make them work with each other.
Long version: I'm trying to write bindings for python via ctypes to control
a library written in C that uses the bdwgc
There are two variables you will need to set; PATH and PYTHONPATH. You set
your PYTHONPATH correctly, but for executables like pip, you need to set
the PATH as well. You MUST do that for each account! The reason it didn't
work as root is because once you su to root, it replaces your PYTHONPATH
and
On Thu, Aug 27, 2015 at 2:02 PM, CFK wrote:
> Does anyone know where issue 19904 (http://bugs.python.org/issue19904) is
> at? I don't see it as being in python 3.5, but I was wondering if I just
> missed it. I could use support for __uint128_t so that I can interface with
> exte
Does anyone know where issue 19904 (http://bugs.python.org/issue19904) is
at? I don't see it as being in python 3.5, but I was wondering if I just
missed it. I could use support for __uint128_t so that I can interface
with external C code via ctypes.
Thanks,
Cem Karan
--
https://mail.python.org
On Wed, Apr 22, 2015 at 8:11 AM, Rustom Mody wrote:
> On Wednesday, April 22, 2015 at 4:07:35 PM UTC+5:30, Cem Karan wrote:
> > Hi all, I need some help. I'm working on a simple event-based simulator
> for my dissertation research. The simulator has state information that I
> want to analyze as
15 matches
Mail list logo