View Active Threads
View Today's Posts
Home
Forums
View New Posts
View Today's Posts
My Discussions
Unanswered Posts
Unread Posts
Active Threads
Mark all forums read
Staff List
Member List
Help
Calendar
Search
Statistics
Interpreter
IRC
Weird behaviour using if statement in python 3.10.8
Python Forum
Python Coding
General Coding Help
Thread Rating:
0 Vote(s) - 0 Average
1
2
3
4
5
Thread Modes
Weird behaviour using if statement in python 3.10.8
deanhystad
Posts:
6,320
Threads:
16
Joined:
Feb 2020
Reputation:
315
#6
Jan-15-2023, 05:42 PM
If we are going to critique code, there is no reason to do this either "if bool(data):". You will get the same results using "if data:".
Reply
Find
Reply
Messages In This Thread
Weird behaviour using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 02:59 PM
RE: Wired behavior using if statement in python 3.10.8
- by
deanhystad
- Jan-15-2023, 03:01 PM
RE: Wired behavior using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 05:03 PM
RE: Wired behavior using if statement in python 3.10.8
- by
deanhystad
- Jan-15-2023, 05:16 PM
RE: Wired behavior using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 05:59 PM
RE: Wired behavior using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 06:14 PM
RE: Wired behavior using if statement in python 3.10.8
- by
Yoriz
- Jan-15-2023, 05:27 PM
RE: Wired behavior using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 05:50 PM
RE: Wired behavior using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 05:51 PM
RE: Wired behavior using if statement in python 3.10.8
- by
deanhystad
- Jan-15-2023, 05:42 PM
RE: Wired behavior using if statement in python 3.10.8
- by
rob101
- Jan-15-2023, 05:51 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
deanhystad
- Jan-15-2023, 06:02 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 06:07 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 06:06 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
deanhystad
- Jan-15-2023, 06:31 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
mikepy
- Jan-15-2023, 06:49 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
deanhystad
- Jan-15-2023, 07:13 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
mikepy
- Jan-16-2023, 05:00 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
deanhystad
- Jan-16-2023, 05:10 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
mikepy
- Jan-16-2023, 06:40 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
deanhystad
- Jan-16-2023, 07:18 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
mikepy
- Jan-17-2023, 05:29 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
deanhystad
- Jan-17-2023, 06:50 PM
RE: Weird behaviour using if statement in python 3.10.8
- by
mikepy
- Jan-18-2023, 04:51 PM
Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
logger behaviour
setdetnet
1
955
Apr-15-2023, 05:20 AM
Last Post
:
Gribouillis
can someone explain this __del__ behaviour?
rjdegraff42
1
797
Apr-12-2023, 03:25 PM
Last Post
:
deanhystad
Asyncio weird behaviour
vugz
2
1,372
Apr-09-2023, 01:48 AM
Last Post
:
vugz
Generator behaviour
bla123bla
2
1,171
Jul-26-2022, 07:30 PM
Last Post
:
bla123bla
Inconsistent behaviour in output - web scraping
Steve
6
2,703
Sep-20-2021, 01:54 AM
Last Post
:
Larz60+
IWhat is the cause to get XPath in weird format using Python?
MDRI
7
3,850
May-27-2021, 02:01 AM
Last Post
:
MDRI
Adding to the dictionary inside the for-loop - weird behaviour
InputOutput007
5
2,856
Jan-21-2021, 02:21 PM
Last Post
:
InputOutput007
Behaviour of 2D array
SimonB
6
2,964
Jan-21-2021, 01:29 PM
Last Post
:
SimonB
strange behaviour- plotting
nathan_Blanc_Haifa
0
1,538
Dec-27-2020, 01:37 PM
Last Post
:
nathan_Blanc_Haifa
OOP behaviour problem
JohnB
3
2,491
Aug-18-2020, 07:51 PM
Last Post
:
JohnB
Users browsing this thread: 1 Guest(s)
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
Python Coding
-- General Coding Help
-- Data Science
-- Homework
-- GUI
-- Game Development
-- Networking
-- Web Scraping & Web Development
General
-- News and Discussions
-- Tutorials
---- Tutorial Requests and Submissions
---- Python Installation and Execution
---- Fundamentals
---- Common pitfalls and what to do
---- Web Scraping
---- Web Tutorials
---- GUI tutorials
---- Game Tutorials
---- Networking Tutorials
-- Code sharing
-- Code Review
-- Jobs
Forum & Off Topic
-- Board
---- Weekly Top Picks
-- Bar
User Panel
Messages
Log Out
My Profile
Pay your profile a visit
User Control Panel
Do some changes on your profile
My Messages
View private messages
unread
Avatar
Change avatar
Signature
Change signature
Announcements
Announcement #1
8/1/2020
Announcement #2
8/2/2020
Announcement #3
8/6/2020
Login to Python Forum
Enter your details to login to your account:
Remember me
Lost Password?
Login
Don't have an account yet?
Sign Up!
Linear Mode
Threaded Mode