]> granicus.if.org Git - python/log
python
19 years agoNote that usegmt is new in 2.4. Closes #1239681.
Skip Montanaro [Sun, 17 Jul 2005 11:47:46 +0000 (11:47 +0000)]
Note that usegmt is new in 2.4.  Closes #1239681.

19 years agoAdd support for FreeBSD 7.
Hye-Shik Chang [Sun, 17 Jul 2005 02:36:59 +0000 (02:36 +0000)]
Add support for FreeBSD 7.

19 years agoAdded an option to the scanner to generated marked-up HTML from the input
Jack Jansen [Sun, 17 Jul 2005 00:15:46 +0000 (00:15 +0000)]
Added an option to the scanner to generated marked-up HTML from the input
file. This should make it a lot easier (I hope) to get the regular
expressions right.

19 years agobug [ 1238170 ] threading.Thread uses {} as default argument
Georg Brandl [Fri, 15 Jul 2005 09:13:21 +0000 (09:13 +0000)]
bug [ 1238170 ] threading.Thread uses {} as default argument

19 years agotextwrap now processes text chucks at O(n) speed instead of O(n**2).
Raymond Hettinger [Fri, 15 Jul 2005 06:53:35 +0000 (06:53 +0000)]
textwrap now processes text chucks at O(n) speed instead of O(n**2).
Patch #1209527 (Contributed by Connelly).

19 years agoBrett requests that Flovis's permissions be dropped.
Raymond Hettinger [Thu, 14 Jul 2005 17:34:00 +0000 (17:34 +0000)]
Brett requests that Flovis's permissions be dropped.

19 years agoRFE [ 1216944 ] Add Error Code Dictionary to urllib2
Georg Brandl [Thu, 14 Jul 2005 06:40:47 +0000 (06:40 +0000)]
RFE [ 1216944 ] Add Error Code Dictionary to urllib2

19 years agoApply SF patch #1101726: Fix buffer overrun in tokenizer.c when a source file
Walter Dörwald [Tue, 12 Jul 2005 21:53:43 +0000 (21:53 +0000)]
Apply SF patch #1101726: Fix buffer overrun in tokenizer.c when a source file
with a PEP 263 encoding declaration results in long decoded line.

19 years agoFix for #1236090: FSSpec.as_pathname() crashes.
Jack Jansen [Tue, 12 Jul 2005 21:25:05 +0000 (21:25 +0000)]
Fix for #1236090: FSSpec.as_pathname() crashes.

Turns out patch #1035255 was incomplete, it only patched _Filemodule.c
and not filesupport.py. So regenerating caused as_pathname() to go into
an infinite loop.

19 years agoOops.
Georg Brandl [Tue, 12 Jul 2005 13:20:49 +0000 (13:20 +0000)]
Oops.

19 years agobug [ 1232768 ] Mistakes in online docs under "5.3 Pure Embedding"
Georg Brandl [Tue, 12 Jul 2005 13:17:59 +0000 (13:17 +0000)]
bug [ 1232768 ] Mistakes in online docs under "5.3 Pure Embedding"

19 years agoFix:
Michael W. Hudson [Tue, 12 Jul 2005 10:21:19 +0000 (10:21 +0000)]
Fix:

1229429 ] missing Py_DECREF in PyObject_CallMethod

Add a test in test_enumerate, which is a bit random, but suffices
(reversed_new calls PyObject_CallMethod under some circumstances).

19 years agobug [ 1235266 ] debug info file descriptor of tarfile is inconsistent
Georg Brandl [Tue, 12 Jul 2005 07:28:20 +0000 (07:28 +0000)]
bug [ 1235266 ] debug info file descriptor of tarfile is inconsistent

19 years agoSF bug 1185883: PyObject_Realloc can't safely take over a block currently
Tim Peters [Sun, 10 Jul 2005 22:30:55 +0000 (22:30 +0000)]
SF bug 1185883:  PyObject_Realloc can't safely take over a block currently
managed by C, because it's possible for the block to be smaller than the
new requested size, and at the end of allocated VM.  Trying to copy over
nbytes bytes to a Python small-object block can segfault then, and there's
no portable way to avoid this (we would have to know how many bytes
starting at p are addressable, and std C has no means to determine that).

