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

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

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

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

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

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

[Python-Dev] Merging changes before beta

2008-06-17 Thread Amaury Forgeot d7;Arc
17-63618, 63714,63718,63742,63745,63799 (jesus.cea, gregory.p.smith): bsddb module This is a important list of changes, and may require heavy adaptations to the code. issue2887 has been filed for this task. Do you think these tasks should be considered as Release Blockers? Beta1 is close... -- Amaury

Re: [Python-Dev] test_multiprocessing: test_listener_client flakiness

2008-06-18 Thread Amaury Forgeot d7;Arc
#x27;AF_INET': -return ('localhost', 0) +return ('', 0) elif family == 'AF_UNIX': return tempfile.mktemp(prefix='listener-', dir=get_temp_dir()) elif family == 'AF_PIPE': And the test started to pass for

Re: [Python-Dev] test_multiprocessing: test_listener_client flakiness

2008-06-18 Thread Amaury Forgeot d7;Arc
Hello, 2008/6/18 Jean-Paul Calderone <[EMAIL PROTECTED]>: > On Wed, 18 Jun 2008 18:35:26 +0200, Amaury Forgeot d'Arc > <[EMAIL PROTECTED]> wrote: >> >> [snip] >> >> I just found the cause of the problem ten minutes ago: >> It seems tha

Re: [Python-Dev] test_multiprocessing:test_listener_client flakiness

2008-06-18 Thread Amaury Forgeot d7;Arc
No, it is *not* different than localhost - it *is* localhost as that > is the object.address of the server. Well, on my win2k machine getfqdn('127.0.0.1') returns the actual name of the machine. This is the name that was stored in server.address. Hence my patch that simply remove t

Re: [Python-Dev] C API for gc.enable() and gc.disable()

2008-06-20 Thread Amaury Forgeot d7;Arc
op I remember that a similar issue was discussed some months ago: http://bugs.python.org/issue2607 In short: the gc is tuned for typical usage. If your usage of python is specific, use gc.set_threshold and increase its values. -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] deepcopy

2008-06-27 Thread Amaury Forgeot d7;Arc
(1 given It's possible that "event" contains an object that cannot be copied. >From the traceback, one can see that your object has an attribute that is a list of lists, and the failing object is there. Googling for the error message suggests that the object could be an array.array. The

Re: [Python-Dev] UCS2/UCS4 default

2008-07-03 Thread Amaury Forgeot d7;Arc
fixed. > The one thing that may be missing from Python is things like > interpretation of surrogates by functions like isalpha() and I'm okay > with adding that (since those have to loop over the entire string > anyway). In this case, a new .isascii() method would be needed for so

Re: [Python-Dev] bsddb: Test failures on windows (HELP!)

2008-07-24 Thread Amaury Forgeot d7;Arc
rrors I see lots of bsdbd errors, many of the form: >> >> | DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit >> (100) exceeded') > > Maybe this one is due to the fact that Windows, unlike POSIX, doesn't > allow unlinking an open file? I see that some t

Re: [Python-Dev] Status of mingw and Python 2.6 ?

2008-07-26 Thread Amaury Forgeot d7;Arc
90.dll runtime: http://bugs.python.org/issue3308 For example, if the extension module contains standard date functions (using time_t), it won't load. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python

Re: [Python-Dev] 3.0 C API to decode bytes into unicode?

2008-08-01 Thread Amaury Forgeot d7;Arc
ted, nor is any function declared in codecs.h. Is it part of the public API? -- 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] "error: None" when building extensions under 2.6

2008-08-24 Thread Amaury Forgeot d7;Arc
sions, and it either succeeds, or fails with a meaningful (for an expert) error message. Which extensions did you try? is there some output before the error? -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python

Re: [Python-Dev] no tp_traverse for dict iters

2008-08-25 Thread Amaury Forgeot d7;Arc
a list iterator is collected by the garbage collector, but a cycle with a dict iterator is not. This is worth a bug report IMO. -- Amaury Forgeot d'Arc import gc, weakref def test_container_iterator(i): class C(object): pass obj = C() ref = weakref.ref(obj) if i

