Re: [Python-Dev] distutils, win32, multiple C extensions

2013-04-23 Thread Curt Hagenlocher
Python-List (http://mail.python.org/mailman/listinfo/python-list) is the better place for this kind of question; Python-Dev is for the development of Python itself, not for development using Python. When you built E1, it should have also built a .lib file in addition to the .pyd. It's the .lib

Re: [Python-Dev] VS 11 Express is Metro only.

2012-05-25 Thread Curt Hagenlocher
On Fri, May 25, 2012 at 5:06 AM, mar...@v.loewis.de wrote: It is better documented here, and seems something to start thinking about: http://arstechnica.com/**information-technology/2012/**

Re: [Python-Dev] Does trunk still support any compilers that *don't* allow declaring variables after code?

2012-05-02 Thread Curt Hagenlocher
On Wed, May 2, 2012 at 6:56 AM, Stefan Behnel stefan...@behnel.de wrote: I'm not sure if MSVC and MSVC++ are the same thing, but I surely remember reports by MSVC users only a few years ago that Cython generated C code contained a declaration after an executed code at some point, and that

Re: [Python-Dev] Draft PEP and reference implementation of a Python launcher for Windows

2011-03-20 Thread Curt Hagenlocher
On Sun, Mar 20, 2011 at 6:27 PM, Martin v. Löwis mar...@v.loewis.de wrote: I'm primarily bothered about the failure to implement TerminateProcess correctly. I don't actually know what use cases would be affected, other then saying that anything launching py.exe could be affect, in particular

Re: [Python-Dev] Windows

2010-08-04 Thread Curt Hagenlocher
issues. I would turn off JIT debugging. On an unattended machine, it's more annoying than useful. http://msdn.microsoft.com/en-us/library/5hs4b7a6(VS.80).aspx -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Why is nan != nan?

2010-03-25 Thread Curt Hagenlocher
. There are multiple representations of NaN in the IEEE encoding; that's actually part of the problem with saying that NaN = NaN or NaN != NaN. If you want to ignore the payload in the NaN, then you're not just comparing bits any more. -- Curt Hagenlocher c...@hagenlocher.org

Re: [Python-Dev] Why is nan != nan?

2010-03-25 Thread Curt Hagenlocher
the FPU and the C libraries I tested will preserve the payload. I imagine Python just inherits their behavior. -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] [PEP 3148] futures - execute computations asynchronously

2010-03-05 Thread Curt Hagenlocher
too similar to from __future__ import Futures is a common term for this, and implemented named this in other languages. I don't think we should be adopting things that are common, and found elsewhere and then renaming them. Another common term for this is a promise. -- Curt Hagenlocher

Re: [Python-Dev] PEP 3147: PYC Repository Directories

2010-01-31 Thread Curt Hagenlocher
On Sun, Jan 31, 2010 at 11:16 AM, Terry Reedy tjre...@udel.edu wrote: 'pycache' would be pretty clear. Heh -- without the underscores, I read this as pyc ache. Seems appropriate. -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list

Re: [Python-Dev] Integer behaviour in Python 2.6.4

2009-11-01 Thread Curt Hagenlocher
On Sun, Nov 1, 2009 at 8:22 PM, Sturla Molden stu...@molden.no wrote: Why does this happen? type(2**31-1) type 'long' Does that not happen on non-Windows platforms? 2**31 can't be represented as a 32-bit signed integer, so it's automatically promoted to a long. -- Curt Hagenlocher c

Re: [Python-Dev] time.clock() on windows

2009-10-21 Thread Curt Hagenlocher
-- this seems very broken to me, and I think it should be changed. Of course, there are no doubt people relying on the broken behavior... -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Curt Hagenlocher
what you can get without it. Disclaimer: I work for Microsoft, but eh, I'm just guessing. -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Support for Python/Windows

