| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
types (the tp_base field must be initialized prior to that call).
|
|
|
|
| |
to the non-existing pympz (did that ever exist?).
|
|
|
|
|
|
|
|
| |
NULL, so that you can call PyType_Ready() to initialize a type that
is to be separately compiled with C on Windows.
inherit_special(): Add a long comment explaining that you have to set
tp_new if your base class is PyBaseObject_Type.
|
| |
|
|
|
|
|
|
|
|
|
| |
paren. This was there to worm around a stupid XEmacs bug, but since I
can't tickle the bug in newer XEmacsen (just tried w/21.4.5) it's
possible the problem has been fixed. We shouldn't have to be working
around editor bugs anyway.
If it crops up again, I'll report it (again) to the XEmacs crowd.
|
| |
|
|
|
|
| |
here, for conveninece.
|
|
|
|
| |
unescaped newlines in strings.
|
|
|
|
|
|
| |
- Adds Fred's patch 487662: "Better error message for assertEqual"
- Removed small portion of code unused after Guido's patch
490119: "Don't treat ^C as error"
|
|
|
|
|
|
| |
Montanaro)
(With minor adjustments.)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
got a barrage of compile errors that didn't make sense to the C++ brain:
MSVC does not allow C (but does allow C++) initializers to contain
data addresses supplied by other DLLs. So changed the initializers here
to use dummy nulls, and changed module init to plug in the foreign
addresses at runtime (manually simulating what C++ does by magic). Tested
on Windows, and Guido tested on Linux (thanks!). BTW, the *point* is that
people are going to use this module as a template for writing their own
subtypes, and it's unusual for extension authors to build their extensions
into Python directly (separate DLLs are the norm on Windows); so it's
better if we give them a template that works <wink>.
|
| |
|
|
|
|
| |
to Guido for the revelation).
|
|
|
|
|
| |
about its dubious treatment of NULL (also opened a bug report on that,
but don't want to risk changing it this late in the 2.2 game).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Dietmar Schwertberger.
Bugfix candidate.
"""
RISCOS/Modules/getpath_riscos.c:
Include trailing '\0' when using strncpy [copy
strlen(...)+1 characters].
Lib/plat-riscos/riscospath.py:
Use riscosmodule.expand for os.path.abspath.
[fixes problems with site.py where
abspath("<Python$Dir>") returned
join(os.getcwd(), "<Python$Dir>") as e.g.
"SCSI::SCSI4.$.<Python$Dir>" because "<Python$Dir>"
wasn't recognised as an absolute path.]
"""
|
| |
|
| |
|
|
|
|
| |
instead.
|
|
|
|
| |
%300s should be %.300s, twice.
|
|
|
|
| |
files with one 6-line anti-export-file. Yeah! (Thanks Alex, for reminding me:-)
|
| |
|
|
|
|
| |
python callback, and do RemoveEventHandler() upon deallocation.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
appropriately marked.
|
| |
|
|
|
|
|
|
|
| |
This partially fixes SF bug #492619.
Fix a typo & use the new notice environment instead of (ab)using the \note
and \warning macros.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
skipped on Mac OS X. Not sure yet about test_locale.py: this may be
due to my copy of Mac OS X (although it talks english fine enough).
|
| |
|
| |
|
|
|
|
|
|
|
| |
call self.close() just before raising SMTPServerDisconnected. This
allows you to, e.g. reconnect after a server timeout.
Merged from the 2.2c1 branch.
|
| |
|
| |
|
|
|
|
|
| |
they were represented by newlines in the document source.
Partially fixes SF bug #493243.
|
|
|
|
|
| |
be on the <tr> element, not the <table> element.
Partially fixes SF bug #493243.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rev 1.20 introduced a call to getpeername() in the dispatcher
constructor. This only works for a connected socket. Apparently
earlier versions of the code worked with un-connected sockets, e.g. a
listening socket.
It's not clear that the code is supposed to accept these sockets,
because it sets self.connected = 1 when passed a socket. But it's
also not clear that it should be a fatal error to pass a listening
socket.
The solution, for now, is to put a try/except around the getpeername()
call and continue if it fails. The self.addr attribute is used
primarily (only?) to produce a nice repr for the object, so it hardly
matters. If there is a real error on a connected socket, it's likely
that subsequent calls will fail too.
|
|
|
|
| |
convenience wrapper function: distutils uses the class directly. Fixes bug #492665.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix for SF bug #492345. (I could've sworn I checked this in, but
apparently I didn't!)
This code:
class Classic:
pass
class New(Classic):
__metaclass__ = type
attempts to create a new-style class with only classic bases -- but it
doesn't work right. Attempts to fix it so it works caused problems
elsewhere, so I'm now raising a TypeError in this case.
|
|
|
|
| |
- FindControlUnderMouse() returns an existing control, not a new one.
|
| |
|