Berker Peksag
05b84439a3
Issue #21720 : Improve exception message when the type of fromlist is unicode
2016-10-17 01:05:04 +03:00
Eric Snow
bf00bc783f
Issue #15578 : Correctly incref the parent module while importing.
2016-09-07 19:08:02 -07:00
Serhiy Storchaka
1c496178d2
Issue #25698 : Importing module if the stack is too deep no longer replaces
...
imported module with the empty one.
2016-02-10 10:28:06 +02:00
Christian Heimes
3ce7873fdd
Issue #23998 : PyImport_ReInitLock() now checks for lock allocation error
2015-04-19 21:08:28 +02:00
Mark Dickinson
9fade768c8
Issue #13863 : fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat)
2012-12-24 16:33:18 +00:00
Nick Coghlan
b48c028ca7
Issue #6074 : Restore the long-broken support for running with read-only source files on Windows
2012-10-19 21:58:18 +10:00
Antoine Pitrou
c5bef75c77
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
...
Patch by Serhiy Storchaka.
2012-08-15 23:16:51 +02:00
Matthias Klose
92636bf243
- Issue #15647 : Make isdir static for windows and posix
2012-08-14 17:42:45 +02:00
Antoine Pitrou
284fa08eb7
Issue #14761 : Fix potential leak on an error case in the import machinery.
2012-05-09 13:24:31 +02:00
Gregory P. Smith
a72aa843b6
Fix compiler warning related to issue #14331 . harmless.
2012-04-18 16:41:56 -07:00
Gregory P. Smith
fcdf04becc
Fixes Issue #14331 : Use significantly less stack space when importing modules by
...
allocating path buffers on the heap instead of the stack.
2012-03-18 16:07:10 -07:00
Jason R. Coombs
0e17dfbdcf
Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.
2012-03-08 09:56:00 -05:00
Jason R. Coombs
0737b7281e
Fix indentation
2012-01-13 17:59:05 -05:00
Jason R. Coombs
fa93cf8e3e
Extracted Windows directory detection from NullImporter.__init__. This greatly simplifies the code and fixes issue6727.
2012-01-13 17:37:18 -05:00
Jason R. Coombs
925ff7495b
Moved directory detection into an isdir function
2012-01-13 17:12:25 -05:00
Antoine Pitrou
6f25d75f25
Remove debug output, fix assert (hopefully) and exercise signedness issues a bit more.
2012-01-25 15:38:32 +01:00
Antoine Pitrou
b744cef654
Fix temporary debug output (so, time_t is 8 bytes on some Windows builds)
2012-01-25 14:57:56 +01:00
Antoine Pitrou
11cc480ed0
Temporary debug for Windows buildbots.
2012-01-25 14:39:21 +01:00
Antoine Pitrou
0e5fd59a27
Make guard more dynamic (apparently the size of a filesystem timestamp may vary under Windows).
2012-01-25 03:31:39 +01:00
Antoine Pitrou
d1c818a9c0
Issue #11235 : Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
2012-01-24 17:44:06 +01:00
Victor Stinner
63c22fac72
Issue #7732 : Fix a crash on importing a module if a directory has the same name
...
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
2011-09-23 19:37:03 +02:00
Victor Stinner
ed36c06f1d
Fix the import machinery if there is an error on sys.path or sys.meta_path
...
find_module() now raises a RuntimeError, instead of ImportError, on an error on
sys.path or sys.meta_path because load_package() and import_submodule() returns
None and clear the exception if a ImportError occurred.
2011-09-15 19:45:53 +02:00
Victor Stinner
871a0fbf46
Remove unused variable if Python is build without threads
2011-09-02 00:21:36 +02:00
Brett Cannon
eb3cd301ae
Turned out that if you used explicit relative import syntax
...
(e.g. from .os import sep) and it failed, import would still try the implicit
relative import semantics of an absolute import (from os import sep). That's
not right, so when level is negative, only do explicit relative import
semantics.
Fixes issue #7902 . Thanks to Meador Inge for the patch.
2010-05-20 18:37:55 +00:00
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
2010-05-09 14:46:46 +00:00