Re: [Python-Dev] rename of ConfigParser module?

2008-05-15 Thread Mark Hammond
ion is using a python.dll located outside the Python directory). I'm sure there are pros and cons for including that directory, but I can't see justification for it to sometimes be used and sometimes not. So should I change msi.py to include this directory, or change pyconfig.h to not in

Re: [Python-Dev] Module renaming and pickle mechanisms

2008-05-19 Thread Mark Hammond
to > support him at some point as well). And until then, a +1 for MAL's position from me as well. 2.x should be quite conservative about such changes... Cheers, Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] disappearing exceptions

2008-05-20 Thread Mark Hammond
e, it seems Guido is against changing this behaviour even for 3k. cheers, Mark ___ 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-3000] Finishing up PEP 3108

2008-05-31 Thread Mark Dickinson
reader-friendly text version. > > The needed sources could then be distributed with Python -- it shouldn't > be more than about 200 kb. > +1 from me. Would this mean that htmllib and sgmllib could be removed without further ado. Mark ___ Pytho

Re: [Python-Dev] PEP 371 Discussion (pyProcessing Module)

2008-05-31 Thread Mark Hammond
uot; isn't the correct abstraction here, but maybe a "factory" approach, so the entire process creation mechanism can be replaced rather than just the name of the executable to spawn? Cheers, Mark ___ Python-Dev mailing list Python-Dev@pytho

Re: [Python-Dev] Mini-Pep: Simplifying the Integral ABC

2008-06-04 Thread Mark Dickinson
27;re stored. So maybe this should stay. (Though I've occasionally wondered why three-argument pow is part of the core language, rather than being in the standard library.) Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/m

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk: Include/object.h Lib/test/test_sys.py Misc/NEWS Objects/intobject.c Objects/longobject.c Objects/typeobject.c Python/bltinmodule.c

2008-06-24 Thread Mark Dickinson
little to do with implementation details and use or not of __bin__, and (b) I should have said this in the issue tracker a few days ago. Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-26 Thread Mark Dickinson
C99, Java, ...) I have to admit that I can't see much use for octal floats. Mark ___ 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-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-26 Thread Mark Dickinson
x literals uses a similar format; the standard is less specific about the precise output format, but it's still of the form 0x1.p Incidentally, the funny 'p' for the exponent instead of 'e' is apparently there to avoid ambiguity in something like: 0x1e+3 Mark ___

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-26 Thread Mark Dickinson
ng floating point numbers as hex, there should > also be support for hex floating point literals. > I agree with this. Or at least support for hex floating point strings, if not literals. > > Also, to follow C's tradition, it would be better if that was >

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-26 Thread Mark Dickinson
On Thu, Jun 26, 2008 at 9:55 PM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > > It's disadvantage from Python's point of view is that some features are IEEE > 754 Aargh! I can't believe I wrote that. Its. Its. Its. Anyway; some more detail: Both C99 and Jav

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-26 Thread Mark Dickinson
On Thu, Jun 26, 2008 at 10:28 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Remind me what %a does? From the C99 standard (section 7.19.6.1): A double argument representing a floating-point number is converted in the style [−]0xh.p±d, [...] ___ P

Re: [Python-Dev] [Python-checkins] r64424 - inpython/trunk:Include/object.h Lib/test/test_sys.pyMisc/NEWSObjects/intobject.c Objects/longobject.cObjects/typeobject.cPython/bltinmodule.c

2008-06-26 Thread Mark Dickinson
e magnitude of the number, and - the exponent doesn't vary with changes to the least significant bits of the float. The disadvantage is the loss of evalability. (Is that a word?) Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-26 Thread Mark Dickinson
On Thu, Jun 26, 2008 at 11:00 PM, Georg Brandl <[EMAIL PROTECTED]> wrote: > Let me remind you that %a currently means "call ascii()" in 3.0. Oh well. That's out then. I'll rephrase to "I'd be delighted with something similar

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-26 Thread Mark Dickinson
On Thu, Jun 26, 2008 at 11:00 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > Definitely. The paper I referenced in the issue discussion, > http://bugs.python.org/issue3008 mentioned a few times here, is > http://hal.archives-ouvertes.fr/docs/00/28/14/29/PDF/floating-point-article.pdf Perhaps it'

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-27 Thread Mark Dickinson
und to the nearest float, but since part of the point of hex floats is having a way to specify a given value *exactly*, it might make more sense to raise an exception rather than changing the value by rounding it. Mark ___ Python-Dev mailing li

