Commit graph

5348 commits

Author SHA1 Message Date
Andrew M. Kuchling
6c50df2d90 Add Tkinter threading change
Fix markup errors
Rewrite a sentence
2002-12-13 12:53:16 +00:00
Thomas Heller
63b4dd33c9 Description of description was really confusing, and added some markup. 2002-12-12 19:35:00 +00:00
Thomas Heller
2c3bfc2a1a Raw documentation for the bdist_wininst postinstallation script.
People are already using it, so these docs are certainly better than
no docs at all. Markup is mostly missing and the layout is probably
ugly, but this can be fixed later.

Question: there are references to MS docs for the CSIDL_... constants
and the IShellLink interface. Are these pointers sufficient, or should
the MS docs reworded and repeated here?
2002-12-12 18:54:19 +00:00
Walter Dörwald
d9a6ad3beb Enhance issubclass() and PyObject_IsSubclass() so that a tuple is
supported as the second argument. This has the same meaning as
for isinstance(), i.e. issubclass(X, (A, B)) is equivalent
to issubclass(X, A) or issubclass(X, B). Compared to isinstance(),
this patch does not search the tuple recursively for classes, i.e.
any entry in the tuple that is not a class, will result in a
TypeError.

This closes SF patch #649608.
2002-12-12 16:41:44 +00:00
Just van Rossum
b083cb3901 Patch #651621, approved by MvL.
This patch allows ZipFile.writestr() to be called with
an archive file name instead of a ZipInfo instance:

z = ZipFile("myarchive.zip", "w")
z.writestr("foo/baz/file.ext", data)
z.close()

I found the old writestr() method very inconvenient
for simple (but common) things.

If called with a file name instead of a ZipInfo
instance, the date_time is set to the current date/time,
which makes sense to me for anonymous data.
2002-12-12 12:23:32 +00:00
Andrew M. Kuchling
449a87d791 Various additions and changes suggested by Raymond Hettinger 2002-12-11 15:03:51 +00:00
Martin v. Löwis
0479104a91 Patch #651006: Better explain what component might be empty. 2002-12-11 12:55:53 +00:00
Raymond Hettinger
d2bef8256b Update comments about the performance of xrange(). 2002-12-11 07:14:03 +00:00
Tim Peters
85f7f83d71 Added a word to the heapq description in response to user confusion. 2002-12-10 21:04:25 +00:00
Skip Montanaro
3bf99e3e87 Add support for binary pickles to the shelve module. In some situations
this can result in significantly smaller files.  All classes as well as the
open function now accept an optional binary parameter, which defaults to
False for backward compatibility.  Added a small test suite, updated the
libref documentation (including documenting the exported classes and fixing
a few other nits) and added a note about the change to Misc/NEWS.
2002-12-08 18:36:24 +00:00
Fred Drake
27cae1f7c5 Revise the __all__ index entry a touch. 2002-12-07 16:00:00 +00:00
Raymond Hettinger
f9229d98ae Add __all__ to Reference Manual index.
Closes SF 643227.
2002-12-07 09:39:15 +00:00
Thomas Heller
ead60e5d1c Typo: propogate -> propagate
Bugfix candidate.
2002-12-06 22:42:13 +00:00
Fred Drake
edb635ff5c Remove extra ")" in example. 2002-12-06 18:52:28 +00:00
Fred Drake
08d10f985e Typo: "dead lock" --> "deadlock" 2002-12-06 16:45:05 +00:00
Walter Dörwald
6d5f30eaed Document that the second argument to PyObject_IsInstance
may be a tuple. This closes SF patch
http://www.python.org/sf/649095

