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
Neal Norwitz
1385b8940a
Patch 1030, Adapt _winreg.c to the new buffer API.
...
Applying without testing since I don't have Windows. It
seems to make sense from a cursory review.
2007-08-26 23:07:13 +00:00
Neal Norwitz
0117ffca63
Use new print function (part of patch 1031)
2007-08-26 23:03:13 +00:00
Eric Smith
7ade6485ab
PEP 3101: Completed string.Formatter class. Reimplemented field_name to object transformation.
2007-08-26 22:27:13 +00:00
Neal Norwitz
2bf4d5ba28
Use the correct variable name
2007-08-26 22:16:55 +00:00
Neal Norwitz
efaf629026
Use unicode (hope it's right, I can't test it)
2007-08-26 21:43:00 +00:00
Guido van Rossum
e760631421
When elapsed and expected time differ, at least show their two values.
2007-08-26 20:03:04 +00:00
Guido van Rossum
a43cae3a07
Pass PyBUF_CHARACTER instead of PyBUF_SIMPLE to PyObject_GetBuffer().
...
This makes the failing tests (test_unicodedata and, on OSX, test_hashlib) pass.
XXX However, I'm not sure that this is the right thing to do;
this behavior means that Unicode strings are automatically hashed as their
UTF-8 encoding. Is that what we want?
2007-08-26 19:14:15 +00:00
Neal Norwitz
a62db27546
Restore an assert, but move it to the proper place.
2007-08-26 18:20:46 +00:00
Neal Norwitz
7f9d29c660
Use unicode
2007-08-26 07:21:45 +00:00
Neal Norwitz
93c56828a6
Use unicode (and bytes as appropriate)
2007-08-26 07:10:06 +00:00
Neal Norwitz
80e7f27e62
Use unicode and remove support for some uses of str8.
2007-08-26 06:45:23 +00:00