Re: [Python-Dev] [Python-checkins] r64424 - in python/trunk:Include/object.h Lib/test/test_sys.py Misc/NEWSObjects/intobject.c Objects/longobject.c Objects/typeobject.cPython/bltinmodule.c

2008-06-27 Thread Mark Dickinson
intf (a, A).""" More recent 754r drafts spell the grammar out explicitly instead of referring to C99, and weaken the 'shall' (i.e., 'is required to') to a 'should' ('is recommended to'). Mark ___ Pyt

Re: [Python-Dev] [Python-checkins] r64424 - inpython/trunk:Include/object.h Lib/test/test_sys.pyMisc/NEWSObjects/intobject.c Objects/longobject.cObjects/typeobject.cPython/bltinmodule.c

2008-06-29 Thread Mark Dickinson
//bugs.python.org/file10780/hex_float.py It might be useful for testing. Mark ___ 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-checkins] r64424 - inpython/trunk:Include/object.h Lib/test/test_sys.pyMisc/NEWSObjects/intobject.c Objects/longobject.cObjects/typeobject.cPython/bltinmodule.c

2008-06-30 Thread Mark Dickinson
t; we don't tend to use ".toxyz()" as a naming convention much in Python. Would it be totally outrageous for the float constructor to accept hex strings directly? Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.

Re: [Python-Dev] UCS2/UCS4 default

2008-07-03 Thread Mark Hammond
MAL mentioned and all others with their own native unicode implementations would agree. Cheers, Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/optio

Re: [Python-Dev] [Python-checkins] r64424 - inpython/trunk:Include/object.h Lib/test/test_sys.pyMisc/NEWSObjects/intobject.c Objects/longobject.cObjects/typeobject.cPython/bltinmodule.c

2008-07-04 Thread Mark Dickinson
easons to prefer math module functions over float methods, or vice versa? Personally, I'm leaning slightly towards float methods: for me, these conversions are important enough to belong in the core language. But I don't have strong feelings either way. Mark __

[Python-Dev] C99 code in the Python core?

2008-07-05 Thread Mark Dickinson
everywhere, even on major platforms. (Examples are the inverse hyperbolic trig functions in math.h.) And the specific question: (2) Is it okay to use the '%a' format specifier for sprintf, sscanf and friends. Are there major platforms where this isn't implemented? (Using '%a&#x

[Python-Dev] patch review request: float.hex and float.fromhex

2008-07-11 Thread Mark Dickinson
dea in principle, but I still need to: - get permission from Barry to check in a new feature this late in the release cycle, and - persuade some other developer to review the patch. I'll gladly 'pay' for a patch review by reviewing one or more o

Re: [Python-Dev] unittest's redundant assertions: asserts vs. failIf/Unlesses

2008-07-13 Thread Mark Hammond
er the assumption that everyone is out to give you cause to "resent" things... As Steve said, this is getting silly... Mark ___ 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-3000] Reminder: beta 2's schedule for tomorrow

2008-07-15 Thread Mark Dickinson
cent thread on python-dev http://mail.python.org/pipermail/python-dev/2008-June/080558.html Mark ___ 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] PEP 3101: floats format 'f' and 'F'

2008-07-16 Thread Mark Dickinson
;f' formatting that there is no exponent? In C, the only difference seems to be that a NaN or infinity formatted with '%F' is turned into "NAN" or "INF" instead of "nan" or "inf". Mark ___ Python

Re: [Python-Dev] PEP 3101: floats format 'f' and 'F'

2008-07-16 Thread Mark Dickinson
On Wed, Jul 16, 2008 at 4:14 PM, Daniel Stutzbach <[EMAIL PROTECTED]> wrote: > There's no exponent for small-magnitude numbers, but still an exponent > for large-magnitude numbers: > >>>> '%f' % (10**100) > '1e+10

Re: [Python-Dev] PEP 3101: floats format 'f' and 'F'

2008-07-16 Thread Mark Dickinson
, part of my brain still believes that something formatted with 'F' should have all letters appearing in upper case. Mark ___ 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] assertRaises

2008-07-17 Thread Mark Hammond
tly > transparent and innocuous to all existing uses _feels_ right, because > it's more practical. For the record, and primarily to give the champion of this proposal a little more resolve the run the python-dev gauntlet on this issue given the recent -

Re: [Python-Dev] [Python-checkins] r65099 - python/trunk/Doc/library/string.rst

2008-07-18 Thread Mark Dickinson
into making sure that repr() or str() of an infinity or nan is 'inf' or 'nan' (or '-inf'), regardless of platform. +1 for normalizing '%f' and '%F' behaviour across platforms. Mark ___ Python-Dev mai

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

2008-07-23 Thread Mark Hammond
environment will solve the vast majority of the errors - except for the bsddb and wsgi ones, which don't look particularly Windows specific... Hope that helps a bit... Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

[Python-Dev] Python 2.6 on AMD64 recusion crash

2008-08-20 Thread Mark Hammond
4.2 for debug builds.) Is this an appropriate fix? Cheers, Mark ___ 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] 2.6 on Windows

2008-08-20 Thread Mark Hammond
> Can anybody verify and hopefully fix the problems seen in the Windows > bots for the trunk (i.e. 2.6)? FWIW, I can't reproduce most of those problems. My 32bit build sees: 303 tests OK. 57 tests skipped: test__locale test_aepack test_al test_applesingle test_bsddb185 test_bsddb3 test_c

Re: [Python-Dev] Python 2.6 on AMD64 recusion crash

2008-08-21 Thread Mark Hammond
Antoine writes: > Mark Hammond skippinet.com.au> writes: > > > > However, test_cpickle takes a different path and doesn't see this > doubling of > > the count - therefore dieing at the depth of 629 that I can see. > > 629 is a very low number, far low

Re: [Python-Dev] Python 2.6 on AMD64 recusion crash

2008-08-22 Thread Mark Hammond
> I believe it's the wrong diagnosis :) As I mentioned in the bug, I believe you are correct :) Thanks! Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.py

Re: [Python-Dev] subprocess insufficiently platform-independent?

2008-08-26 Thread Mark Hammond
; executable), but it > fails on Linux because it *only* executes the first argument in the > list ("svn") and does not pass the remaining arguments in the list to > the "svn" invocation. It sounds like in this particular example at least, this behaviour on Linux is the problem? Mark ___ 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 python.exe to PATH environment variable

2008-09-02 Thread Mark Hammond
is very important!) FWIW, my opinion is similar to how I read Martin's - that if a suitable, safe patch that cleanly uninstalls can be found, it should be included, but disabled by default. Personally I'd never use it. Cheers, Mark ___ P

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

2008-09-02 Thread Mark Hammond
> Mark Hammond skippinet.com.au> writes: > > > > > > The reason for adding the directory to the PATH is for it to be > > > recognized in any command prompt, not only the Python-dedicated > > > command prompt shortcut. > > > > Actually,

Re: [Python-Dev] Not releasing rc1 tonight

2008-09-04 Thread Mark Hammond
Barry writes: > In addition, Mark reported in IRC that there are some regressions in > the logging module. 3772 logging module fails with non-ascii data Which according to the IRC discussion doesn't apply to py3k. The fix for 2.6 is quite trivial... Ch

[Python-Dev] ANNOUNCE: CapPython, an object-capability subset of Python

2008-09-18 Thread Mark Seaborn
es are more a list of references and problems CapPython needs to address than an explanation of the current design. There was also a thread about CapPython on the e-lang mailing list: http://www.eros-os.org/pipermail/e-lang/2008-August/012828.html Mark [1] http://code.google.co

Re: [Python-Dev] ANNOUNCE: CapPython, an object-capability subset of Python

2008-09-18 Thread Mark Seaborn
Terry Reedy <[EMAIL PROTECTED]> wrote: > Mark Seaborn wrote: > > Private attributes may only be accessed through "self" variables. > > "Self" variables are defined as being the first arguments of functions > > defined inside class definitions,

[Python-Dev] Unbound methods (was: ANNOUNCE: CapPython...)

2008-09-19 Thread Mark Seaborn
"Guido van Rossum" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 18, 2008 at 2:15 PM, Mark Seaborn <[EMAIL PROTECTED]> wrote: > > Yes. The renaming of "im_self" and "im_func" is good. The removal of > > unbound methods is a *big* pro

Re: [Python-Dev] [python-committers] Proposed Python 3.0 schedule

2008-10-07 Thread Mark Hammond
distutils script in py2x syntax, but execute it via py3k. Its very possible this already exists and I've just missed it... Either way, I'm fairly confident a pywin32 build for py3k will be available in the next month or 2 (but as a result, I'm not really in a position to help w

Re: [Python-Dev] [python-committers] Proposed Python 3.0 schedule

2008-10-07 Thread Mark Hammond
hich, although py3x compatible, are being maintained in py2x syntax. Below is my quick attempt at such a script, which I promptly stopped looking at as soon as it worked (ie, I'm not sure if all those options are needed, etc), but it does let me execute my tests using py3k directly from th

Re: [Python-Dev] [python-committers] Proposed Python 3.0 schedule

2008-10-07 Thread Mark Hammond
> at such a script, which I promptly stopped looking at as soon as it > worked Which is quite obvious really given that: > # nuke ourselves from argv > del sys.argv[1] is removing the wrong value! Mark ___ Python-Dev mailing lis

Re: [Python-Dev] No manifest files on Windows?

2008-10-23 Thread Mark Hammond
from a manifest (FWIW, the CRT will abort() if initialized other than via a manifest!). I don't see a downside and can see how it would help with private assemblies. [I've also added a comment to this effect to the bug] Mark. ___ Python-

Re: [Python-Dev] No manifest files on Windows?

2008-10-24 Thread Mark Hammond
> Mark Hammond schrieb: > >> In http://bugs.python.org/issue4120, the author suggests that it > might > >> be possible to completely stop using the manifest mechanism, for VS > >> 2008. Given the many problems that this SxS stuff has caused, this > >> soun

Re: [Python-Dev] Optionally using GMP to implement long if available

2008-11-04 Thread Mark Dickinson
to turn this into the appropriate 32x32-bit hardware multiply. I agree that very-long-integer optimizations probably don't really belong in Python, but this patch should also provide significant benefits for short and medium-sized integers. I guess I need to go away and do some benchmarking... M

Re: [Python-Dev] Optionally using GMP to implement long if available

2008-11-04 Thread Mark Dickinson
ifdef in longintrepr.h for defining digit, twodigits, stwodigits etc, and a couple more for the places where digits are read and written in marshal.c. >> I agree that very-long-integer optimizations probably don't really belong in >> Python, > > Depends in part on whether

Re: [Python-Dev] Optionally using GMP to implement long if available

2008-11-10 Thread Mark Dickinson
bits) and eax (low 32 bits); this explains why edx has to be zeroed with the 'xorl' instruction. And if we were really expecting a 64-bit result then there should be an unsigned multiply (mull) there instead of a signed multiply (imull); of course they're the same

Re: [Python-Dev] Optionally using GMP to implement long if available

2008-11-10 Thread Mark Dickinson
dx which looks a lot like a 64 x 64 -> 64 multiply to me. This seems inefficient, when a 32 x 32 -> 64 bit multiply ought to be good enough. But maybe there isn't a significant performance difference on x86_64? Mark ___ Python-Dev mailing li

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Mark Dickinson
e minor bugs in longobject.c that I think should be applied to 2.6.1 and 3.0.1 (not worth it for 3.0). I'll try to put together a separate patch containing these. They're mostly either missing casts or places where int should have been changed to Py_ssize_t.

[Python-Dev] n.numbits: method or property?

2008-11-11 Thread Mark Dickinson
discussion: e.g. z.real, z.imag Thoughts? Mark ___ 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] n.numbits: method or property?

2008-11-11 Thread Mark Dickinson
On Wed, Nov 12, 2008 at 12:16 AM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > precisely, the ceiling of the log to base 2 of the integer). See D'oh. s/ceiling/1+floor/ Mark ___ Python-Dev mailing list Python-Dev@python.org http://m

Re: [Python-Dev] n.numbits: method or property?

2008-11-12 Thread Mark Dickinson
mething other than a power-of-2 base. Right: numbits is only a natural property of a *binary* integer. On the other hand, I can't realistically see Python ever adopting a non power-of-two based implementation. Mark ___ Python-Dev mailing

Re: [Python-Dev] n.numbits: method or property?

2008-11-12 Thread Mark Dickinson
;-> int conversion. And it turns out that overall performance doesn't suffer: I've coded up a Python extension module that implements decimal integers (stored internally in base 10**9) whose performance handily beats that of the current binary int/long. Mark ___

Re: [Python-Dev] Python for windows.

2008-11-26 Thread Mark Hammond
ves would be made easier if the Python MSI installer was split up to support "merge modules"? That way you could roll your own installer that met any guidelines or requirements that mattered to you, while still ensuring you got all the files that the official installer

Re: [Python-Dev] Python for windows.

2008-11-26 Thread Mark Hammond
icular, is created by MSVC 6.0, which isn't > even capable of dealing with manifests. > > Would it help compliance if we renamed them into .dat, so that the > conformance test doesn't recognize them as .exe files? That is probably a good idea regardless of the

Re: [Python-Dev] Python for windows.

2008-11-26 Thread Mark Hammond
Just plonk what you need (or *everything* except what you know you don't need, eg docs) in the same directory structure, test, rinse and repeat. Ideally you would also tweak the resource in pythonxx.dll which tells it the registry key to use too. If you had special UAC requirements

Re: [Python-Dev] Python for windows.

2008-11-26 Thread Mark Hammond
required > expect for the uninstalled key which is already clean. So to be clear, you don't desire any changes here? BTW - isn't there also a "\Program Files" requirement...? Cheers, Mark ___ Python-Dev mailing list Python-Dev@

Re: [Python-Dev] Python for windows.

2008-11-26 Thread Mark Hammond
ust acknowledge it is still only a theoretical concern. However, should such a situation arise, my position would probably be that unless it was MS suggesting it be preloaded on *all* PCs, we should sacrifice that part of being "OEM Ready" to best look after the interests of people who

Re: [Python-Dev] Python 2.6/3.0, IEEE 754 floating point semantics and S60

2008-11-27 Thread Mark Dickinson
also be a consequence of the weaker IEEE 754-1985 requirements, but I'm not sure. Mark ___ 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 2.6/3.0, IEEE 754 floating point semantics and S60

2008-11-27 Thread Mark Dickinson
cimal string is carried to the maximum precision specified in Table 2, namely, 9 digits for single and 17 digits for double. """ Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubs

