Re: Is there a log file that tracks every statement that is being executed when a program is running?

2020-10-25 Thread Maxime S
Hi, You can use the trace module for that: https://docs.python.org/3.8/library/trace.html Personally I tend to put print statement at strategic places instead, I find that easier to analyse than a full trace but YMMV. Maxime Le dim. 25 oct. 2020 à 01:25, Steve a écrit : > This wo

Interpreter Python 3.8 not there to select from PyCharm

2020-02-17 Thread Maxime Albi
r me to select from the down arrow menu ..!?!? Any settings I need to do ?? Thanks, Maxime -- https://mail.python.org/mailman/listinfo/python-list

Re: Fun with IO

2020-01-21 Thread Maxime S
though because in that version the pdf was buffered twice, once in BytesIO and once in the writer, although you can fix that by using await writer.drain() after each write and then the two versions are essentially equivalent. Regards, Maxime. -- https://mail.python.org/mailman/listinfo/python-list

Re: psutil.boot_time() ... doesn't ?

2019-11-06 Thread Maxime S
Hello, You may want to read PEP 418 which nicely summaries the different clock available on each platform and their limitations. It looks like CLOCK_BOOTTIME is what you want but it is only available on Linux. Regards, Maxime. Le mer. 6 nov. 2019 à 18:23, R.Wieser a écrit : > Hello

Re: Why no '|' operator for dict?

2018-02-05 Thread Maxime S
2018-02-05 9:14 GMT+01:00 Ian Kelly : > On Mon, Feb 5, 2018 at 12:35 AM, Frank Millman wrote: >> 2. Is there a better way to do what I want? > > The dict.items() view is explicitly set-like and can be unioned, so > you can do this: > > py> dict(d1.items() | d2.items()) > > As to the question of wh

Re: comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-30 Thread Maxime S
2016-10-29 21:38 GMT+02:00 : > > Code: > > [...] > > for i in range (len(protein) & len(seq1)) : > > if protein[i] != mutantPRO[i] : >print (protein[i] + str(i) + mutantPRO[i]) >A+= 1 > else: > if seq1[i:i+3] != mutant[i:i+3]: >

Re: UserList - which methods needs to be overriden?

2016-06-10 Thread Maxime S
2016-06-10 10:37 GMT+02:00 Peter Otten <__pete...@web.de>: > > Nagy László Zsolt wrote: > > > I'm not sure wich one is the best. Peter wrote that UserList was left in > > collections only for backward compatiblity. This might be a point > > I'll take that back. I looked around and found no evidence

Re: Cannot step through asynchronous iterator manually

2016-01-30 Thread Maxime S
2016-01-30 11:51 GMT+01:00 Frank Millman : > "Chris Angelico" wrote in message > news:CAPTjJmoAmVNTCKq7QYaDRNQ67Gcg9TxSXYXCrY==s9djjna...@mail.gmail.com... > > >> On Sat, Jan 30, 2016 at 7:22 PM, Frank Millman >> wrote: >> > We had a recent discussion about the best way to do this, and ChrisA >>

Re: Question about asyncio and blocking operations

2016-01-29 Thread Maxime Steisel
Le 28 janv. 2016 22:52, "Ian Kelly" a écrit : > > On Thu, Jan 28, 2016 at 2:23 PM, Maxime S wrote: > > > > 2016-01-28 17:53 GMT+01:00 Ian Kelly : > >> > >> On Thu, Jan 28, 2016 at 9:40 AM, Frank Millman wrote: > >> > >

Re: Question about asyncio and blocking operations

2016-01-28 Thread Maxime S
2016-01-28 17:53 GMT+01:00 Ian Kelly : > On Thu, Jan 28, 2016 at 9:40 AM, Frank Millman wrote: > > > The caller requests some data from the database like this. > > > >return_queue = asyncio.Queue() > >sql = 'SELECT ...' > >request_queue.put((return_queue, sql)) > > Note that since thi

Re: Function decorator having arguments is complicated

2015-04-27 Thread Maxime S
[1] Amongst a heap of other cool tricks, in his Python Cookbook Regards, Maxime -- https://mail.python.org/mailman/listinfo/python-list

Re: Broken IF statement

2015-01-13 Thread Maxime S
/listinfo/python-list This line: obj, created = SocialAccount.objects.get_or_create(...) suggest you are using Django. If it is the case you have to add obj.save() after changing the priority to send the new value to the DB. Best, Maxime -- https://mail.python.org/mailman/listinfo/python-list

Re: asyncio with map&reduce flavor and without flooding the event loop

2014-08-06 Thread Maxime Steisel
s.reduce(corofunc, [f.result() for f in futures]) except that corofunc must be a coroutine function and future results can be evaluated out-of order. This function is a coroutine. """ result = initial for f in as_completed(futures, max_workers=50): new_value

Re: Anything better than asyncio.as_completed() and asyncio.wait() to manage execution of large amount of tasks?

2014-07-16 Thread Maxime Steisel
2014-07-15 14:20 GMT+02:00 Valery Khamenya : > Hi, > > both asyncio.as_completed() and asyncio.wait() work with lists only. No > generators are accepted. Are there anything similar to those functions that > pulls Tasks/Futures/coroutines one-by-one and processes them in a limited > task pool? Som

Seg fault when launching my module through my C/C++ application

2010-04-13 Thread Maxime Boure
ython2.6.so.1.0 #3 0x3b2bd518 in PyThreadState_DeleteCurrent () from /usr/lib/libpython2.6.so.1.0 #4 0x3f9bce50 in ?? () from /usr/lib/pyshared/python2.6/_dbus_bindings.so Just so you know I use other function from that script that works well with my C/C++ application. Do you have any idea of why t

Re: cache-like structure

2008-08-07 Thread maxime
On Aug 7, 7:00 pm, maxime <[EMAIL PROTECTED]> wrote: > konstantin wrote: > > Hi, > Hi > >... > > - are there better ways to do this (or any ready recipes) > > Did you consider using the shed module (not threaded)? > > Cheers, > > Maxime If you n

Re: cache-like structure

2008-08-07 Thread maxime
konstantin wrote: > Hi, Hi >... > - are there better ways to do this (or any ready recipes) Did you consider using the shed module (not threaded)? Cheers, Maxime -- http://mail.python.org/mailman/listinfo/python-list

pygame and music

2005-02-09 Thread maxime
Hi, I try to develop a game in python and pygame. In my game I play a music (.mid with pygame.mixer.music) but sometime I need to accelerate it but I don't see how to do that with pygame. Is it possible? If not, do you know an other python music lib that do that? Thanks a lot -- http://mail.python