Re: [Python-Dev] Data descriptor doc/implementation inconsistency

2010-01-10 Thread Amaury Forgeot d7;Arc
thing that worries me a bit is the "x.attr" returning the Descr object. Descriptors should remain at the class level, and instance should only see values. I'd prefer an AttributeError in this case. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] 3.1.2

2010-02-15 Thread Amaury Forgeot d7;Arc
e more inclined to make #7173 a > release blocker if it had a more specific test than "run cython and > maybe it'll crash". > I just updated #7173 with a short crasher. In short, I think that next() in an exception handler messes with the exception state. This doesn't pl

Re: [Python-Dev] embedding Python interpreter in non-console windows application

2010-02-17 Thread Amaury Forgeot d7;Arc
C-runtime for the "real" handles to STDIN and STDOUT. I dont ever > see the Python runtime "ask the system" where his handles to STDIN and > STDOUT are. > Are you using the same compiler as the one used to compile Python? It's important that your program an

[Python-Dev] argparse.py is licensed under the Apache License

2010-03-24 Thread Amaury Forgeot d7;Arc
le law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # und

Re: [Python-Dev] Odd lines in unicodedata_db.h

2010-04-04 Thread Amaury Forgeot d7;Arc
the unicode standard removed these values. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread Amaury Forgeot d7;Arc
at the end, and would cause crashes if the memory was read afterwards. This said, there may be a bug somewhere, but what do you want us to look at? Do you have a case that we could reproduce and investigate? -- Amaury Forgeot d'Arc ___ Python-Dev mail

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread Amaury Forgeot d7;Arc
2010/6/1 : >> This said, there may be a bug somewhere, but what do you want us to look >> at? >> Do you have a case that we could reproduce and investigate? >> >> -- >> Amaury Forgeot d'Arc > > Thank you, I'm not a C-Developer, > but still

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread Amaury Forgeot d7;Arc
2010/6/1 : >> Without further information, I cannot consider this as a problem in >> Python. >> I know other extension modules that manage memory in their own way, and >> work. >> It's more probably an issue in the code of your type. >> >> -- >

Re: [Python-Dev] debug and release python

2010-06-15 Thread Amaury Forgeot d7;Arc
e issue by compiling extension modules with pymalloc options turned on (which it fortunately the default, so this applies to the supplied proprietary .pyd), and I added a (plain) definition for functions like _PyObject_DebugMalloc, even when PYMALLOC_DEBUG is undefined. Sinc

Re: [Python-Dev] versioned .so files for Python 3.2

2010-07-15 Thread Amaury Forgeot d7;Arc
taining the ABI tag, and refuse foo.so which is incompatible for sure. But the installations could still be shared between Python implementations. Cheers, -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.or

[Python-Dev] ast status, memory leaks, etc

2005-11-22 Thread Amaury Forgeot d7;Arc
Hello, Purify is not so difficult to use: just run and learn to read the output ;-) My config: Win2k using VC6sp5, and only 512Mb RAM. I downloaded the snapshot dated 2005/11/21 05:01, commented out #define WITH_PYMALLOC, built in debug mode, modified the rt.bat file to use purify, and ran "rt -d"

Re: [Python-Dev] test_io fails on test_1686475

2009-03-02 Thread Amaury Forgeot d7;Arc
there's a way to handle them correctly. > > Use 64-bit time values (which is highly unlikely to ever be the case for > CPython on a 32-bit OS). 64bit time_t is the default since VS2005. See the patch at http://bugs.python.org/issue4379 -- Amaury Forgeot d'Arc _

Re: [Python-Dev] Interpreter crash in test_strftime?

2009-03-02 Thread Amaury Forgeot d7;Arc
at? > > (not being a Windows user, it's a bit hard for me to investigate what's wrong) Let me guess: it a RuntimeError, "Invalid format directive", when calling strftime. CRT assertions where enabled a few weeks ago (issue4804) It may be a bad merge from trunk

