Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4a908be2
Commit
4a908be2
authored
Mar 16, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Q. about HTTP/1.1.
parent
f2e499b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Misc/FAQ
Misc/FAQ
+11
-0
No files found.
Misc/FAQ
View file @
4a908be2
...
...
@@ -180,6 +180,7 @@ Here's an overview of the questions per chapter:
automatically saved to and restored from disk.)
4.40. Q. I try to use __spam and I get an error about _SomeClassName__spam.
4.41. Q. How do I delete a file? And other file questions.
4.42. Q. How to modify urllib or httplib to support HTTP/1.1?
5. Extending Python
5.1. Q. Can I create my own functions in C?
...
...
@@ -1690,6 +1691,16 @@ f.truncate(offset); offset defaults to the current seek position.
There's also os.ftruncate(fd, offset) for files opened with os.open()
-- for advanced Unix hacks only.
4.42. Q. How to modify urllib or httplib to support HTTP/1.1?
A. Apply the following patch to httplib.py:
41c41
< replypat = regsub.gsub('\\.', '\\\\.', HTTP_VERSION) + \
---
> replypat = regsub.gsub('\\.', '\\\\.', 'HTTP/1.[0-9]+') + \
5. Extending Python
===================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment