Python Tips @python_tips
Programming tips, tricks, and news for the Python programming language. Joined January 2010-
Tweets48
-
Followers2K
-
Following1
-
Likes0
I just got Oi! the Boat Records 14 song sampler FREE from @OiTheBoat lplinked.me/nD6KE1 /via @limitedpressing
cPickle is a faster, C written module for pickle.
When applicable, place import statements inside functions to restrict their visibility and/or reduce initial startup time.
Python 3.2 alpha 2 released: http://www.python.org/download/releases/3.2/
Avoid using the addition "+" operator for string concatenation, as it is very expensive. Use str.join() instead.
Sorry that there haven't been any updates for awhile. My computer fried, but I just got a new one! Updates will now resume.
When possible, replace 'if/else' statements with 'try/except'. This will significantly increase performance.
Python 2.6.6 has been released: http://www.python.org/download/releases/2.6.6/
With regard to programming style, Python code should favor readability over conciseness.
Regular expressions are powerful, yet very expensive. Try using starswith, endswith, isdigit, etc. before using regular expressions.
Python 2.6.6 release candidate 2 (maintenance release) now available: http://www.python.org/download/releases/2.6.6/
Use list comprehensions instead of map or filter wherever possible. List comprehensions are easier to work with and much easier to read.
Python 2.6.6 Release Candidate 1 available for download now: http://www.python.org/download/releases/2.6.6/
List comprehension are faster than regular for-loops; therefore, use them for small, compact loops.
When possible, replace 'if/else' statements with 'try/except'. This will significantly increase performance.
Never use a constructor that takes optional arguments. This is an easy mistake to make, yet it can cause debugging nightmares.
While optimization is important, accuracy is paramount. First make it right, then make it fast.
Avoid dots and use local variables; store object methods in local variables and call the local ones.
import statements can be used almost anywhere; therefore, you may place them inside functions to reduce initial startup time.
Using 'from __future__ import division' will allow Python to always return a float as the result of integer division.
Teja Reddy @reddy136542
0 Followers 30 Following
Sahadev R @SahadevvR
169 Followers 899 Following Amaravati 🇮🇳 | YSRCP | ఉత్తరాంధ్ర వాళ్ళు వైజాగ్ రాజధాని వద్దు అని తీర్పు ఇచ్చారు , ఆతీర్పు ని గౌరవిద్దాం @ysjagan | #తెలుగు
Fox Redux @Redux_fox
23 Followers 810 Following
Ahmed Elslamony @elslamony804
0 Followers 2 Following Python Automation Developer 🛠️ Building tools that save time & boost productivity 📁 File Org | 📊 Invoices | 📑 PDF | 🖼️ Images | 📧 Email | 🔍 Scraping 💼
yasir ahmed @YassirYagi
25 Followers 542 Following
Arpit kushwaha @arpit_kush78924
0 Followers 20 Following
damdam @afandeh01
8 Followers 35 Following
AIとシステムを�... @cUK1lV9if743255
0 Followers 5 Following 大学の授業がとても退屈なので、プログラミングの勉強とAIについて学び、可能であればお金を生み出したいと思っています。
Pan Jian @PanJian248175
0 Followers 10 Following Epidemiology & Occupational Health Researcher 🔬 | 28 yrs exp | Fan of Python, Random Forest & GLMM 🐍📊 | Views are my own.
Kailash @Magan108
18 Followers 215 Following
Jim Jackson @jim_jackso37843
97 Followers 913 Following
Wisin @yoniwisin
9 Followers 360 Following
wodehaodaer @wodehaodaer2
1 Followers 6 Following
emanuel emanuel @emanuel12654499
27 Followers 347 Following
Aadil Mehmood Khan @amk410674
0 Followers 2 Following
Efetobo @codecreatewrite
6 Followers 133 Following Nursing Student | Learning Python🧑💻 | Sharing my journey, mistakes, & mini-projects 💻 YouTube: https://t.co/DRkZi908DP 🎥
SANÉ Mamecor @SaneMamecor
4 Followers 180 Following
mat @mhangok9228
510 Followers 7K Following
good simple @goodsimple132
9 Followers 326 Following
WU LAI @OkfLove
8 Followers 473 Following
Yass @sayz08
1 Followers 607 Following
Bishnu Chaulagain @37060bis
2 Followers 30 Following
Deepak Giyanani @deepakgiyanani
13 Followers 166 Following
Denton Sagerman @denton_sagerman
4K Followers 4K Following Assistant Pitching/Catching Coach @IndianaBase | “Hard work doesn’t guarantee you results; it guarantees you honesty.” -Casey Weathers
Kraftreich @kraftreich
23 Followers 598 Following
Code42 Solutions @code42sh
0 Followers 91 Following
Hicham Echayb @HEchayb85080
2 Followers 153 Following
Precious @PreciousOg40537
0 Followers 19 Following
Cesare Berton @BertonCesare
262 Followers 492 Following Postdoctoral researcher in radiochemistry and supramolecular chemistry in the Holland Lab at the University of Zurich
Krzysztof Modelewski @kmodelewski_com
2 Followers 76 Following
J. de Leeuw @nl13202
65 Followers 559 Following
Amed Sam @AmedSa5
9 Followers 442 Following
Claudio Goitía @ClaudioGoitia
321 Followers 4K Following Fullstack Developer Java, Python, Javascript, PHP. https://t.co/Gk2NUN5lX2 https://t.co/f2lQKOJcr4 https://t.co/t76Cr2REKx
matheus @mathesugonella
14 Followers 485 Following
Jose Carlos Rocha @joserochabh
34 Followers 110 Following
Dolindo Ruotolo @Dolindo_Ruotolo
16 Followers 601 Following
Sachin @Sachinhep
348 Followers 1K Following Python + AI/ML + Figma + Brewed Beer, Biryani. Swimming. Long walks. Silence. Focus. Daily Learner.
Aniket Barik @BarikAniket
160 Followers 1K Following Obsessed with STEM. Bibliophile. Writer. Podcasts lover. Cinephile.
Co-Pilots.ai @CopilotsAI
6 Followers 123 Following








