Commit graph

5510 commits

Author SHA1 Message Date
Greg Ward
1d5d8cf61f Typo fix. 2002-12-17 18:14:21 +00:00
Michael W. Hudson
cfd3884882 This is Richie Hindle's patch
[ 643835 ] Set Next Statement for Python debuggers

with a few tweaks by me: adding an unsigned or two, mentioning that
not all jumps are allowed in the doc for pdb, adding a NEWS item and
a note to whatsnew, and AuCTeX doing something cosmetic to libpdb.tex.
2002-12-17 16:15:34 +00:00
Neal Norwitz
212b43f90c Add markup for base parameter 2002-12-17 01:24:11 +00:00
Neal Norwitz
046b8a7244 Fix SF # 641111, Undocumented side effect of eval
Try to clear up confusion about the current globals being copied
into a globals dict passed to eval().  This wording (more or less)
was suggested in bug report.  It should probably be made clearer.

Backport candidate.
2002-12-17 01:08:06 +00:00
Neal Norwitz
e9ce25e512 Fix SF #642742, property() builtin not documented
Added doc for functions new to 2.2:  classmethod property staticmethod super
Taken from docstrings.  Could use review.
Hope there wasn't a reason why these shouldn't have been added.

Backport candidate.
2002-12-17 01:02:57 +00:00
Neal Norwitz
0f30dbd991 Fix SF # 626275, missing DECREF's in embedding example
Tested w/valgrind, all paths except the return on PyInt_AsLong() failure
I think I got all of these right.

Backport candidate.
2002-12-17 00:40:38 +00:00
Gustavo Niemeyer
786ddb29c9 Fixed bug
[#521782] unreliable file.read() error handling

* Objects/fileobject.c
  (file_read): Clear errors before leaving the loop in all situations,
  and also check if some data was read before exiting the loop with an
  EWOULDBLOCK exception.

* Doc/lib/libstdtypes.tex
* Objects/fileobject.c
  Document that sometimes a read() operation can return less data than
  what the user asked, if running in non-blocking mode.

* Misc/NEWS
  Document the fix.
2002-12-16 18:12:53 +00:00
Gustavo Niemeyer
78429a6aa6 Fixing bug
[#448679] Left to right

* Python/compile.c
  (com_dictmaker): Reordered evaluation of dictionaries to follow strict
  LTR evaluation.

* Lib/compiler/pycodegen.py
  (CodeGenerator.visitDict): Reordered evaluation of dictionaries to
  follow strict LTR evaluation.

* Doc/ref/ref5.tex
  Documented the general LTR evaluation order idea.

* Misc/NEWS
  Documented change in evaluation order of dictionaries.
2002-12-16 13:54:02 +00:00
Andrew M. Kuchling
8e5b53b3d9 Rewrite to produce a complete sentence 2002-12-15 20:17:38 +00:00
Just van Rossum
edd179ee77 typo fix. 2002-12-15 13:14:22 +00:00
Raymond Hettinger
45bda57c1d Added missing markup.
Replaced British spelling of 'behaviour' with 'behavior'.
Noted the new optional argument in math.log(x [,base]).
2002-12-14 20:20:45 +00:00
Raymond Hettinger
866964c3a3 Apply SF patch 652930: Add optional base argument to math.log(x[, base]). 2002-12-14 19:51:34 +00:00
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