Re: [Python-Dev] Capturing PyRun_String stdout

2015-06-30 Thread Amaury Forgeot d'Arc
Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/amauryfa%40gmail.com -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org https

Re: [Python-Dev] EINTR handling...

2013-08-30 Thread Amaury Forgeot d'Arc
@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/amauryfa%40gmail.com -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] add new lambda syntax

2013-06-28 Thread Amaury Forgeot d'Arc
the choice between testlist_comp and vararglist, and the first one is picked. Python's parser generator only supports LL(1) grammars. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python

Re: [Python-Dev] stat module in C -- what to do with stat.py?

2013-06-20 Thread Amaury Forgeot d'Arc
in enums? -- 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] PyPy, Jython, IronPython: Enum convenience function and pickleablity

2013-05-02 Thread Amaury Forgeot d'Arc
. -- 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] [RELEASE] Python 2.7.4 release candidate 1

2013-03-27 Thread Amaury Forgeot d'Arc
features anymore, but you can install this backport from PyPI: https://pypi.python.org/pypi/cdecimal/2.3 -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Safely importing zip files with C extensions

2013-03-27 Thread Amaury Forgeot d'Arc
a sys.path_hook entry do the job. Such a WheelImporter could even inherit from zipimporter, plus the magic required for C extensions. It avoids the mount/nomount methods, only the usual sys.path operations are necessary from the user. -- Amaury Forgeot d'Arc

Re: [Python-Dev] Difference in RE between 3.2 and 3.3 (or Aaron Swartz memorial)

2013-03-06 Thread Amaury Forgeot d'Arc
search for 123f2dc0 didn’t find anything). I strongly suspect an incorrect usage of the is operator: https://github.com/mcepl/html2text/blob/master/html2text.py#L95 Identity of strings is not guaranteed... Does it change something if you use == instead? -- Amaury Forgeot d'Arc

Re: [Python-Dev] Disabling string interning for null and single-char causes segfaults

2013-03-04 Thread Amaury Forgeot d'Arc
'.encode('ascii', 'ignore') x == '', x is '' (True, False) -- 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

Re: [Python-Dev] Disabling string interning for null and single-char causes segfaults

2013-03-04 Thread Amaury Forgeot d'Arc
a bug. The example above is obviously from python2.7; there is a similar example with python3.2: x = b'\xe9\xe9'.decode('ascii', 'ignore') x == '', x is '' (True, False) ...but this bug has been fixed in 3.3: PyUnicode_Resize() always returns the unicode_empty singleton. -- Amaury Forgeot

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-13 Thread Amaury Forgeot d'Arc
and PyPy. Although using .format() is even slower. :-) Did you really try it? PyPy is really fast with str.__mod__, when the format string is a constant. Yes, it's jitted. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-13 Thread Amaury Forgeot d'Arc
2013/2/13 Christian Tismer tis...@stackless.com On 13.02.13 15:27, Amaury Forgeot d'Arc wrote: 2013/2/13 Lennart Regebro rege...@gmail.com On Wed, Feb 13, 2013 at 1:10 PM, Serhiy Storchaka storch...@gmail.com wrote: I prefer x = '%s%s%s%s' % (a, b, c, d) when string's number is more

Re: [Python-Dev] Usage of += on strings in loops in stdlib

2013-02-13 Thread Amaury Forgeot d'Arc
2013/2/13 Lennart Regebro rege...@gmail.com On Wed, Feb 13, 2013 at 3:27 PM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: Yes, it's jitted. Admittedly, I have no idea in which cases the JIT kicks in, and what I should do to make that happen to make sure I have the best possible real

Re: [Python-Dev] what is a dict_keys and where can I import it from?

2013-02-12 Thread Amaury Forgeot d'Arc
) -- 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] My CLA

2013-02-11 Thread Amaury Forgeot d'Arc
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] Release or not release the GIL

2013-02-01 Thread Amaury Forgeot d'Arc
the man page: if the syscall can return EINTR, then the GIL should be released. Should the call be retried in the EINTR case? (After a PyErr_CheckSignals) -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] hg.python.org Mercurial upgrade

