Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: i am looking for a simpler tokenizer
Post: RE: i am looking for a simpler tokenizer

Ok. In that case I think a modest loop can do all you ask. Just iterate and break by supported grouping tokens, using counters to track. for example z = 'abc[d{e}f] "xyz 'bbb' www" ' logic is 'if ...
jonnin General Coding Help 7 3,448 Jul-29-2019, 12:01 PM
    Thread: i am looking for a simpler tokenizer
Post: RE: i am looking for a simpler tokenizer

show what you want to see out for triple quotes? This does not even need regx if its what I think you want, but need to be sure.
jonnin General Coding Help 7 3,448 Jul-29-2019, 12:21 AM
    Thread: I need help with a python script
Post: RE: I need help with a python script

on windows, in a console, you can right click, edit, mark and select the text you want to copy, press enter, and you can paste it into a text editor or this site etc. On dos/unix/etc command line you ...
jonnin General Coding Help 4 2,562 Jul-29-2019, 12:16 AM
    Thread: raw byte of integer
Post: RE: raw byte of integer

I knocked another second off by condensing all the temporary variables into a one liner. Anyone see anything else at all to do here? The unsigned macro just caps it back to 32 bits after shifting up...
jonnin General Coding Help 4 2,385 Jul-22-2019, 03:48 AM
    Thread: raw byte of integer
Post: RE: raw byte of integer

Thanks! That worked but it was even slower after I finally got it all in place. I tried upshifting by multiply by 256 (vs << 8) and capping the result back to 32 bits but it choked on that t...
jonnin General Coding Help 4 2,385 Jul-22-2019, 12:49 AM
    Thread: raw byte of integer
Post: RE: raw byte of integer

Still trying to get anywhere with this. Why am I getting @ symbol here? x = 123456 y = x.to_bytes(4, byteorder='big') print (y) y = struct.pack("I",x) print (y)output: Output:b'\x00\x01\xe2@' b'@\xe2...
jonnin General Coding Help 4 2,385 Jul-21-2019, 07:31 PM
    Thread: raw byte of integer
Post: raw byte of integer

Hello! I am brand new, so bear with me. I am trying to do a specific polynomial of crc32 in py and that seems to be working but its horribly slow (c++ does 2 million of these crc32s + an md5 in 0.4 o...
jonnin General Coding Help 4 2,385 Jul-21-2019, 03:08 PM

User Panel Messages

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