Re: [Python-Dev] Status of C compilers for Python on Windows

2014-10-10 Thread Matthieu Brucher
I don't think this is exactly on the same axis. Being able Python to build with a free compiler won't change this issue. Scientific Python won't be only the free compiler version, Visual Studio would remain the main citizen. It may fragment a little bit more the environment with people needing to

Re: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info

2013-05-14 Thread Matthieu Brucher
Very interesting. Although os.walk may not be widely used in cluster applications, anything that lowers the number of calls to stat() in an spplication is worthwhile for parallel filesystems as stat() is handled by the only non-parallel node, the MDS. Small test on another NFS drive: Creating

Re: [Python-Dev] RNG in the core

2012-01-03 Thread Matthieu Brucher
Hi, I'm not a core Python developer, but it may be intesting to use a real Crush resistant RNG, as one from Random123 (a parallel random generator that is Crush resistant, contrary to the Mersenne Twister, and without a state). Cheers, Matthieu Brucher 2012/1/3 Christian Heimes li

Re: [Python-Dev] RNG in the core

2012-01-03 Thread Matthieu Brucher
The core RNG is going to be part of the randomized hashing function patch. The patch will be applied to all Python version from 2.6 to 3.3. Some people may want to applied it to 2.4 and 2.5, too. As the patch is going to affect six to eight Python versions, it should introduce as few new code

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-07-31 Thread Matthieu Brucher
2010/7/31 David Cournapeau courn...@gmail.com: On Fri, Jul 30, 2010 at 10:23 PM, Michael Foord fuzzy...@voidspace.org.uk wrote: For those of you who found this document perhaps just a little bit too long, I've written up a *much* shorter intro to the plugin system (including how to get the

Re: [Python-Dev] Bazaar branches available (again) on Launchpad

2010-01-20 Thread Matthieu Brucher
That's only two points. :-) In French, we say that several starts with 2 ;) On 1; If that's true, I won't mention git again. I tis, you can check on the git repository (it's a mix of C, perl, shell scripts, Python, ...) On 2; Who knows what their life cycle is. You can check on their

Re: [Python-Dev] Bazaar branches available (again) on Launchpad

2010-01-19 Thread Matthieu Brucher
I'd be happy to see bzr and mercurial and git all made it together into the stdlib for python 3. That would give a superb updating mechanism for python that would propel python well beyond the dinosaur badlands of CPAN and other languages. I think there are several points that make them not

Re: [Python-Dev] microsoft dlls apparently don't support data. implications: PyAPI functions required to access data across modules.

2009-01-25 Thread Matthieu Brucher
2009/1/25 Luke Kenneth Casson Leighton l...@lkcl.net: according to the wikipedia entry on dlls, dlls do not support data, only functions. What do you mean by not support data? Having global data variables in a dll? In wikipedia, it is explicitely told that this is possible to have data

[Python-Dev] multiprocessing vs. distributed processing

2009-01-16 Thread Matthieu Brucher
(Sorry for the double send...) 2009/1/16 James Mills prolo...@shortcircuit.net.au: I've noticed over the past few weeks lots of questions asked about multi-processing (including myself). Funny, I was going to blog about this, but not just for Python. For those of you new to multi-processing,

Re: [Python-Dev] #ifdef __cplusplus?

2009-01-02 Thread Matthieu Brucher
Hi, 2009/1/2 Alexander Belopolsky alexander.belopol...@gmail.com: First, by copying c++-sig, let me invite C++ experts to comment on this thread and the tracker issue: http://mail.python.org/pipermail/python-dev/2009-January/084685.html http://bugs.python.org/issue4805 My patch highlights

Re: [Python-Dev] #ifdef __cplusplus?

2009-01-02 Thread Matthieu Brucher
When I learnt C, I was always told to explicitely cast. Maybe your professor was used to old C :) That's more than likely :D Matthieu -- Information System Engineer, Ph.D. Website: http://matthieu-brucher.developpez.com/ Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92