Re: [Python-Dev] Python for windows.

2008-11-27 Thread Mark Hammond
Greg writes: > Mark Hammond wrote: > > > The only conflict I see here is the requirement to install into > "\Program Files" > > Doesn't that just mean that if an OEM decides to preinstall it, > they need to put it in Program Files? They're at liberty t

Re: [Python-Dev] Python 2.6/3.0, IEEE 754 floating point semantics and S60

2008-11-28 Thread Mark Dickinson
1) IEEE 754 compliance is intended, and (2) there are people at Symbian who care about fixing non-compliance issues. It makes the currently fairly insane activity of trying to write cross-platform floating-point C code that's going to work on any system that Python

Re: [Python-Dev] Python 2.6/3.0, IEEE 754 floating point semantics and S60

2008-11-28 Thread Mark Dickinson
On Fri, Nov 28, 2008 at 4:48 PM, Torne Wuff <[EMAIL PROTECTED]> wrote: > Are you aware of any compliance suite, test vectors, etc we could > 'borrow' to verify our implementation? See also the ucbtest package, available from http://www.netlib.org/fp/ ___

Re: [Python-Dev] Python for windows.

2008-11-30 Thread Mark Hammond
with unspecified changes has? Of course, I don't object to that and still think we should help where we can, but if that is true it would make the premise of this thread a little misleading, as obviously HP could then make *any* necessary changes without our agreement or even knowledge.

