- 06 Ock, 1997 2 kayıt (commit)
-
-
Barry Warsaw yazdı
for both PyList_GET_SIZE and PyList_GET_ITEM, cast first argument to a PyListObject*
-
Guido van Rossum yazdı
- 'delete' is a C++ keyword; use 'del_table' instead - apply Py_CHARMASK() to del_table[i] before using it as an index *** this fixes a bug that was just reported on the list *** - if the translation didn't make any changes, INCREF and return the original string - when del_table is empty or omitted, don't copy the translation table to a table of ints (should be a bit faster) Rewrote maketrans() to avoid copying the table (2-3% faster).
-
- 03 Ock, 1997 33 kayıt (commit)
-
-
Barry Warsaw yazdı
performance hit. Urg. Reverted. strop_joinfields(): re-instate optimizations for lists and tuples, but support arbitrary other kinds of sequences as well.
-
Guido van Rossum yazdı
- When dragging the mouse in either listbox, the *first* entry clicked on is selected rather than the last (but the last one is highlighted). This is done by changing the bindtags so that our binding is executed after the default binding (which sets the 'active' index to the last item selected), and using 'active' instead of 'anchor' as the index to ask for.
-
Roger E. Masse yazdı
-
Roger E. Masse yazdı
and all it's attributes. More comprehensive examples can be found in Demo/cd and require that you have a CD and a CD ROM drive
-
Roger E. Masse yazdı
-
Barry Warsaw yazdı
- split_whitespace(): slightly better memory ref handling when errors occur. - strop_joinfields(): First argument can now be any sequence-protocol conformant object. - strop_find(), strop_rfind(): Use PyArg_ParseTuple for optional arguments - strop_lower(), strop_upper(): Factor logic into a common function do_casechange(). - strop_atoi(), strop_atol(): Use PyArg_ParseTuple. - strop_maketrans(): arguments used to be optional, although the documentation doesn't reflect this. Make the source conform to the docs. Arguments are required, but two empty strings will return the identity translation table. - General pass fixing up formatting, and checking for return values.
-
Guido van Rossum yazdı
Raise ImportError instead of SystemExit when $DISPLAY is not set, so regrtest.py will do the right thing. Add a call to gl.clear() to clear the window before drawing in it. Add some verbose prints for completeness. Use gl.v2i() for the coordinates of one of the lines, for a little bit of variety. Reduce the time the window is displayed from 5 to 2 seconds.
-
Roger E. Masse yazdı
-
Roger E. Masse yazdı
-
Roger E. Masse yazdı
it's attributes. More comprehensive examples can be found in Demo/al
-
Roger E. Masse yazdı
-
Guido van Rossum yazdı
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
not currently tested (or even touched): # socket.fromfd() # sktobj.getsockopt() # sktobj.recvfrom() # sktobj.sendto() # sktobj.setblocking() # sktobj.setsockopt() # sktobj.shutdown()
-
Roger E. Masse yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Roger E. Masse yazdı
-
Guido van Rossum yazdı
recent changes in the struct module).
-
Guido van Rossum yazdı
int/long types, and use the new PyLong_FromUnsignedLong() and PyLong_AsUnsignedLong() interfaces instead. Semantic change: the 'I' format will now always return a long int.
-
Guido van Rossum yazdı
-
Roger E. Masse yazdı
-
Barry Warsaw yazdı
-
Guido van Rossum yazdı
-
Barry Warsaw yazdı
-
Guido van Rossum yazdı
when $(srcdir) isn't '.', i.e. when using VPATH).
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
Rewrite example to be an interactive session
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
- Conform to standard Python C coding styles. - All static symbols were renamed and shorted. - Eyeballed all return values and memory references. - Fixed a bug in signal.pause() so that exceptions raised in signal handlers are now properly caught after pause() returns. - Removed SIGCPU and SIGFSZ. We surmise that these were typos for the previously missing SIGXCPU and SIGXFSZ.
-
Guido van Rossum yazdı
-
- 02 Ock, 1997 5 kayıt (commit)
-
-
Guido van Rossum yazdı
Still don't know what to do with Inf/NaN, so I raise an exception on pack(), and something random decided by ldexp() will happen on unpack().
-
Guido van Rossum yazdı
data formats. The _xdr module is no longer used, since struct supports the required IEEE floats and doubles. (I have one doubt about not using _xdr. The struct module doesn't handle Inf, NaN and gradual underflow correctly. If the _xdr module does these things better, it may still have a (small) competitive advantage. On the other hand, since not all platforms support IEEE floating point, it's not clear that it would be a good idea to ever transfer Inf or NaNs. Gradual underflow can be fixed in the struct module.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
These use the ANSI/IEEE standard, which is also used by XDR; so the _xdr module may become obsolete.
-
Barry Warsaw yazdı
long optional with nearly-no-op missing).
-