| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
complaints. The new version moves most of its initialization to
package load time; it's simpler, faster, smaller, and adds support for
Mozilla and Links. Interpretation of the BROWSER variable now works
and is documented. The open_new entry point and methods are marked
"deprecated; may be removed in 2.1".
|
|
|
|
| |
don't fail if they're not available.
|
|
|
|
|
| |
otherwise used in the same code block. (Not sure this is the right
place, but there is no test_list_comprehensions.py.)
|
|
|
|
|
|
|
|
|
| |
no don't have to start with underscore.
- Add spaces after commas in argument lists.
- Only test dbhash if bsddb can be imported. (Wonder if there are
more like this?)
|
| |
|
|
|
|
| |
they're run.
|
|
|
|
|
|
| |
commented it out), and added an explanation as to *why*.
Added period to docstring.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
now
None < all numeric types < all other types
so that once again
map(max, Squares(3), Squares(2))
equals
[0, 1, 4]
|
|
|
|
| |
non-numeric ones, so 4 < None again in the 'map' test.
|
|
|
|
| |
Allow pickle.py to be using with Jython unicode strings
|
|
|
|
| |
test_class.py.
|
| |
|
| |
|
|
|
|
| |
Suggested by Kevin Jacobs in bug report #129417.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
pythonrun.c: In Py_Finalize, don't reset the initialized flag until after
the exit funcs have run.
atexit.py: in _run_exitfuncs, mutate the list of pending calls in a
threadsafe way. This wasn't a contributor to bug 128475, it just burned
my eyeballs when looking at that bug.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
|
| |
|
|
|
|
| |
pdb (pdb calls it 'where'). Added 'bt' as an alias for 'where'.
|
| |
|
|
|
|
| |
parameters. This closes the code part of patch 103314.
|
|
|
|
|
|
| |
errors aren't that helpful), or doesn't contain what's expected from
it. Also tweaked the test script so it compiles even if ucnhash is
missing.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
created by Andrew's setup.py script, *if* we're actually running from
the build directory. (The test for that: whether the sys.path[-1]
ends in "/Modules".)
This has one disadvantage: it imports a fair amount of code from the
distutils package, just in order to be able to calculate the correct
pathname. See if I care. :-)
|
| |
|
|
|
|
|
|
| |
Please check it against your nearest pop server --
mine doesn't support APOP (I checked I'm getting the same error
message, though)
|
|
|
|
|
| |
added a test of a coredump that would occur when del'ing
func_defaults (put here for convenience).
|
|
|
|
|
|
| |
(I realize that I didn't really test this, because all the tests
succeed, so verify() never raised an AssertionError -- but the test
suite still succeeds, so I'm not too worried.)
|
| |
|
|
|
|
|
|
| |
This patch adds support for Cygwin to util.get_platform(). A Cygwin
specific case is needed due to the format of Cygwin's uname command,
which contains '/' characters.
|
| |
|
|
|
|
|
| |
probably more useful for the test code than for any applications, but
one never knows...)
|
|
|
|
|
|
|
| |
implementation details inside the ucnhash module.
also cleaned up the unicode copyright blurb a little; Secret Labs'
internal revision history isn't that interesting...
|
|
|
|
| |
corresponding changes were made to its std test.
|
| |
|
|
|
|
| |
change the test to give a clue about *where* it's failing.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
when quoting forbidden characters. There are scripts out there that
break with lower case, therefore I guess %%%X should be used."
I agree, so am fixing this.
|
| |
|
|
|
|
|
| |
def f(a):
global a
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for SocketServer.py (inherited by TCPServer)
Luke wrote:
The socketserver code, with a little bit of tweaking, can be made
sufficiently general to service "requests" of any kind, not just by sockets.
The BaseServer class was created, for example, to poll a table in a MYSQL
database every 2 seconds. each entry in the table can be allocated a
Handler which deals with the entry.
With this patch, using BaseServer and ThreadedServer classes, the creation
of the server that reads and handles MySQL table entries instead of a
socket was utterly trivial: about 50 lines of python code.
You may consider this code to be utterly useless [why would anyone else
want to do anything like this???] - you are entitled to your opinion. if you
think so, then think of this: have you considered how to cleanly add SSL to
the TCPSocketServer? What about using shared memory as the
communications mechanism for a server, instead of sockets? What about
communication using files?
The SocketServer code is extremely good every useful. it's just that as it
stands, it is tied to sockets, which is not as useful.
I heartily approve of this idea.
|
|
|
|
| |
not __hash__ raises TypeError.
|