Bugfix candidate.  Should be backported to 2.4, but I'm out of time.

19 years agoWhitespace normalization.
Tim Peters [Sun, 10 Jul 2005 20:37:51 +0000 (20:37 +0000)]
Whitespace normalization.

19 years agobug 1234979 addition
Georg Brandl [Sat, 9 Jul 2005 15:26:33 +0000 (15:26 +0000)]
bug 1234979 addition

19 years agobug [ 1234979 ] Lock.acquire treats only 1 as True
Georg Brandl [Fri, 8 Jul 2005 22:26:13 +0000 (22:26 +0000)]
bug [ 1234979 ] Lock.acquire treats only 1 as True

19 years agobug [ 969757 ] function and method objects confounded in Tutorial
Georg Brandl [Fri, 8 Jul 2005 21:36:36 +0000 (21:36 +0000)]
bug [ 969757 ] function and method objects confounded in Tutorial

19 years agoHandle argref so it can be overridden more easily in a subclass.
Jack Jansen [Fri, 8 Jul 2005 15:03:37 +0000 (15:03 +0000)]
Handle argref so it can be overridden more easily in a subclass.

19 years agoNote Floris's last name.
Raymond Hettinger [Fri, 8 Jul 2005 14:47:38 +0000 (14:47 +0000)]
Note Floris's last name.

19 years agoAdd permissions for the Summer of Code project.
Raymond Hettinger [Fri, 8 Jul 2005 14:37:56 +0000 (14:37 +0000)]
Add permissions for the Summer of Code project.

19 years agoFix "upload" command garbling and truncating files on Windows. If it's a
Phillip J. Eby [Thu, 7 Jul 2005 15:36:20 +0000 (15:36 +0000)]
Fix "upload" command garbling and truncating files on Windows.  If it's a
binary file, use 'rb'!

19 years agoLink to #1233049 for building against openssl 0.9.8.
Martin v. Löwis [Wed, 6 Jul 2005 19:34:10 +0000 (19:34 +0000)]
Link to #1233049 for building against openssl 0.9.8.

19 years agoFix bug
Michael W. Hudson [Tue, 5 Jul 2005 15:21:58 +0000 (15:21 +0000)]
Fix bug

1232517 ] OverflowError in time.utime() causes strange traceback

A needed error check was missing.

(Actually, this error check may only have become necessary in fairly
recent Python, not sure).

Backport candidate.

19 years agoAllow for (optional) const declaration.
Jack Jansen [Tue, 5 Jul 2005 10:00:57 +0000 (10:00 +0000)]
Allow for (optional) const declaration.

19 years agoAdd test for hash commutativity.
Raymond Hettinger [Tue, 5 Jul 2005 05:34:43 +0000 (05:34 +0000)]
Add test for hash commutativity.

19 years agofixed tag generation to avoid null tags
Piers Lauder [Tue, 5 Jul 2005 04:20:07 +0000 (04:20 +0000)]
fixed tag generation to avoid null tags

19 years agobug #1177468: don't cache /dev/urandom file descriptor in os.urandom
Georg Brandl [Mon, 4 Jul 2005 17:16:07 +0000 (17:16 +0000)]
bug #1177468: don't cache /dev/urandom file descriptor in os.urandom

19 years agoRevert patch for 1162912.
Georg Brandl [Mon, 4 Jul 2005 14:17:47 +0000 (14:17 +0000)]
Revert patch for 1162912.

19 years agoUpdated (and regenerated) for name change in tp_init method arguments:
Jack Jansen [Sun, 3 Jul 2005 20:59:44 +0000 (20:59 +0000)]
Updated (and regenerated) for name change in tp_init method arguments:
they are now _self, _args and _kwds.

19 years agoFactored out the code that creates argument lists and formats for PyArg_Parse
Jack Jansen [Sun, 3 Jul 2005 20:58:08 +0000 (20:58 +0000)]
Factored out the code that creates argument lists and formats for PyArg_Parse
and Py_BuildValue.

19 years agoSigh, changed the argument names in the tp_init function: to make them be
Jack Jansen [Sun, 3 Jul 2005 20:57:26 +0000 (20:57 +0000)]
Sigh, changed the argument names in the tp_init function: to make them be
more in line with other methods "self" and "args" had to be renamed "_self"
and "_args". Did "_kwds" too, for consistency.

