Collin Winter
2befd247e9
Don't encourage 'from types import *' in the types module's docs.
2007-08-28 06:09:03 +00:00
Collin Winter
6d199ef14b
Remove unneeded import.
2007-08-28 06:07:49 +00:00
Collin Winter
8ef94e8e88
Remove unneeded imports from bsddb's test_dbshelve.
2007-08-28 06:07:12 +00:00
Collin Winter
115cde3531
Style/idiom cleanup of binhex module.
2007-08-28 06:06:33 +00:00
Guido van Rossum
1b261dff3e
Make this work on Mac as well (where Type and Creator are bytes instead of str).
2007-08-28 03:35:35 +00:00
Guido van Rossum
92bab812f7
My wish for TempFile is fulfilled.
2007-08-28 03:32:38 +00:00
Guido van Rossum
f0c7416157
Patch # 1033 by Adam Hupp:
...
1) tempfile.TemporaryFile, NamedTemporaryFile, and SpooledTemporaryFile
now pass newline and encoding to the underlying io.open call.
2) test_tempfile is updated
3) test_csv is updated to use the new arguments.
2007-08-28 03:29:45 +00:00
Guido van Rossum
a1a68521db
Make test_cgi pass. I changed the internal file created by make_file()
...
to be a text file. (XXX It should use UTF-8 as the encoding.)
I also removed the unised 'binary' argument from the make_file() signature.
XXX I am under no illusion that this is now working; I're pretty sure
it would be more principled if it always read binary data. But that's
for someone who actually cares about this module.
2007-08-28 03:11:34 +00:00
Eric Smith
0cb431c071
Code layout changes for PEP 7 compliance.
2007-08-28 01:07:27 +00:00
Guido van Rossum
7b4beea02e
Make dumbdbm use bytes for keys consistently.
2007-08-28 00:09:54 +00:00
Guido van Rossum
bb839ef8ac
More str/bytes goodness.
2007-08-27 23:58:21 +00:00
Eric Smith
f6db40994f
Moved fieldnameiterator and formatteriterator to stringlib/string_format.h, so that they can be used when backporting to 2.6.
2007-08-27 23:52:26 +00:00
Guido van Rossum
ec42ffd0a3
More str/bytes strictness.
...
(XXX Though perhaps temp files should be created in text mode by default?!)
2007-08-27 23:40:36 +00:00
Guido van Rossum
199fc75dc1
str/bytes strictness.
2007-08-27 23:38:12 +00:00
Guido van Rossum
b644fb43d6
str/bytes strictness.
2007-08-27 23:36:53 +00:00
Eric Smith
7a6dd29067
Cleanup in anticipation of moving formatteriterator and fieldnameiterator into stringlib/string_format.h.
2007-08-27 23:30:47 +00:00
Guido van Rossum
7dcb844892
More str/bytes strictness.
2007-08-27 23:26:56 +00:00
Guido van Rossum
7d5baac81c
posix.confname(): enforce that names as str instances.
2007-08-27 23:24:46 +00:00
Guido van Rossum
26d95c3d07
More str/bytes fixes.
2007-08-27 23:18:54 +00:00
Guido van Rossum
e22905a06c
More changes needed to make things work once bytes and str are truly divorced.
2007-08-27 23:09:25 +00:00
Guido van Rossum
25a29a9534
One further change.
2007-08-27 22:31:36 +00:00
Guido van Rossum
54a40cb81f
Force test_xmlrpc to pass. I'm not happy with how I did this, but I don't
...
see a better way; the 'Binary' class is poorly specified so it's unclear
what behavior is relied upon.
2007-08-27 22:27:41 +00:00
Guido van Rossum
98b349f8e6
Fix some tests I broke. (More to follow.)
2007-08-27 21:47:52 +00:00
Guido van Rossum
1f2ca56e29
Changes in anticipation of stricter str vs. bytes enforcement.
2007-08-27 20:44:15 +00:00
Guido van Rossum
09549f4407
Changes in anticipation of stricter str vs. bytes enforcement.
2007-08-27 20:40:10 +00:00
Eric Smith
739e2ad64b
Additional test for formatting code.
2007-08-27 19:07:22 +00:00
Guido van Rossum
9c62772d5e
Changes in anticipation of stricter str vs. bytes enforcement.
2007-08-27 18:31:48 +00:00
Guido van Rossum
35d9428046
There should be no codecs left that return str8 intead of bytes.
...
(And if there are, they will now get an error when used. So fix them!)
2007-08-27 18:20:11 +00:00
Guido van Rossum
700bd92677
Fix a few places that broke due to a recent change to io.py.
2007-08-27 18:10:06 +00:00
Guido van Rossum
5abbf750a2
Changes to io.py and socket.py by Christian Heimes.
...
- Replace all asserts by ValuleErrors or TypeErrors as appropriate.
- Add _checkReadable, _checkWritable methods; these check self.closed too.
- Add a test that everything exported by io.py exists, and is either
an exception or an IOBase instance (except for the open function).
- Default buffering to 1 if isatty() (I had to tweak this to enforce
the *default* bit -- GvR).
2007-08-27 17:39:33 +00:00
Guido van Rossum
6dab795351
Changes in anticipation of stricter str vs. bytes enforcement.
2007-08-27 17:25:39 +00:00
Guido van Rossum
39478e8528
Changes in anticipation of stricter str vs. bytes enforcement.
2007-08-27 17:23:59 +00:00
Guido van Rossum
85825dc1ff
Changes preparing for stricter enforcement of bytes vs. str.
2007-08-27 17:03:28 +00:00
Eric Smith
56e4a840bc
Added test to ensure __format__ methods return unicode objects.
2007-08-27 15:31:40 +00:00
Guido van Rossum
a4b8d1de7c
Some changes in preparation of stricter rules about mixing str and bytes.
2007-08-27 15:02:28 +00:00
Eric Smith
ddd25825c8
Fixed accidental indentation change.
2007-08-27 11:33:42 +00:00
Eric Smith
e226b55963
PEP 3101: Removed _formatter_xxx routines from sysmodule, and made them unicode methods instead (per GvR suggestion).
2007-08-27 11:28:18 +00:00
Thomas Heller
8cef8a8902
Port the build_ssl.py script to Python 3.
2007-08-27 09:42:33 +00:00
Neal Norwitz
8a4eb298e2
Fix refleaks in test_unicode and test_string related to the new format code.
...
Stop polluting namespace.
2007-08-27 07:24:17 +00:00
Neal Norwitz
2bad970293
Make some internal functions static
2007-08-27 06:19:22 +00:00
Neal Norwitz
908c871eeb
Fix some refleaks (and format/error checking)
2007-08-27 04:58:38 +00:00
Neal Norwitz
247b5154ac
This adds a leak, but fixes a crash. The leaking code is:
...
"{0:.{precision}s}".format('hello world', precision=5)
I pretty sure it's because of the 'precision' keyword.
Still need to investigate further.
2007-08-27 03:22:50 +00:00
Neal Norwitz
44c19f64a5
Get gdb macros working with unicode and PyVarObject change
2007-08-27 02:49:29 +00:00
Neal Norwitz
1e93f2b5be
Fix warning
2007-08-27 02:10:06 +00:00
Kurt B. Kaiser
ab45e27f69
Tkinter binding involving Control-spacebar raises unicode error
...
Issue1028
2007-08-27 01:55:21 +00:00
Neal Norwitz
fac6e9dfe2
Add a couple of files that are necessary based on getting PCbuil8 to work.
...
Hopefully this works with VC7. If not, it should be pretty close.
2007-08-26 23:53:58 +00:00
Neal Norwitz
d082b6eaac
os.getcwd() now returns a normal string (ie, unicode)
2007-08-26 23:37:53 +00:00
Guido van Rossum
19b4a272ea
Cosmetics in error messages.
2007-08-26 23:30:31 +00:00
Neal Norwitz
fe82e165e4
Add some more files from 1031 that I missed.
2007-08-26 23:20:01 +00:00
Neal Norwitz
d78e52c694
Manually apply most of patch 1031 to try to get python to build on Windows.
...
I skipped the adding of libraries because it was harder and I'm less
confident about getting it right. Also I'm not sure why they are required
now and weren't required before.
2007-08-26 23:14:58 +00:00