2013-01-23 Thread Amaury Forgeot d'Arc
the rest of the line to be shifted. -- 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] hg.python.org Mercurial upgrade

2013-01-23 Thread Amaury Forgeot d'Arc
2013/1/23 Antoine Pitrou solip...@pitrou.net On Wed, 23 Jan 2013 20:41:11 +0100 Amaury Forgeot d'Arc amaur...@gmail.com wrote: 2013/1/22 Antoine Pitrou solip...@pitrou.net I've upgraded the Mercurial version on hg.python.org. If there any problems, don't hesitate to post here

Re: [Python-Dev] 回复: Python-Dev Digest, Vol 112, Issue 8

2012-11-07 Thread Amaury Forgeot d'Arc
advise. ___ 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/amauryfa%40gmail.com -- Amaury Forgeot d'Arc

Re: [Python-Dev] Sign of bytes

2012-10-31 Thread Amaury Forgeot d'Arc
, and it is in the same line as WORD, DWORD etc. The way you look at memory contents in assembly. In this case you should use ctypes.wintypes.BYTE ... which is unfortunately defined as c_byte! This is the bug :-( -- Amaury Forgeot d'Arc ___ Python-Dev

Re: [Python-Dev] Some joker is trying to unsubscribe me

2012-10-25 Thread Amaury Forgeot d'Arc
://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/amauryfa%40gmail.com -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] Split unicodeobject.c into subfiles

2012-10-23 Thread Amaury Forgeot d'Arc
a better presentation of its content. Could we have at least clear sections, with titles and descriptions? And use the ^L page separator for Emacs users? Code in posixmodule.c could also benefit of a better layout. -- Amaury Forgeot d'Arc ___ Python-Dev

Re: [Python-Dev] Python 2.7: only Visual Studio 2008?

2012-08-21 Thread Amaury Forgeot d'Arc
. But this does not prevent anyone from creating and maintaining such a patch, outside of the official python.org repository. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] test_hashlib

2012-07-21 Thread Amaury Forgeot d'Arc
hashlib hashlib.new(1) TypeError: name must be a string But if the _hashlib extension module is not available, the python version is used and ValueError is raised: import sys sys.modules['_hashlib'] = None import hashlib hashlib.new(1) ValueError: unsupported hash type 1 -- Amaury Forgeot

Re: [Python-Dev] A new JIT compiler for a faster CPython?

2012-07-17 Thread Amaury Forgeot d'Arc
, psyco did exactly this. -- 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] A new JIT compiler for a faster CPython?

2012-07-17 Thread Amaury Forgeot d'Arc
becomes more and more difficult each time one thinks about it) -- 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

Re: [Python-Dev] A new JIT compiler for a faster CPython?

2012-07-17 Thread Amaury Forgeot d'Arc
with the API; PyQt for example uses metaclasses with a custom tp_alloc slot, to have access to the PyTypeObject structure during the construction of the type... The Python C API is quite complete, but some use cases are still poorly supported. -- Amaury Forgeot d'Arc

Re: [Python-Dev] Cannot find the main Python library during installing some app.

2012-06-21 Thread Amaury Forgeot d'Arc
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] [compatibility-sig] making sure importlib.machinery.SourceLoader doesn't throw an exception if bytecode is not supported by a VM

2012-06-12 Thread Amaury Forgeot d'Arc
, would be (I think). This is a compile time option, not a runtime option. However, it looks like I lied, someone did implement it correctly, so we have the same behavior as CPython. Yes, PyPy seems to respect sys.dontwritebytecode. -- Amaury Forgeot d'Arc

Re: [Python-Dev] importlib is now bootstrapped (and what that means)

2012-04-16 Thread Amaury Forgeot d'Arc
Hi, 2012/4/16 Stefan Behnel stefan...@behnel.de On the down side, we would depend on Cython for evolving . Right, although not as a strict dependency. The code would still work just fine in plain Python. Not quite, we are talking of the imp module here... -- Amaury Forgeot d'Arc

Re: [Python-Dev] [Python-checkins] cpython: Issue #7652: Integrate the decimal floating point libmpdec library to speed