Re: [Python-Dev] Merging flow

2008-12-04 Thread Mark Dickinson
stions: (1) If I commit a change to the trunk that I don't want to go into release26-maint, should I explicitly block it using svnmerge? (2) Same question for trunk -> py3k (3) Same question for py3k -> release30-maint. I'm guessing that the answers are

Re: [Python-Dev] Merging flow

2008-12-05 Thread Mark Dickinson
2-67524,67539,67541,67559,67588' to '/python/trunk:1-61437,...,67467,67484,67528'. (where the ... abbreviates a big long list of revision numbers). Did I mess up somewhere, or does svnmerge not work on a revision that was itself the result of an svnmerge? Mark ___

Re: [Python-Dev] [PATCH] Make 2to3 --write preserve file mode (eg. execution bit)

2008-12-08 Thread Mark Dickinson
ugs.python.org That way it's less likely to get lost. :) Thanks, Mark ___ 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] Floating-point implementations

2008-12-09 Thread Mark Dickinson
ssa would have in that case, but surely not more than 117. I asked a related question a while ago: http://mail.python.org/pipermail/python-dev/2008-February/076680.html Mark ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.or

Re: [Python-Dev] Floating-point implementations

2008-12-09 Thread Mark Dickinson
provides, or about what the C compiler and library support? Or something else entirely? It looks like IEEE-conforming 128-bit floats would have a 113-bit mantissa (including the implicit leading '1' bit). Mark ___ Python-Dev mailing list Pyth