Re: [Python-Dev] Interpreter crash in test_strftime?

2009-03-02 Thread Amaury Forgeot d7;Arc
On Tue, Mar 3, 2009 at 00:47, Antoine Pitrou wrote: > > Hi Amaury, > > Le mardi 03 mars 2009 à 00:39 +0100, Amaury Forgeot d'Arc a écrit : >> > >> > I'm trying the current py3k under a Windows virtual machine (with VS >> > Express >> &

Re: [Python-Dev] Integrate lxml into the stdlib?

2009-03-10 Thread Amaury Forgeot d7;Arc
as caught by the presence of the "bz2.lib" file, which pypy found there, just because the linker lists c:\python25\LIBs before other directories. Of course the real bz2.lib, which defines the compression routines, was installed somewhere else, and compilation failed. -- Amaury Forgeot d&

Re: [Python-Dev] OSError.errno => exception hierarchy?

2009-04-02 Thread Amaury Forgeot d7;Arc
NOENT, py.error.EACCES... to implement some kind of FilePath object: http://codespeak.net/svn/py/dist/py/path/local/local.py But I'm not sure I would like this kind of code in core python. Too much magic... -- Amaury Forgeot d'Arc ___ Python

Re: [Python-Dev] PyDict_SetItem hook

2009-04-02 Thread Amaury Forgeot d7;Arc
its hash, but not with the value, and you cannot know whether you are reading or setting the dict. It is easy to add an argument and call ma_lookup with the value (or NULL, or -1 depending on the action: set, get or del), but this may have a slight impact (benchmark needed!) even

Re: [Python-Dev] Getting values stored inside sets

2009-04-03 Thread Amaury Forgeot d7;Arc
ot;) > > This is something I need from time to time and this also seems to solve > your problem. def first(iter, cb): return itertools.ifilter(cb, iter).next() -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Why does read() return bytes instead of bytearray?

2009-04-14 Thread Amaury Forgeot d7;Arc
e it will help. Files opened in binary mode have a readinto() method, which fills the given bytearray. Is this what you are looking for? -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/

Re: [Python-Dev] Issue5434: datetime.monthdelta

2009-04-16 Thread Amaury Forgeot d7;Arc
should be a function or a method, like you would do for features like last_day_of_month(d), or following_weekday(d, 'monday'). date(2008, 1, 30).add_months(1) == date(2008, 2, 29) -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] string to float containing whitespace

2009-04-29 Thread Amaury Forgeot d7;Arc
) and string.atoi() allow whitespace.  Maybe I'm > thinking of trailing non-numeric, non-whitespace characters. You are maybe referring to the Decimal constructor: decimal.Decimal(" 123") fails with 2.5, but works with 2.6. (issue 1780) -- Amaury Forgeot d'Arc __

Re: [Python-Dev] Proposed: drop unnecessary "context" pointer from PyGetSetDef

2009-05-04 Thread Amaury Forgeot d7;Arc
esearch?q=Connection_SetOCIAttr+trunk -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Serious regression in doctest in Py3.1rc1

2009-06-03 Thread Amaury Forgeot d7;Arc
ject) or inspect.getfile(object) was replaced with file = inspect.getsourcefile(object) -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Cannot set PYTHONPATH with big paths with Python 3.0 and 3.1

2009-06-09 Thread Amaury Forgeot d7;Arc
particular bug deserves to be a blocker, I don't know. It > is > certainly annoying, however. FYI, I just submitted a patch. It is simple enough to be considered for inclusion for rc2. -- Amaury Forgeot d'Arc ___ Python-Dev mailing li

Re: [Python-Dev] Define metatype and a type that uses it

2009-07-08 Thread Amaury Forgeot d7;Arc
amp;JObjectMetaType; JObjectType.tp_name = "metaclass.JObject"; JObjectType.tp_basicsize= sizeof(JObject); JObjectType.tp_flags= Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE; JObjectType.tp_doc = "JObject objects"; JObjectType.tp_init = JObject_init;