2009-07-21 Thread Curt Hagenlocher
. The 64-bit compilers should be in the Windows SDK, but it wouldn't surprise me if they were not included in Express. -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Curt Hagenlocher
might think for a lot of programs... The OS has to provide a mechanism to enable execution for a particular region of memory. Under Windows, this is done by the VirtualProtect function. -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Curt Hagenlocher
On Mon, Jul 13, 2009 at 2:55 PM, Antoine Pitrou solip...@pitrou.net wrote: Curt Hagenlocher curt at hagenlocher.org writes: The OS has to provide a mechanism to enable execution for a particular region of memory. Under Windows, this is done by the VirtualProtect function. More surprising

Re: [Python-Dev] Making the GIL faster lighter on Windows

2009-05-27 Thread Curt Hagenlocher
, a critical section should be a big win because it won't need to switch into the kernel. I suspect that contention will be frequent for the GIL A good description of pre-Vista Windows critical sections can be found here: http://msdn.microsoft.com/en-us/magazine/cc164040.aspx -- Curt Hagenlocher c

Re: [Python-Dev] a suggestion ... Re: PEP 383 (again)

2009-04-29 Thread Curt Hagenlocher
as UTF-16 and all of the managed APIs for things like file names and environmental variables operate on UTF-16 strings -- there simply are no byte string APIs. I assume that Mono does the same but I don't have any Mono experience. -- Curt Hagenlocher c...@hagenlocher.org

Re: [Python-Dev] Test failures under Windows?

2009-03-25 Thread Curt Hagenlocher
CrtSetReportMode would address the issue. -- Curt Hagenlocher c...@hagenlocher.org ___ 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

Re: [Python-Dev] setuptools has divided the Python community

2009-03-25 Thread Curt Hagenlocher
subsequent updates -- particularly when you're dealing with many clients. -- Curt Hagenlocher c...@hagenlocher.org ___ 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] Test failures under Windows?

2009-03-24 Thread Curt Hagenlocher
. But the dialog can be disabled in debug mode by using the _set_error_mode function. (http://msdn.microsoft.com/en-us/library/sas1dkb2(VS.71).aspx) -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

Re: [Python-Dev] Test failures under Windows?

2009-03-24 Thread Curt Hagenlocher
box. For that matter, you could use CrtSetReportFile to redirect them to any given file and then assert at the end of the test run that the file is empty. -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http

Re: [Python-Dev] Are property descriptors intended to be immutable?

2009-02-07 Thread Curt Hagenlocher
On Fri, Feb 6, 2009 at 4:04 PM, Guido van Rossum gu...@python.org wrote: On Fri, Feb 6, 2009 at 2:44 PM, Curt Hagenlocher c...@hagenlocher.org wrote: ...because they're not quite :). Should I file this as a bug report? No, this is just how it works. I hope they aren't documented as immuable

[Python-Dev] Are property descriptors intended to be immutable?

2009-02-06 Thread Curt Hagenlocher
for more information. class x(object): ... @property ... def foo(self): return 1 ... inst = x() inst.foo 1 x.foo.__init__(lambda self: 2) inst.foo 2 ^Z -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev

Re: [Python-Dev] microsoft dlls apparently don't support data. implications: PyAPI functions required to access data across modules.

2009-01-25 Thread Curt Hagenlocher
PyAPI_DATA(RTYPE) extern __declspec(dllimport) RTYPE -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] microsoft dlls apparently don't support data. implications: PyAPI functions required to access data across modules.

2009-01-25 Thread Curt Hagenlocher
be able to point you in a particular direction. -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev

Re: [Python-Dev] __del__ and tp_dealloc in the IO lib

2009-01-22 Thread Curt Hagenlocher
in. -- Curt Hagenlocher c...@hagenlocher.org ___ 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] compiling python2.5 (msys+mingw+wine) - giving up using msvcr80 assemblies for now

2009-01-20 Thread Curt Hagenlocher
to use a platform that you hate so much, but I respectfully suggest that this person is not on any of these mailing lists. -- Curt Hagenlocher c...@hagenlocher.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Python-3.0, unicode, and os.environ