Re: [Python-Dev] Add python.exe to PATH environment variable

2008-09-02 Thread Amaury Forgeot d7;Arc
//bugs.python.org/issue3561 -- 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] C API for gc.enable() and gc.disable()

2008-09-04 Thread Amaury Forgeot d7;Arc
) Your example crashes because it calls python API functions when the GIL is not held, and is so invalid. There are two solutions: - re-acquire the GIL in your C functions with PyGILState_Ensure() & co - use ctypes.PyDLL( "./tst.so" ), which does not release the GIL. Hope this helps,

Re: [Python-Dev] HTTPS read-only SVN access is denied?

2008-09-04 Thread Amaury Forgeot d7;Arc
r to (for example) http://svn.python.org/projects/python/trunk/Lib/distutils/ and download the desired files from there? -- 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] xmlrpc via proxy for bzr and bugzilla in 2.6

2008-09-05 Thread Amaury Forgeot d7;Arc
e648658 It's very unlikely that such a change can be made at this stage. There is not even a patch to review... But the tracker seems to contains a workaround. It seems to work without any modification of the standard library Does it actually work? Could bzr use it? -

Re: [Python-Dev] What this code should do?

2008-09-19 Thread Amaury Forgeot d7;Arc
on this b) pypy > implements it differently) Note that python 3.0 has a different behaviour; in the first sample, it prints: A ( ... B (, ... See the subtle differences between http://docs.python.org/dev/library/sys.html#sys.exc_info http://docs.python.org/dev/3.0/library/sys.html#sys

Re: [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-09-27 Thread Amaury Forgeot d7;Arc
hat this is THE unresolved issue of python 3.0. -- 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] python-checkins seems broken

2008-10-03 Thread Amaury Forgeot d7;Arc
, where many people can work on the same files. Do other subscribed people receive these commit messages? Is there a problem with the mailer, or some SVN trigger? -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org

[Python-Dev] Suspect intermittent failure in buildbots

2008-10-03 Thread Amaury Forgeot d7;Arc
followed by LOAD_ATTR: 0 LOAD_GLOBAL 0 (codecs) 3 LOAD_ATTR 1 (ascii_decode) ... I fail to imagine a reason, apart from a creeping memory error (in dictionary lookup; chilling idea). Thoughts? -- Amaury Forgeot d'Arc

Re: [Python-Dev] python dll no longer in system directory?

2008-10-09 Thread Amaury Forgeot d7;Arc
LDIR", ".") #install python30.dll into root dir for now dlldir = root They were added by r61109: " Bundle msvcr90.dll as a "private assembly". " but I don't know if simply restoring the previous value will work in every case: If the C Run-T

Re: [Python-Dev] [Python-checkins] r66863 - python/trunk/Modules/posixmodule.c

2008-10-09 Thread Amaury Forgeot d7;Arc
ch with few restrictions: it's here to share code with others and experiment with the next python release. The need for stability is much lower. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailm

Re: [Python-Dev] __getattr__ and new style classes

2008-10-09 Thread Amaury Forgeot d7;Arc
e "value" string object must be created anyway, and this could be avoided in most Getattr cases. -- 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] Save file by using file() function and fileDialog()

2008-10-30 Thread Amaury Forgeot d7;Arc
Please send this kind of questions to the comp.lang.python newsgroup, or the wxPython-users mailing list. There are many python users there willing to help. Furthermore wxPython is not developed here (or is it PythonCard?), so you'll get little expertise from us. (a hint however: "result.pa

Re: [Python-Dev] My patches

2008-10-30 Thread Amaury Forgeot d7;Arc
everyone...) By the way, it seems that this python-checkins mailing list did not archive the recent commits: http://mail.python.org/pipermail/python-checkins/2008-October/date.html#end I miss them... Can someone fix it? -- Amaury Forgeot d'Arc _

Re: [Python-Dev] How to read fonts in python

2008-11-17 Thread Amaury Forgeot d7;Arc
kly get a response there. -- 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] Python under valgrind

