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.
...min-width: 768px) { table td { text-align: right; } } @media (min-width: 768px) { table td:first-child { min-width: 325px; text-align: left; } } @media (min-width: 768px) { table td:last-child { padding-right: 40px; } } table tbody tr:nth-child(even) { background: #eef1f3; } table tbody td { padding: 6px 8px; } @media (min-width: 768px) { table tbody td { padding: 7px 15px; } } table tfoot ...
...Min, MyMin, MyMin, YourMin, MyMax, YourMin, MyMax, YourMax, MyMax] >>> lst.sort() >>> lst [YourMin, YourMin, MyMin, MyMin, YourMin, MyMax, MyMax, YourMax, MyMax] Notice that while all the "Min"s are before the "Max"s, there is no guarantee that all instances of YourMin will come before MyMin, the reverse, or the equivalent MyMax and YourMax. The problem is also evident when using the heapq module: >>> lst = [YourMin, MyMin, MyMin, YourMin, MyMax, YourMin, MyMax, You...
...minimal: Report on Linux fangorn.local 2.6.32-358.114.1.openstack.el6.x86_64 #1 SMP Wed Jul 3 02:11:25 EDT 2013 x86_64 x86_64 Total CPU cores: 8 ### call_method_slots ### Min: 0.304120 -> 0.282791: 1.08x faster Avg: 0.304394 -> 0.282906: 1.08x faster Significant (t=2329.92) Stddev: 0.00016 -> 0.00004: 4.1814x smaller ### call_simple ### Min: 0.249268 -> 0.221175: 1.13x faster Avg: 0.249789 -> 0.221387: 1.13x faster Significant (t=2770.11) Stddev: 0.00012 -> 0.00013: 1.1101x ...
...mini Dr. ECM# 90772 Beaverton, OR 97008 USA or send it by fax to +1 858 712 8966, or scan or take a photo of the signed form and email it to contributors@python.org.
...MIN, equal to the most negative permissible integer of this kind, or None for the long kind. Float kinds have these additional attributes whose properties are equal to the corresponding value for the corresponding C type in the standard header file "float.h". MAX, MIN, DIG, MANT_DIG, EPSILON, MAX_EXP, MAX_10_EXP, MIN_EXP, MIN_10_EXP, RADIX, ROUNDS (== FLT_RADIX, FLT_ROUNDS in float.h). These values are of type integer except for MAX, MIN, and EPSILON, which are of the Python floating type to w...
Highlights: Python 2.5 Highlights: Python 2.5 Here are some of the (subjective) highlights of Python 2.5. More detail on almost all of the new features can be found in the document What's New In Python 2.5 More Reliable Python now uses the Buildbot tool for continuous testing on a wide range of platforms. This allows us to spot problems faster during development, and resulted in a much more robust release. Andrew Kuchling determined that there were over 350 patches and over 450 bugs fixed ...
...min-width: 480px) { .section-table hgroup h2 { margin-right: 12%; } } @media (min-width: 480px) and (max-width: 768px) { .section-map .h2 { font-size: 18px; } } @media (min-width: 768px) { .row { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -16px; } .col { padding: 0 16px; width: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; } .col.col-6 { width...
...min-height: 0px;padding-bottom:0px;} Subscribe * indicates required Email Address * Nickname * Full Name Contact Permissions (GDPR Compliance) Please select all the ways you would like to hear from Python Software Foundation: Newsletter You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website. ...
...min cap) 6. Discord (supports free video calls with up to 25 participants) Software for creating presentations 1. OpenOffice 2. LibreOffice 3. Google Slides 4. https://cryptpad.fr/ 5. Software that comes with your computer Text chat platforms 1. IRC 2. Zulip 3. Discord (note: hosting a server for these could cost money) Software to document with/take notes, use for prep work, preferably with team collaboration 1. Etherpad 2. Google Docs 3. https://hackmd.io/ 4. https://cryptpad.f...
...min_dt = [abs(time.time_ns() - time.time_ns()) for _ in range(LOOPS)] min_dt = min(filter(bool, min_dt)) print("min time_ns() delta: %s ns" % min_dt) min_dt = [abs(time.time() - time.time()) for _ in range(LOOPS)] min_dt = min(filter(bool, min_dt)) print("min time() delta: %s ns" % math.ceil(min_dt * 1e9)) Linux Clocks resolution measured in Python on Fedora 26 (kernel 4.12): Function Resolution clock() 1 us monotonic() 81 ns monotonic_ns() 84 ns perf_counter(...
...min(), and max() that reduce an iterable input to a single value: max(len(line) for line in file if line.strip()) Generator expressions also address some examples of functionals coded with lambda: reduce(lambda s, a: s + a.myattr, data, 0) reduce(lambda s, a: s + a[3], data, 0) These simplify to: sum(a.myattr for a in data) sum(a[3] for a in data) List comprehensions greatly reduced the need for filter() and map(). Likewise, generator expressions are expected to minimize the need for ite...
...min all accept callables that accept a single argument, as do many of the itertools operations). Making noop() a useful default function in those cases just needs the definition to be: def noop(*args, **kwds): return args[0] if args else None The counterargument to the counterargument is that using None as the default in all these cases is going to be faster, since it lets the algorithm skip the callback entirely, rather than calling it and having it do nothing useful. References [1...
...min: Use method min(). Only use this method (and not the built-in function min()) when dealing with special values: >>> d = Decimal('15') >>> nan = Decimal('NaN') >>> d.min(8) Decimal('8') >>> d.min(nan) Decimal('NaN') minus: Use unary operator -: >>> d = Decimal('-15.67') >>> -d Decimal('15.67') plus: Use unary operator +: >>> d = Decimal('-15.67') >>> +d Decimal('-15.67') multiply: Use operator *: >>> d...
...ming Python Group, is a fun and friendly user group dedicated to proliferating a diverse and talented Python community in the Puget Sound region. The group is devoted to exploring Python-based programming knowledge, embracing new and experienced members from all walks of life, and helping those members to achieve their professional goals. Consider supporting PuPPy! PyCascades PyCascades is a regional Python conference that moves between Vancouver, Seattle, and Portland. PyCascades is a two-da...
...min() and max(), the 'in' and 'not in' operators, list.sort(), dictionary key comparison, and other uses of comparisons by built-in operations? Proposed Resolutions Full backwards compatibility can be achieved as follows. When an object defines tp_compare() but not tp_richcompare(), and a rich comparison is requested, the outcome of tp_compare() is used in the obvious way. E.g. if "<" is requested, an exception if tp_compare() raises an exception, the outcome is 1 if tp_compare() is neg...
...mine minimum indentation (first line doesn't count): indent = sys.maxint for line in lines[1:]: stripped = line.lstrip() if stripped: indent = min(indent, len(line) - len(stripped)) # Remove indentation (first line is special): trimmed = [lines[0].strip()] if indent < sys.maxint: for line in lines[1:]: trimmed.append(line[indent:].rstrip()) # Strip off trailing and leading blank lines: while trimmed and not trimmed[-1...
...ming up I'd be happy to dive deeper in my reasons for rejecting it there (if there's demand). I do think that (apart from never explaining those dreadful acronyms :-) this was a well-written and well-researched PEP, and I think you've done a great job moderating the discussion, collecting objections, reviewing alternatives, and everything else that is required to turn a heated debate into a PEP. Well done Chris (and everyone who helped), and good luck with your next PEP! """ Abstract Just as P...
...ministrators, tools that repackage the interpreter and some libraries need to customize aspects of the interpreter at startup time. This is usually achieved via sitecustomize.py for system administrators whilst libraries rely on exploiting pth files. This PEP proposes a way of achieving the same functionality in a more user-friendly and structured way. Limitations of pth files If a library needs to perform any customization before an import or that relates to the general working of the interpre...
...minimalist approach that attempts to achieve useful functionality with a minimum of change from the status quo. This PEP instead aims for a more flexible standalone statement design, which requires a larger degree of change to the language. Note that where PEP 403 is better suited to explaining the behaviour of generator expressions correctly, this PEP is better able to explain the behaviour of decorator clauses in general. Both PEPs support adequate explanations for the semantics of container c...