Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Dictionary trouble
Post: RE: Dictionary trouble

(Oct-08-2019, 12:51 AM)ichabod801 Wrote: switcherx[arg]()Aaah, I never would have figured that out. Thanks so much. Solved my problem. Well, that one anyway. ;-) (Oct-08-2019, 12:51 AM)stullis...
Involute General Coding Help 3 1,982 Oct-08-2019, 01:32 AM
    Thread: Dictionary trouble
Post: Dictionary trouble

In the following code (which is executable as-is), I've created a dictionary called switcherx{} in the switcher() function. This function also calls other functions based on the selection from switch...
Involute General Coding Help 3 1,982 Oct-08-2019, 12:01 AM
    Thread: Trouble converting numbers to characters
Post: RE: Trouble converting numbers to characters

Well, they worked for me except for that exception. I’ve since reworked the code without the ord() and it’s working fine now.
Involute General Coding Help 4 2,439 Sep-12-2019, 04:49 AM
    Thread: Trouble converting numbers to characters
Post: RE: Trouble converting numbers to characters

The contents of the part of the file that are producing the erroneous behavior are FF FF FF 80 03 FF FF FF 00 03If I run print (ord(x)) on this section, the output is 255 255 255 8364 3 255 255 255 0 ...
Involute General Coding Help 4 2,439 Sep-11-2019, 06:07 PM
    Thread: Trouble converting numbers to characters
Post: Trouble converting numbers to characters

I'm reading numbers from a file which I want to write to a separate file as the ascii hex of the numbers. So, e.g., if I read in ff, I want to write out '0xff'. My code (below; just printing to cons...
Involute General Coding Help 4 2,439 Sep-11-2019, 02:53 AM
    Thread: Simple newb string question
Post: RE: Simple newb string question

Thanks! That did it.
Involute General Coding Help 2 2,169 Sep-08-2019, 12:50 AM
    Thread: Simple newb string question
Post: Simple newb string question

In the following code I open two files (one to read from and the other to write to). I want to read through f until I get to a left brace ("{") before I start writing out to g. The left brace is the...
Involute General Coding Help 2 2,169 Sep-07-2019, 10:17 PM

User Panel Messages

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