2008-11-28 Thread Amaury Forgeot d7;Arc
x27;t prove that. Has anyone investigated this kind of valgrind > report? Did you use the suppressions file as suggested in Misc/README.valgrind? --suppressions=Misc/valgrind-python.supp -- Amaury Forgeot d'Arc ___ Python-Dev mailing list

Re: [Python-Dev] Taint Mode in Python 3.0

2008-12-04 Thread Amaury Forgeot d7;Arc
de of the interpreter is generated, and it already proposes a "Taint" option at translation time. http://codespeak.net/pypy/dist/pypy/doc/objspace-proxies.html#taint With only 300 lines of elegant python code... -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] Buildbots for 2.6 and 3.0

2008-12-06 Thread Amaury Forgeot d7;Arc
ee bottom of http://www.python.org/dev/buildbot/3.0/x86%20W2k8%203.0/builds/486/step-test/0 ) -- 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/

Re: [Python-Dev] Nonlocal shortcut

2008-12-07 Thread Amaury Forgeot d7;Arc
on a grammar that > wants to support Python 3.0? An issue was already filed about this: http://bugs.python.org/issue4199 It should be ready for inclusion in 3.0.1. -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://m

Re: [Python-Dev] sys.stdout.write encoding failure

2008-12-15 Thread Amaury Forgeot d7;Arc
'ascii' codec come from? It's sys.getdefaultencoding default value. sys.stdout.write() expects a bytes string. What you see here is the coercion of the unicode to a string. -- 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] try/except in io.py

2008-12-19 Thread Amaury Forgeot d7;Arc
tributeError, NameError): > pass I suggest "except Exception": SystemExit and KeyboardInterrupt inherit from BaseException, not from Exceptions And close() is likely to raise IOErrors. -- Amaury Forgeot d'Arc ___ Pyt

Re: [Python-Dev] Distutils maintenance

2008-12-19 Thread Amaury Forgeot d7;Arc
n active distutils maintainer, and many > stale distutil tickets are in need of attention I'm sure Tarek could > provide. Tarek has also been providing many useful patches of his own. +1 from me as well. -- Amaury Forgeot d'Arc ___

Re: [Python-Dev] Why is there still a PRINT_EXPR opcode in Python 3?

2009-01-05 Thread Amaury Forgeot d7;Arc
en I > look at the code of PyRun_InteractiveOne, it seems it should be > possible to kill it off. How would you display multiple lines, like: >>> for x in range(3): ...x, x * x ... (0, 0) (1, 1) (2, 4) >>> if 1: ... "some line" ... "another

Re: [Python-Dev] http://bugs.python.org/issue3628

2009-01-09 Thread Amaury Forgeot d7;Arc
n newsgroup. Be prepared to provide the complete error output: I fail to see how a crash in IDLE 3.0b3 would be similar to some problem with cherrypy! -- Amaury Forgeot d'Arc ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/

Re: [Python-Dev] compiling python2.5 (msys+mingw+wine) - giving up using msvcr80 assemblies for now

2009-01-22 Thread Amaury Forgeot d7;Arc
a bit cleverer (or perhaps a bit less > cleverer) than i'm expecting it to be? On Windows, you must turn on the --enable_shared option if you want to build extension modules. You could take the cygwin build as an example, see what's done in ./configure.in. -- 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] Using PEP384 Stable ABI for the lzma extension module

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

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

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

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

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

[Python-Dev] check for PyUnicode_READY look backwards

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

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

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

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

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

Re: [Python-Dev] Identifier API

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

Re: [Python-Dev] PEP 397 and idle

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

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

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

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

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

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

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

Re: [Python-Dev] PyUnicode_Resize

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

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

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

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

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

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

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

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

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

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

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

Re: [Python-Dev] LZMA support has landed

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [Python-Dev] PyPy 1.8 released

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

Re: [Python-Dev] 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] 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] [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] 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] [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] 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] 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] 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
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] 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] 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] 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] 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] 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] 回复: 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] 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] 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] 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] 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] 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] 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] 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
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 >

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

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

<    1   2