2012-03-22 Thread Amaury Forgeot d'Arc
to 3.3 will be more work ;-) Fortunately the libmpdec directory should be reusable as is. Nice work! -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Non-string keys in type dict

2012-03-08 Thread Amaury Forgeot d'Arc
, but the obvious thing to do here is to fix dir() and return only string attributes, i.e. those you can access with getattr. Cheers, -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] cpython compilation error

2012-03-03 Thread Amaury Forgeot d'Arc
, as I use the full Visual Studio). I confirm: you can safely ignore this warning message. The Solution folder is a convenient place to group files not related to a sub-project, like the readme.txt file. It has no effect on the build. -- Amaury Forgeot d'Arc

Re: [Python-Dev] PyPy 1.8 released

2012-02-14 Thread Amaury Forgeot d'Arc
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 memory, of course. -- Amaury Forgeot d'Arc

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

2012-02-09 Thread Amaury Forgeot d'Arc
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 at all, except by reinstalling Windows. -- 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 d'Arc
be 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/mailman/listinfo

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

2012-01-20 Thread Amaury Forgeot d'Arc
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 list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

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

2012-01-20 Thread Amaury Forgeot d'Arc
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 ___ Python-Dev mailing

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

2012-01-09 Thread Amaury Forgeot d'Arc
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.python.org/mailman

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

2012-01-05 Thread Amaury Forgeot d'Arc
showed a similar error on AIX with no clear resolution. Is it in the part that configures the dbm module? This paragraph is already protected by a if platform not in ['cygwin']:, I suggest to exclude 'os2emx' as well. -- Amaury Forgeot d'Arc ___ Python

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

2011-12-13 Thread Amaury Forgeot d'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 Unsubscribe

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

2011-12-13 Thread Amaury Forgeot d'Arc
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.python.org/mailman/options

Re: [Python-Dev] LZMA support has landed

2011-11-29 Thread Amaury Forgeot d'Arc
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] file.readinto performance regression in Python 3.2 vs. 2.7?

2011-11-25 Thread Amaury Forgeot d'Arc
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 ___ Python-Dev mailing list Python-Dev

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

2011-11-25 Thread Amaury Forgeot d'Arc
and pure Python modules are sometimes considered undefined behaviour and are rejected. See issue13274, this one has an happy ending, but I remember that the _pyio.py module chose to not fix some obscure reentrancy issues (which I completely agree with) -- Amaury Forgeot d'Arc

Re: [Python-Dev] PyUnicode_Resize

2011-11-22 Thread Amaury Forgeot d'Arc
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 code section of whatsnew/3.3 should be enough. -- Amaury Forgeot d'Arc

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

2011-11-22 Thread Amaury Forgeot d'Arc
Hi, 2011/11/22 Giampaolo Rodolà g.rod...@gmail.com 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@python.org http

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

2011-11-22 Thread Amaury Forgeot d'Arc
. 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-Dev mailing list Python-Dev@python.org

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

2011-11-22 Thread Amaury Forgeot d'Arc
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. -- Amaury Forgeot d'Arc ___ Python-Dev mailing

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

2011-11-21 Thread Amaury Forgeot d'Arc
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 mailing list Python-Dev@python.org http

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

2011-11-09 Thread Amaury Forgeot d'Arc
Hi, 2011/11/9 Barry Warsaw ba...@python.org 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 ___ Python-Dev

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

2011-11-07 Thread Amaury Forgeot d'Arc
. 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://mail.python.org

Re: [Python-Dev] PEP 397 and idle

2011-11-01 Thread Amaury Forgeot d'Arc
. 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 ___ Python-Dev mailing list

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

