summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* SF #75103: imghdr -- identify JPEGs in EXIF formatRaymond Hettinger2005-01-071-0/+7
|
* Improved the implementation of the internal "dialect" type. The newAndrew McNamara2005-01-072-25/+100
| | | | | implementation features better error reporting, and better compliance with the PEP.
* add a couple missing docstringsSkip Montanaro2005-01-051-0/+9
|
* - Added an "installer" flavor, which uses the "open" command to installJack Jansen2005-01-031-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 Hettinger2005-01-031-1/+0
|
* Removed unused line.Raymond Hettinger2005-01-031-1/+0
|
* Teach the peephole optimizer to fold simple constant expressions.Raymond Hettinger2005-01-021-0/+28
|
* On UNIX, when the execution of the child fails, we must waitpid() toPeter Astrand2005-01-011-0/+1
| | | | prevent leaving zombies.
* New subprocess utility function: check_call. Closes #1071764.Peter Astrand2005-01-012-1/+55
|
* SF patch #1094007: Remove witty comment in pydoc.pyRaymond Hettinger2005-01-011-2/+1
| | | | (Removed at Ping's request.)
* SF patch #1051395: locale.getdefaultlocale does not return tuple in some OSRaymond Hettinger2005-01-011-1/+1
| | | | (Contributed by Jiwon Seo.)
* Remove some lambdas.Raymond Hettinger2004-12-311-3/+4
|
* Use cStringIO where available.Raymond Hettinger2004-12-318-19/+55
|
* Add a test that checks the basic functionality of every encoding.Walter Dörwald2004-12-291-1/+179
|
* Fix wrong variable name.Walter Dörwald2004-12-291-1/+1
|
* Fix wrong variable name.Walter Dörwald2004-12-291-1/+1
|
* - getDefaultDatabase wasn't listed in __all__.Jack Jansen2004-12-281-2/+2
| | | | | | - using a different database for non-final releases should only be done for X.Y.0. Non-final micro releases can use the default database just fine, as they are required to be backward compatible.
* [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵Andrew M. Kuchling2004-12-281-0/+10
| | | | to an uninitialized pointer: fixes the problem and adds a test case
* Fix for #1091468: DESTROOTed frameworkinstalls fail. Added a --destrootJack Jansen2004-12-272-7/+13
| | | | | | | option to various tools, and do the right thing when we're doing a destroot install. Will backport to 2.4 and 2.3.
* After discussion on the PythonMac-SIG it was decided that it is betterJack Jansen2004-12-261-2/+4
| | | | | | | | | | to make using "-undefined dynamic_lookup" for linking extensions more automatic on 10.3 and later. So if we're on that platform and MACOSX_DEPLOYMENT_TARGET is not set we now set it to the current OSX version during configure. Additionally, distutils will pick up the configure-time value by default. Will backport.
* Dima Dorfman's patch for coercion/comparison of C types (patch #995939), withArmin Rigo2004-12-231-0/+36
| | | | | a minor change after the coercion, to accept two objects not necessarily of the same type but with the same tp_compare.
* Improve error message if rpc'l localcall() fails with unexpectedKurt B. Kaiser2004-12-231-1/+3
| | | | exception.
* The GUI was hanging if the shell window was closed while a raw_input()Kurt B. Kaiser2004-12-232-6/+16
| | | | | | | | was pending. Restored the quit() of the readline() mainloop(). http://mail.python.org/pipermail/idle-dev/2004-December/002307.html M NEWS.txt M PyShell.py
* Recompiled after source changes.Thomas Heller2004-12-222-0/+0
|
* Two small changes, SF bug #974757 and SF patch #1037974.Jeremy Hylton2004-12-221-6/+8
| | | | | | | | Pass the full URL to find_user_password(), in particular so that hosts with port numbers can be looked up. Also specify the digest algorithm, even if it's MD5. Titus Brown verified that this fixes a problem with LiveJournal.
* SF patch #1055159 via Titus Brown: Document redirect limitation.Jeremy Hylton2004-12-221-0/+2
| | | | Bug fix candidate.
* add __file__ to the globals available for tests loaded via DocFileSuite;Fred Drake2004-12-213-0/+17
| | | | | this is useful for locating supporting data files, just as it is in Python modules
* The changes to the stateful codecs in 2.4 resulted in StreamReader.readline()Walter Dörwald2004-12-212-43/+121
| | | | | | | | | | | | | | trying to return a complete line even if a size parameter was given (see http://www.python.org/sf/1076985). This leads to buffer overflows with long source lines under Windows if e.g. cp1252 is used as the source encoding. This patch reverts the behaviour of readline() to something that behaves more like Python 2.3: If a size parameter is given, read() is called only once. As a side effect of this, readline() now supports all types of linebreaks supported by unicode.splitlines(). Note that the tokenizer is still broken and it's possible to provoke segfaults (see http://www.python.org/sf/1089395).
* The remote procedure call module rpc.py can now access data attributes ofKurt B. Kaiser2004-12-216-11/+23
| | | | | | | | | | | remote registered objects. Changes to these attributes are local, however. M EditorWindow.py M NEWS.txt M PyShell.py M idlever.py M rpc.py M run.py
* SF bug #951915: fix bug in StringIO.truncate - length not changedRaymond Hettinger2004-12-201-0/+6
| | | | (Patch by Armin Rigo.)
* Any call to marshal.dumps() with the new optional argument 'version' justArmin Rigo2004-12-201-0/+5
| | | | | immediately segfaults, due to a typo! This was obviously never tested... Added a test for it, and also fixed the documentation.
* Bugs item #1069409 C:\Python24\Lib\compileall.py returns FalseRaymond Hettinger2004-12-201-1/+1
| | | | * return an integer rather than a boolean
* Skip test_imp if threading is not available.Brett Cannon2004-12-181-1/+5
| | | | Closes bug #1083645. Thanks Detlef Vollmann.
* Bug #1083645Raymond Hettinger2004-12-182-4/+25
| | | | * The decimal module wouldn't load on builds without threads.
* Refactor:Raymond Hettinger2004-12-171-10/+21
| | | | | | | | * Improve algorithm -- no more O(n) steps except sched.cancel(). * Improve thread safety of sched.run() and sched.empty() (other threads could alter the queue between the time the queue was first checked and when the lead event was deleted). * Localize variable access in sched.run() to minimize overhead.
* SF #1085304: Make array.array pickle-ableRaymond Hettinger2004-12-161-0/+19
|
* Fix copy & paste error in comments.Walter Dörwald2004-12-141-2/+2
|
* Correct mapping of Python codec name to C encoding name for UTF-8 (the C libMarc-André Lemburg2004-12-131-104/+1
| | | | | | doesn't seem to like "UTF-8"). Removed the UTF-8 aliases since these should be available for all locales.
* Patch #1011890: fix inspect.getsource breaking with line-continuation &Johannes Gijsbers2004-12-123-5/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | more. Thanks to Simon Percivall! The patch makes changes to inspect.py in two places: * the pattern to match against functions at line 436 is modified: lambdas should be matched even if not preceded by whitespace, as long as "lambda" isn't part of another word. * the BlockFinder class is heavily modified. Changes are: - checking for "def", "class" or "lambda" names before setting self.started to True. Then checking the same line for word characters after the colon (if the colon is on that line). If so, and the line does not end with a line continuation marker, raise EndOfBlock immediately. - adding self.passline to show that the line is to be included and no more checking is necessary on that line. Since a NEWLINE token is not generated when a line continuation marker exists, this allows getsource to continue with these functions even if the following line would not be indented. Also add a bunch of 'quite-unlikely-to-occur-in-real-life-but-working-anyway' tests.
* Patch #736962: port test_inspect to unittest. As part of this, move outJohannes Gijsbers2004-12-123-395/+427
| | | | | the fodder modules to separate files to get rid of the imp.load_source() trickery.
* Use os.geteuid() for checking whether we are root, as suggested byJohannes Gijsbers2004-12-121-1/+1
| | | | Michael Hudson.
* SF bug #1083202L UnboundLocalError raised by atexit moduleRaymond Hettinger2004-12-111-3/+3
| | | | The sys module could be called before being imported.
* locale.py now uses an updated locale alias table (built usingMarc-André Lemburg2004-12-101-219/+871
| | | | | | | | | Tools/i18n/makelocalealias.py, a tool to parse the X11 locale alias file); the encoding lookup was enhanced to use Python's encoding alias table As sige-effect, this fixes SF bug [ 1080864 ] locale.py doesn't recognize valid locale setting.
* Rearranged mappings to value sorting order.Marc-André Lemburg2004-12-101-13/+13
|
* Whitespace normalization.Tim Peters2004-12-071-13/+13
|
* remove the other half of one of the regsub-related comments; the otherFred Drake2004-12-071-1/+0
| | | | half was removed in revision 1.25
* Remove reference to old pickle feature.Raymond Hettinger2004-12-071-5/+0
|
* Remove outdated references to the regsub module.Raymond Hettinger2004-12-073-5/+2
|
* Eliminate the deprecated option to return None instead of a tuple of ↵Raymond Hettinger2004-12-071-16/+2
| | | | arguments in __reduce__().
* Change code in setup.py for parsing LDFLAGS and CPPFLAGS to use optparseBrett Cannon2004-12-071-1/+4
| | | | | instead of getopt. Required making use of gettext._ as optional (optparse changed OK'ed by Greg Ward in private email).