Showing results 8161-8170 of >8,243 (page 817)
https://www.linuxtut.com/en/3e158066ad41159ed0e8/

Python, 100DaysOfCode

https://xcorr.net/2014/01/26/theano-numerical-computation-in-python/

Theano is a very interesting numeric library for Python that I covered briefly a few years ago. Coming from the machine learning group at Université de Montréal - i.e. Yoshua Bengio et al. - it is well adapted to the kinds of numerical tasks that frequently occur in machine learning problems, in particular deep neural

http://python-3-patterns-idioms-test.readthedocs.io/en/latest/Iterators.html

- Contributors - ToDo List - The remainder are from context, from the book. - A Note To Readers - Introduction - Teaching Support - Book Development Rules - Developer Guide - Part I: Foundations - Python for Programmers - Initialization and Cleanup - Unit Testing & Test-Driven Development - Python 3 Language Changes - Decorators - Metaprogramming - Generators, Iterators, and Itertools - Comprehensions - Coroutines, Concurrency & Distributed Systems - Jython - Part II: Idioms - Discovering the Details About

https://www.andreagrandi.it/posts/understanding-python-decorators-optimizing-a-recursive-fibonacci-implementation/

A decorator is a Python function that takes a function object as an argument and returns a function as a value. Here is an example of decorator definition:\n1 2 3 4 5 6 def foo(function): # make a new function def new_function(): # some code return new_function To apply a decorator to an existing function, you just need to put @decorator_name in the line before its definition, like this example:\n

https://towardsdatascience.com/python-set-is-way-faster-than-list-true-or-false-042c6f8975cd/

Skip to content Publish AI, ML & data-science insights to a global community of data professionals. Sign in Submit an Article Toggle Mobile Navigation Toggle Search Search Data Science Python Set Is Way Faster Than List, True Or False? Comprehensive performance comparison and discussion around data structure Christopher Tao Jul 29, 2024 6 min read Share Created in Canva by Author A few weeks ago, I wrote another article to explain the mechanisms and logic behind some popular "Python Tricks". One of them is

https://sourcemaking.com/design_patterns/chain_of_responsibility/python/1

# Chain of Responsibility Design Pattern in Python Back to Chain of Responsibility description """ Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it. """ import abc class Handler(metaclass=abc.ABCMeta): """ Define an interface for handling requests. Implement the successor link. """ def __init__(self, successor=None): self._successor = successor @a

https://lobste.rs/s/rgcgjz/python_3_8_makes_me_sad_again

Login 35 Python 3.8 Makes me Sad Again ilya-sher.org authored by ilyash 2020-08-16 06:08:45 | caches | 82 comments 49 ThatsInteresting 2020-08-16 07:29:50 I wonder why you consider unordered maps a failing rather than a reasonable design decision: You want an ordered set of hash keys? Order that list yourself or use a library implementation that does. I like the opinionated decision that Go made from the start, and eventually Perl arrived at, to intentionally produce unpredictable key ordering so naive prog

https://talkpython.fm/books/python-in-production/chapter-6-running-on-rust

# Running on Rust I want to discuss some of the relatively low-level aspects of how we're running our Python web apps. Depending on where you are in your deployment / devops journey, this may be old hat for you or something completely new. Either way, you'll learn something in this chapter. Let's look at an abstract view of our deployment architecture. As I've discussed at length, we have our "one big Linux server" running in a VM in the cloud. In the last chapter, we covered how it's just docker-compose

https://twisted.org/pipermail/twisted-python/2014-November/028993.html

[Twisted-Python] HTTP combined log format in twisted.web.http changed from 13.2.0 to 14.0.0 Free Ekanayaka free at 64studio.com Tue Nov 25 08:26:41 MST 2014 Previous message (by thread): [Twisted-Python] Twisted 14.0.2 & edns client subnet Next message (by thread): [Twisted-Python] I would like to port twisted to c++(14) Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi, it was line = '%s - - %s "%s" %d %s "%s" "%s"\n' % ( in 13.2.0 (twisted/web/http.py line 1920), and it's u'"%(ip)s

https://bugs.python.org/msg316669

# Message 316669 Hi Ivan, thanks for your detailed response. The approach you're suggesting ("Since the sole offender is their threading model, the way is to show them how it's defective and work towards improving it.") is in the end not something I think is workable. Some historical context. Ousterhout had some specific ideas about how Tcl/Tk should be used, and that was well-reflected in his early control of the code base. He was certainly outspoken against threads. The main argument is that they're comp

‹ Prev Next ›