Re: [Python-Dev] Optionally using GMP to implement long if available

2008-11-04 Thread Matthieu Brucher
2008/11/4 Greg Ewing [EMAIL PROTECTED]: Martin v. Löwis wrote: you *will* have to ship gmp.dll to your users, as well ... So then you have to include the source (of GMP Are you sure? I thought the source-provision requirements of the *GPL licences only apply when you distribute a

Re: [Python-Dev] Fwd: Removal of GIL through refcounting removal.

2008-11-03 Thread Matthieu Brucher
, multiple processes for a single program is Josiah actually a pretty good idea. I have no idea what Chrome is. Is it a CPU-intensive algorithm which can be parallelized? It's Google webbrowser ;) Matthieu Brucher Josiah With the multiprocessing module in the standard library offering

Re: [Python-Dev] C99 code in the Python core?

2008-07-05 Thread Matthieu Brucher
2008/7/5 Mark Dickinson [EMAIL PROTECTED]: I have a general question and a specific question. First the general one: (1) When is it okay to use C99 code in the Python core? More particularly, is it considered acceptable to use widely-implemented library functions that are specified in C99

Re: [Python-Dev] Issue2889: Add Curses for Windows as native module for 2.6

2008-05-24 Thread Matthieu Brucher
As for PDCurses library itself there is a Makefile in PDCurses distribution for Microsoft Visual C++ 2.0+ named vcwin32.mak I can't afford buying Visual Studio to test if it works with newer versions, but logically Visual Studio should be able to convert Makefile to a newer format. You can

Re: [Python-Dev] Visual Studio 2008 compiler option EHsc ?

2008-05-17 Thread Matthieu Brucher
Hi, 2008/5/17 Jim Kleckner [EMAIL PROTECTED]: Martin v. Löwis wrote: In building a package with several platforms, I ran across the warning message below from Visual Studio 2008. Should we add the /EHsc option to the compile_options in distutils for MSVC? Or is it more complex than

[Python-Dev] Python source code on Bazaar vcs

2008-03-21 Thread Matthieu Brucher
Sorry for the double post, Jeroen :| -- Forwarded message -- From: Matthieu Brucher [EMAIL PROTECTED] Date: 21 mars 2008 10:03 Subject: Re: [Python-Dev] Python source code on Bazaar vcs To: Jeroen Ruigrok van der Werven [EMAIL PROTECTED] 2008/3/21, Jeroen Ruigrok van der Werven

Re: [Python-Dev] Typo in itertools.dropwhile()

2007-07-13 Thread Matthieu Brucher
Thank you very much ! Matthieu 2007/7/13, Raymond Hettinger [EMAIL PROTECTED]: [Stephen J. Turnbull] Shouldn't the until in the doc be while? Alternatively, true could be changed to false. Yes. I'll make the change. Raymond ___ Python-Dev

[Python-Dev] Typo in itertools.dropwhile()

2007-07-12 Thread Matthieu Brucher
Hi, There seems to be a typo in the doc of itertools.dropwhile() : Make an iterator that drops elements from the iterable as long as the predicate is true; afterwards, returns every element. Note, the iterator does not produce *any* output until the predicate is true, so it may have a lengthy

Re: [Python-Dev] Typo in itertools.dropwhile()

2007-07-12 Thread Matthieu Brucher
2007/7/13, Raymond Hettinger [EMAIL PROTECTED]: [Matthieu on itertools.dropwhile() docs] Make an iterator that drops elements from the iterable as long as the predicate is true; afterwards, returns every element. Note, the iterator does not produce any output until the predicate is true, so

Re: [Python-Dev] Proposal for a new function open_noinherit to avoid problems with subprocesses and security risks

2007-06-23 Thread Matthieu Brucher
Hi, I think the complaint is not so much about simplicity, but correctness. close_fd also closes stdin/stdout/stderr, which might be undesirable and differs from POSIX. According to the docs, stdin/stdout and stderr are not closed ( http://docs.python.org/lib/node529.html) Matthieu