Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...filter them too." S. Holden: "It's not difficult to find Python videos, but it's not easy to find a specific video. It would be nice to see that work of tagging and indexing done." M. von Löwis: "I think we should ask the members whether they think that a "Miro community" is something useful to have." Further discussion deferred to the PSF members email list. 9 PSF Members Meeting at PyCon 2010 Further preparations are being made by the board...
...filter criteria, column layout, and sort order. We figure that you know more about your project than we do, so we give you a set of very flexible tools to mold our software around your project, instead of vice-versa. Background Christian Simms, Botonomy co-founder, and I had worked together for several years, and we used Python for utility-type tasks in larger J2EE projects. We had talked informally a couple of times about building some kind of software product or service. I had just wrapped u...
...filter() or reduce() to replace an explicit for loop, but only if you can use a built-in function: map with a built-in function beats for loop, but a for loop with in-line code beats map with a lambda function! Check your algorithms for quadratic behavior. But notice that a more complex algorithm only pays off for large N - for small N, the complexity doesn't pay off. In our case, 256 turned out to be small enough that the simpler version was still a tad faster. Your mileage may ...
...filtering gimmick was a mistake from the start, and testmod() changed long ago to ignore it by default. If you want to filter out tests, the new DocTestFinder class can be used to return a list of all doctests, and you can filter that list by any computable criteria before passing it to a DocTestRunner instance. Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)). Tools/Demos IDLE's shortcut keys for windows are now case insensitive so that Control-V works the same as...
...filter so that only interesting calls are traced; it should also be able to trace the return value of the call (or the exception it raised if an error occurs). Even the Trace.py example doesn't support all these features yet. Real-life Examples Have a look at some very preliminary examples that I coded up to teach myself how to write metaclasses: Enum.py This (ab)uses the class syntax as an elegant way to define enumerated types. The resulting classes are never ins...
...filter() - now returns Unicode when the input is Unicode. Various bugs with subclasses of built-in types fixed. (New in 2.3a2.) int() - this can now return a long when converting a string with many digits, rather than raising OverflowError. (New in 2.3a2: issues a FutureWarning when sign-folding an unsigned hex or octal literal.) isinstance(), super() - Now support instances whose type() is not equal to their __class__. (New in 2.3a2.) As of 2.3b1, super() no longer ignores data descriptors,...
...filter(), imap(), and izip() moved to bultins and renamed to filter(), map(), and zip(). Also, renamed izip_longest() to zip_longest() and ifilterfalse() to filterfalse(). Issue #1762972: Readded the reload() function as imp.reload(). Bug #2111: mmap segfaults when trying to write a block opened with PROT_READ. Issue #2063: correct order of utime and stime in os.times() result on Windows. Library Weakref dictionaries now inherit from MutableMapping. Created new UserDict class in collections...
...filters out names starting with '_' as before. Whether or not __all__ exists, there's no restriction on the type of M. File objects have a new method, xreadlines(). This is the fastest way to iterate over all lines in a file: for line in file.xreadlines(): ...do something to line... See the xreadlines module (mentioned below) for how to do this for other file-like objects. Even if you don't use file.xreadlines(), you may expect a speedup on line-by-line input. The file.readline() method...
...filtering, but as of recently, he promised to do a DMCA through his law office. Late May: Willian Paixão <willian.paixaoo at gmail.com> requested use of some version or variant of the logo on T-shirts. We requested a specific image he intended to use, but did not receive a followup reply. Tickler to followup to see if he's developed that. 6.8 Google Summer of Code (GSoC) A. Riley, Google Summer of Code (GSoC), reported on the issues and/or blockages this program i...
...FilterBase. Bug #944082: Empty passwords in urllib2 are now supported. Bug #926075: Fixed a bug that returns a wrong pattern object for a string or unicode object in sre.compile() when a different type pattern with the same value exists. Bug #924361: Properly support normalization of empty unicode strings. Fixed a caching bug in platform.platform() where the argument of 'terse' was not taken into consideration when caching value. Bug #920575: A problem that _locale module segfaults on nl_la...
...filter and limit the flow of messages through them. Some examples include: Trying several different phone numbers to reach a person, perhaps depending on time of day or day of week. Diverting incoming phone calls to voice mail or email when you do not want to be disturbed-but still letting important calls through. Lowering the volume on TV or radio when you answer the phone. Recording copies of certain phone calls, perhaps by invoking a speech-to-text converter. Limi...
If you didn't find what you need, try your search in the Python language documentation.