Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: imaginary number i
Post: RE: imaginary number i

(Yesterday, 04:28 PM)mr_byte31 Wrote: This is the first programming language that I see to give priority to "power" than to sign "-" https://math.stackexchange.com/q/1299236 And one of the answers ...
buran General Coding Help 8 119 Yesterday, 05:42 PM
    Thread: Inheritance vs Instantiation for Python classes
Post: RE: Inheritance vs Instantiation for Python classe...

Here is an example of inheritance class Shape: """Basic shape class """ def __init__(self, n): self.n = n print('this is __init__ of class Shape') # this is just to show ...
buran General Coding Help 6 112 Yesterday, 05:13 PM
    Thread: Inheritance vs Instantiation for Python classes
Post: RE: Inheritance vs Instantiation for Python classe...

(Yesterday, 04:21 PM)mr_byte31 Wrote: I understand what you said some one can instantiate an object from a class and start to use its method to extend the functionality of other class. still inheri...
buran General Coding Help 6 112 Yesterday, 04:39 PM
    Thread: Inheritance vs Instantiation for Python classes
Post: RE: Inheritance vs Instantiation for Python classe...

(Yesterday, 12:31 PM)mr_byte31 Wrote: I am just wondering why there exists two solutions for the same problem.well, these are two completely different problems/use cases. Class is a blue-print. Ver...
buran General Coding Help 6 112 Yesterday, 12:46 PM
    Thread: Equipment Portal
Post: RE: Equipment Portal

(Yesterday, 09:08 AM)jamesaarr Wrote: With regards to the code, I know it's pooooooorly written, I normally do a messy version that works and then rework it once that's done. The lack of comments is...
buran Code Review 6 107 Yesterday, 11:24 AM
    Thread: Equipment Portal
Post: RE: Equipment Portal

It's unclear what your code is supposed to do and in any case we can comment on your code/implementation and we can hardly suggest new features. That's why I will comment on your signature. dad_has_ci...
buran Code Review 6 107 Yesterday, 07:22 AM
    Thread: Installed pip install openpyxl, Requirement already satisfied, but, still have error
Post: RE: Installed pip install openpyxl, Requirement al...

You have a typo - openpyx1 it should be lowercase letter l - openpyxl
buran General Coding Help 3 108 Sep-20-2021, 07:13 AM
    Thread: detecting a generstor passed to a funtion
Post: RE: detecting a generstor passed to a funtion

(Sep-19-2021, 06:06 AM)DeaD_EyE Wrote: # Generator could not detect a GeneratorfunctionNot sure what you mean with this comment. The output is Output:foo False bar True foo() False bar() True bar...
buran General Coding Help 9 198 Sep-19-2021, 07:55 AM
    Thread: detecting a generstor passed to a funtion
Post: RE: detecting a generstor passed to a funtion

look at collections.abc
buran General Coding Help 9 198 Sep-19-2021, 04:39 AM
    Thread: In need of insight regarding Python file reading mechanisms.
Post: RE: In need of insight regarding Python file readi...

This was asked and answered on SO yesterday. Please, don't cross-post or if you do - share a link.
buran General Coding Help 1 78 Sep-18-2021, 12:12 PM
    Thread: lost a post that i edited
Post: RE: lost a post that i edited

(Sep-06-2021, 12:55 AM)Skaperen Wrote: (i edited it a couple times so i know it was there)did you edit it AFTER you post it or BEFORE that, in preview mode? I don't see any thread/post being deleted...
buran Board 2 189 Sep-06-2021, 06:10 AM
    Thread: Assert failure
Post: RE: Assert failure

We don't know what employee_table is and what data there are in it. Do you have the header in it? Also the expected output does not have comma (like your template) just tab. show what your generated f...
buran General Coding Help 1 149 Sep-03-2021, 05:28 PM
    Thread: Python Error List Index Out of Range
Post: RE: Python Error List Index Out of Range

index start at 0 and thus max index value is len(self.l_credentials)-1 However, check this https://python-forum.io/thread-362.html Also, always post full traceback you get, in error tags, not just th...
buran General Coding Help 3 186 Sep-03-2021, 05:22 PM
    Thread: print (output)
Post: RE: print (output)

something like this? output = net_connect.send_command("show ip int brief") print(f'show ip int brief: {output}')
buran General Coding Help 3 184 Sep-03-2021, 08:24 AM
    Thread: TypeError: 'DataFrame' object is not callable using Pandas in Python
Post: RE: TypeError: 'DataFrame' object is not callable ...

(Sep-02-2021, 03:19 PM)sofiavlachou Wrote: Maybe I confuse the Dataset (as a variable) with the Dataset as a function.which dataset function do you refer to? In your code dataset is DataFrame objec...
buran General Coding Help 1 162 Sep-02-2021, 03:24 PM
    Thread: i don't understand this exception
Post: RE: i don't understand this exception

Check this if it may point you in the right direction https://gitlab.idiap.ch/bob/bob.measure/-/issues/23 Looks like similar issue - your _zio class inherits from io.IOBase
buran General Coding Help 9 496 Sep-02-2021, 07:41 AM
    Thread: checking for valid hexadecimal digits
Post: RE: checking for valid hexadecimal digits

extended discussion here https://stackoverflow.com/questions/1159...exadecimal
buran General Coding Help 3 235 Sep-02-2021, 07:22 AM
    Thread: Pyinstaller to exe error
Post: RE: Pyinstaller to exe error

I would suggest to start with listing pystray as hidden import.
buran General Coding Help 3 197 Aug-26-2021, 06:54 AM
    Thread: Pyinstaller to exe error
Post: RE: Pyinstaller to exe error

Did you read When Things Go Wrong especially the part about helping PyInstaller Find Modules, e.g. listing hidden imports, etc.?
buran General Coding Help 3 197 Aug-25-2021, 07:10 PM
    Thread: Why can't I explicitly call __bool__() on sequence type?
Post: RE: Why can't I explicitly call __bool__() on sequ...

(Aug-17-2021, 07:17 PM)quazirfan Wrote: I come from Java background where every class implicitly inherits from object class. I was under the assumption it is the same with python.Actually, you are r...
buran General Coding Help 11 794 Aug-20-2021, 05:56 AM

User Panel Messages

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