Re: Pickle caching objects?

2019-12-01 Thread José María Mateos
f high-water-mark with lots of unused space inside it. So what you're seeing isn't actual objects being cached, but just memory ready to be populated with future objects. Thank you and Richard for your responses, this makes perfect sense now. Cheers, -- José María (Chema) M

Pickle caching objects?

2019-11-30 Thread José María Mateos
ome down as I would expect it to. But the loading time is constant, so I think I can disregard any pickle caching mechanisms. So I guess now my question is: can anyone give me any pointers as to why is this happening? Any help is appreciated. Thanks, -- José María (Chema) Mateos || https://rinzewind.org/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Random signal capture when using multiprocessing

2019-07-06 Thread José María Mateos
see it. Ok, that makes all the sense in the world, thanks for digging into this. -- José María (Chema) Mateos || https://rinzewind.org/ -- https://mail.python.org/mailman/listinfo/python-list

Random signal capture when using multiprocessing

2019-07-05 Thread José María Mateos
in__": signal.signal(signal.SIGTERM, signal_handler) signal.signal(signal.SIGINT, signal_handler) n_round = 1 while n_round < 20: job_list = [x for x in range(random.randint(100, 400))] print(f"Running round {n_round} with {len(job_list)} jobs") with mu

Re: send PIL.Image to django server side and get it back

2018-07-19 Thread José María Mateos
s a string, because you want to use a JSON object or similar, I've done this in the past using base64 encoding. https://docs.python.org/2/library/base64.html Cheers, -- José María (Chema) Mateos https://rinzewind.org/blog-es || https://rinzewind.org/blog-en -- https://mail.python.org/mailman/listinfo/python-list

Re: Where's the junk coming from?

2018-06-26 Thread José María Mateos
n. I just received another batch, for what it's worth. Cheers, -- José María (Chema) Mateos https://rinzewind.org/blog-es || https://rinzewind.org/blog-en -- https://mail.python.org/mailman/listinfo/python-list

Re: Where's the junk coming from?

2018-06-25 Thread José María Mateos
y: castlerockbbs.com [Synchronet 3.17a-Linux NewsLink 1.108] Cheers, -- José María (Chema) Mateos https://rinzewind.org/blog-es || https://rinzewind.org/blog-en -- https://mail.python.org/mailman/listinfo/python-list

Re: a Python bug report

2018-05-29 Thread José María Mateos
e it. Some more reading: https://stackoverflow.com/questions/43660910/python-difference-between-round-and-int Cheers, -- José María (Chema) Mateos https://rinzewind.org/blog-es || https://rinzewind.org/blog-en -- https://mail.python.org/mailman/listinfo/python-list

Re: Usenet Gateway

2018-05-24 Thread José María Mateos
sages read in one go can you? With tin/Usenet I look at the > list of new subjects in the Python group, I may investigate a couple > of threads, then I just hit 'C' and all of the Python group is marked > as read. Yes, you can, at least with mutt. I have a handy alias (ESC +

Re: Spam levels.

2018-05-21 Thread José María Mateos
join forces and establish such server for public use? If you're willing to let NNTP access go, the mailing list works perfectly fine and is virtually spam-free. Cheers, -- José María (Chema) Mateos https://rinzewind.org/blog-es || https://rinzewind.org/blog-en -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax oddities

2018-05-18 Thread José María Mateos
azy to bother. I wouldn't dare inline-replying in my current Outlook corporate environment. I just top-post, don't trim, go with the flow. Cheers, -- José María Mateos https://rinzewind.org/blog-es || https://rinzewind.org/blog-en -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax oddities

2018-05-18 Thread José María Mateos
ling list (that of the e-mail client I'm using right now): it is very useful for searches. Every e-mail contains just the right amount of text necessary to be properly read, as opposed to a more or less complete copy of the current thread. Cheers, -- José María Mateos https://rinzewind.org/bl

Re: Pandas, create new column if previous column(s) are not in [None, '', np.nan]

2018-04-11 Thread José María Mateos
'a', 'b', '']}) df1['C'] = df1[['A', 'B']].apply(lambda x: x[0] if x[1] in [None, '', np.nan] else x[1], axis = 1) Two notes: - Do apply() on axis = 1, so you process every row. - You lambda function wasn't entir

Re: psutil

2018-02-27 Thread José María Mateos
ge? - Is `pip` by any change trying to install a Python 3 package, but you only have the libraries for Python 2 installed? Cheers, -- José María Mateos https://rinzewind.org/blog-es || https://rinzewind.org/blog-en -- https://mail.python.org/mailman/listinfo/python-list

Re: Domain Driven Design and Python

2009-04-16 Thread José María
On Apr 16, 7:11 pm, Stef Mientki wrote: > José María wrote: > > Hi, > > > I've been searching for information about the application of DDD > > principles in > > Python and I did'nt found anything! > > > Is DDD obvious in Python or is DD

Domain Driven Design and Python

2009-04-16 Thread José María
Hi, I've been searching for information about the application of DDD principles in Python and I did'nt found anything! Is DDD obvious in Python or is DDD inherent to static languages like Java or C#? Cheers. -- http://mail.python.org/mailman/listinfo/python-list