Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Convert string to a specific number of bytes
Post: Convert string to a specific number of bytes

Hello! I have a class with instance attributes. I need to create an object with each instance having its own values (some are ints, others are strings). Each instance value needs to be converted to b...
artblinked Homework 1 2,414 Mar-28-2019, 05:57 PM
    Thread: How to make Python MakeFile
Post: RE: How to make Python MakeFile

I'm going to go ahead and post this here since there is so little on the internet about making python makefiles. This is what I used (and it works): PY=python3 ZIP=abacmonitor.zip MAIN=main DIR=$(PWD...
artblinked General Coding Help 1 4,246 Feb-22-2019, 03:09 PM
    Thread: Issue with command line arguments
Post: RE: Issue with command line arguments

Thank you buran! This helped me realize what was going on. It's rather long to explain but ultimately I used a makefile that worked with another file to take input from text files and feed it as argu...
artblinked General Coding Help 2 3,100 Feb-22-2019, 03:04 PM
    Thread: Issue with command line arguments
Post: Issue with command line arguments

So I'm having issues with my program command line arguments. In pycharm on windows it works great but when I go to linux it only takes arguments up to the first semicolon ";" and then pretends nothing...
artblinked General Coding Help 2 3,100 Feb-21-2019, 03:42 PM
    Thread: How to make Python MakeFile
Post: How to make Python MakeFile

Hello! As I understand it makefiles are not so much required for python because it's not a compiled language, moreso interpreted. However, I need to make a makefile for my project. So... I know how...
artblinked General Coding Help 1 4,246 Feb-20-2019, 03:40 AM
    Thread: Help with Dictionaries and List of Lists
Post: RE: Help with Dictionaries and List of Lists

import collections PA_dict = collections.defaultdict(list)That is so beautiful. My code looks so much better, thank you.
artblinked General Coding Help 7 3,105 Feb-14-2019, 05:07 PM
    Thread: Help with Dictionaries and List of Lists
Post: RE: Help with Dictionaries and List of Lists

Thank you ichabod801! I needed the permissionName to create the new key so I couldn't see how to take it out of the loop. It kind of looks like a mess, maybe there's a better way to do it but I used ...
artblinked General Coding Help 7 3,105 Feb-14-2019, 05:09 AM
    Thread: Help with Dictionaries and List of Lists
Post: RE: Help with Dictionaries and List of Lists

Thank you for your reply woooee and ichabod801, I have tried: PA_dict[permissionName].append(my_list) but it overrides what is already there and I'm left with only the last parsed list appearing in...
artblinked General Coding Help 7 3,105 Feb-14-2019, 04:35 AM
    Thread: Help with Dictionaries and List of Lists
Post: Help with Dictionaries and List of Lists

Hello all! I have been stuck for far too long on this issue and appreciate any and all help. I have a global dictionary and I'm trying to add to a key a value which is a list of lists. So like thi...
artblinked General Coding Help 7 3,105 Feb-14-2019, 03:23 AM

User Panel Messages

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