Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: pip install paddlepaddle-tiny does not install
Post: RE: pip install paddlepaddle-tiny does not install

I guess the problem is that the whl provided are for up to python 3.5-3.7 and I guess your python version is higher
buran General Coding Help 4 590 Sep-24-2024, 06:10 AM
    Thread: Problem with while cicle
Post: RE: Problem with while cicle

(Sep-16-2024, 02:24 AM)deanhystad Wrote: line 21 is missing a comma.not really >>> print("foo" "bar") foobarOtherwise, you are right
buran General Coding Help 2 374 Sep-17-2024, 02:02 PM
    Thread: which Python choose
Post: RE: which Python choose

You should use latest stable version, unless there is version incompatibility with existing code base (e.g. must usie specific package that has not been compatible yet) Also, there is no problem to in...
buran General Coding Help 1 270 Sep-13-2024, 12:50 PM
    Thread: Unable to understand the function string.split()
Post: RE: Unable to understand the function string.split...

(Sep-13-2024, 07:03 AM)Hudjefa Wrote: However, I was taught string manipulation along with lists and I assumed that all commands/built-in functions work for both strings and lists. Can anyone pleas...
buran General Coding Help 8 605 Sep-13-2024, 07:10 AM
    Thread: Flask_table module compatibility issue: cannot import name 'Markup' from 'flask'
Post: RE: Flask_table module compatibility issue: cannot...

The project looks not maintained for a long time. Current version (the one you use) is from 2017. There is issues in the repo since 3 Oct 2023 and even a pull request #141 from Jan 2024, but no reacti...
buran Web Scraping & Web Development 3 1,431 Sep-13-2024, 06:14 AM
    Thread: Questions about while loop - why does one work, and the other variant does not
Post: RE: Questions about while loop - why does one work...

False and "False" are two different things. One is bool and the other is str object. That said, comparing variable for equality or identity to True or False is against PEP8 recommendations. Quote:Don...
buran General Coding Help 2 315 Aug-29-2024, 07:29 AM
    Thread: creating arbitrary local variable names
Post: RE: creating arbitrary local variable names

(Aug-29-2024, 02:41 AM)Skaperen Wrote: doing this as in a dict had a complication that doing things as locals would solve. Looks like clear XY problem
buran General Coding Help 9 717 Aug-29-2024, 07:22 AM
    Thread: will using conda fix my frustration?
Post: RE: will using conda fix my frustration?

So, it's not general problem with pip/PyPI, but problem installing specific package. As always reading the docs always good first step (in addition to checking supported python versions), where it spe...
buran General Coding Help 4 690 Jul-24-2024, 06:32 AM
    Thread: Which method name would you choose?
Post: RE: Which method name would you choose?

IMHO, read is perfectly fine, especially in computer/programming context. Expecting read to return string is too narrow definition. See e.g. https://www.google.com/search?&q=read+meaning See e.g....
buran General Coding Help 7 868 May-30-2024, 07:05 AM
    Thread: I can't for the life of me get this basic If statement code to work
Post: RE: I can't for the life of me get this basic If s...

(May-21-2024, 03:30 PM)CandleType1a Wrote: So, am I not supposed to be typing directly into Python?https://python-forum.io/thread-117.html
buran General Coding Help 8 1,139 May-21-2024, 03:42 PM
    Thread: I can't for the life of me get this basic If statement code to work
Post: RE: I can't for the life of me get this basic If s...

alternatively you can have if/elif/else >>> x = 25 >>> if x < 10: ... print('smaller') ... elif x > 20: ... print('huge') ... else: ... print('bigger') ... huge
buran General Coding Help 8 1,139 May-21-2024, 03:21 PM
    Thread: Trying to generating multiple json files using python script
Post: RE: Trying to generating multiple json files using...

Did you do print(excel_data) to see what DF you get and what are column names?
buran General Coding Help 4 810 May-10-2024, 09:24 AM
    Thread: Using Lists as Dictionary Values
Post: RE: Using Lists as Dictionary Values

Show your code - minimal reproducible example
buran General Coding Help 8 1,235 Apr-20-2024, 03:49 AM
    Thread: How does this code create a class?
Post: RE: How does this code create a class?

Did you check the docs: https://docs.python.org/3/library/functions.html#type Quote: class type(object) class type(name, bases, dict, **kwds) With one argument, return the type of an object. The...
buran General Coding Help 6 1,137 Apr-19-2024, 11:14 AM
    Thread: Python newb need help
Post: RE: Python newb need help

What is sports centres? What is rating of more than 4 and rating count of more than 50? Do you actually have a python-related question?
buran General Coding Help 1 558 Apr-02-2024, 03:28 AM
    Thread: No Internet connection when running a Python script
Post: RE: No Internet connection when running a Python s...

(Mar-10-2024, 08:49 PM)DeaD_EyE Wrote: I tested his code and ran into this issue. lxml was not installed.It was not installed on YOUR machine. There is no info about OP setup - may or may not be ins...
buran General Coding Help 8 1,635 Mar-10-2024, 10:11 PM
    Thread: No Internet connection when running a Python script
Post: RE: No Internet connection when running a Python s...

(Mar-10-2024, 05:53 PM)DeaD_EyE Wrote: In this case lxml wasn't installed,well, I don't know how you know it is not installed on OP machine
buran General Coding Help 8 1,635 Mar-10-2024, 07:28 PM
    Thread: No Internet connection when running a Python script
Post: RE: No Internet connection when running a Python s...

The indentation is a mess. Fix that in your post. Also don't use bare except. Remove the try/except to get meaningful error message na debug properly
buran General Coding Help 8 1,635 Mar-10-2024, 09:42 AM
    Thread: Is a good practice naming user defined python functions with prefix udf_?
Post: RE: Is a good practice naming user defined python ...

I don't see any added benefit, just extra typing. all functions in the module are "user defined"
buran News and Discussions 2 1,135 Mar-09-2024, 01:40 PM
    Thread: using ctypes to use a dll in a python module
Post: RE: using ctypes to use a dll in a python module

What do you get if you do print(dir(myLib))
buran General Coding Help 3 1,313 Mar-05-2024, 03:06 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020