2008-12-12 Thread Curt Hagenlocher
On Fri, Dec 12, 2008 at 5:06 AM, Antoine Pitrou solip...@pitrou.net wrote: Curt Hagenlocher curt at hagenlocher.org writes: There's this other obscure platform called Java... ;) Does it have a filesystem? No, but it also has to interact with filesystems of possibly invalid or indeterminate

Re: [Python-Dev] Python-3.0, unicode, and os.environ

2008-12-12 Thread Curt Hagenlocher
On Fri, Dec 12, 2008 at 6:19 AM, Antoine Pitrou solip...@pitrou.net wrote: Curt Hagenlocher curt at hagenlocher.org writes: No, but it also has to interact with filesystems of possibly invalid or indeterminate encodings. What does java.io do? My point was that Python doesn't have

Re: [Python-Dev] Fwd: Removal of GIL through refcounting removal.

2008-11-03 Thread Curt Hagenlocher
multiplication) that are parallelizable but not particularly good candidates for an IPC-based multiprocessing paradigm. -- Curt Hagenlocher [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] bsddb

2008-09-04 Thread Curt Hagenlocher
that are not distributed to third parties. I am not sure if using of PyBSDDB in commercial applications is considered using of Berkeley DB in open source projects; Wow, I hadn't realized that it was such a restrictive license. When I see Berkeley I think BSD license. -- Curt Hagenlocher [EMAIL PROTECTED

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

2008-09-02 Thread Curt Hagenlocher
other reason not to mess with the PATH -- at least by default -- is that the user may have multiple copies of Python installed. I know I have at least one machine with 2.4.5, 2.5.2, 2.6b2 and 3.0b2 installed -- and I don't want *any* of them in my path. -- Curt Hagenlocher [EMAIL PROTECTED

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

