Re: [Python-Dev] Capturing PyRun_String stdout

2015-06-30 Thread Amaury Forgeot d7;Arc
; Thanks, > Chris Moller > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/amauryfa%40gmail.com >

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

2013-08-30 Thread Amaury Forgeot d7;Arc
e3771 <http://bugs.python.org/issue3771> > > > cf > ___ > 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] Why are captured parameters also listed in co_varnames?

2013-07-02 Thread Amaury Forgeot d7;Arc
lso needed when x is a parameter of f(), for inspect.signature of course, but also because in python3 you can "del 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-dev/archive%40mail-archive.com

Re: [Python-Dev] add new lambda syntax

2013-06-28 Thread Amaury Forgeot d7;Arc
x27; text > ``` > > but when I write > ``` > (x,y=1)->x+y > ``` > the parser doesn't go into vararglist. > This grammar is not LL(1) anymore (it's probably LALR now) when seeing "x", it has the choice between testlist_comp and vararglist, and the first

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

2013-06-20 Thread Amaury Forgeot d7;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] PyPy, Jython, & IronPython: Enum convenience function and pickleablity

2013-05-02 Thread Amaury Forgeot d7;Arc
hon has a sort of speedup mode that disallows the use of > > _getframe, and I'd like to add this to Jython someday. > > This particular function is typically only called at module load time, > so speeding it up isn't worth it. It works fine on PyPy as well. It probably also

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

2013-03-27 Thread Amaury Forgeot d7;Arc
.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] [RELEASE] Python 2.7.4 release candidate 1

2013-03-27 Thread Amaury Forgeot d7;Arc
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://mail.python.org/mailman/

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

2013-03-06 Thread Amaury Forgeot d7;Arc
ere is known workaround. > Could anybody suggest a way how to find bugs on > http://bugs.python.org related to some particular commit (plain > search for 123f2dc0 didn’t find anything). > I strongly suspect an incorrect usage of the "is" operator: https://github.com/mcepl

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

2013-03-04 Thread Amaury Forgeot d7;Arc
>> x == '', x is '' (True, False) ...but this bug has been fixed in 3.3: PyUnicode_Resize() always returns the unicode_empty singleton. -- 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] Disabling string interning for null and single-char causes segfaults

2013-03-04 Thread Amaury Forgeot d7;Arc
ifferent empty string. Really? >>> x = u'\xe9'.encode('ascii', 'ignore') >>> x == '', x is '' (True, False) -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org h

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

2013-02-13 Thread Amaury Forgeot d7;Arc
2013/2/13 Lennart Regebro > On Wed, Feb 13, 2013 at 3:27 PM, Amaury Forgeot d'Arc > 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 >

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

2013-02-13 Thread Amaury Forgeot d7;Arc
2013/2/13 Christian Tismer > On 13.02.13 15:27, Amaury Forgeot d'Arc wrote: > > > 2013/2/13 Lennart Regebro > >> On Wed, Feb 13, 2013 at 1:10 PM, Serhiy Storchaka >> wrote: >> > I prefer "x = '%s%s%s%s' % (a, b, c, d)" when string

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

2013-02-13 Thread Amaury Forgeot d7;Arc
eing slow both on CPython 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

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

2013-02-12 Thread Amaury Forgeot d7;Arc
returns True, > the two classes will either be identical, or the second will be in the MRO > of the first. What have I missed? > Ah, the magic of ABCs... KeysView overrides __instancecheck__, and can pretend to be any other class. This is precisely set in Lib/collections/abc.py:

Re: [Python-Dev] My CLA

2013-02-11 Thread Amaury Forgeot d7;Arc
cessary to follow the rules, even if they were written by a lawyer and we don't understand all the reasons. -- 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 or not release the GIL

2013-02-01 Thread Amaury Forgeot d7;Arc
e the GIL. > > One reasonable heuristic is to check 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 ___

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

2013-01-23 Thread Amaury Forgeot d7;Arc
2013/1/23 Antoine Pitrou > On Wed, 23 Jan 2013 20:41:11 +0100 > "Amaury Forgeot d'Arc" wrote: > > 2013/1/22 Antoine Pitrou > > > > > I've upgraded the Mercurial version on hg.python.org. If there any > > > problems, don't hesitate t

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

2013-01-23 Thread Amaury Forgeot d7;Arc
link which causes 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] 回复: Python-Dev Digest, Vol 112, Issue 8

2012-11-07 Thread Amaury Forgeot d7;Arc
t;group" command will not run > forever. What can'i do > Mybe this is my fase, please give me some advise. > > > ___ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-de

Re: [Python-Dev] Sign of bytes

2012-10-31 Thread Amaury Forgeot d7;Arc
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 ma

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

2012-10-25 Thread Amaury Forgeot d7;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 ___ Python-Dev mailing list P

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

2012-10-23 Thread Amaury Forgeot d7;Arc
cate 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 ___

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

2012-08-21 Thread Amaury Forgeot d7;Arc
ich at the time was 3.3. 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.p

Re: [Python-Dev] test_hashlib

2012-07-21 Thread Amaury Forgeot d7;Arc
gt; import 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 hashli

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

2012-07-17 Thread Amaury Forgeot d7;Arc
s that play tricky games 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

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

2012-07-17 Thread Amaury Forgeot d7;Arc
oblem 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/option

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

2012-07-17 Thread Amaury Forgeot d7;Arc
ng, 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] Cannot find the main Python library during installing some app.

2012-06-21 Thread Amaury Forgeot d7;Arc
ail.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 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 d7;Arc
doesn't PyPy read and write .pyc files ( >> http://doc.pypy.org/en/latest/config/objspace.usepycfiles.html suggests >> you do)? So I would assume you are not affected by this. Jython and >> IronPython, though, would be (I think). >> > >

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

2012-04-16 Thread Amaury Forgeot d7;Arc
Hi, 2012/4/16 Stefan Behnel > > 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... -- Amaur

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

2012-03-22 Thread Amaury Forgeot d7;Arc
yPy 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:

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

2012-03-08 Thread Amaury Forgeot d7;Arc
plete shambles we should go > ahead and deprecate, then remove, that functionality. Not that I disagree with the conclusion, 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

Re: [Python-Dev] cpython compilation error

2012-03-03 Thread Amaury Forgeot d7;Arc
the solution should still > be > built. (I'm not absolutely sure, 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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 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] 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] 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] 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

[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] 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 __

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

[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] 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

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] 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] 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] [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
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] 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] 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-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&

[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] 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

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] MSI: Remove dependency from win32com.client module (issue4080047)

2011-02-01 Thread Amaury Forgeot d7;Arc
hange 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/ma

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

2011-01-31 Thread Amaury Forgeot d7;Arc
Hi, 2011/1/31 : > 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@p

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d7;Arc
understand: if you make the same change in two branches, 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&#

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d7;Arc
2010/12/29 David Cournapeau : > On Wed, Dec 29, 2010 at 5:02 PM, Amaury Forgeot d'Arc > wrote: >> 2010/12/29 David Cournapeau >>> >>> The easiest way I found to emulate git cherry-pick (which does exactly >>> what you want) with h

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d7;Arc
s needed. > > A change can 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

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d7;Arc
nt, some tickets got reopened because 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 d7;Arc
2010/12/29 Georg Brandl > > 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 py

Re: [Python-Dev] Backport troubles with mercurial

2010-12-29 Thread Amaury Forgeot d7;Arc
tw, now that I have "hg pull" another repo, how can I remove it? is my clone broken forever?) -- 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] Backport troubles with mercurial

2010-12-28 Thread Amaury Forgeot d7;Arc
in mind) At the moment, I feel that mercurial just cannot work for core Python development. At the very least before the migration 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

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

2010-12-06 Thread Amaury Forgeot d7;Arc
eer would 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

Re: [Python-Dev] PEP 384 accepted

2010-12-02 Thread Amaury Forgeot d7;Arc
d PEP384; they change the paths and filenames used by python. Either we modify distutils to comply 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

Re: [Python-Dev] PEP 384 final review

2010-11-28 Thread Amaury Forgeot d7;Arc
create types, since 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. -- A

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

2010-11-23 Thread Amaury Forgeot d7;Arc
> > Given the apparent difficulty of writing even basic text processing > algorithms in presence of surrogate pairs, I wonder how wise 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,

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

2010-11-23 Thread Amaury Forgeot d7;Arc
ml """On Windows, 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-D

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d7;Arc
2010/9/29 Guido van Rossum : > On Tue, Sep 28, 2010 at 4:02 PM, Amaury Forgeot d'Arc > wrote: >> 2010/9/29 Guido van Rossum : >>>> Can someone please explain why converting to a PyCapsule object is not >>>> an option? >>>> PyCObject_AsVoid

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d7;Arc
compiled in a separate .pyd 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 d7;Arc
2010/9/28 Nick Coghlan : > 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&

Re: [Python-Dev] Pronouncement needed in issue9675

2010-09-28 Thread Amaury Forgeot d7;Arc
ould like comments. Is compatibility really broken? 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:/

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 d7;Arc
2010/9/24 Antoine Pitrou : > > 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? -- A

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

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] 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] 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] 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] 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

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] 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. >> >> -- >

  1   2   >