19 years agobug [ 1162912 ] typesseq-mutable lacks note on combined key/cmp usage
Georg Brandl [Sun, 3 Jul 2005 20:21:40 +0000 (20:21 +0000)]
bug [ 1162912 ] typesseq-mutable lacks note on combined key/cmp usage

19 years agoAdd doctest for examples in libweakref.tex to test_weakref.
Georg Brandl [Sat, 2 Jul 2005 19:07:30 +0000 (19:07 +0000)]
Add doctest for examples in libweakref.tex to test_weakref.

19 years agopatch [ 1231538 ] Typo fix in compiler/transformer.py (WalkerEror)
Georg Brandl [Sat, 2 Jul 2005 18:37:41 +0000 (18:37 +0000)]
patch [ 1231538 ] Typo fix in compiler/transformer.py (WalkerEror)

19 years agobug [ 1228904 ] weakref example broken
Georg Brandl [Sat, 2 Jul 2005 10:44:32 +0000 (10:44 +0000)]
bug [ 1228904 ] weakref example broken

19 years agoPatch [ 1230615 ] Patch for (Doc) #1168746
Georg Brandl [Sat, 2 Jul 2005 10:27:31 +0000 (10:27 +0000)]
Patch [ 1230615 ] Patch for (Doc) #1168746
Bug [ 1204734 ] incorrect description of __getattribute__

19 years agoCross reference the set built-ins with the sets module.
Raymond Hettinger [Fri, 1 Jul 2005 23:18:36 +0000 (23:18 +0000)]
Cross reference the set built-ins with the sets module.

19 years agoProvide a comparison to the builtin set types.
Raymond Hettinger [Fri, 1 Jul 2005 23:00:13 +0000 (23:00 +0000)]
Provide a comparison to the builtin set types.

19 years agoTeach texcheck about \textbar
Raymond Hettinger [Fri, 1 Jul 2005 22:55:43 +0000 (22:55 +0000)]
Teach texcheck about \textbar

