Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: configparser module, when use text file to show following error
Post: RE: configparser module, when use text file to sho...

(Jul-13-2020, 07:36 PM)Gribouillis Wrote: You are using a wrong signature for ConfigParser.read_file(). This method expects an iterable of strings such as an open file. Replace config.read_file() wi...
mbilalshafiq Homework 5 5,246 Jul-14-2020, 04:06 PM
    Thread: configparser module, when use text file to show following error
Post: RE: configparser module, when use text file to sho...

(Jul-13-2020, 04:22 PM)Gribouillis Wrote: A configparser file normally needs a section header Output:[mysection] foo = bar#after added your section but still same issue. [mysection] foo = bar [rootd...
mbilalshafiq Homework 5 5,246 Jul-13-2020, 06:54 PM
    Thread: configparser module, when use text file to show following error
Post: RE: configparser module, when use text file to sho...

Quote:#Thanks your reply #this is my .txt file using in configparser module [rootdirectory] root_directory = e:\alnafi [username] user_name = m.bilal [databaseconnected] database_connected = True [su...
mbilalshafiq Homework 5 5,246 Jul-13-2020, 04:56 PM
    Thread: configparser module, when use text file to show following error
Post: configparser module, when use text file to show fo...

import configparser config = configparser.ConfigParser() #config.read("E:\\My Folders\\Alnafi\\AlNafi\\configparser_Ex3.ini") # when we use .ini file then out put is ok config.read_file("E:\\My Folde...
mbilalshafiq Homework 5 5,246 Jul-13-2020, 04:12 PM
    Thread: Decorator is using in class,but not working
Post: RE: Decorator is using in class,but not working

(Jul-04-2020, 08:34 PM)Yoriz Wrote: Your decorator extract_function_name does not need to be in class ScientificCalculator and it needs to return internal_method, at the moment it defaults to return...
mbilalshafiq Homework 2 2,139 Jul-04-2020, 08:53 PM
    Thread: Decorator is using in class,but not working
Post: Decorator is using in class,but not working

# -*- coding: utf-8 -*- """ Created on Mon Jun 22 23:46:47 2020 @author: Lenovo """ import pdb import unittest import math class Calculator: """ A class is defined for calculator, to preform...
mbilalshafiq Homework 2 2,139 Jul-04-2020, 08:19 PM
    Thread: Lambda function not return value
Post: RE: Lambda function not return value

Thanks dear , your guidance. Regards MB (Jul-03-2020, 02:39 PM)deanhystad Wrote: Using lambda functions for a calculator is common, but you are using them in the wrong place. A common way to use...
mbilalshafiq Homework 4 3,348 Jul-03-2020, 07:55 PM
    Thread: Lambda function not return value
Post: Lambda function not return value

# -*- coding: utf-8 -*- """ Created on Mon Jun 22 23:46:47 2020 @author: Lenovo """ import pdb import unittest import math class Calculator: """ A class is defined for calculator, to preform...
mbilalshafiq Homework 4 3,348 Jul-03-2020, 12:15 PM
    Thread: Unit Testing is not showing Test case result
Post: RE: Unit Testing is not showing Test case result

Thanks Dear your guidance, now is working. best regards...
mbilalshafiq Homework 2 1,840 Jul-01-2020, 08:50 PM
    Thread: Unit Testing is not showing Test case result
Post: Unit Testing is not showing Test case result

# -*- coding: utf-8 -*- """ Created on Mon Jun 22 23:46:47 2020 @author: Lenovo """ #import pdb import unittest class Calculator: """ A class is defined for calculator, to preform addition,s...
mbilalshafiq Homework 2 1,840 Jul-01-2020, 07:26 PM
    Thread: Child class function of Log return "None"
Post: RE: Child class function of Log return "None"

Thanks dear for your guidance. Now my function is return value.
mbilalshafiq Homework 2 2,248 Jun-30-2020, 07:22 PM
    Thread: Child class function of Log return "None"
Post: Child class function of Log return "None"

# what is an issue in below coding , when i call child class function is return "None", Please guide us. #Thanks... import math class Calculator: """ A class is defined for calculator, to pr...
mbilalshafiq Homework 2 2,248 Jun-30-2020, 06:18 PM

User Panel Messages

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