2011-10-11 Thread Amaury Forgeot d'Arc
:-( -- 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 d'Arc
check for errors; in this case the initialization is a bit more verbose: if (PY_IDENTIFIER_INIT(update) 0) return NULL or return -1 or goto error; -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

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

2011-10-06 Thread Amaury Forgeot d'Arc
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

[Python-Dev] check for PyUnicode_READY look backwards

2011-10-06 Thread Amaury Forgeot d'Arc
: 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 ___ Python-Dev mailing

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

2011-10-06 Thread Amaury Forgeot d'Arc
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/python-dev

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

2011-10-04 Thread Amaury Forgeot d'Arc
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 d'Arc
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 does not need to copy data? -- Amaury Forgeot d'Arc

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

2011-07-04 Thread Amaury Forgeot d'Arc
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@python.org http://mail.python.org/mailman/listinfo

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

2011-06-07 Thread Amaury Forgeot d'Arc
this issue on various 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

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

2011-05-18 Thread Amaury Forgeot d'Arc
, 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 Unsubscribe: http://mail.python.org/mailman/options/python-dev

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

2011-05-18 Thread Amaury Forgeot d'Arc
Hi, 2011/5/18 anatoly techtonik techto...@gmail.com: 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 ___ Python

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

2011-05-18 Thread Amaury Forgeot d'Arc
2011/5/18 Martin v. Löwis mar...@v.loewis.de: 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 ___ Python-Dev

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

2011-05-18 Thread Amaury Forgeot d'Arc
, or even where the variable is not the first object, like str(ord(x)). -- 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

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

2011-05-06 Thread Amaury Forgeot d'Arc
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.org/mailman

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

2011-05-05 Thread Amaury Forgeot d'Arc
Hi, Le jeudi 5 mai 2011, Greg Ewing greg.ew...@canterbury.ac.nz 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 on each parameter

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

2011-05-05 Thread Amaury Forgeot d'Arc
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. -- Amaury Forgeot d'Arc ___ Python-Dev

[Python-Dev] Borrowed and Stolen References in API

2011-05-04 Thread Amaury Forgeot d'Arc
? 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/mailman/options

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

2011-04-04 Thread Amaury Forgeot d'Arc
://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/python-dev Unsubscribe: http://mail.python.org/mailman

Re: [Python-Dev] Failed issue tracker submission

2011-03-30 Thread 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/amauryfa%40gmail.com -- Amaury Forgeot d'Arc

Re: [Python-Dev] MSI: Remove dependency from win32com.client module (issue4080047)

2011-02-01 Thread Amaury Forgeot d'Arc
to change the development process! For the moment, we use svn and the issue tracker. If every patch comes with its own workflow, no coordination is possible. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] MSI: Remove dependency from win32com.client module (issue4080047)

2011-01-31 Thread Amaury Forgeot d'Arc
Hi, 2011/1/31 techto...@gmail.com: Reviewers: , Please review this at http://codereview.appspot.com/4080047/ [...] It looks good, but did you create an item in the issue tracker? -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d'Arc
this dummy merge. - in any case, the actual repositories in http://code.python.org/hg/ are not clones of each other, so hg merge won't work and hg pull will clone the whole remote repository. (btw, now that I have hg pull another repo, how can I remove it? is my clone broken forever?) -- Amaury Forgeot

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d'Arc
2010/12/29 Georg Brandl g.bra...@gmx.net Am 29.12.2010 09:02, schrieb Amaury Forgeot d'Arc: - even if there was one, there is the problem of changes specifically made for 2.7 that make no sense in py3k. You'd have to perform a dummy merge to py3k which has the disadvantage

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d'Arc
a backport was needed. -- 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] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d'Arc
of course also be transplanted after the fact.  It requires another merge, but usually a trivial one. No, it's not trivial with hg: this is the very subject of the thread! -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d'Arc
2010/12/29 David Cournapeau courn...@gmail.com: On Wed, Dec 29, 2010 at 5:02 PM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: 2010/12/29 David Cournapeau courn...@gmail.com The easiest way I found to emulate git cherry-pick (which does exactly what you want) with hg is to use import/export

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d'Arc
, but in different changesets, and then merge these branches, Mercurial will usually notice that and not trouble you with conflicts. Actually I never passed the first step: make the same change to two branches. -- Amaury Forgeot d'Arc ___ Python-Dev

[Python-Dev] Backport troubles with mercurial

2010-12-28 Thread Amaury Forgeot d'Arc
we need precise use cases like this and recipes for common cases. Thanks for your help, -- Amaury Forgeot d'Arc diff -r 2777ae4d10d9 Lib/test/test_contextlib.py --- a/Lib/test/test_contextlib.py Tue Dec 28 22:14:34 2010 +0100 +++ b/Lib/test/test_contextlib.py Wed Dec 29 00:08:18 2010

