summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* - A new type object, 'string', is added. This is a common base typeGuido van Rossum2002-05-241-0/+6
| | | | | | | for 'str' and 'unicode', and can be used instead of types.StringTypes, e.g. to test whether something is "a string": isinstance(x, string) is True for Unicode and 8-bit strings. This is an abstract base class and cannot be instantiated directly.
* John Aycock correctly pointed out that the grammar forTim Peters2002-05-231-0/+1
| | | | "power" was formally ambiguous. Here's his fix.
* (py-goto-statement-below): Watch out for landing in a triple quotedBarry Warsaw2002-05-231-3/+4
| | | | | string with text in column zero. Skip that stuff when looking for the "first statement following the statement containing point".
* Another one.Guido van Rossum2002-05-211-0/+1
|
* Add a bit of news about the email package fixes.Barry Warsaw2002-05-201-0/+6
|
* Added (with GvR's endorsement) Matthew Dixon CowlesRaymond Hettinger2002-05-161-0/+1
| | | | for his service on the Python-Help maillist.
* Noted SF patch 552452 adding degree/radian conversions to mathmodule.c.Raymond Hettinger2002-05-131-0/+2
|
* (py-execute-region): Do the blank line skipping inside theBarry Warsaw2002-05-121-8/+7
| | | | | save-excursion so that when the function is complete, point is preserved.
* Noted change in ftplib 1.68 closing SF patch 553277.Raymond Hettinger2002-05-121-0/+7
|
* Fix typoAndrew M. Kuchling2002-05-091-1/+1
|
* Remove news about PyMalloc_*. Do we need to say anything aboutNeil Schemenauer2002-05-081-6/+1
| | | | pymalloc?
* Patch #553277: Accept callbacks that are callable, not callbacks that are true.Martin v. Löwis2002-05-081-0/+1
|
* Patch #552433: Special-case tuples. Avoid sub-type checking for lists.Martin v. Löwis2002-05-081-0/+4
| | | | | Avoid checks for negative indices and duplicate checks for support of the sequence protocol.
* Fix typosAndrew M. Kuchling2002-05-071-13/+11
|
* random.gauss() uses a piece of hidden state used by nothing else,Tim Peters2002-05-051-0/+7
| | | | | | | | | | | and the .seed() and .whseed() methods failed to reset it. In other words, setting the seed didn't completely determine the sequence of results produced by random.gauss(). It does now. Programs repeatedly mixing calls to a seed method with calls to gauss() may see different results now. Bugfix candidate (random.gauss() has always been broken in this way), despite that it may change results.
* Added notes related to the removal of deprecated features of the xrange type.Fred Drake2002-05-021-0/+9
|
* Added note about using the documentation build tools under Cygwin.Fred Drake2002-05-021-0/+3
|
* Add Pickler.clear_memo() so the pickle and cPickle modules are more similar.Fred Drake2002-05-011-0/+3
|
* Watch out for older XEmacsen for which requiring info-look doesn'tBarry Warsaw2002-04-301-8/+11
| | | | define info-lookup-maybe-add-help.
* Mostly in SequenceMatcher.{__chain_b, find_longest_match}:Tim Peters2002-04-291-2/+11
| | | | | | | | | | | | This now does a dynamic analysis of which elements are so frequently repeated as to constitute noise. The primary benefit is an enormous speedup in find_longest_match, as the innermost loop can have factors of 100s less potential matches to worry about, in cases where the sequences have many duplicate elements. In effect, this zooms in on sequences of non-ubiquitous elements now. While I like what I've seen of the effects so far, I still consider this experimental. Please give it a try!
* Clarify that the strip changes also apply to Unicode.Guido van Rossum2002-04-261-3/+3
|
* - New builtin function enumerate(x), from PEP 279. Example:Guido van Rossum2002-04-261-0/+4
| | | | | enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object.
* (py-comint-output-filter-function): Put the pop-to-buffer call insideBarry Warsaw2002-04-261-1/+1
| | | | | the `when' condition so other non-Python shell comint changes won't cause random buffers to pop.
* PyNumber_CoerceEx: this took a shortcut (not doing anything) when theGuido van Rossum2002-04-261-0/+4
| | | | | | | | | | | | | | | | | | | | | left and right type were of the same type and not classic instances. This shortcut is dangerous for proxy types, because it means that coerce(Proxy(1), Proxy(2.1)) leaves Proxy(1) unchanged rather than turning it into Proxy(1.0). In an ever-so-slight change of semantics, I now only take the shortcut when the left and right types are of the same type and don't have the CHECKTYPES feature. It so happens that classic instances have this flag, so the shortcut is still skipped in this case (i.e. nothing changes for classic instances). Proxies also have this flag set (otherwise implementing numeric operations on proxies would become nightmarish) and this means that the shortcut is also skipped there, as desired. It so happens that int, long and float also have this flag set; that means that e.g. coerce(1, 1) will now invoke int_coerce(). This is fine: int_coerce() can deal with this, and I'm not worried about the performance; int_coerce() is only invoked when the user explicitly calls coerce(), which should be rarer than rare.
* If Py_OptimizeFlag is false then always evaluate assert conditions, don'tNeil Schemenauer2002-04-261-0/+4
| | | | test __debug__ at runtime. Closes SF patch #548833.
* Fix typo in the setup of interpreter-mode-alist.Barry Warsaw2002-04-251-1/+1
|
* SF patch #510288 by Kevin J. Butler, mod'd by Barry. This providesBarry Warsaw2002-04-251-7/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | better auto-recognition of a Jython file vs. a CPython (or agnostic) file by looking at the #! line more closely, and inspecting the import statements in the first 20000 bytes (configurable). Specifically, (py-import-check-point-max): New variable, controlling how far into the buffer it will search for import statements. (py-jpython-packages): List of package names that are Jython-ish. (py-shell-alist): List of #! line programs and the modes associated with them. (jpython-mode-hook): Extra hook that runs when entering jpython-mode (what about Jython mode? <20k wink>). (py-choose-shell-by-shebang, py-choose-shell-by-import, py-choose-shell): New functions. (python-mode): Use py-choose-shell. (jpython-mode): New command. (py-execute-region): Don't use my previous hacky attempt at doing this, use the new py-choose-shell function. One other thing this file now does: it attempts to add the proper hooks to interpreter-mode-alist and auto-mode-alist if they aren't already there. Might help with Emacs users since that editor doesn't come with python-mode by default.
* (py-execute-region): Alexander Schmolck points out that leadingBarry Warsaw2002-04-251-0/+7
| | | | | whitespace can hose the needs-if test. So just skip all blank lines at the start of the region right off the bat.
* (py-comint-output-filter-function): Add a pop-to-buffer call so youBarry Warsaw2002-04-251-0/+1
| | | | | always get to see the result of e.g. a py-execute-region. Funny, this bugged both me /and/ Guido!
* (py-shell-hook): A new hook variable, run at the end of py-shell.Barry Warsaw2002-04-251-0/+14
| | | | | | | | | Allows for some customization of the underlying comint buffer. (py-shell): Call the new hook. (info-lookup-maybe-add-help): A new call suggested by Milan Zamazal to make lookups in the Info documentation easier.
* SF patch 546244 by John Williams: add Text.dump() method.Guido van Rossum2002-04-232-0/+3
|
* SF patch [ 545523 ] patch for 514433 bsddb.dbopen (NULL)Anthony Baxter2002-04-231-0/+4
| | | | | | | | | | | | closes SF #514433 can now pass 'None' as the filename for the bsddb.*open functions, and you'll get an in-memory temporary store. docs are ripped out of the bsddb dbopen man page. Fred may want to clean them up. Considering this for 2.2, but not 2.1.
* Merge in Skip's last few updates w.r.t. py-help-at-point:Barry Warsaw2002-04-221-2/+6
| | | | | | | | (py-mode-map): Bind py-help-at-point to f1 as well as C-c C-h (py-help-at-point): Make sure the symbol is quoted so things like pydoc.help('sys.platform') work correctly. Also, leave the *Python Output* buffer in help-mode; this may be a bit more controversial.
* Some contributions and ideas by Alexander Schmolck: add a keybindingBarry Warsaw2002-04-221-9/+52
| | | | | | | | | | | | | | | | | | | to call pychecker on the current file, add a face for pseudo keywords self, None, True, False, and Ellipsis. Specifically, (py-pychecker-command, py-pychecker-command-args): New variables. (py-pseudo-keyword-face): New face variable, defaulting to a copy of font-lock-keyword-face. (python-font-lock-keywords): Add an entry for self, None, True, False, Ellipsis to be rendered in py-pseudo-keyword-face. (py-pychecker-history): New variable. (py-mode-map): Bind C-c C-w to py-pychecker-run. (py-pychecker-run): New command.
* Skip Montanaro's contribution (slightly mod'd by Barry) to provide aBarry Warsaw2002-04-221-4/+54
| | | | | | | | | | | | | | "help-on-symbol-at-point" feature which uses pydoc to provide help on the symbol under point, if available. Mods include some name changes, a port to Emacs, binding the command to C-c C-h, and providing a more informative error message if the symbol's help can't be found (through use of a nasty bare except). Note also that py-describe-mode has been moved off of C-c C-h m; it's now just available on C-c ? Closes SF patch #545439.
* (py-execute-region): If the line at the beginning of the region is aBarry Warsaw2002-04-221-6/+11
| | | | | | | | | | | | | | | #! line, use the command on that line as the shell command to use to execute the region. I.e. if the region looks like ---------------- #! /usr/bin/env python1.5 print 'hello world'.startswith('hello') ---------------- you'll get an exception! :) This closes SF bug #232398.
* (py-execute-region): If you ran this without having visited aBarry Warsaw2002-04-221-45/+23
| | | | | | | | | | | | | | | | | | python-mode file, py-which-shell would have been nil and the command to use would not get set correctly. This changes things so that 1) the temporary file has a .py extension, 2) the temporary file is put into python-mode, and 3) the temporary file's py-which-shell is captured in a local `shell' variable, which is used to calculate the command to use. Closes SF bug #545436. (py-parse-state): Rip out the XEmacs-specific calls to buffer-syntactic-context, which can get quite confused if there's an open paren in column zero say, embedded in a triple quoted string. This was always a performance hack anyway, and computers are fast enough now that we should be able to get away with the slower, more portable, full-parse branch. Closes SF bug #451841. Update the comments at the top of the file.
* Enable universal newlines on Windows. Note that NEWS needs more words!Tim Peters2002-04-211-0/+3
|
* Forward port of patch # 500311: Work around for buggy https servers.Martin v. Löwis2002-04-201-0/+1
| | | | Fixes #494762.
* Get the right funny characters in Hernan's name.Tim Peters2002-04-191-0/+1
|
* Added note about new distutils commands.Marc-André Lemburg2002-04-171-0/+9
|
* Windows installer: disabled Wise's "delete in-use files" uninstallTim Peters2002-04-161-0/+4
| | | | | | | | option. It was the cause of at least one way UNWISE.EXE could vanish (install a python; uninstall it; install it again; reboot the machine; abracadabra the uinstaller is gone). Bugfix candidate, but I'll backport it myself.
* Apply the second version of SF patch http://www.python.org/sf/536241Walter Dörwald2002-04-151-0/+4
| | | | | | | | | | Add a method zfill to str, unicode and UserString and change Lib/string.py accordingly. This activates the zfill version in unicodeobject.c that was commented out and implements the same in stringobject.c. It also adds the test for unicode support in Lib/string.py back in and uses repr() instead() of str() (as it was before Lib/string.py 1.62)
* Add news about deprecated complex ops.Guido van Rossum2002-04-151-0/+4
|
* Four more names for the hall of fame.Guido van Rossum2002-04-151-0/+4
|
* Patch #543447: Add posix.mknod.Martin v. Löwis2002-04-141-0/+2
|
* News for strip methods.Guido van Rossum2002-04-131-0/+4
|
* Add news about memory managent APIs changing.Neil Schemenauer2002-04-121-0/+5
|
* News about dict.pop().Guido van Rossum2002-04-121-0/+3
|
* Spell Raymond Hettinger's name writeNeal Norwitz2002-04-121-1/+1
|