Re: [Python-Dev] Define metatype and a type that uses it

2009-07-13 Thread Amaury Forgeot d7;Arc
Hi, 2009/7/13 Erik Groeneveld : > Amaury, > > Thank you very much for your detailed explanation.  It helps to > understand it better, and it mostly works now.  There is one thing > however: > > On Wed, Jul 8, 2009 at 17:35, Amaury Forgeot d'Arc wrote: >> - Don&#x

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Amaury Forgeot d7;Arc
his thread discovered the line endings weren't the > problem after all). Well, I was caught several times by this line ending problem. And the first time, I did not even understand what was going on... -- Amaury Forgeot d'Arc ___ Python-Dev ma

Re: [Python-Dev] Replacing PyWin32's PeekNamedPipe, ReadFile, and WriteFile

2009-07-22 Thread Amaury Forgeot d7;Arc
> running the code, please update your PYTHONPATH variable so that my > subprocess.py will be imported. These questions should be redirected to comp.lang.python. But as a quick response, the subprocess stdout is likely to be opened in text mode. So reading \r\n is not a surprise to me. -- Amau

Re: [Python-Dev] Replacing PyWin32's PeekNamedPipe, ReadFile, and WriteFile

2009-07-23 Thread Amaury Forgeot d7;Arc
module should require it. OTOH ctypes is the perfect tool for rapid development with the win32 api, specially when the compiler is far away. > Can ctypes release the GIL for a function call? Yes, see http://docs.python.org/library/ctypes.html#ctypes.CFUNCTYPE -- Amaury Forgeot d'

Re: [Python-Dev] mingw32 and gc-header weirdness

2009-07-23 Thread Amaury Forgeot d7;Arc
sions as well (the C API with runtime-dependent structures > like FILE, etc...). So mingw is not the only to blame :) In this case, the OP tries to use an API that is explicitly documented as dangerous for extension modules. The recommended function is not sensitive to compiler differences. -- Am

Re: [Python-Dev] PEP 385: pruning/reorganizing branches

2009-08-05 Thread Amaury Forgeot d7;Arc
2009/8/3 Dirkjan Ochtman : > So PEP 385 proposes to clean up the old branches we still have lying > around in SVN. > > io-c: keep-clone? strip - it was merged into py3k some months ago. -- Amaury Forgeot d'Arc ___ Python-Dev mailin

Re: [Python-Dev] PEP 389: argparse - new command line parsing module

2009-10-08 Thread Amaury Forgeot d7;Arc
dows installation of Python 3 to hand at the moment) When running pythonw, fileno(stdout) is negative, so sys.stdout is set to None, and print() silently returns. But the situation is not perfect, see http://bugs.python.org/issue6501 where Apache provides a stdout, but python cannot determine the enc

Re: [Python-Dev] Better module shutdown procedure

2009-10-16 Thread Amaury Forgeot d7;Arc
to implement these methods for any module. Maybe one should start at least for static PyObject* that contain references to modules. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/p

[Python-Dev] No buildbot to test wide unicode?

2009-11-03 Thread Amaury Forgeot d7;Arc
ode is the standard chosen by some Linux distributions, it would make sense to have at least one buildbot running with --with-wide-unicode (3.x) or --enable-unicode=ucs4 (2.x). -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@

[Python-Dev] Cannot build new documentation

2007-08-20 Thread Amaury Forgeot d7;Arc
file. It seems like the delegation pattern does not mix well with context managers... Is there another solution? Or did I miss something obvious? -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Cannot build new documentation