Re: [Python-Dev] PEP 11: Dropping support for ten year old systems

2010-12-06 Thread Amaury Forgeot d'Arc
have to step forward. +1. Such a clause is already used to keep supporting the old VC6.0 compiler (a.k.a VC98!) -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] PEP 384 accepted

2010-12-02 Thread Amaury Forgeot d'Arc
with the new names, or defer these PEPs until distutils2 is ready. -- 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

Re: [Python-Dev] PEP 384 final review

2010-11-28 Thread Amaury Forgeot d'Arc
PyStructSequence_InitType is supposed to work on a unititialized static variable: PyTypeObject *PyStructSequence_NewType(PyStructSequence_Desc *desc); - PyStructSequence_SetItem(), similar to the macro PyStructSequence_SET_ITEM; the PyStructSequence structure should be hidden. -- Amaury Forgeot d'Arc

Re: [Python-Dev] is this a bug? no environment variables

2010-11-23 Thread Amaury Forgeot d'Arc
, in order to run a side-by-side assembly the specified env *must* include a valid SystemRoot. Can you keep this variable and start again? -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-23 Thread Amaury Forgeot d'Arc
it is to expose Python users to them. This was already discussed two years ago: http://mail.python.org/pipermail/python-dev/2008-July/080900.html So yes, wrap() and center() should be fixed. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
? PyCObject_AsVoidPtr(), PyCObject_Import() accept Capsule objects as well. Or are there other usages of the api pointer? -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
2010/9/28 Nick Coghlan ncogh...@gmail.com: Converting to a Py3k warning sounds like the best option. Can someone please explain why converting to a PyCapsule object is not an option? PyCObject_AsVoidPtr() and PyCObject_Import() accept Capsules and will work as before. -- Amaury Forgeot d'Arc

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
or .so. But what does this change? -- 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] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d'Arc
2010/9/29 Guido van Rossum gu...@python.org: On Tue, Sep 28, 2010 at 4:02 PM, Amaury Forgeot d'Arc amaur...@gmail.com wrote: 2010/9/29 Guido van Rossum gu...@python.org: Can someone please explain why converting to a PyCapsule object is not an option? PyCObject_AsVoidPtr

Re: [Python-Dev] r84983 - in python/branches/py3k: Doc/library/os.rst Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c

2010-09-24 Thread Amaury Forgeot d'Arc
2010/9/24 Antoine Pitrou solip...@pitrou.net: The getlogin test fails on many Unix buildbots, either with errno 2 (ENOENT) or 22 (EINVAL) or OSError: unable to determine login name: Do these buildbots run in a Windows service, i.e. with no user logged in? -- Amaury Forgeot d'Arc

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

2010-09-10 Thread Amaury Forgeot d'Arc
it and 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 mailing list Python-Dev

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

2010-09-07 Thread Amaury Forgeot d'Arc
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 mailing list Python-Dev@python.org http

Re: [Python-Dev] C API doc question

2010-09-03 Thread Amaury Forgeot d'Arc
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/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] PEP 384 status

2010-08-31 Thread Amaury Forgeot d'Arc
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 ___ Python-Dev mailing list Python

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

2010-08-19 Thread Amaury Forgeot d'Arc
, or the python-list mailing list. 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

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

2010-07-15 Thread Amaury Forgeot d'Arc
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.org/mailman/listinfo

Re: [Python-Dev] debug and release python

2010-06-15 Thread Amaury Forgeot d'Arc
to the supplied proprietary .pyd), and I added a (plain) definition for functions like _PyObject_DebugMalloc, even when PYMALLOC_DEBUG is undefined. Since the python_d.dll is a custom build anyway, adding the code is not too much pain. -- Amaury Forgeot d'Arc

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread Amaury Forgeot d'Arc
, 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 mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] tp_dealloc

2010-06-01 Thread Amaury Forgeot d'Arc
2010/6/1 sm...@gmx.net: 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 I have one more detail: I call py_decRef( pyObj) of dll

  1   2   >