Re: [Python-Dev] Floating-point implementations

2008-12-10 Thread Mark Dickinson
On Tue, Dec 9, 2008 at 5:24 PM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > I don't know of any. There are certainly places in the codebase that > assume 56 bits are enough. (I seem to recall it's something like > 56 bits for IBM, 53 bits for IEEE 754, 48 for Cray, and

Re: [Python-Dev] Floating-point implementations

2008-12-10 Thread Mark Dickinson
oating point. Decimal is *already* floating-point. Its handling of exponents and significant zeros mean that it can do a pretty good job of imitating fixed-point as well, but it's still at root a floating-point type. Mark ___ Python-Dev mailing l

[Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Mark Dickinson
thon executable, so that it's available to a dynamically loaded extension module? I've found the -u option to gcc, but this doesn't seem like a particularly portable solution. Of course, if this problem exists only on OS X, then the solution doesn't need to be portable. Thanks,

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Mark Dickinson
latforms whose math libraries haven't caught up with C99. The rest is only (possibly) needed in the math and cmath modules. In fact, on OS X none of pymath.c is needed at all, which results in lots of "ranlib: file: libpython2.7.a(pymath.o) has no symbols" in

[Python-Dev] Python 3 - Mac Installer?

2008-12-26 Thread Mark Summerfield
Hi, Just wondered if/when there'd be a Mac installer for Python 3? Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Programming in Python 3" - ISBN 0137129297 ___ Pyt

Re: [Python-Dev] ParseTuple question

2009-01-03 Thread Mark Hammond
already know that, so I doubt I understand the question... Cheers, Mark ___ 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] py3k, bad sys.path and abort()

