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] 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] 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] 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] [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] 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] 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] 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] 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] 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] 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] test_io fails on test_1686475

2009-03-01 Thread Amaury Forgeot d7;Arc
2 supports time stamps past 2038; we currently don't */ *time_out = Py_SAFE_DOWNCAST((in / 1000) - secs_between_epochs, __int64, int); the test (btw, it's in test_os.py) is trying os.stat(r"c:\pagefile.sys") Can you please check the three time stamps of this file (

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@

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

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

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

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

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

  1   2   >