Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Patch #943206: | Johannes Gijsbers | 2005-01-08 | 3 | -24/+50 |
| | | | | | | | | | | | | | | | | `glob.glob()` currently calls itself recursively to build a list of matches of the dirname part of the pattern and then filters by the basename part. This is effectively BFS. ``glob.glob('*/*/*/*/*/foo')`` will build a huge list of all directories 5 levels deep even if only a handful of them contain a ``foo`` entry. A generator-based recusion would never have to store these list at once by implementing DFS. This patch converts the `glob` function to an `iglob` recursive generator . `glob()` now just returns ``list(iglob(pattern))``. I also cleaned up the code a bit (reduced duplicate `has_magic()` checks and created a second `glob0` helper func so that the main loop need not be duplicated). Thanks to Cherniavsky Beni for the patch! | ||||
* | Patch #1094015: | Johannes Gijsbers | 2005-01-08 | 2 | -5/+14 |
| | | | | | * Use os.makedirs() instead os.mkdir(). (bug #975763) * Use copystat() to copy directory bits (bug #1048878) | ||||
* | threading._DummyThread.__init__(): document obscure new code. | Tim Peters | 2005-01-08 | 2 | -4/+31 |
| | | | | | | | | test_threading.test_foreign_thread(): new test does a basic check that "foreign" threads can using the threading module, and that they create a _DummyThread instance in at least one use case. This isn't a very good test, since a thread created by thread.start_new_thread() isn't particularly "foreign". | ||||
* | Converted to a unittest. Added checks that the bounded semaphore actually | Tim Peters | 2005-01-08 | 1 | -37/+73 |
| | | | | does what it's supposed to do. | ||||
* | In _DummyThread objects the lock stored in __block (allocated thanks to | Brett Cannon | 2005-01-08 | 2 | -0/+6 |
| | | | | | | | | _Thread.__init__) was never used. This is a waste since locks use OS primitives that are in limited supply. So the lock is deleted in _DummyThread.__init__ . Closes bug #1089632. | ||||
* | Remove test for BINARY_DIVIDE. | Raymond Hettinger | 2005-01-07 | 1 | -1/+0 |
| | |||||
* | Re-running python with/without the -Qnew flag uses incorrectly optimized | Armin Rigo | 2005-01-07 | 1 | -6/+3 |
| | | | | | bytecodes from the previously saved .pyc files. Fixed by disabling the static optimization of BINARY_DIVIDE between two constants. | ||||
* | Whitespace normalization. | Tim Peters | 2005-01-07 | 9 | -47/+44 |
| | |||||
* | [Bug 1083177] Describe signal() change; add a link | Andrew M. Kuchling | 2005-01-07 | 1 | -4/+14 |
| | |||||
* | Allow relative URLs for included databases and packages. | Jack Jansen | 2005-01-07 | 1 | -4/+7 |
| | |||||
* | Patch #1097739 by Bob Ippolito: | Jack Jansen | 2005-01-07 | 2 | -15/+15 |
| | | | | | | | MacOSX: if we cannot use -undefined dynamic_lookup (such as on 10.2 or earlier) we link extension directly against the dynamic library in the framework in stead of against the framework. This will fix building extensions for 2.3 after 2.4 has been installed too. | ||||
* | Oops, there was a tab in there. | Jack Jansen | 2005-01-07 | 1 | -1/+1 |
| | |||||
* | Workaround for the fact that urllib2 doesn't default to "file:" urls. | Jack Jansen | 2005-01-07 | 1 | -0/+2 |
| | |||||
* | Always set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be set | Jack Jansen | 2005-01-07 | 2 | -3/+3 |
| | | | | to an empty value and distutils will get confused lateron. | ||||
* | SF #75103: imghdr -- identify JPEGs in EXIF format | Raymond Hettinger | 2005-01-07 | 3 | -1/+12 |
| | |||||
* | Fix to use PEP7 brace style. | Andrew McNamara | 2005-01-07 | 1 | -2/+4 |
| | |||||
* | Improved the implementation of the internal "dialect" type. The new | Andrew McNamara | 2005-01-07 | 3 | -212/+339 |
| | | | | | implementation features better error reporting, and better compliance with the PEP. | ||||
* | SF patch 1094011: Docs for file() vs open(). | Raymond Hettinger | 2005-01-07 | 1 | -3/+6 |
| | |||||
* | Added example to os.stat() | Facundo Batista | 2005-01-07 | 1 | -1/+11 |
| | |||||
* | SF bug #1091740: garbage collector still documented as optional | Raymond Hettinger | 2005-01-07 | 1 | -5/+0 |
| | |||||
* | Delete Reader_getiter and replace with PyObject_SelfIter. | Andrew McNamara | 2005-01-06 | 1 | -8/+1 |
| | |||||
* | add two missing items | Skip Montanaro | 2005-01-05 | 1 | -0/+10 |
| | |||||
* | add descriptions of exported data attributes | Skip Montanaro | 2005-01-05 | 1 | -0/+25 |
| | |||||
* | describe reset() | Skip Montanaro | 2005-01-05 | 1 | -0/+4 |
| | |||||
* | add a couple missing items | Skip Montanaro | 2005-01-05 | 1 | -0/+10 |
| | |||||
* | add a couple missing docstrings | Skip Montanaro | 2005-01-05 | 1 | -0/+9 |
| | |||||
* | Clarify that DictMixin is still useful. Only the UserDict class was supplanted. | Raymond Hettinger | 2005-01-04 | 1 | -13/+11 |
| | |||||
* | Fix typo. | Martin v. Löwis | 2005-01-03 | 1 | -2/+2 |
| | |||||
* | - Added an "installer" flavor, which uses the "open" command to install | Jack Jansen | 2005-01-03 | 1 | -7/+43 |
| | | | | | | | | | something (overridable through Install-command entry) - Hidden status is now determined by flavor == hidden, not by missing Download-URL. Hidden packages behave like installer packages. - Made some error messages a bit more understandable. Because there's new functionality the version has been upped to 0.5. | ||||
* | Removed unused line. | Raymond Hettinger | 2005-01-03 | 1 | -1/+0 |
| | |||||
* | Removed unused line. | Raymond Hettinger | 2005-01-03 | 1 | -1/+0 |
| | |||||
* | Since it is a possibility that LDFLAGS or CPPFLAGS were set with options that | Brett Cannon | 2005-01-02 | 1 | -2/+3 |
| | | | | | in no way affect library or include directories the code must take that into account and not assume some options were found. | ||||
* | Teach the peephole optimizer to fold simple constant expressions. | Raymond Hettinger | 2005-01-02 | 3 | -1/+149 |
| | |||||
* | Create the wrapper scripts for gcc/g++ too. | Jack Jansen | 2005-01-01 | 1 | -26/+50 |
| | |||||
* | On UNIX, when the execution of the child fails, we must waitpid() to | Peter Astrand | 2005-01-01 | 1 | -0/+1 |
| | | | | prevent leaving zombies. | ||||
* | New subprocess utility function: check_call. Closes #1071764. | Peter Astrand | 2005-01-01 | 3 | -2/+72 |
| | |||||
* | SF patch #1094007: Remove witty comment in pydoc.py | Raymond Hettinger | 2005-01-01 | 1 | -2/+1 |
| | | | | (Removed at Ping's request.) | ||||
* | SF patch #1051395: locale.getdefaultlocale does not return tuple in some OS | Raymond Hettinger | 2005-01-01 | 1 | -1/+1 |
| | | | | (Contributed by Jiwon Seo.) | ||||
* | SF Patch #1093896: miscellaneous doc typos | Raymond Hettinger | 2005-01-01 | 60 | -102/+103 |
| | |||||
* | Remove some lambdas. | Raymond Hettinger | 2004-12-31 | 1 | -3/+4 |
| | |||||
* | Use cStringIO where available. | Raymond Hettinger | 2004-12-31 | 8 | -19/+55 |
| | |||||
* | cvsignore files generated by make_versioninfo. | Thomas Heller | 2004-12-31 | 1 | -0/+2 |
| | |||||
* | Strip out double dashes and dashes for options not used during parsing of | Brett Cannon | 2004-12-31 | 1 | -2/+16 |
| | | | | | | LDFLAGS and CPPFLAGS for library and include directories, respectively. Solves issue of either env var containing other options that do not pertain to the directories being searched for. | ||||
* | SF bug #1090139: presentation typo in lib: 6.21.4.2 How callbacks are called | Raymond Hettinger | 2004-12-31 | 1 | -1/+1 |
| | |||||
* | Add more test directories to testsuite. Will backport to 2.4. | Martin v. Löwis | 2004-12-30 | 1 | -1/+5 |
| | |||||
* | Update to VC 7.1. Will backport to 2.4. | Martin v. Löwis | 2004-12-30 | 1 | -54/+54 |
| | |||||
* | Add a test that checks the basic functionality of every encoding. | Walter Dörwald | 2004-12-29 | 1 | -1/+179 |
| | |||||
* | Fix wrong variable name. | Walter Dörwald | 2004-12-29 | 1 | -1/+1 |
| | |||||
* | Update example to VC 7.1. Will backport to 2.4. | Martin v. Löwis | 2004-12-29 | 5 | -190/+253 |
| | |||||
* | Fix wrong variable name. | Walter Dörwald | 2004-12-29 | 1 | -1/+1 |
| |