Backport to release22-maint will follow.
2002-12-06 10:09:16 +00:00
Fred Drake
a41b2bb981 Fix problem in example code. It's minor in this particular example,
but can lead to mysterious problems in real applications.
2002-12-03 22:57:37 +00:00
Fred Drake
7af24bd237 Fix example regular expressions that simulate scanf() constructs. 2002-12-03 18:49:17 +00:00
Martin v. Löwis
71aa6d6db9 Patch #646824: Remove extra \end. 2002-12-03 18:09:02 +00:00
Andrew M. Kuchling
b1e4bf9dc1 Bug #647387: corrections to the logging section by Vinay Sanjip 2002-12-03 13:35:17 +00:00
Mark Hammond
8af50bcf40 _ssl.pyd available for Windows. 2002-12-03 06:13:35 +00:00
Neal Norwitz
75bc8ba0d7 Fix SF # 646578, Documentation Typo 2002-12-02 04:42:58 +00:00
Neal Norwitz
ae6bf4adfa Remove unused variable 2002-12-02 04:40:21 +00:00
Andrew M. Kuchling
53262577eb Add ossaudiodev; fix typo 2002-12-01 14:00:21 +00:00
Just van Rossum
3eb166b49b Slightly improved version of patch #642578: "Expose PyImport_FrozenModules
in imp". This adds two functions to the imp module: get_frozenmodules()
and set_frozenmodules().
2002-11-29 20:47:40 +00:00
Andrew M. Kuchling
b6f7959093 Fix value of 'propagate' (noted by Chris Reedy)
Rewrite paragraph
2002-11-29 19:43:45 +00:00
Walter Dörwald
fb97443e57 Fix typo. 2002-11-29 16:39:07 +00:00
Andrew M. Kuchling
b492fa9101 Mention dict.fromkeys()
Various edits
2002-11-27 19:11:10 +00:00
Andrew M. Kuchling
5ef2b214cd Update e-mail address 2002-11-27 18:53:38 +00:00
Andrew M. Kuchling
d680a86206 Bug #643631: MacOS 9 details missing from inst.tex
Fill in the missing details. (From Jack Jansen)
2002-11-27 13:34:20 +00:00
Raymond Hettinger
e33d3df030 SF Patch 643443. Added dict.fromkeys(iterable, value=None), a class
method for constructing new dictionaries from sequences of keys.
2002-11-27 07:29:33 +00:00
Fred Drake
e9cfcef71e Clarify the interpretation of the __getstate__() return value for
new-style classes.
Closes SF bug #637941.
2002-11-27 05:26:46 +00:00
Fred Drake
4add68bbbc Add missing dependency information for the "What's New" document. 2002-11-26 22:13:41 +00:00
Fred Drake
54fe3fdf77 Noted the support for resource exclusion for regrtest. Some people
use regrtest, so it might be interesting.
2002-11-26 22:07:35 +00:00
Martin v. Löwis
8c8aa5d666 Rename want_objects to wantobjects throughout, for consistency. 2002-11-26 21:39:48 +00:00
Gustavo Niemeyer
f955412130 * Doc/ref/ref5.tex
Fixed minor bug preventing documentation compilation.
2002-11-26 18:14:35 +00:00
Michael W. Hudson
96bc3b4d74 This is not part of my patch
[ 635933 ] make some type attrs writable

but should have been!

News about the above.
2002-11-26 14:48:23 +00:00
Martin v. Löwis
39b48523e4 Report Tkinter changes. 2002-11-26 09:47:25 +00:00
Gustavo Niemeyer
057ab14e7d * libbz2.tex
Fixed minor typo, suggested by Drew Perttula <drewp@bigasterisk.com>.
2002-11-25 18:51:43 +00:00
Andrew M. Kuchling
9e7453dc71 Remove \module{} in link text to avoid HTML generation bug 2002-11-25 16:02:13 +00:00
Andrew M. Kuchling
15353f5c64 Remove extra word 2002-11-25 16:01:08 +00:00
Andrew M. Kuchling
1a54d71550 Mention that .pth files can't be used to override standard modules
(suggested by Jack Jansen)
2002-11-25 13:56:12 +00:00
Martin v. Löwis
b5c980b802 Add unidata_version. Bump generator version number. 2002-11-25 09:13:37 +00:00
Tim Peters
5b21df4a5c Repaired inaccuracies in the % docs. In particular, we don't (and can't)
guarantee abs(x%y) < abs(y) in all cases when a float is involved.
math.fmod() should, though, so noted that too.

Bugfix candidate.  Someone should check the LaTeX here first, though.
2002-11-24 20:23:04 +00:00
Martin v. Löwis
677bde2dd1 Patch #626485: Support Unicode normalization. 2002-11-23 22:08:15 +00:00
Fred Drake
6e596b6895 Added change note about returning a dictionary based on keyword
arguments.
2002-11-23 15:02:13 +00:00
Just van Rossum
a797d8150d Patch #642500 with slight modifications: allow keyword arguments in
dict() constructor. Example:
  >>> dict(a=1, b=2)
  {'a': 1, 'b': 2}
  >>>
2002-11-23 09:45:04 +00:00
Fred Drake
a191befb2d Clarify the default setting for daemon_threads. 2002-11-22 14:29:42 +00:00
Fred Drake
74f5a56c2c Fix markup. 2002-11-22 14:28:53 +00:00
Martin v. Löwis
4581cfa326 Patch #486438: Make module argument to testmod optional. 2002-11-22 08:23:09 +00:00