]> granicus.if.org Git - python/commitdiff
Issue #1602133: 'environ' is not really available with shared libraries on OSX (merge...
authorRonald Oussoren <ronaldoussoren@mac.com>
Fri, 25 Jan 2013 17:01:05 +0000 (18:01 +0100)
committerRonald Oussoren <ronaldoussoren@mac.com>
Fri, 25 Jan 2013 17:01:05 +0000 (18:01 +0100)
There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.

Closes #1602133

1  2 
Misc/NEWS
Modules/posixmodule.c

diff --cc Misc/NEWS
index 022e897d5d1dabde2bdbe31a7cf674fe8c6f24d9,e19c06948da5ee00a83db6b09209a736a8548439..f5428bdee56d7db8aea9123be460a9d50e0bceee
+++ b/Misc/NEWS
@@@ -142,14 -100,111 +142,17 @@@ Core and Builtin
  - Issue #15801: Make sure mappings passed to '%' formatting are actually
    subscriptable.
  
 -- Issue #15726: Fix incorrect bounds checking in PyState_FindModule.
 -  Patch by Robin Schreiber.
 -
 -- Issue #15604: Update uses of PyObject_IsTrue() to check for and handle
 -  errors correctly.  Patch by Serhiy Storchaka.
 -
 -- Issue #13119: sys.stdout and sys.stderr are now using "\r\n" newline on
 -  Windows, as Python 2.
 -
 -- Issue #14579: Fix CVE-2012-2135: vulnerability in the utf-16 decoder after
 -  error handling.  Patch by Serhiy Storchaka.
 -
 -- Issue #15404: Refleak in PyMethodObject repr.
 -
 -- Issue #15394: An issue in PyModule_Create that caused references to
 -  be leaked on some error paths has been fixed.  Patch by Julia Lawall.
 -
 -- Issue #15368: An issue that caused bytecode generation to be
 -  non-deterministic when using randomized hashing (-R) has been fixed.
 -
 -- Issue #16369: Global PyTypeObjects not initialized with PyType_Ready(...).
 -
 -- Issue #15020: The program name used to search for Python's path is now
 -  "python3" under Unix, not "python".
 -
 -- Issue #15897: zipimport.c doesn't check return value of fseek().
 -  Patch by Felipe Cruz.
 -
 -- Issue #15033: Fix the exit status bug when modules invoked using -m switch,
 -  return the proper failure return value (1). Patch contributed by Jeff Knupp.
 -
 -- Issue #12268: File readline, readlines and read() or readall() methods
 -  no longer lose data when an underlying read system call is interrupted.
 -  IOError is no longer raised due to a read system call returning EINTR
 -  from within these methods.
 -
 -- Issue #15142: Fix reference leak when deallocating instances of types
 -  created using PyType_FromSpec().
 -
 -- Issue #10053: Don't close FDs when FileIO.__init__ fails. Loosely based on
 -  the work by Hirokazu Yamamoto.
 -
 -- Issue #14775: Fix a potential quadratic dict build-up due to the garbage
 -  collector repeatedly trying to untrack dicts.
 -
 -- Issue #14494: Fix __future__.py and its documentation to note that
 -  absolute imports are the default behavior in 3.0 instead of 2.7.
 -  Patch by Sven Marnach.
 -
 -- Issue #14761: Fix potential leak on an error case in the import machinery.
 -
 -- Issue #14699: Fix calling the classmethod descriptor directly.
 -
 -- Issue #14433: Prevent msvcrt crash in interactive prompt when stdin
 -  is closed.
 -
 -- Issue #11603 (again): Setting __repr__ to __str__ now raises a RuntimeError
 -  when repr() or str() is called on such an object.
 -
 -- Issue #14658: Fix binding a special method to a builtin implementation of a
 -  special method with a different name.
 -
 -- Issue #14630: Fix a memory access bug for instances of a subclass of int
 -  with value 0.
 -
 -- Issue #14612: Fix jumping around with blocks by setting f_lineno.
 -
 -- Issue #14607: Fix keyword-only arguments which started with ``__``.
 -
 -- Issue #13889: Check and (if necessary) set FPU control word before calling
 -  any of the dtoa.c string <-> float conversion functions, on MSVC builds of
 -  Python.  This fixes issues when embedding Python in a Delphi app.
 -
 -- Issue #14474: Save and restore exception state in thread.start_new_thread()
 -  while writing error message if the thread leaves a unhandled exception.
 -
 -- Issue #13019: Fix potential reference leaks in bytearray.extend().  Patch
 -  by Suman Saha.
 -
 -- Issue #14378: Fix compiling ast.ImportFrom nodes with a "__future__" string as
 -  the module name that was not interned.
 -
 -- Issue #14331: Use significantly less stack space when importing modules by
 -  allocating path buffers on the heap instead of the stack.
 -
 -- Issue #14334: Prevent in a segfault in type.__getattribute__ when it was not
 -  passed strings.
 -
 -- Issue #1469629: Allow cycles through an object's __dict__ slot to be
 -  collected. (For example if ``x.__dict__ is x``).
 +- Issue #15111: __import__ should let ImportError propagate when a module that
 +  is imported as a side-effect of using fromlist tries to import a module
 +  that cannot be found.
  
 -- Issue #14172: Fix reference leak when marshalling a buffer-like object
 -  (other than a bytes object).
  
 -- Issue #13521: dict.setdefault() now does only one lookup for the given key,
 -  making it "atomic" for many purposes.  Patch by Filip GruszczyƄski.
 +Library
 +-------
  
 -- Issue #14471: Fix a possible buffer overrun in the winreg module.
 -
 -Library
 --------
 -
+ - Issue #1602133: on Mac OS X a shared library build (``--enable-shared``)
+   now fills the ``os.environ`` variable correctly.
  - Issue #9290: In IDLE the sys.std* streams now implement io.TextIOBase
    interface and support all mandatory methods and properties.
  
Simple merge