19 years agoAdded methods mkvaluePreCheck and getargsPreCheck, which are called (for
Jack Jansen [Fri, 1 Jul 2005 20:23:27 +0000 (20:23 +0000)]
Added methods mkvaluePreCheck and getargsPreCheck, which are called (for
each variable) before calling Py_BuildValue and PyArg_Parse.

19 years agoMore info on rounding modes. Add sections for floating point notes.
Raymond Hettinger [Fri, 1 Jul 2005 16:54:12 +0000 (16:54 +0000)]
More info on rounding modes.  Add sections for floating point notes.

19 years agoMore factorization: added a method getrvforcallit(). This allows a C++
Jack Jansen [Thu, 30 Jun 2005 15:00:13 +0000 (15:00 +0000)]
More factorization: added a method getrvforcallit(). This allows a C++
bridge to combine declaration and assignment to the return value
temporary, allowing us to handle functions returning const values.

19 years agoApparently some compiler gives a warning on
Michael W. Hudson [Thu, 30 Jun 2005 00:02:26 +0000 (00:02 +0000)]
Apparently some compiler gives a warning on

float y = x;

when x is a double.  Go figure.

19 years agoSF bug #1224347: int/long unification and hex()
Raymond Hettinger [Wed, 29 Jun 2005 23:29:56 +0000 (23:29 +0000)]
SF bug #1224347:  int/long unification and hex()

Hex longs now print with lowercase letters like their int counterparts.

19 years agoAdded optional suppport for storage modifiers (virtual/static/inline/etc)
Jack Jansen [Wed, 29 Jun 2005 14:17:05 +0000 (14:17 +0000)]
Added optional suppport for storage modifiers (virtual/static/inline/etc)
and conditional generation of objects and methods.

19 years agoMore factorization to help C++ support.
Jack Jansen [Tue, 28 Jun 2005 15:14:35 +0000 (15:14 +0000)]
More factorization to help C++ support.

19 years agoNote that files are iterable.
Raymond Hettinger [Tue, 28 Jun 2005 00:16:08 +0000 (00:16 +0000)]
Note that files are iterable.

19 years ago* Show the keyword argument form of dict().
Raymond Hettinger [Mon, 27 Jun 2005 23:36:47 +0000 (23:36 +0000)]
* Show the keyword argument form of dict().
* Note that dict works with the "in" keyword.

19 years agoadd note that os.EX_* constants are subject to availability on the host
Fred Drake [Mon, 27 Jun 2005 23:23:43 +0000 (23:23 +0000)]
add note that os.EX_* constants are subject to availability on the host
platform

19 years agoAdapt output file to new Cookie JS output.
Georg Brandl [Mon, 27 Jun 2005 05:51:07 +0000 (05:51 +0000)]
Adapt output file to new Cookie JS output.

19 years agoFix test cases for doctest.
Georg Brandl [Sun, 26 Jun 2005 23:09:51 +0000 (23:09 +0000)]
Fix test cases for doctest.

19 years ago- Bug #839151: Fix an attempt to access sys.argv in the warnings module
Georg Brandl [Sun, 26 Jun 2005 22:54:58 +0000 (22:54 +0000)]
- Bug #839151: Fix an attempt to access sys.argv in the warnings module
  though this can be missing in embedded interpreters

19 years agobug [ 839151 ] attempt to access sys.argv when it doesn't exist
Georg Brandl [Sun, 26 Jun 2005 22:53:29 +0000 (22:53 +0000)]
bug [ 839151 ] attempt to access sys.argv when it doesn't exist

19 years agobug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-able
Georg Brandl [Sun, 26 Jun 2005 22:22:31 +0000 (22:22 +0000)]
bug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-able

19 years ago- Bug #1155638: Fix a bug which affected HTTP 0.9 responses in httplib.
Georg Brandl [Sun, 26 Jun 2005 22:09:06 +0000 (22:09 +0000)]
- Bug #1155638: Fix a bug which affected HTTP 0.9 responses in httplib.

19 years agobug [ 1155638 ] self.length shield exception in httplib
Georg Brandl [Sun, 26 Jun 2005 22:06:54 +0000 (22:06 +0000)]
bug [ 1155638 ] self.length shield exception in httplib

19 years agobug [ 1175848 ] poorly named variable in urllib2.py
Georg Brandl [Sun, 26 Jun 2005 22:01:35 +0000 (22:01 +0000)]
bug [ 1175848 ] poorly named variable in urllib2.py

19 years agoPrevent creating a HTML link to file://?/
Georg Brandl [Sun, 26 Jun 2005 21:57:55 +0000 (21:57 +0000)]
Prevent creating a HTML link to file://?/

19 years ago- Bug #1100201: Cross-site scripting was possible on BaseHTTPServer via
Georg Brandl [Sun, 26 Jun 2005 21:36:25 +0000 (21:36 +0000)]
- Bug #1100201: Cross-site scripting was possible on BaseHTTPServer via
  error messages.

19 years agobug [ 1100201 ] Cross-site scripting on BaseHTTPServer
Georg Brandl [Sun, 26 Jun 2005 21:33:14 +0000 (21:33 +0000)]
bug [ 1100201 ] Cross-site scripting on BaseHTTPServer

19 years agoAdd NEWS entries for bugs closed at Bug Day.
Georg Brandl [Sun, 26 Jun 2005 21:09:38 +0000 (21:09 +0000)]
Add NEWS entries for bugs closed at Bug Day.

19 years agobug [ 1108948 ] Cookie.py produces invalid code
Georg Brandl [Sun, 26 Jun 2005 21:02:49 +0000 (21:02 +0000)]
bug [ 1108948 ] Cookie.py produces invalid code

19 years agobug [ 1072853 ] thisid not intialized in pindent.py script
Georg Brandl [Sun, 26 Jun 2005 20:20:48 +0000 (20:20 +0000)]
bug [ 1072853 ] thisid not intialized in pindent.py script

19 years agoSMTP.help() was returning a tuple instead of the promised text.
Kurt B. Kaiser [Sun, 26 Jun 2005 18:27:36 +0000 (18:27 +0000)]
SMTP.help() was returning a tuple instead of the promised text.

19 years agoNEWS entry for last bugfix
Georg Brandl [Sat, 25 Jun 2005 21:08:46 +0000 (21:08 +0000)]
NEWS entry for last bugfix

19 years agobug [ 1166582 ] IterableUserDict not in docs
Georg Brandl [Sat, 25 Jun 2005 21:03:52 +0000 (21:03 +0000)]
bug [ 1166582 ] IterableUserDict not in docs

19 years agobug [ 1186072 ] tempnam doc doesn't include link to tmpfile
Georg Brandl [Sat, 25 Jun 2005 20:44:10 +0000 (20:44 +0000)]
bug [ 1186072 ] tempnam doc doesn't include link to tmpfile

19 years agobug [ 1175022 ] property example code error
Georg Brandl [Sat, 25 Jun 2005 20:07:36 +0000 (20:07 +0000)]
bug [ 1175022 ] property example code error

19 years agoBug [ 1190563 ] os.waitpid docs don't specify return value for WNOHANG
Georg Brandl [Sat, 25 Jun 2005 19:55:04 +0000 (19:55 +0000)]
Bug [ 1190563 ] os.waitpid docs don't specify return value for WNOHANG

19 years agobug [ 1202475 ] httplib docs mentioning HTTPConnection.getreply
Georg Brandl [Sat, 25 Jun 2005 19:15:48 +0000 (19:15 +0000)]
bug [ 1202475 ] httplib docs mentioning HTTPConnection.getreply

19 years agoPatch [ 1213031 ] note that os.chown can have -1 as an argument
Georg Brandl [Sat, 25 Jun 2005 18:52:24 +0000 (18:52 +0000)]
Patch [ 1213031 ] note that os.chown can have -1 as an argument

19 years agocorrecting duplicate TeX markup
Georg Brandl [Sat, 25 Jun 2005 18:46:09 +0000 (18:46 +0000)]
correcting duplicate TeX markup

19 years agoBug [ 1225705 ] os.environ documentation should mention unsetenv
Georg Brandl [Sat, 25 Jun 2005 18:44:49 +0000 (18:44 +0000)]
Bug [ 1225705 ] os.environ documentation should mention unsetenv

19 years agoPatch #1227442: smtplib.SMTP.sendmail() accepts a string or list as to_addrs.
Georg Brandl [Sat, 25 Jun 2005 18:24:03 +0000 (18:24 +0000)]
Patch #1227442: smtplib.SMTP.sendmail() accepts a string or list as to_addrs.

19 years agoFix signedness of various char variables to stop causing a warning under gcc 4.
Brett Cannon [Sat, 25 Jun 2005 08:23:41 +0000 (08:23 +0000)]
Fix signedness of various char variables to stop causing a warning under gcc 4.

19 years agoAdd comments about PyThreadState and the usage of its fields.
Brett Cannon [Sat, 25 Jun 2005 07:07:35 +0000 (07:07 +0000)]
Add comments about PyThreadState and the usage of its fields.

19 years agoNormalize whitespace to avoid offending Bug Day volunteers.
Tim Peters [Fri, 24 Jun 2005 19:46:53 +0000 (19:46 +0000)]
Normalize whitespace to avoid offending Bug Day volunteers.

19 years agoAdded a missing newline Output().
Jack Jansen [Thu, 23 Jun 2005 22:32:59 +0000 (22:32 +0000)]
Added a missing newline Output().

19 years agoRevamped type declaration so the basic routines return a list of strings.
Jack Jansen [Wed, 22 Jun 2005 20:35:23 +0000 (20:35 +0000)]
Revamped type declaration so the basic routines return a list of strings.
This allows variables to be declared as formal arguments. The bgenType.declare
method now simply outputs all declarations on separate lines ending
in semicolons.

19 years agoAdded support for optional modifiers to functions/methods (such as C++ const,
Jack Jansen [Tue, 21 Jun 2005 20:54:51 +0000 (20:54 +0000)]
Added support for optional modifiers to functions/methods (such as C++ const,
static for methods, inline, etc).

19 years agoSF bug #1224621: tokenize module does not detect inconsistent dedents
Raymond Hettinger [Tue, 21 Jun 2005 07:43:58 +0000 (07:43 +0000)]
SF bug #1224621: tokenize module does not detect inconsistent dedents

19 years agoRemove dead code
Kurt B. Kaiser [Tue, 21 Jun 2005 02:42:17 +0000 (02:42 +0000)]
Remove dead code
M IdleHistory.py
M PyShell.py

19 years agoFix bug:
Michael W. Hudson [Mon, 20 Jun 2005 16:52:57 +0000 (16:52 +0000)]
Fix bug:

1163563 ] Sub threads execute in restricted mode

basically by fixing bug 1010677 in a non-broken way.

Backport candidate.

19 years agoAdd a(nother) warning about mixing Py_NewInterpreter and the
Michael W. Hudson [Mon, 20 Jun 2005 16:37:03 +0000 (16:37 +0000)]
Add a(nother) warning about mixing Py_NewInterpreter and the
PyGILState_* functions.

19 years agotest_asynchat is no longer expected to produce output.
Michael W. Hudson [Mon, 20 Jun 2005 13:45:34 +0000 (13:45 +0000)]
test_asynchat is no longer expected to produce output.

also, wait for threads to finish before proceeding.

19 years agofix some silly whitespace stuff (must have hit M-q or something?)
Michael W. Hudson [Mon, 20 Jun 2005 12:12:45 +0000 (12:12 +0000)]
fix some silly whitespace stuff (must have hit M-q or something?)

19 years agoApply the _is_special guard.
Raymond Hettinger [Mon, 20 Jun 2005 09:49:42 +0000 (09:49 +0000)]
Apply the _is_special guard.

19 years ago<Enter> when cursor is on a previous command retrieves that command. Instead
Kurt B. Kaiser [Sun, 19 Jun 2005 18:56:15 +0000 (18:56 +0000)]
<Enter> when cursor is on a previous command retrieves that command.  Instead
of replacing the input line, the previous command is now appended to the
input line. Indentation is preserved, and undo is enabled.
Patch 1196917  Jeff Shute

Modified Files:
NEWS.txt PyShell.py

19 years agoInsert missing flag.
Raymond Hettinger [Sun, 19 Jun 2005 08:42:20 +0000 (08:42 +0000)]
Insert missing flag.

19 years agoSF patch #1200018: Restore GC support to set objects
Raymond Hettinger [Sat, 18 Jun 2005 21:00:26 +0000 (21:00 +0000)]
SF patch #1200018:  Restore GC support to set objects

Reverts 1.26 and 1.27.
And adds cycle testing.

19 years agoBug #1209560: spurious blank page in dist.pdf
Georg Brandl [Sat, 18 Jun 2005 20:11:40 +0000 (20:11 +0000)]
Bug #1209560: spurious blank page in dist.pdf

19 years agoPatch #1180012: add documentation for modulefinder
Georg Brandl [Sat, 18 Jun 2005 20:06:15 +0000 (20:06 +0000)]
Patch #1180012: add documentation for modulefinder

19 years agoFix grammar (it's -> its).
Neil Schemenauer [Sat, 18 Jun 2005 17:54:13 +0000 (17:54 +0000)]
Fix grammar (it's -> its).

19 years agoAdd missing INCREF.
Neil Schemenauer [Sat, 18 Jun 2005 17:37:06 +0000 (17:37 +0000)]
Add missing INCREF.

Backport candidate.

19 years agoFix typo.
Raymond Hettinger [Fri, 17 Jun 2005 10:25:33 +0000 (10:25 +0000)]
Fix typo.

19 years agoAdd tests for posix O_SHLOCK & O_EXLOCK. Missed checking this in with
Skip Montanaro [Fri, 17 Jun 2005 01:14:49 +0000 (01:14 +0000)]
Add tests for posix O_SHLOCK & O_EXLOCK.  Missed checking this in with
posixmodule.c 2.335.  Really should be considered part of patch #1103951.

19 years agoMore factorization.
Jack Jansen [Thu, 16 Jun 2005 21:26:24 +0000 (21:26 +0000)]
More factorization.

19 years agoremove c++ style comment
Gregory P. Smith [Thu, 16 Jun 2005 19:01:42 +0000 (19:01 +0000)]
remove c++ style comment

19 years agoUpdate URL.
Michael W. Hudson [Thu, 16 Jun 2005 15:51:20 +0000 (15:51 +0000)]
Update URL.