c4972dd55f
Compiles, installs, and runs on NetBSD-5.99.10/amd64; no further tests done. Please test and fix on your platform! What's new in Python-2.6: The major theme of Python 2.6 is preparing the migration path to Python 3.0, a major redesign of the language. Whenever possible, Python 2.6 incorporates new features and syntax from 3.0 while remaining compatible with existing code by not removing older features or syntax. When it tries to do what it can, adding compatibility functions in a future_builtins module and a -3 switch to warn about usages that will become unsupported in 3.0. Some significant new packages have been added to the standard library, such as the multiprocessing and json modules, but there aren way. Python 2.6 also sees a number of improvements and bugfixes throughout the source. A search through the change logs finds there were 259 patches applied and 612 bugs fixed between Python 2.5 and 2.6. Both figures are likely to be underestimates. More details at http://docs.python.org/whatsnew/2.6.html
22 lines
677 B
Text
22 lines
677 B
Text
$NetBSD: patch-ak,v 1.1.1.1 2009/04/19 14:42:50 wiz Exp $
|
|
|
|
--- Modules/posixmodule.c.orig 2007-04-04 14:30:56.000000000 -0400
|
|
+++ Modules/posixmodule.c
|
|
@@ -339,7 +339,7 @@ extern int lstat(const char *, struct st
|
|
#endif
|
|
|
|
/* Return a dictionary corresponding to the POSIX environment table */
|
|
-#ifdef WITH_NEXT_FRAMEWORK
|
|
+#ifdef __APPLE__
|
|
/* On Darwin/MacOSX a shared library or framework has no access to
|
|
** environ directly, we must obtain it with _NSGetEnviron().
|
|
*/
|
|
@@ -357,7 +357,7 @@ convertenviron(void)
|
|
d = PyDict_New();
|
|
if (d == NULL)
|
|
return NULL;
|
|
-#ifdef WITH_NEXT_FRAMEWORK
|
|
+#ifdef __APPLE__
|
|
if (environ == NULL)
|
|
environ = *_NSGetEnviron();
|
|
#endif
|