2008-08-27 Thread Curt Hagenlocher
the documentation for CreateProcess (http://msdn.microsoft.com/en-us/library/ms682425.aspx) to be pretty reliable. And the mention of a .com in the docs suggests that the description has been around for a while... -- Curt Hagenlocher [EMAIL PROTECTED] ___ Python-Dev

Re: [Python-Dev] RELEASED Python 2.6b3 and 3.0b3

2008-08-21 Thread Curt Hagenlocher
for this is that _tkinter.pyd has a static dependency that can't be loaded. If, for instance, the TCL and TK DLLs themselves are neither in PCbuild nor elsewhere in the path, then you wouldn't be able to load _tkinter. -- Curt Hagenlocher [EMAIL PROTECTED

[Python-Dev] Milestones in IronPython

2008-08-07 Thread Curt Hagenlocher
. Links: http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=14353 http://devhawk.net/2008/08/06/Including+The+Batteries+In+IronPython.aspx (IronPython 2.0 targets compatibility with Python 2.5.) -- Curt Hagenlocher [EMAIL PROTECTED

Re: [Python-Dev] Infix operators

2008-07-23 Thread Curt Hagenlocher
people. That's why there's room in the world for more than one. -- Curt Hagenlocher [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] Python FAQ: Why doesn't Python have a with statement?

2008-06-19 Thread Curt Hagenlocher
of creating fluent interfaces. I fail to see much value in being able to write code that says 7.seconds.ago. -- Curt Hagenlocher [EMAIL PROTECTED] ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] Epoch and Platform

2008-06-17 Thread Curt Hagenlocher
-- or perhaps it happens to be 1970 even on Windows when using MS's C runtime. On Mon, Jun 16, 2008 at 4:08 PM, Curt Hagenlocher [EMAIL PROTECTED] wrote: The documentation for the time module says that the epoch is the point where the time starts. On January 1st of that year, at 0 hours

Re: [Python-Dev] Epoch and Platform

2008-06-17 Thread Curt Hagenlocher
rather not resort to #3, if possible. On Tue, Jun 17, 2008 at 10:03 AM, Guido van Rossum [EMAIL PROTECTED] wrote: Can you explain why you are so anxious to get this resolved (apart from the beer :-) ? On Tue, Jun 17, 2008 at 9:26 AM, Curt Hagenlocher [EMAIL PROTECTED] wrote: Any chance

Re: [Python-Dev] Epoch and Platform

2008-06-17 Thread Curt Hagenlocher
On Tue, Jun 17, 2008 at 10:56 AM, Guido van Rossum [EMAIL PROTECTED] wrote: On Tue, Jun 17, 2008 at 10:40 AM, Curt Hagenlocher [EMAIL PROTECTED] wrote: There's no real urgency. The reason this came up is because I just implemented zlib, which automatically enabled the gzip unit tests

[Python-Dev] Epoch and Platform

2008-06-16 Thread Curt Hagenlocher
of implementing IronPython, I'd prefer that the answer is 1 or 2 -- but mainly I just want to be as compatible with the spec as possible, while respecting CLR-specific norms for functionality which is left up to individual implementations. -- Curt Hagenlocher [EMAIL PROTECTED

Re: [Python-Dev] Epoch and Platform

2008-06-16 Thread Curt Hagenlocher
. On Mon, Jun 16, 2008 at 4:38 PM, Guido van Rossum [EMAIL PROTECTED] wrote: ISTR that we force the epoch to be 1970 on all major platforms -- or perhaps it happens to be 1970 even on Windows when using MS's C runtime. On Mon, Jun 16, 2008 at 4:08 PM, Curt Hagenlocher [EMAIL PROTECTED] wrote

Re: [Python-Dev] Assignment to None

2008-06-12 Thread Curt Hagenlocher
On Thu, Jun 12, 2008 at 8:06 PM, Frank Wierzbicki [EMAIL PROTECTED] wrote: On Wed, Jun 11, 2008 at 5:27 PM, Curt Hagenlocher [EMAIL PROTECTED] wrote: If I recall correctly, Jython handles this by appending a trailing underscore to the imported name and there's no reason why we couldn't do

Re: [Python-Dev] Assignment to None

2008-06-11 Thread Curt Hagenlocher
are lower-case. It's likely to be a much bigger issue with Jython, given the Java convention of having lower-cased method names. If I recall correctly, Jython handles this by appending a trailing underscore to the imported name and there's no reason why we couldn't do something similar. -- Curt

[Python-Dev] Assignment to None

2008-06-08 Thread Curt Hagenlocher
: assignment to None setattr(c, 'None', 'foo') c.None 'foo' So, it's okay to setattr the attribute name None but not okay to set it directly? Is this deliberate or is it an unintentional side effect of parser changes to prevent assignment to None? -- Curt Hagenlocher [EMAIL PROTECTED

Re: [Python-Dev] string representation of range in 3.0

2008-04-16 Thread Curt Hagenlocher
? The next couple of elements is a dangerous thing to use unless you don't mind them disappearing. Not only that, but you'd have no idea what the performance consequences of accessing the next object might be. -- Curt Hagenlocher [EMAIL PROTECTED

Re: [Python-Dev] very bad network performance

2008-04-14 Thread Curt Hagenlocher
a flaw earlier in the same method. _rbufsize == 1 represents a request to buffer by line, which is clearly irrelevant in this context. A request to read n bytes should just use the default buffer size if buffering by line. Sample patch is attached. -- Curt Hagenlocher [EMAIL PROTECTED

Re: [Python-Dev] very bad network performance

2008-04-14 Thread Curt Hagenlocher
On Mon, Apr 14, 2008 at 12:17 PM, A.M. Kuchling [EMAIL PROTECTED] wrote: On Mon, Apr 14, 2008 at 11:10:12AM -0700, Curt Hagenlocher wrote: while True: left = size - buf_len ! recv_size = max(self._rbufsize, left) data

Re: [Python-Dev] very bad network performance

2008-04-14 Thread Curt Hagenlocher
. -- Curt Hagenlocher [EMAIL PROTECTED] ___ 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] very bad network performance

2008-04-14 Thread Curt Hagenlocher
. This would work. -- Curt Hagenlocher [EMAIL PROTECTED] ___ 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