2009-01-03 Thread Mark Hammond
xceptions then occur happen as normal without terminating the process? Given it is an edge-case, I thought I'd open it here for discussion before putting work into a patch or opening a bug. Thanks, Mark ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] ParseTuple question

2009-01-04 Thread Mark Hammond
code CRT is available of course - if not, I guess you'd need to call the win32 api instead of _wopen. Alternatively, the PyArg_ParseTuple() call could possibly be changed to use the 'e' format string Hoping-that-was-what-you-were-asking, ly, Mark __

Re: [Python-Dev] #ifdef __cplusplus?

2009-01-05 Thread Mark Hammond
Cheers, Mark. ___ 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] [PATCH] Allow Python to build on MIPS Targets

2009-01-05 Thread Mark Miller
ects Repository UUID: 6015fed2-1504-0410-9fe1-9d1591cc4771 Revision: 68358 Node Kind: directory Schedule: normal Last Changed Author: marc-andre.lemburg Last Changed Rev: 68344 Last Changed Date: 2009-01-05 13:43:35 -0600 (Mon, 05 Jan 2009) Thanks. mips-ffi.patch Description: Binary data -

Re: [Python-Dev] [Python-checkins] r68182 - in python/trunk: Lib/decimal.py Misc/NEWS

2009-01-06 Thread Mark Dickinson
n* (as opposed to Decimal method) that takes a Decimal, int or long and returns a Decimal; similarly for exp, log, log10, ... Another thing that has been requested recently on c.l.p. is good implementations of trig functions for Decimal, which are quite hard to do properly. Mark

[Python-Dev] __long__ method still exists in Python 3.x

2009-01-11 Thread Mark Dickinson
I noticed that the builtin numeric types (int, float, complex) all still have a __long__ method in 3.x. Shouldn't this have disappeared as part of the int/long unification? Is there any reason not to remove this (by setting the nb_long entry to 0 in all three cases)?

Re: [Python-Dev] __long__ method still exists in Python 3.x

