- Last 7 days
-
www.educative.io www.educative.io
-
Cropping pages.
PyPDF4 is compared with 6 other python libraries to manipulate, create and annotate pdf files via python
-
-
kobzol.github.io kobzol.github.io
-
With this dataclass, I have an explicit description of what the function returns.
Dataclasses give you a lot more clarity of what the function returns, in comparison to returning tuples or dictionaries
-
- May 2023
-
stackoverflow.com stackoverflow.com
-
Host machine: docker run -it -p 8888:8888 image:version Inside the Container : jupyter notebook --ip 0.0.0.0 --no-browser --allow-root Host machine access this url : localhost:8888/tree
3 ways of running
jupyter notebook
in a container
-
-
www.runoob.com www.runoob.com
-
python 内置函数next()
Tags
Annotators
URL
-
-
nedbatchelder.com nedbatchelder.com
-
we are all beginners
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
How can I add, subtract, and compare binary numbers in Python without converting to decimal?
I think the requirements of this were not spelled out well. After reading this over a couple of times, I think the problem should be…
"Add, subtract, and compare binary numbers in Python as strings, without converting them to decimal."
I'll take on that problem sometime when I get free time!
-
-
-
'handlers': { 'console': { 'level': 'INFO', 'class': 'logging.StreamHandler', 'stream': sys.stdout, 'formatter': 'verbose' }, },
It's as simple as adding "sys.stdout" to the "stream" attribute.
-
-
codeinthehole.com codeinthehole.com
-
16 August 2011
This is a pretty old article, from 2011. Note that it refers to Python 2.6 and 2.7. Today, Python is up to version 3.12.
-
- Apr 2023
-
sinoroc.gitlab.io sinoroc.gitlab.io
-
NICE tables comparing build frameworks, front-ends & backends & others, discovered from this SO.
-
-
www.zhihu.com www.zhihu.com
-
Python入门 类class 基础篇
class starter
-
-
colab.research.google.com colab.research.google.com
-
-
Experienced talk on python project configurations
Tags
Annotators
URL
-
-
pythonspeed.com pythonspeed.com
-
If you install a package with pip’s --user option, all its files will be installed in the .local directory of the current user’s home directory.
One of the recommendations for Python multi-stage Docker builds. Thanks to
pip install --user
, the packages won't be spread across 3 different paths.
Tags
Annotators
URL
-
- Mar 2023
-
www.seanh.cc www.seanh.cc
-
snarky.ca snarky.ca
-
Honestly, all the activation scripts do are:
See the 4 steps below to understand what activating an environment in Python really does
Tags
Annotators
URL
-
-
-
Using pex in combination with S3 for storing the pex files, we built a system where the fast path avoids the overhead of building and launching Docker images.Our system works like this: when you commit code to GitHub, the GitHub action either does a full build or a fast build depending on if your dependencies have changed since the previous deploy. We keep track of the set of dependencies specified in setup.py and requirements.txt.For a full build, we build your project dependencies into a deps.pex file and your code into a source.pex file. Both are uploaded to Dagster cloud. For a fast build we only build and upload the source.pex file.In Dagster Cloud, we may reuse an existing container or provision a new container as the code server. We download the deps.pex and source.pex files onto this code server and use them to run your code in an isolated environment.
Fast vs full deployments
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
Well, in short, with iterators, the flow of information is one-way only. When you have an iterator, all you can really do call the __next__ method to get the very next value to be yielded. In contrast, the flow of information with generators is bidirectional: you can send information back into the generator via the send method.
- Iterator ← one-way communication (can only
yield
stuff) - Generator ← bidirectional communication (can also accept information via the
send
method)
- Iterator ← one-way communication (can only
-
-
docs.databricks.com docs.databricks.com
-
PythonCopyconfigs = {"fs.azure.account.auth.type": "OAuth", "fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider", "fs.azure.account.oauth2.client.id": "<application-id>", "fs.azure.account.oauth2.client.secret": dbutils.secrets.get(scope="<scope-name>",key="<service-credential-key-name>"), "fs.azure.account.oauth2.client.endpoint": "https://login.microsoftonline.com/<directory-id>/oauth2/token"} # Optionally, you can add <directory-name> to the source URI of your mount point. dbutils.fs.mount( source = "abfss://<container-name>@<storage-account-name>.dfs.core.windows.net/", mount_point = "/mnt/<mount-name>", extra_configs = configs)
-
-
mode80.github.io mode80.github.io
-
So why aren't more people using Nim? I don't know! It's the closest thing to a perfect language that I've used by far.
Nim sounds as the most ideal language when comparing to Python, Rust, Julia, C#, Swift, C
Tags
Annotators
URL
-
-
trompace-client.readthedocs.io trompace-client.readthedocs.io
-
pythonspeed.com pythonspeed.com
-
depending on how smart the framework is, you might find yourself installing Conda packages over and over again on every run. This is inefficient, even when using a faster installer like Mamba.
-
there’s the bootstrapping problem: depending on the framework you’re using, you might need to install Conda and the framework driver before you can get anything going. A Docker image would come prepackaged with both, in addition to your code and its dependencies. So even if your framework supports Conda directly, you might want to use Docker anyway.
-
The only thing that will depend on the host operating system is glibc, pretty much everything else will be packaged by Conda. So a pinned environment.yml or conda-lock.yml file is a reasonable alternative to a Docker image as far as having consistent dependencies.
Conda can be a sufficient alternative to Docker
-
To summarize, for the use case of Python development environments, here’s how you might choose alternatives to Docker:
(see table below)
-
Conda packages everything but the standard C library, from C libraries to the Python interpreter to command-line tools to compilers.
Tags
Annotators
URL
-
-
stackoverflow.com stackoverflow.com
-
When you call 'foo' in Ruby, what you're actually doing is sending a message to its owner: "please call your method 'foo'". You just can't get a direct hold on functions in Ruby in the way you can in Python; they're slippery and elusive. You can only see them as though shadows on a cave wall; you can only reference them through strings/symbols that happen to be their name. Try and think of every method call 'object.foo(args)' you do in Ruby as the equivalent of this in Python: 'object.getattribute('foo')(args)'.
-
def document(f): def wrap(x): print "I am going to square", x f(x) return wrap @document def square(x): print math.pow(x, 2) square(5)
-
-
wimyedema.medium.com wimyedema.medium.com
-
Post involved with finding a good jupyter notebook visualization lib for DAGs.
Tags
Annotators
URL
-
- Feb 2023
-
Local file Local file
-
What object-oriented means
What does the object-oriented means? Objects are models of somethings that can do certain things and have certain things done to them. Formally, an object is a collection of data and associated behaviors.
-
The difference between object-oriented design and object-orientedprogramming
What is the design and programming mean in OOP?
-
-
-
Cannot make it run due to lib incompatibillities, Feb2023 :-( - related to #199: Is Project Dead? - contributions has fallen after 2021.
Tags
Annotators
URL
-
-
Tags
Annotators
URL
-
- Jan 2023
-
www.w3schools.com www.w3schools.com
-
The len() function returns the length of a string:
This function may be useful if it is necessary to determine if a string is too long or too short for a given task.
-
-
socialhub.activitypub.rocks socialhub.activitypub.rocks
-
www.w3schools.com www.w3schools.com
-
Python has a set of built-in methods that you can use on lists/arrays
Python makes use of lists/arrays
-
-
-
Float is a function or reusable code in the Python programming language that converts values into floating point numbers. Floating point numbers are decimal values or fractional numbers like 133.5, 2897.11, and 3571.213, whereas real numbers like 56, 2, and 33 are called integers.
Meaning of Float in Python proramming language
-
-
h.readthedocs.io h.readthedocs.io
-
make dev
I am getting this error while doing make dev I have installed the required version of python, still update with the required version please.
File "/home/ec2-user/projects/h/h/search/config.py", line 213, in _ensure_icu_plugin
names = [x.strip() for x in conn.cat.plugins(h="component").split("\n")]
AttributeError: 'list' object has no attribute 'split'
-
-
datascienceparichay.com datascienceparichay.com
-
Now, if you try to parse a date (using the pandas.to_datetime() function) that lies outside this range, we get the above ParseError.
The datetime type in pandas can only take values inside a given range, for example, dates less than 1677-09-21 and greater than 2262-04-11 cannot be used in Pandas. Is this due to the bit size the datetime[ns] type uses in Pandas?
-
-
pythonbasics.org pythonbasics.org
-
Python dictionaries are another collection. Real word dictionaries are a good analogy to understand them: they contain a list of items, each item has a key and a value. In the traditional dictionary, the key is the word and the value is the explanation or description of it. In Python you can do something similar.
Meaning of Dictionary according to Python Language
-
-
www.techtarget.com www.techtarget.com
-
CamelCase is formally referred to as medial capitals. It may also be called or styled as PascalCase, camel case, InterCaps, mixedCase or WikiCase.
this is a descripton
-
CamelCase is a way to separate the words in a phrase by making the first letter of each word capitalized and not using spaces
Camel Case is a method to avoid spaces in names. For example UpperCamelCase and lowerCamelCase
All PascalCase styles are CamelCase but not all CamelCase are PascalCase
-
-
www.freecodecamp.org www.freecodecamp.org
-
Integers
Integers definition
-
-
www.geeksforgeeks.org www.geeksforgeeks.org
-
Note: Triple quotes, according to official Python documentation are docstrings, or multi-line docstrings and are not considered comments. Anything inside triple quotes is read by the interpreter. When the interpreter encounters the hash symbol, it ignores everything after that. That is what a comment is defined to be.
-
-
www.w3resource.com www.w3resource.com
-
Snake case (stylized as snake_case) refers to the style of writing in which each space is replaced by an underscore (_) character, and the first letter of each word written in lowercase. It is a commonly used naming convention in computing, for example for variable and subroutine names, and for filenames.
-
-
techterms.com techterms.com
-
PascalCase
I typically like to use PascalCase to indicate variables in my code. It is common in large development environments to have a coding standard document that defines how each programmer on the team will use various conventions
-
-
ruudvanasseldonk.com ruudvanasseldonk.com
-
Python — Json documents double as valid Python literals with minimal adaptation, and Python supports trailing commas and comments. It has variables and functions, powerful string interpolation, and json.dump built in. A self-contained Python file that prints json to stdout goes a long way!
If you would like to template yaml, then rather do it in Nix or Python
-
-
www.futurelearn.com www.futurelearn.com
-
stackoverflow.com stackoverflow.com
-
No, in Python "[ [] foo [] boo [][]] ".strip(" []") returns "foo [] boo".
I would have expected it would remove the string " []", not the occurrences of any of the characters within the string...
-
There is no such method in ruby, but you can easily define it like: def my_strip(string, chars) chars = Regexp.escape(chars) string.gsub(/\A[#{chars}]+|[#{chars}]+\z/, "") end
-
-
pythonspeed.com pythonspeed.com
-
Solution #3: Switch to Conda-Forge
Yet another possible solution for M1 users, but you need to use conda and expect less packages than in PyPI
-
In general, the environment variable is too heavy-handed and should be avoided, since it will impact all images you build or run. Given the speed impact, you don’t for example want to run your postgres image with emulation, to no benefit.
Which options to avoid
-
The problem with this approach is that the emulation slows down your runtime. How much slower it is? Once benchmark I ran was only 6% of the speed of the host machine!
Speed is the core problem with emulation
-
The other option is to run x86_64 Docker images on your ARM64 Mac machine, using emulation. Docker is packaged with software that will translate or emulate x86_64 machine code into ARM64 machine code on the fly; it’s slow, but the code will run.
Another possible solution for M1 users (see snippets below)
-
Third, you can pre-compile wheels, store them somewhere, and install those directly instead of downloading the packages from PyPI.
Third possible solution for M1 users
-
If you have a compiler installed in your Docker image and any required native libraries and development headers, you can compile a native package from the source code. Basically, you add a RUN apt-get upgrade && apt-get install -y gcc and iterate until the package compiles successfully.
Second possible solution for M1 users
-
First, it’s possible the relevant wheels are available in newer versions of the libraries.
First possible solution for M1 users
-
When you pip install murmurhash==1.0.6 on a M1/M2 Mac inside Docker, again it looks at the available files
Other possible steps that
pip
will do when trying to install a Python package without a relevant CPU instruction set -
When you pip install filprofiler==2022.05.0 on a M1/M2 Mac inside Docker, pip will look at the available files for that version, and then
3 steps that
pip
will do when trying to install a Python package without a relevant CPU instruction set -
In either case, pure Python will Just Work, because it’s interpreted at runtime: there’s no CPU-specific machine code, it’s just text that the Python interpreter knows how to run. The problems start when we start using compiled Python extensions. These are machine code, and therefore you need a version that is specific to your particular CPU instruction set.
M1 Python issues
Tags
Annotators
URL
-
-
datavizpyr.com datavizpyr.com
-
Data Viz with Python and RLearn to Make Plots in Python and R
data viz with python and R
Tags
Annotators
URL
-
-
www.icoderzsolutions.com www.icoderzsolutions.com
-
Hire Python Developers In India
Looking to hire dedicated Python developers for custom server-sed web development?we provide a team of AngularJS experts on a full-time, or hourly basis. Hire highly experienced Python Programmers from iCoderz. https://bit.ly/3jEE2oI
-
-
news.ycombinator.com news.ycombinator.com
-
Here's my opinion, having written many thousands of lines of mypy code.
Negative opinion on mypy (see below this annotation)
-
- Dec 2022
-
learnbyexample.github.io learnbyexample.github.io
-
Overall, the code was significantly shorter compared to the tkinter version I did last year. That version had a few more features, but I'd say Textual felt much easier to reason about.
Textual is much easier than tkinter.
-
-
stackoverflow.com stackoverflow.com
-
Or more directly
Hack for pasting multiline Python scripts in a terminal:
python
exec('''<paste code>''')
[ENTER]
-
-
www.learnbyexample.org www.learnbyexample.org
-
In Python, everything is an object – integers, strings, lists, functions, even classes themselves.
Tags
Annotators
URL
-
-
mkennedy.codes mkennedy.codes
-
Try this code at app startup:
Code to improve Python GC settings to increase the performance by 20%
-
The trigger is when you allocate 700 or more container objects (classes, dicts, tuples, lists, etc) more than have been cleaned up, a GC cycle runs.
Trigger for GC runs in Python
-
-
www.complexityexplorer.org www.complexityexplorer.org
-
Tags
Annotators
URL
-
-
peps.python.org peps.python.org
Tags
Annotators
URL
-
-
peps.python.org peps.python.org
Tags
Annotators
URL
-
-
-
To summarize the three options we’ve seen, as well as a streaming ijson-based solution:
Comparison of 4 Python's JSON libraries
Tags
Annotators
URL
-
-
guicommits.com guicommits.com
-
Always start with functionsGrow to classes once you feel you can group different subsets of functions
Python rules for creating a function or a class
-
First of all, in Python there are no such things as "files" and I noticed this is the main source of confusion for beginners.If you're inside a directory that contains any __init__.py it's a directory composed of modules, not files.
On "files" in Python
Tags
Annotators
URL
-
-
usrme.xyz usrme.xyz
-
the fact that the Poetry developers intentionally introduced failures to people’s CI/CD pipelines to motivate them to move away from Poetry’s legacy installer… Though we didn’t rely on the installer in our pipelines, this was the death knell for the continued use of Poetry.
Video on this topic: https://youtu.be/Gr9o8MW_pb0
-
-
www.zhihu.com www.zhihu.com
-
如何面试Python后端工程师?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
编程新手如何提高编程能力?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么很多语言的pattern matching能力有限?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
高频交易中C++和Python的速度差异有多少?
-
-
www.zhihu.com www.zhihu.com
-
如何看待以及理解Python的这种尾递归优化?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Lambda 表达式、Block、闭包与匿名函数之间有什么区别?和 λ 演算有什么关系?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Python 中的 lambda 和「真正的」lambda 有什么区别?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何理解 Python 的 Descriptor?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
www.zhihu.com www.zhihu.com
-
如何评价王垠博文《PySonar的价值和意义》?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
请问爬虫如何爬取动态页面的内容?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何看待Python中加入static typing?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为何大量设计模式在动态语言中不适用?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Mixin是什么概念?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
有没有内容类似于《Python源码剖析》,但内容更新过,针对新版本的Python书籍?
Tags
Annotators
URL
-
-
mastodonpy.readthedocs.io mastodonpy.readthedocs.io
Tags
Annotators
URL
-
- Nov 2022
-
medium.com medium.com
-
There are plenty of articles about the emergence of PyScript for embedding Python code directly into HTML, but until now the creation of browser extensions in Python has been something of a closed door.
One can use PyScript to write browser extensions in Python (or at least some simple ones?)
-
-
towardsdatascience.com towardsdatascience.com
-
www.icoderzsolutions.com www.icoderzsolutions.com
-
NodeJS vs Python: Which Back-end Framework You Should Choose in 2023?
NodeJS vs Python: Let’s Compare the two most popular back-end technologies In terms of performance, scalability, and popularity. Python is a general-purpose language with a wide range of applications, while NodeJS is designed for building network applications. To assist you in choosing the best technology for your project, we'll examine frequent use cases for each language in this blog post. https://bit.ly/3Tly34p
-
-
mathspp.com mathspp.com
-
notice that defaultdict not only returns the default value, but also assigns it to the key that wasn't there before:
See example below about
defaultdict
-
we might need a dictionary subclass, and then we need to access a key that does not exist in that dictionary
Example of applying
__missing__
dunder method:```python class DictSubclass(dict): def missing(self, key): print("Hello, world!")
my_dict = DictSubclass() my_dict["this key isn't available"]
Hello, world!
```
-
The table also includes links to the documentation of the dunder method under the emoji 🔗. When available, relevant Pydon'ts are linked under the emoji 🗒️.
Table below lists Python dunder methods
-
>>> 3 in my_list False >>> my_list.__contains__(3) False
python 3 in my_list
is the same as:python my_list.__contains__(3)
-
“dunder” comes from “double underscore”
dunder = double underscores (__)
-
dunder methods are methods that allow instances of a class to interact with the built-in functions and operators
Python's dunder methods
Tags
Annotators
URL
-
- Oct 2022
-
www.youtube.com www.youtube.com
-
from gensim.summarization.summarizer import summarize summarize(text1, ratio=0.5)
-
-
bugs.python.org bugs.python.org
-
I'm afraid you missed the joke ;-) While you believe spaces are required on both sides of an em dash, there is no consensus on this point. For example, most (but not all) American authorities say /no/ spaces should be used. That's the joke. In writing a line about "only one way to do it", I used a device (em dash) for which at least two ways to do it (with spaces, without spaces) are commonly used, neither of which is obvious -- and deliberately picked a third way just to rub it in. This will never change ;-)
-
This text has a line which has an ortographical typo in it. Please look at this line of text from the Zen of Python: There should be one-- and preferably only one --obvious way to do it.
first sighting: ortographical
-
-
en.wikipedia.org en.wikipedia.org
-
Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one– and preferably only one –obvious way to do it.[a] Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than right now.[b] If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea – let's do more of those!
-
-
en.wikipedia.org en.wikipedia.org
-
This motto has been very much discussed in the Perl community, and eventually extended to There’s more than one way to do it, but sometimes consistency is not a bad thing either (TIMTOWTDIBSCINABTE, pronounced Tim Toady Bicarbonate).[1] In contrast, part of the Zen of Python is, "There should be one— and preferably only one —obvious way to do it."
-
-
postgresml.org postgresml.org
-
Python is known for using more memory than more optimized languages and, in this case, it uses 7 times more than PostgresML.
-
PostgresML outperforms traditional Python microservices by a factor of 8 in local tests and by a factor of 40 on AWS EC2.
-
-
stackoverflow.com stackoverflow.com
-
You may need pathname2url
(Author:: [[neurino on Stack Overflow]])
python from urllib.request import pathname2url pathname2url('dir/foo, bar.mp3')
∎
-
-
www.icoderzsolutions.com www.icoderzsolutions.com
-
Hire Dedicated Python Developers from India
Are you looking for hire a python developers for custom server web development? Here, icoderz provide the best Python engineers for hire at competitive hiring costs. The remote offshore Python engineers ensure to cover every aspect to make your web applications highly efficient. https://bit.ly/3T7yCj1
-
-
innerjoin.bit.io innerjoin.bit.io
-
SSL is disabled by default in jdbc, npgsql, node-postgres, and pgx.
Table with programming libraires and their default SSL mode:
-
- Sep 2022
-
people.csail.mit.edu people.csail.mit.edu
-
osmocom.org osmocom.org
Tags
Annotators
URL
-
-
pythonspeed.com pythonspeed.com
-
Mamba installs these packages in only a third of the time that Conda does. Much of that is due to less CPU usage, but even network downloads seem to be little faster; Mamba uses parallel downloads to speed them up.
Mamba is a lot faster than Conda
-
-
pythonspeed.com pythonspeed.com
-
So which should you use, pip or Conda? For general Python computing, pip and PyPI are usually fine, and the surrounding tooling tends to be better. For data science or scientific computing, however, Conda’s ability to package third-party libraries, and the centralized infrastructure provided by Conda-Forge, means setup of complex packages will often be easier.
From my experience, I would use Mambaforge or pyenv and Poetry.
Tags
Annotators
URL
-
-
docs.python.org docs.python.org
-
Errors detected during execution are called exceptions and are not unconditionally fatal: you will soon learn how to handle them in Python programs.
exceptions
-
There are (at least) two distinguishable kinds of errors: syntax errors and exceptions.
kind of errors
Tags
Annotators
URL
-
-
runestone.academy runestone.academy
-
and
as
assert
break
class
continue
def
del
elif
else
except
exec
finally
for
from
global
if
import
in
is
lambda
nonlocal
not
or
pass
raise
return
try
while
with
yield
True
False
None
-
-
www.hedycode.com www.hedycode.com
-
Hedy Een graduele programmeertaal Probeer het uit
Ik kwam deze programmeertaal tegen via een podcastaflevering van Pom.https://podimo.com/nl/shows/99aa420b-14d0-4ffc-8e79-a55ed8f793e4/episode/363c968e-7fd6-4649-9ab9-46b123a837d9?creatorId=8617f4d8-7b12-4cf4-9a90-71036b3f8edf&key=tR65wldt702F&source=ln&from=mobile&utmSource=$2a$10$6rBa4aroNNZ3pA6Qops54.xSeaCoSXkXBw2YWXfoNoEHrjz.bm42G&variant=enabled_v2 Techoptimisme #2 - Een oplossing voor het IT-tekort Een standbeeld verdient ze, zo enthousiast zijn Alexander en Ernst-Jan over Felienne Hermans. Zij is programmeur en universitair hoofddocent en zij heeft Hedy ontwikkeld, een programmeertaal voor kinderen.
En dat is heel goed nieuws, want als meer kinderen leren programmeren dan krijgen we een generatie volwassenen die veel meer digitaal geletterd is dan de beleidsmakers, politici en docenten die we nu hebben.
Hoe bijzonder het is dat deze taal bestaat, legt Felienne met aanstekelijk enthousiasme uit. Met Hedy leer je stapje voor stapje programmeren totdat je na een jaar Python kan. Felienne vertelt hoe ze dit flikte en droomt hardop over een manier om zoveel mogelijk kinderen te leren programmeren.
Tags
Annotators
URL
-
-
martinheinz.dev martinheinz.dev
-
# "func" called 3 times result = [func(x), func(x)**2, func(x)**3] # Reuse result of "func" without splitting the code into multiple lines result = [y := func(x), y**2, y**3]
Smart example of using the walrus operator
:=
-
- Aug 2022
-
blog.ch3m4.org blog.ch3m4.org
-
Formalización de la Secuencia Perezosa - Evaluación perezosa en python - Parte 5
Formalización de la Secuencia Perezosa - Evaluación perezosa en Python - Parte 5
-
-
blog.ch3m4.org blog.ch3m4.org
-
Evaluación perezosa avanzada - Evaluación perezosa en python - Parte 4
Evaluación perezosa avanzada - Evaluación perezosa en Python - Parte 4
-
-
blog.ch3m4.org blog.ch3m4.org
-
Memoización - Evaluación perezosa en python - Parte 3
Memoización - Evaluación perezosa en python - Parte 3
-
-
blog.ch3m4.org blog.ch3m4.org
-
Introducción a la “Evaluación Perezosa” - Evaluación perezosa en python - Parte 1
Serie sobre evaluación perezosa en Python.
-
-
medium.com medium.com
-
Write Better Python with Hypothesis
Prueba de propiedades en Python.
-
-
blog.khinsen.net blog.khinsen.net
-
Every beginner-level tutorial for scientists should state during the first five minutes that you cannot expect stability and that you should either use Python only for throw-away code or else
-
-
blog.khinsen.net blog.khinsen.net
-
What is not OK is what I perceive as the dominant attitude today: sell SciPy as a great easy-to-use tool for all scientists, and then, when people get bitten by breaking changes, tell them that it’s their faul
-