Raymond Hettinger
22952a3efc
SF bug 735293: Command line timeit.py sets sys.path badly
...
Paul Moore's patch to have timeit.py check the current directory for
imports (instead of the directory for Lib/timeit.py).
2003-05-20 04:59:56 +00:00
Brett Cannon
235d1efe12
Add docs for key_file and cert_file arguments for HTTPSConnection. Copied from socket.ssl docs.
2003-05-20 02:56:35 +00:00
Brett Cannon
be67d87e4d
Fixing the previous patch to have the changes be to the proper docstrings.
2003-05-20 02:40:12 +00:00
Brett Cannon
154da9b7e2
Fix docstrings for __(get|set|del)slice__ to mention that negative indices are not supported.
2003-05-20 02:30:04 +00:00
Kurt B. Kaiser
88957d8d0d
Fix race exposed by 2.4 GHz XP box: Don't tear down PyShell until
...
subprocess polling has terminated. Tk callit gets unhappy if it can't
find the function 'after' scheduled to run.
M PyShell.py
2003-05-19 23:11:51 +00:00
Martin v. Löwis
8fd86cc46e
Only return objects if wantobjects is set in GetVar.
2003-05-19 19:57:42 +00:00
Skip Montanaro
7789237331
* Correct Sniffer doc to correspond to the implementation.
...
* Add optional delimiters arg to Sniffer.sniff() which restricts the set of
candidate field delimiters.
2003-05-19 15:33:36 +00:00
Kurt B. Kaiser
c626658a28
Let Python inform the user what went wrong with the import.
...
Modified Files:
idle idle.py idle.pyw
2003-05-19 02:07:44 +00:00
Martin v. Löwis
415da6e0b2
Only encode Unicode objects when printing them raw.
2003-05-18 12:56:25 +00:00
Martin v. Löwis
9a3a9f7791
Consider \U-escapes in raw-unicode-escape. Fixes #444514 .
2003-05-18 12:31:09 +00:00
Walter Dörwald
9e46abed50
Fix array.array.insert(), so that it treats negative indices as
...
being relative to the end of the array, just like list.insert() does.
This closes SF bug #739313 .
2003-05-18 03:15:10 +00:00
Brett Cannon
df0d87a922
To be on the safe side, backed out any questionable iteritem changes and set back to item calls.
2003-05-18 02:25:07 +00:00
Tim Peters
03eaf8b1ae
Added more words about the abuse of the tp_alloc nitems argument
...
perpetrated by the time and datetime classes.
2003-05-18 02:24:46 +00:00
Kurt B. Kaiser
476740142d
Whitespace Normalization
2003-05-18 02:24:32 +00:00
Kurt B. Kaiser
282f122250
Whitespace Normalization
...
Modified Files:
config-extensions.def config-highlight.def config-keys.def
config-main.def
2003-05-18 02:21:55 +00:00
Walter Dörwald
ba39d9c168
Add another error case to the insert test.
2003-05-18 01:56:25 +00:00
Walter Dörwald
7fd9424230
Port test_array and test_winsound to PyUnit. Enhance tests for array
...
(code coverage for Modules/arraymodule.c is at 91%)
From SF patch #736962 .
2003-05-18 00:47:47 +00:00
Kurt B. Kaiser
a2792bec1d
Show Freddy the mirror
...
i.e. improve subprocess exit paths and exeception reporting
2003-05-17 21:04:10 +00:00
Raymond Hettinger
74e67661a6
User cStringIO instead of StringIO.
2003-05-17 20:44:12 +00:00
Brett Cannon
c8b188a9e2
Revert some changes back to dict.items made in a previous patch.
2003-05-17 19:51:26 +00:00
Tim Peters
b0c854d6a7
datetime.timedelta is now subclassable in Python. The new test shows
...
one good use: a subclass adding a method to express the duration as
a number of hours (or minutes, or whatever else you want to add). The
native breakdown into days+seconds+us is often clumsy. Incidentally
moved a large chunk of object-initialization code closer to the top of
the file, to avoid worse forward-reference trickery.
2003-05-17 15:57:00 +00:00
Tony Lownds
108c40c74c
Added icon for IDLE on OS X
2003-05-17 15:14:10 +00:00
Samuele Pedroni
72c5c77ce1
minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.
2003-05-17 12:51:10 +00:00
Tim Peters
a98924a063
datetime.datetime and datetime.time can now be subclassed in Python. Brr.
2003-05-17 05:55:19 +00:00
Kurt B. Kaiser
63af08aa93
Nigel Rowe's Patch
...
[ 735527 ] Re Bug [ 678325 ] ParenMatching Missing AutoIndent
AutoIndent was merged with EditorWindow, this patch corrects
the references in ParenMatch.
2003-05-17 03:51:57 +00:00
Kurt B. Kaiser
a80d57c41d
Noam Raphael's patch.
...
SF Patch 686254 "Run IDLEfork from any directory without set-up"
Allows IDLE to run when not installed and cwd is not the IDLE directory.
I took the liberty of moving it to the startup scripts since once IDLEfork
is again a part of Python it will be superfluous and I don't want it to
be forgotten. But it is very useful for those using IDLEfork standalone!
M CREDITS.txt
M NEWS.txt
M idle
M idle.py
M idle.pyw
2003-05-17 03:15:48 +00:00
Skip Montanaro
ab0053aa13
simpler temp dir cleanup
2003-05-17 02:54:11 +00:00
Samuele Pedroni
de9a0d3158
beefed up version: jython support, covers now fixed differences between CPython/Jython.
2003-05-17 02:39:52 +00:00
Tim Peters
eb1a496039
test_subclass_date(): Beefed this up, to check that new instance
...
attributes and methods work, that new arguments can be passed to the
constructor, and that inherited methods and attrs still work. Added
XXX comments about what to do when datetime becomes usably subclassable
too (it's not yet).
2003-05-17 02:25:20 +00:00
Raymond Hettinger
1ba24b4fbb
Include module name in doctest summary.
2003-05-17 01:59:57 +00:00
Raymond Hettinger
627728acbc
Use test_support.run_doctest()
2003-05-17 01:08:35 +00:00
Raymond Hettinger
35b34bd326
Provide a clue that the doctests have run.
2003-05-17 00:58:33 +00:00
Raymond Hettinger
929f06c570
Minor cleanups.
2003-05-16 23:16:36 +00:00
Tim Peters
4c53013030
Turns out there wasn't a need to define tp_free for any of the types here.
2003-05-16 22:44:06 +00:00
Tim Peters
0490011075
Stopped using the old macro form of _PyObject_Del.
2003-05-16 20:02:26 +00:00
Marc-André Lemburg
2820125935
Remove usage of re module from encodings package search function.
2003-05-16 17:07:51 +00:00
Tim Peters
813cec9a62
test_fileno(): Skip this test on Windows.
2003-05-16 15:35:10 +00:00
Raymond Hettinger
047c54bb24
Missing parenthesis.
2003-05-16 14:36:26 +00:00
Jim Fulton
1f325562f0
Added some missing PyObject* casts in the deallocators.
...
Added some defines for PyMODINIT_FUNC so that the examples work
with Python 2.2.
I think I'm done hacking this documentation. Yippie! :)
2003-05-16 13:53:43 +00:00
Jim Fulton
a24d73ddb1
Added a missing PyObject* cast to the dealloc examples.
...
Added a note that the mechanism for defining new tyoes documented here
only works for Python 2.2 and higher.
2003-05-16 13:51:58 +00:00
Jim Fulton
19472b2075
Removed the out of date and no-longer-referenced xxobject.c example
...
type implementation. Note that this same example lives in
Modules/xxmodule.c. (It is just as out of date there.)
2003-05-16 13:34:33 +00:00
Jim Fulton
aea763bde7
Removed reference to the out-of-date (and not very useful)
...
Objects/xxobject.c example.
Updated the discussion of type checking to refer to
PyObject_TypeCheck.
2003-05-16 13:32:59 +00:00
Martin v. Löwis
ac826aac28
Patch #738325 : Install optimized idlelib files.
2003-05-16 05:40:31 +00:00
Raymond Hettinger
6e0f5e077a
* Added file globbing to make it easier to check many LaTeX files.
...
* Delimiter mismatch now prints a warning instead of raising an exception.
* Offer style warnings for use of e.g. and i.e.
* Bypass false positive warnings for forward slashes in urls and in /rfc822.
* Put non-LaTex delimiter matching first to make -d option more reliable.
2003-05-16 03:06:39 +00:00
Guido van Rossum
fa19f7c20d
More fixes according to SF 549151:
...
- When redirecting, always use GET. This is common practice and
more-or-less sanctioned by the HTTP standard.
- Add a handler for 307 redirection, which becomes an error for POST,
but a regular redirect for GET and HEAD.
2003-05-16 01:46:51 +00:00
Guido van Rossum
8f512a22cd
Add docs for MessageBeep.
2003-05-16 01:42:22 +00:00
Guido van Rossum
993bc3a708
Don't replace an empty line with "pass" when symbol == "eval", where
...
"pass" isn't valid syntax. Reported by Samuele Pedroni on python-dev
(May 12, 2003).
2003-05-16 01:24:30 +00:00
Kurt B. Kaiser
11659ade1e
1. When a module is run from an EditorWindow, if its directory is not in
...
sys.path, prepend it. This allows the module to import other modules
in the same directory. Do the same for a script run from the command
line.
2. Tweak the IDLE usage message a bit more.
SF Bug 706860 (closed)
SF Patch 686254 (reject specific solution)
SF Patch 507327 (similar)
M PyShell.py
M ScriptBinding.py
2003-05-15 23:23:21 +00:00
Kurt B. Kaiser
8f570a768f
1. Add a command line switch to run without the subprocess
...
2. Remove the shell menu and associated bindings when running
without the subprocess.
3. Update the IDLE Help and usage text.
4. Update display_port_binding_error to suggest using -n
M PyShell.py
M help.txt
2003-05-15 18:52:51 +00:00
Kurt B. Kaiser
5db4843c5e
1. Make the startup more robust by not spawning the subprocess if IDLE
...
can't acquire the port to listen on.
2. Shorten the retry and simplify the messages.
2003-05-15 03:40:51 +00:00