2009-01-12 Thread Mark Dickinson
it to nb_reserved. I see uses of nb_long in Object/abstract.c and Modules/_struct.c, but no others in the core. I think the first can be removed, and the second changed to nb_int. Patch at http://bugs.python.org/issue4910 Thanks, Mark ___ Python-Dev

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Mark Dickinson
norwitz-x86/build/Lib/unittest.py", line > 345, in failUnlessRaises >callableObj(*args, **kwargs) > IOError: [Errno 9] Bad file descriptor At the risk of stating the obvious, shouldn't you be checking for IOError rather than OSError in assertRaises? Mark ___

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Mark Dickinson
certainly looks like it: here are lines 6632--6638 of posixmodule.c, in posix_ftruncate: Py_BEGIN_ALLOW_THREADS res = ftruncate(fd, length); Py_END_ALLOW_THREADS if (res < 0) { PyErr_SetFromErrno(PyExc_IOError); return NULL;

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-15 Thread Mark Dickinson
uire (at least) a tracker discussion. In the meantime, please could you either revert or fix the r68547 checkin? It looks as though *all* of the (non-Windows) trunk buildbots are failing on test_os, and if any of the release managers notices we'll all be in

Re: [Python-Dev] [Python-checkins] r68547 - in python/trunk/Lib/test: test_datetime.py test_os.py

2009-01-16 Thread Mark Dickinson
On Thu, Jan 15, 2009 at 10:40 PM, Kristján Valur Jónsson wrote: > Right. I've fixed the remainder, things should quiet down now. > K Thank you! ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

[Python-Dev] Deprecate PyNumber_Long?

2009-01-16 Thread Mark Dickinson
Now that all uses of nb_long and __long__ have disappeared from the 3.x codebase, would it make sense to mark PyNumber_Long as deprecated in the c-api documentation, and convert all existing uses (I count a grand total of 3 uses in the py3k branch!) to PyNumber_Int? (The two functions behave

Re: [Python-Dev] Deprecate PyNumber_Long?

2009-01-17 Thread Mark Dickinson
good to deprecate one or the other; I don't really have a strong opinion about which one. Mark ___ 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] Strategies for debugging buildbot failures?

2009-01-18 Thread Mark Dickinson
I don't see this sort of thing happening, but it seems like an attractive strategy, since it allows one to test one particular buildbot (via the form for requesting a build) without messing up anything else. What do others do to debug these failures? Mark (P.S. After a bit of Googling, I sus

Re: [Python-Dev] Support for the Haiku OS

2009-01-19 Thread Mark Dickinson
problems (though I think it's more likely that they're Haiku floating-point problems). I'd be interested to see short code-snippets that reproduce these issues. - I wouldn't worry so much about the test_math and test_cmath failures until you get the others sorted

Re: [Python-Dev] Strategies for debugging buildbot failures?

2009-01-20 Thread Mark Dickinson
> have the developers get access to the buildbot slaves. Thanks, Martin. I think I've pretty much run out of time to pursue this particular problem for the moment; I may return to it later. It's good to know that these options are available, though. Mark __

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

2009-01-22 Thread Mark Hammond
ith MSVC built binaries, I can't work out why you are fricking around with msvcr80 either! Cheers, Mark ___ 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.0.1/3.1.0 summary

2009-01-30 Thread Mark Dickinson
/bugs.python.org/issue1717) for 3.0.1? Mark ___ 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] Removing tp_compare?

2009-01-31 Thread Mark Dickinson
ed (which used to be nb_long) in the PyNumberMethods structure. Mark ___ 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] Removing tp_compare?

2009-02-01 Thread Mark Dickinson
opinion it is safe to change the type of tp_reserved from (cmpfunc *) to some other (dummy) function pointer? I now realize (thanks to your message) that changing the type to (void *) isn't entirely safe, since sizeof(void*) may be different from sizeof(cmpfunc*

Re: [Python-Dev] Removing tp_compare?

2009-02-01 Thread Mark Dickinson
On Sun, Feb 1, 2009 at 4:21 PM, Guido van Rossum wrote: > Sounds like Martin is referring to your suggestion to raise an > exception when initializing a type that has a non-NULL thing here. I > agree with him. Got it. Thank you. Mark ___ P

Re: [Python-Dev] Removing tp_compare?

2009-02-01 Thread Mark Dickinson
ut it. The best reference I could find (besides the C standards themselves, and in particular section 6.3.2.3 of the C99 standard) was an ancient and short discussion on comp.std.c (starting June 21, 1998, subject "Q: void pointers and function pointers") where some

<    6   7   8   9   10   11   12   13   14   >