2007-08-20 Thread Amaury Forgeot d7;Arc
can set the PYTHON variable to the path of an alternative interpreter executable.) """ -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] New python developer

2007-11-13 Thread Amaury Forgeot d7;Arc
bs. And of course I can help on other subjects if there is some interest. I am very excited to take part in this great project. So please forgive me if I do something wrong or too quickly. And your (kind) remarks will always be welcome. -- Amaury For

Re: [Python-Dev] Should we do away with unbound methods in Py3k?

2007-11-21 Thread Amaury Forgeot d7;Arc
inheritance first, and call __instancecheck__ only when the previous is false? It would speed-up the common cases. Or is there really a use case for a derived class to appear as NOT being a subclass of its base class? -- Amaury Forgeot d'Arc ___ P

Re: [Python-Dev] why is mmap a builtin module on windows?

2008-01-23 Thread Amaury Forgeot d7;Arc
ge the libraries. And when I want to distribute my apps with bbfreeze > (similar to py2exe), I also need to handle that import hackery. This is > what I call ugly :) (at least in comparison to linux). You can also modify site.py and put the hack there. -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] XXX - in funcobject.c

2008-02-05 Thread Amaury Forgeot d7;Arc
ride __eq__ or __hash__. I could not find any other way to execute python code in this area. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.py

Re: [Python-Dev] XXX - in funcobject.c

2008-02-05 Thread Amaury Forgeot d7;Arc
are easy optimizations in PyEval_EvalCodeEx, somewhere around the "XXX slow" comment (!) -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://ma

Re: [Python-Dev] Can't decode \x876F character encoded in Shift JIS charset ?

2008-02-07 Thread Amaury Forgeot d7;Arc
e both extensions to the original shift jis. Please continue this discussion on comp.lang.python; or fill a bug request. Cheers quand même, -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Py_CLEAR to avoid crashes

2008-02-16 Thread Amaury Forgeot d7;Arc
clever way to prevent these problems globally, for example by delaying finalizers "just a little"? -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Py_CLEAR to avoid crashes

2008-02-18 Thread Amaury Forgeot d7;Arc
s" member of the exception. class S: def __del__(self): print e.args e = BaseException(1, S()) e.__init__("hello") # segfault -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/

Re: [Python-Dev] Small RFEs and the Bug Tracker

2008-02-18 Thread Amaury Forgeot d7;Arc
ed". It may incite occasional contributors to work on some of these tasks, confident that their work will not be thrown away in two seconds. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/l

Re: [Python-Dev] [Python-checkins] r60919 - peps/trunk/pep-0008.txt

2008-02-22 Thread Amaury Forgeot d7;Arc
an 78 wrap, and the output is more difficult to read. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] nested classes leaking in compiler

2008-03-28 Thread Amaury Forgeot d7;Arc
then replaced with the inner class name. But a Py_XDECREF(c->u->u_private) is missing here... I will submit the correction in a few hours. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] nested classes leaking in compiler

2008-03-29 Thread Amaury Forgeot d7;Arc
int 3; } (with gdb I think you may signal SIGUSR1) - carefully inspect the code each time the debugger stops. Fortunately, many functions can be skipped: PyDict_SetItem and other bullet-proof parts of the code. The 20th break was the good one: a lack of symmetry between

Re: [Python-Dev] refleaks on trunk

2008-04-01 Thread Amaury Forgeot d7;Arc
ange(10): > main() > print(gc.collect()) > print(sys.gettotalrefcount()) The problem is that the MyFileIO class is registered in io.RawIOBase._abc_cache, and never freed. This is a problem with ABCs: _abc_cache should be changed to a WeakSet, like py

Re: [Python-Dev] Tracing at a more granular level (branch coverage)

2008-04-01 Thread Amaury Forgeot d7;Arc
al.c, which contains the interpreter loop. More precisely, the function maybe_call_line_trace() is responsible to call sys.settrace. I think you will have to change the logic there. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] [Python-3000] the release gods are angry at python

2008-04-02 Thread Amaury Forgeot d7;Arc
led? Is it disabled? Is there a sound card? Is it enabled or disabled? > Pah! > > +1 to removing audio out of -uall, if only for the sake of cats, erroneously > red buildbots, and poor ServerCentral NOC engineers. And I would not mind removing this module altogether, and provide a c

Re: [Python-Dev] r62129 - in python/trunk: PCbuild/debug.vsprops PCbuild/kill_python.c PCbuild/kill_python.vcproj PCbuild/pcbuild.sln PCbuild/pythoncore.vcproj PCbuild/release.vsprops Tools/buildbot/M

2008-04-04 Thread Amaury Forgeot d7;Arc
... I prefer the linker errors. Please do this only for buildbot builds! Or maybe have it controlled by an enviroment variable. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Need help in MAPI

2008-04-18 Thread Amaury Forgeot d7;Arc
ve: http://www.tech-archive.net/Archive/Development/microsoft.public.win32.programmer.messaging/2007-04/msg00036.html which describes the same problem (and a solution) Otherwise you are welcome ;-) -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@p

Re: [Python-Dev] python hangs when parsing a bad-formed email

2008-04-22 Thread Amaury Forgeot d7;Arc
> >>> fp = open('raro.txt') > >>> mail = email.message_from_file(fp) > never return When you think you found a problem with python, please submit an issue in the python issue tracker: http://bugs.python.o

Re: [Python-Dev] Should bytearray(b'a')[0] should 1-char or number?

2008-05-02 Thread Amaury Forgeot d7;Arc
s not listed in the run_unittest() call :-(. I found the cause of the problem: in io.py, TextIOWrapper.tell() calls decode() with a bytearray, without any reason it seems. I will take care of this tonight, if bugs.python.org is available. -- Amaury Forgeot d'Arc _

Re: [Python-Dev] sock.close() not closing?

2008-05-07 Thread Amaury Forgeot d7;Arc
} Of course, if you call sock.dup() or sock.makefile(), there is another reference to the underlying _sock, and you must close() all these objects. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailm

Re: [Python-Dev] Failed issue tracker submission

2011-03-30 Thread Amaury Forgeot d7;Arc
-00023G-4C >        for rep...@bugs.python.org; Tue, 29 Mar 2011 22:10:55 +0200 > Date: Tue, 29 Mar 2011 22:10:55 +0200 > Message-Id: > Content-Type: text/plain; charset="utf8" > MIME-Version: 1.0 > Content-Transfer-Encoding: base64 > From: python-dev@python.org > To: rep...@bugs.python.org >

Re: [Python-Dev] Policy for versions of system python

2011-04-04 Thread Amaury Forgeot d7;Arc
ompatible with previous versions of Python: http://www.python.org/dev/peps/pep-0291/ makeopcodetargets.py is not mentioned there, though. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

[Python-Dev] Borrowed and Stolen References in API

2011-05-04 Thread Amaury Forgeot d7;Arc
k? It's in the file Doc/data/refcounts.dat in some custom format. -- Amaury -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/m

Re: [Python-Dev] Borrowed and Stolen References in API

2011-05-05 Thread Amaury Forgeot d7;Arc
Hi, Le jeudi 5 mai 2011, Greg Ewing a écrit : > Amaury Forgeot d'Arc wrote: > > > It's in the file Doc/data/refcounts.dat > in some custom format. > > > However, it doesn't seem to quite convey the same information. > It lists the "refcount effect&

Re: [Python-Dev] Borrowed and Stolen References in API

2011-05-05 Thread Amaury Forgeot d7;Arc
arguments.  However, in fact it steals a > # reference to the item argument! Should we change this file then? And only list functions that don't follow the usual conventions. But I'm sure that there are external tools which already use refcounts.dat in its present format. -- Amau

Re: [Python-Dev] Borrowed and Stolen References in API

2011-05-06 Thread Amaury Forgeot d7;Arc
ow it would apply to macros. What about additional tags in the .rst files? -- Amaury -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.o

Re: [Python-Dev] how do you find out what version of Python a PEP landed in?

2011-05-17 Thread Amaury Forgeot d7;Arc
it was released with Python 2.5. Now, an "official" way to get this information would probably be better... -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] [RELEASED] Python 3.2.1 rc 1

2011-05-17 Thread Amaury Forgeot d7;Arc
Hi, 2011/5/18 anatoly techtonik : > That's great, but where is the list if changes? All changes are always listed in the Misc/NEWS file. A "Change log" link on every download page displays this file. -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] how do you find out what version of Python a PEP landed in?

2011-05-17 Thread Amaury Forgeot d7;Arc
2011/5/18 "Martin v. Löwis" : >> How do I know which version of Python a PEP lands in? > > You should look at the Python-Version header of the PEP. But some PEPs don't have it: 341, 342, 343, 353... -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] Don't set local variable in a list comprehension or generator

2011-05-18 Thread Amaury Forgeot d7;Arc
gt;> 27 LOAD_CONST 0 (None) 30 RETURN_VALUE It's probably not easy to do though. Think of expressions where the variable appears several times, or even where the variable is not the first object, like str(ord(x)). -- Amaury Forgeot d'Arc __

Re: [Python-Dev] AIX 5.3 - Build of Python 2.7.1

2011-06-07 Thread Amaury Forgeot d7;Arc
arious programs. Nothing Python can do about. You could try to disable the -g option. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mail

Re: [Python-Dev] Threaded asynchronous return from functions

2011-07-04 Thread Amaury Forgeot d7;Arc
not suitable to python-dev. Please ask this on the python-list mailing list, or eventually on python-ideas. (where someone will probably suggest you to use a nested function) Cheers, -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@pytho

[Python-Dev] Using PEP384 Stable ABI for the lzma extension module

2011-10-04 Thread Amaury Forgeot d7;Arc
ewhere else? Cheers, -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Using PEP384 Stable ABI for the lzma extension module

2011-10-04 Thread Amaury Forgeot d7;Arc
gt; (it starts with an underscore), so how can it be a limited API function? It's not a proposal of any kind; it's just the workaround I used to compile and test. OTOH, it seems that many modules already use this function. Is there another method that d

Re: [Python-Dev] Using PEP384 Stable ABI for the lzma extension module

2011-10-06 Thread Amaury Forgeot d7;Arc
getting the sliding window algorithm): > I'm not sure of what percentage of strings/buffers are concerned in a > "typical" program. Most usages of _PyBytes_Resize() are in compression libraries. 256K payloads are not rare in this area. -- Amaury Forgeot d'Arc __

[Python-Dev] check for PyUnicode_READY look backwards

2011-10-06 Thread Amaury Forgeot d7;Arc
d prefer it was written : if (PyUnicode_READY(*filename) < 0) because "< 0" clearly indicates an error condition. That's how all calls to PyType_Ready are written, for example. Am I the only one to be distracted by this idiom? -- Amaury Forgeot d'Arc _

Re: [Python-Dev] check for PyUnicode_READY look backwards

2011-10-06 Thread Amaury Forgeot d7;Arc
low one of two ways to indicate an error: - functions that return PyObject* will return NULL - functions that return an int will return -1 -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/py

Re: [Python-Dev] Test failures on Windows 7

2011-10-11 Thread Amaury Forgeot d7;Arc
y key, I don't remember which one though :-( -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Identifier API

2011-10-11 Thread Amaury Forgeot d7;Arc
date"); >_Py_IdentifierAdd(&s_update); > } > It should also check for errors; in this case the initialization is a bit more verbose: if (PY_IDENTIFIER_INIT(update) < 0) ; -- Amaury Forgeot d'Arc ___ Python-Dev mailing lis

Re: [Python-Dev] PEP 397 and idle

2011-11-01 Thread Amaury Forgeot d7;Arc
e development *of* python. For development *with* python, please ask your question on the python-list mailing list, or the comp.lang.python newsgroup. There are many friendly people there ready to answer your questions. Thank you! -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] ctypes: alignment of (simple) types

2011-11-07 Thread Amaury Forgeot d7;Arc
stom alignments. IMO a good thing would be a way to specify a function that computes sizes and alignments, that one can override to implement specific compiler features. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://

Re: [Python-Dev] PEP 405 (proposed): Python 2.8 Release Schedule

2011-11-09 Thread Amaury Forgeot d7;Arc
Hi, 2011/11/9 Barry Warsaw > I think we should have an official pronouncement about Python 2.8, and PEPs > are as official as it gets 'round here. > Do we need to designate a release manager? -- Amaury Forgeot d'Arc ___ Pyth

Re: [Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-21 Thread Amaury Forgeot d7;Arc
new non-movable buffer (since all memory allocated by PyPy is movable). So cpyext could support the new API for sure, but it's unlikely to give any performance benefit to an extension module. -- Amaury Forgeot d'Arc ___ Python-Dev mailin

Re: [Python-Dev] PyUnicode_Resize

2011-11-22 Thread Amaury Forgeot d7;Arc
t; > The easiest solution is to do nothing in Python 3.3: the API changed, but > it > doesn't really matter. Developers just have to be careful on this > particular > issue (which is not well documented today). > +1. A note in the "Porting C

Re: [Python-Dev] cpython: fix wrong credit and issue id given in previous commit

2011-11-22 Thread Amaury Forgeot d7;Arc
Hi, 2011/11/22 Giampaolo Rodolà > Sorry, thanks (fixed). > You also modified Lib/sched.py in the same commit. Was it intended? If not, please revert it. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-22 Thread Amaury Forgeot d7;Arc
without any merge tool. OTOH when PyPy changed minor versions (from 2.7.0 to 2.7.2 IIRC) most of the work was to follow the various tiny fixes made to the built-in modules: _io, _ssl and _multiprocessing. -- Amaury Forgeot d'Arc ___ Python

Re: [Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-22 Thread Amaury Forgeot d7;Arc
on of dict specialized for string keys, and the 2.7 range() returns a list that does not need to allocate its items, and can turn into a "real" list as soon as you modify it), so I would not qualify this task as a big hurdle, compared to other optimizations done in similar areas. --

Re: [Python-Dev] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-25 Thread Amaury Forgeot d7;Arc
not a good idea to rely on > it (and it's especially unwise to base benchmarks on it working :-)) > Note that this string optimization hack is still present in Python 3, but it now acts on *unicode* strings, not bytes. -- Amaury Forgeot d'Arc _

Re: [Python-Dev] PyPy 1.7 - widening the sweet spot

2011-11-25 Thread Amaury Forgeot d7;Arc
mple to me, but also the pickle/copy modules which were modified because of subtle differences around built-in methods (or was it the __builtins__ module?) And oh, I almost forgot distutils, which needs to parse some Makefile which of course does not exist in PyPy. - Differences between C extensions and pure P

Re: [Python-Dev] LZMA support has landed

2011-11-29 Thread Amaury Forgeot d7;Arc
velopment headers so that they can build the new module. > And don't worry about Windows builbots, they will automatically download the XZ prebuilt binaries from the usual place. (svn export http://svn.python.org/projects/external/xz-5.0.3) Next step: add support for tar.xz files (issue5

Re: [Python-Dev] IEEE/ISO draft on Python vulnerabilities

2011-12-13 Thread Amaury Forgeot d7;Arc
of the documentation: http://docs.python.org/library/stdtypes.html#mutable-sequence-types and only considers python 2.2 or older... -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsub

Re: [Python-Dev] IEEE/ISO draft on Python vulnerabilities

2011-12-13 Thread Amaury Forgeot d7;Arc
nly held by a local variable in listsort(). even gc.get_referrers() can return the empty list... -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.p

Re: [Python-Dev] Compiling 2.7.2 on OS/2

2012-01-05 Thread Amaury Forgeot d7;Arc
g = self.detect_modules() > File "./setup.py", line 1154, in detect_modules >for arg in sysconfig.get_config_var("**CONFIG_ARGS").split()] > AttributeError: 'NoneType' object has no attribute 'split' > make: *** [sharedmods] Error 1 >

Re: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class

2012-01-09 Thread Amaury Forgeot d7;Arc
r particular question: keep in mind that PyObject_Call takes arguments as a tuple; if you want to pass one tuple, you need to build a 1-tuple around your tuple] -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.p

Re: [Python-Dev] negative ref count on windows debug version

2012-01-20 Thread Amaury Forgeot d7;Arc
ns of similar constructs, and works very well in debug mode. If you can isolate a reproducible case, please file a ticket on bugs.python.org, with all details: code, versions of the compiler, etc. -- Amaury Forgeot d'Arc ___ Python-Dev mailing l

Re: [Python-Dev] Hashing proposal: change only string-only dicts

2012-01-20 Thread Amaury Forgeot d7;Arc
d code to do allocation of the str field even > that is questionable (i don't think there are?). There are. Unfortunately. https://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/scalarapi.c#L710 -- Amaury Forgeot d'Arc __

Re: [Python-Dev] Is this safe enough? Re: [Python-checkins] cpython: _Py_Identifier are always ASCII strings

2012-02-07 Thread Amaury Forgeot d7;Arc
at the start of a block - No designated initializers for structures - Ascii-only identifiers: http://msdn.microsoft.com/en-us/library/e7f8y25b.aspx -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailm

Re: [Python-Dev] Add a new "locale" codec?

2012-02-09 Thread Amaury Forgeot d7;Arc
the behaviour of the "mbcs" codec > under Windows. "locale" would be the moral (*) equivalent of that under > Unix. With the difference that mbcs cannot change during execution. I don't even know if it is possible to change it

Re: [Python-Dev] PyPy 1.8 released

2012-02-14 Thread Amaury Forgeot d7;Arc
rm is different from others mostly because a pointer (64bit) is larger than a long (32bit on all Windows flavors) Is the 32-bit build safe to use on 64-bit Windows? Yes, like many other 32-bit programs pypy for win32 works on Windows 64-bit. It will be limited to 3Gb of

Re: [Python-Dev] Possible bug in randint when importing pylab?

2010-08-19 Thread Amaury Forgeot d7;Arc
ist. In any case, reading the documentation of both functions should answer your question. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.py

Re: [Python-Dev] PEP 384 status

2010-08-31 Thread Amaury Forgeot d7;Arc
hat FILE* functions are allowed in the API, but their > use discouraged in the docs (with proper explanations from those who > know how to word them). IMO the warnings you'd write there would be similar to the motivations of PEP 384. -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] C API doc question

2010-09-03 Thread Amaury Forgeot d7;Arc
xtension to sphinx that reads this file and generates the annotation in the documentation. This file is not very well known, even by core developers... -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] versioned .so files for Python 3.2

2010-09-07 Thread Amaury Forgeot d7;Arc
Just to be clear: does this mean that PyUnicode_FromUnicode() and PyUnicode_AsUnicode() won't belong to the stable ABI? PyUnicode_AsWideChar() is not as fast, because it needs to copy the data. -- Amaury Forgeot d'Arc ___ Python-Dev

Re: [Python-Dev] Garbage announcement printed on interpreter shutdown

2010-09-10 Thread Amaury Forgeot d7;Arc
d probably are going to be quite confused by it, > > Agreed; this should be silent by default. +1. I suggest to enable it only when Py_DEBUG (or Py_TRACE_REFS or Py_REF_DEBUG?) is defined. -- Amaury Forgeot d'Arc ___ Python-Dev ma

  1   2   >