workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
np!
2019-02-12T16:24:06.308400
Ashley
pythondev_help_Ashley_2019-02-12T16:24:06.308400
1,549,988,646.3084
8,021
pythondev
help
Yup it did upgrade correctly, thanks <@Ashley> :taco:
2019-02-12T16:24:36.308700
Maricruz
pythondev_help_Maricruz_2019-02-12T16:24:36.308700
1,549,988,676.3087
8,022
pythondev
help
So...on that same topic...I have two django projects in the same directory (`/django_projects`) and they both have the same name for their virtual environments (`myvenv`). When I go to my first project and type `myvenv/scripts/activate` then `which python` it is showing me that `myvenv` is actually using my other proje...
2019-02-12T17:08:39.310400
Maricruz
pythondev_help_Maricruz_2019-02-12T17:08:39.310400
1,549,991,319.3104
8,023
pythondev
help
Well this is in the second line of `activate.bat`: `set "VIRTUAL_ENV=C:\users\ehofmann\desktop\django_projects\ops_dashboard\myvenv"`
2019-02-12T17:10:08.311000
Maricruz
pythondev_help_Maricruz_2019-02-12T17:10:08.311000
1,549,991,408.311
8,024
pythondev
help
That's my second project.
2019-02-12T17:10:11.311200
Maricruz
pythondev_help_Maricruz_2019-02-12T17:10:11.311200
1,549,991,411.3112
8,025
pythondev
help
I get the the following error "Theres an EOL while scanning ur code"
2019-02-12T17:59:33.312400
Rodrick
pythondev_help_Rodrick_2019-02-12T17:59:33.312400
1,549,994,373.3124
8,026
pythondev
help
Let me get a screenshot of the error one sec
2019-02-12T18:00:44.314200
Rodrick
pythondev_help_Rodrick_2019-02-12T18:00:44.314200
1,549,994,444.3142
8,027
pythondev
help
hello, a quick question. What's the fastest way to get the length of an array up until there are no more non-zero values. eg. usefulLen([0,1,2,0,1,0,0]) == 5
2019-02-12T18:00:52.314300
Deangelo
pythondev_help_Deangelo_2019-02-12T18:00:52.314300
1,549,994,452.3143
8,028
pythondev
help
I can reverse loop and stop when a non-zero is encountered
2019-02-12T18:01:40.315100
Deangelo
pythondev_help_Deangelo_2019-02-12T18:01:40.315100
1,549,994,500.3151
8,029
pythondev
help
Assuming you have a total length of the array already available, that's your best method.
2019-02-12T18:02:04.315700
Carmen
pythondev_help_Carmen_2019-02-12T18:02:04.315700
1,549,994,524.3157
8,030
pythondev
help
Ther
2019-02-12T18:02:14.316000
Rodrick
pythondev_help_Rodrick_2019-02-12T18:02:14.316000
1,549,994,534.316
8,031
pythondev
help
there*
2019-02-12T18:02:20.316600
Rodrick
pythondev_help_Rodrick_2019-02-12T18:02:20.316600
1,549,994,540.3166
8,032
pythondev
help
That sort of search algorithm is inherently linear, so you're not going to find much speedup anywhere.
2019-02-12T18:02:46.317200
Carmen
pythondev_help_Carmen_2019-02-12T18:02:46.317200
1,549,994,566.3172
8,033
pythondev
help
It says "There's an error in your program: EOL while scanning string literal"
2019-02-12T18:03:41.317800
Rodrick
pythondev_help_Rodrick_2019-02-12T18:03:41.317800
1,549,994,621.3178
8,034
pythondev
help
Any help?
2019-02-12T18:03:59.318600
Rodrick
pythondev_help_Rodrick_2019-02-12T18:03:59.318600
1,549,994,639.3186
8,035
pythondev
help
yeah, perhaps I was looking for the right approach and I think reverse loop makes sense because you don't need to traverse the entire array
2019-02-12T18:04:24.319400
Deangelo
pythondev_help_Deangelo_2019-02-12T18:04:24.319400
1,549,994,664.3194
8,036
pythondev
help
<@Rodrick> You must escape the last backslash on line 4
2019-02-12T18:04:28.319500
Marla
pythondev_help_Marla_2019-02-12T18:04:28.319500
1,549,994,668.3195
8,037
pythondev
help
Ohhh ok
2019-02-12T18:04:40.319800
Rodrick
pythondev_help_Rodrick_2019-02-12T18:04:40.319800
1,549,994,680.3198
8,038
pythondev
help
thanks
2019-02-12T18:04:42.320000
Rodrick
pythondev_help_Rodrick_2019-02-12T18:04:42.320000
1,549,994,682.32
8,039
pythondev
help
Right now the last backslash is telling python to escape the `"`, which is causing the EOL error
2019-02-12T18:05:03.320500
Marla
pythondev_help_Marla_2019-02-12T18:05:03.320500
1,549,994,703.3205
8,040
pythondev
help
<@Marla> that worked thanks
2019-02-12T18:05:14.320800
Rodrick
pythondev_help_Rodrick_2019-02-12T18:05:14.320800
1,549,994,714.3208
8,041
pythondev
help
It's good practice to escape them all, to avoid getting unexpected control characters in your strings.
2019-02-12T18:06:05.321400
Sasha
pythondev_help_Sasha_2019-02-12T18:06:05.321400
1,549,994,765.3214
8,042
pythondev
help
I'm messing with directories is there any other way to format them so that they arent esacped?
2019-02-12T18:07:05.322200
Rodrick
pythondev_help_Rodrick_2019-02-12T18:07:05.322200
1,549,994,825.3222
8,043
pythondev
help
Python has a "raw string" format, like `r"foo"` which ignores backslash sequences.
2019-02-12T18:08:03.322900
Sasha
pythondev_help_Sasha_2019-02-12T18:08:03.322900
1,549,994,883.3229
8,044
pythondev
help
How would i format it for that situation
2019-02-12T18:08:28.323200
Rodrick
pythondev_help_Rodrick_2019-02-12T18:08:28.323200
1,549,994,908.3232
8,045
pythondev
help
Just use the `r` prefix on your string.
2019-02-12T18:08:48.323500
Sasha
pythondev_help_Sasha_2019-02-12T18:08:48.323500
1,549,994,928.3235
8,046
pythondev
help
ok
2019-02-12T18:08:56.323700
Rodrick
pythondev_help_Rodrick_2019-02-12T18:08:56.323700
1,549,994,936.3237
8,047
pythondev
help
I did this '''pathToCopy = r"C:\Users\Raav\Downloads\"'''
2019-02-12T18:10:51.324000
Rodrick
pythondev_help_Rodrick_2019-02-12T18:10:51.324000
1,549,995,051.324
8,048
pythondev
help
Same error
2019-02-12T18:10:58.324200
Rodrick
pythondev_help_Rodrick_2019-02-12T18:10:58.324200
1,549,995,058.3242
8,049
pythondev
help
<@Sasha>
2019-02-12T18:11:43.324400
Rodrick
pythondev_help_Rodrick_2019-02-12T18:11:43.324400
1,549,995,103.3244
8,050
pythondev
help
What error?
2019-02-12T18:12:19.324700
Sasha
pythondev_help_Sasha_2019-02-12T18:12:19.324700
1,549,995,139.3247
8,051
pythondev
help
The same EOL
2019-02-12T18:13:39.324900
Rodrick
pythondev_help_Rodrick_2019-02-12T18:13:39.324900
1,549,995,219.3249
8,052
pythondev
help
I'm sorry, I misinformed you. The raw string syntax is a little bit more complex, since it still needs to be able to detect when the string ends, so escaped quotes still exist under different rules. Ignore what I said, and just escape your backslashes.
2019-02-12T18:16:00.326100
Sasha
pythondev_help_Sasha_2019-02-12T18:16:00.326100
1,549,995,360.3261
8,053
pythondev
help
Ok
2019-02-12T18:16:16.326500
Rodrick
pythondev_help_Rodrick_2019-02-12T18:16:16.326500
1,549,995,376.3265
8,054
pythondev
help
<@Carmen> I got 2 alternatives: ``` def usefulLen(a): var = len(a) while var &gt; 0: if a[var-1] &gt; 0: break var = var - 1 return var def usefulLen2(a): for i,v in reversed(list(enumerate(a))): if v &gt; 0: return i + 1 return len(a) a = [0,1,2,0,1,0,0] print(usefulLen2(a)) &gt; 5 ```
2019-02-12T18:16:51.327500
Deangelo
pythondev_help_Deangelo_2019-02-12T18:16:51.327500
1,549,995,411.3275
8,055
pythondev
help
you need to have pathToCopy = ‘C://Users//Raav//Downloads//’
2019-02-12T18:17:28.327800
Ji
pythondev_help_Ji_2019-02-12T18:17:28.327800
1,549,995,448.3278
8,056
pythondev
help
I like the second one
2019-02-12T18:17:47.328100
Deangelo
pythondev_help_Deangelo_2019-02-12T18:17:47.328100
1,549,995,467.3281
8,057
pythondev
help
So both of them are equally-readable, it just depends on what the background of the person reading it is. C/C++ programmers will probably parse the first one fairly easily. But the second one is more pythonic and easier for any particular Python dev to read, IMO.
2019-02-12T18:24:41.329900
Carmen
pythondev_help_Carmen_2019-02-12T18:24:41.329900
1,549,995,881.3299
8,058
pythondev
help
I see, thank you
2019-02-12T18:52:25.330700
Deangelo
pythondev_help_Deangelo_2019-02-12T18:52:25.330700
1,549,997,545.3307
8,059
pythondev
help
So last week I was asking about handling the editing and printing of a document with an image, and I got some advice, and I’ve finally settled on a solution, so for anyone who’s interested in how that ended up: I played around with trying to make an .odt template for a while, but lp didn’t really want to print it, so t...
2019-02-12T19:35:50.335500
Kristine
pythondev_help_Kristine_2019-02-12T19:35:50.335500
1,550,000,150.3355
8,060
pythondev
help
How about using pathlib in these cases?
2019-02-12T22:45:16.339100
Raguel
pythondev_help_Raguel_2019-02-12T22:45:16.339100
1,550,011,516.3391
8,061
pythondev
help
i'm trying to create a prebuilt source distribution for the end user. For ex, maya/houdini prepackage a python distro for windows users How's the best way to go about this? I've seen that a distro could be zipped.
2019-02-12T23:27:52.342500
Sherlyn
pythondev_help_Sherlyn_2019-02-12T23:27:52.342500
1,550,014,072.3425
8,062
pythondev
help
I'm currently using venv to create a clean distro and running pip with requirements.txt, and then copying everything in that folder. However, I think this contains a lot of unnecessary files that don't need to be copied (going off of what the maya/houdini packaged distros look like). Everything I've tried to find on ho...
2019-02-12T23:29:08.343900
Sherlyn
pythondev_help_Sherlyn_2019-02-12T23:29:08.343900
1,550,014,148.3439
8,063
pythondev
help
Help!! Pycharm does not execute my print statement in while loop it shows code unreachable. Any idea whats wrong heres the code.while True: Fruit = input("Guess my Favorite Fruit?") if Fruit == 'Apple': print("You have Guessed it right") break else: print("Please Try Again!!") #this...
2019-02-13T01:14:23.345700
Reinaldo
pythondev_help_Reinaldo_2019-02-13T01:14:23.345700
1,550,020,463.3457
8,064
pythondev
help
could you indent your python code and use backticks please
2019-02-13T01:15:41.346100
Conrad
pythondev_help_Conrad_2019-02-13T01:15:41.346100
1,550,020,541.3461
8,065
pythondev
help
Indentation issue in your code
2019-02-13T01:18:30.347600
Malika
pythondev_help_Malika_2019-02-13T01:18:30.347600
1,550,020,710.3476
8,066
pythondev
help
``` Fruit = input("Guess my Favorite Fruit?") if Fruit == 'Apple': print("You have Guessed it right") else: print("Please Try Again!!") ```
2019-02-13T01:20:05.348500
Malika
pythondev_help_Malika_2019-02-13T01:20:05.348500
1,550,020,805.3485
8,067
pythondev
help
I am new to python not really sure what it means i have learned we have to indent after the for loop
2019-02-13T01:20:15.348700
Reinaldo
pythondev_help_Reinaldo_2019-02-13T01:20:15.348700
1,550,020,815.3487
8,068
pythondev
help
The code i sent now is correcty indented, map your code with this one and you will see the indentation difference
2019-02-13T01:22:06.348900
Malika
pythondev_help_Malika_2019-02-13T01:22:06.348900
1,550,020,926.3489
8,069
pythondev
help
Thanks it worked ..
2019-02-13T01:22:12.349100
Reinaldo
pythondev_help_Reinaldo_2019-02-13T01:22:12.349100
1,550,020,932.3491
8,070
pythondev
help
yea i checked it myself
2019-02-13T01:22:44.349300
Reinaldo
pythondev_help_Reinaldo_2019-02-13T01:22:44.349300
1,550,020,964.3493
8,071
pythondev
help
Shukriya
2019-02-13T01:23:01.349500
Reinaldo
pythondev_help_Reinaldo_2019-02-13T01:23:01.349500
1,550,020,981.3495
8,072
pythondev
help
Does anyone know what order `pip` uses when you do a `pip install` from a requirements.txt file? Does it matter what order those packages are in the file?
2019-02-13T03:25:52.351300
Malena
pythondev_help_Malena_2019-02-13T03:25:52.351300
1,550,028,352.3513
8,073
pythondev
help
So uhm, I'm still having problems with `hmac` in `python` and `javascript`. Here is a sample python snippet ``` import hmac import hashlib ham = "foo" hmac.new("secret".encode(), ham.encode(), hashlib.sha256).hexdigest() ``` and here's the javascript snippet : ``` spam = "foo" let john = CryptoJS.HmacSHA256(`${spam}`...
2019-02-13T03:42:04.353200
Philip
pythondev_help_Philip_2019-02-13T03:42:04.353200
1,550,029,324.3532
8,074
pythondev
help
The thing is, when I do ``` spam = { "foo": "bar" } hmac.new("secret".encode(), str(spam).encode(), hashlib.sha256).hexdigest() ``` and ``` let ham = { "foo": "bar" } let smith = CryptoJS.HmacSHA256(`${ham}`, 'secret'); ``` the results does not match
2019-02-13T03:43:17.354100
Philip
pythondev_help_Philip_2019-02-13T03:43:17.354100
1,550,029,397.3541
8,075
pythondev
help
I'm probably doing something incorrect with the `dict` object.
2019-02-13T03:43:56.354900
Philip
pythondev_help_Philip_2019-02-13T03:43:56.354900
1,550,029,436.3549
8,076
pythondev
help
I'm thinking that `${ham}` does not result in "{'foo': 'bar'}"
2019-02-13T03:49:08.355300
Malena
pythondev_help_Malena_2019-02-13T03:49:08.355300
1,550,029,748.3553
8,077
pythondev
help
You'll also find that interestingly, `str(spam)` turns the double-quotes into single-quotes.
2019-02-13T03:49:58.355900
Malena
pythondev_help_Malena_2019-02-13T03:49:58.355900
1,550,029,798.3559
8,078
pythondev
help
First thing to try I think is to use `json.dumps(spam)` instead of `str`.
2019-02-13T03:51:27.356600
Malena
pythondev_help_Malena_2019-02-13T03:51:27.356600
1,550,029,887.3566
8,079
pythondev
help
<@Malena> maybe this is the issue you are looking for? <https://github.com/jupyter/repo2docker/issues/553> no solution yet
2019-02-13T03:54:48.357700
Shawana
pythondev_help_Shawana_2019-02-13T03:54:48.357700
1,550,030,088.3577
8,080
pythondev
help
Will try that. I'm not sure if `${ham}` does not result in "{'foo': 'bar'}" though. Currently doing it on postman
2019-02-13T03:54:50.357900
Philip
pythondev_help_Philip_2019-02-13T03:54:50.357900
1,550,030,090.3579
8,081
pythondev
help
when i do `&gt;&gt;&gt; psutil.virtual_memory()` I get the below error ``` Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/app/devops/Python/lib/python2.7/site-packages/psutil/__init__.py", line 1659, in virtual_memory ret = _psplatform.virtual_memory() File "/app/dev...
2019-02-13T03:56:49.358700
Lanelle
pythondev_help_Lanelle_2019-02-13T03:56:49.358700
1,550,030,209.3587
8,082
pythondev
help
any idea whats going on wrong here
2019-02-13T03:56:56.359100
Lanelle
pythondev_help_Lanelle_2019-02-13T03:56:56.359100
1,550,030,216.3591
8,083
pythondev
help
Maybe you can debug through.
2019-02-13T03:57:32.359200
Malena
pythondev_help_Malena_2019-02-13T03:57:32.359200
1,550,030,252.3592
8,084
pythondev
help
I tried these as well, none matches the javascript output `json.dumps(ham).encode()` `urllib.parse.urlencode(spam).encode()`
2019-02-13T03:58:47.359400
Philip
pythondev_help_Philip_2019-02-13T03:58:47.359400
1,550,030,327.3594
8,085
pythondev
help
That's great. Yeah, basically: `Logically, a Requirements file is just a list of pip install arguments placed in a file. Note that you should not rely on the items in the file being installed by pip in any particular order.`
2019-02-13T03:58:55.359600
Malena
pythondev_help_Malena_2019-02-13T03:58:55.359600
1,550,030,335.3596
8,086
pythondev
help
Ok, will try checking debug
2019-02-13T03:58:57.359800
Philip
pythondev_help_Philip_2019-02-13T03:58:57.359800
1,550,030,337.3598
8,087
pythondev
help
I suppose you could try doing it with the actual string representations as a quick test too.
2019-02-13T04:01:47.361400
Malena
pythondev_help_Malena_2019-02-13T04:01:47.361400
1,550,030,507.3614
8,088
pythondev
help
ie. `spam = '{"foo": "bar"}'`
2019-02-13T04:02:01.361600
Malena
pythondev_help_Malena_2019-02-13T04:02:01.361600
1,550,030,521.3616
8,089
pythondev
help
and `let ham = '{"foo": "bar"}'`
2019-02-13T04:02:18.361800
Malena
pythondev_help_Malena_2019-02-13T04:02:18.361800
1,550,030,538.3618
8,090
pythondev
help
Just to eliminate any doubt.
2019-02-13T04:02:29.362000
Malena
pythondev_help_Malena_2019-02-13T04:02:29.362000
1,550,030,549.362
8,091
pythondev
help
I am using pywinauto library to open a program (that is a batch file) and then want to login into this program by typing into the login box. So far I have managed to link get the program to open via the cmd prompt. But then I have difficulty typing into the new window login box my code is as follows; ``` from pywinauto...
2019-02-13T04:06:23.364600
Arturo
pythondev_help_Arturo_2019-02-13T04:06:23.364600
1,550,030,783.3646
8,092
pythondev
help
`let ham = '{"foo": "bar"}'` and `let ham = {"foo": "bar"}` does not result in the same `hmac` though
2019-02-13T04:08:14.364700
Philip
pythondev_help_Philip_2019-02-13T04:08:14.364700
1,550,030,894.3647
8,093
pythondev
help
``` let ham = {"foo": "bar"} console.log(ham) ``` This is the result
2019-02-13T04:14:55.365000
Philip
pythondev_help_Philip_2019-02-13T04:14:55.365000
1,550,031,295.365
8,094
pythondev
help
Do you suppose this is the main reason why dictionary object in python and javascript does not match when doing `hmac`?
2019-02-13T04:15:38.365400
Philip
pythondev_help_Philip_2019-02-13T04:15:38.365400
1,550,031,338.3654
8,095
pythondev
help
Oh you forgot the single quotes: let ham = '{"foo": "bar"}'
2019-02-13T04:20:38.365700
Malena
pythondev_help_Malena_2019-02-13T04:20:38.365700
1,550,031,638.3657
8,096
pythondev
help
You want to use strings.
2019-02-13T04:20:47.365900
Malena
pythondev_help_Malena_2019-02-13T04:20:47.365900
1,550,031,647.3659
8,097
pythondev
help
Hmm, but I see where you're going with this.
2019-02-13T04:21:08.366100
Malena
pythondev_help_Malena_2019-02-13T04:21:08.366100
1,550,031,668.3661
8,098
pythondev
help
Basically, you want your python dictionary to be serialized in the exact same way as your js object.
2019-02-13T04:21:49.366300
Malena
pythondev_help_Malena_2019-02-13T04:21:49.366300
1,550,031,709.3663
8,099
pythondev
help
One thing to watch out for is ensuring that they are serialized in the same way/same order.
2019-02-13T04:22:33.366500
Malena
pythondev_help_Malena_2019-02-13T04:22:33.366500
1,550,031,753.3665
8,100
pythondev
help
Yes, I mean the strings output the same `hmac` but unfortunately I don't think ```CryptoJS.HmacSHA256(`${ham}`, 'secret')``` is converted into string format. I'm still looking for an appropriate docs for the javascript
2019-02-13T04:23:33.366700
Philip
pythondev_help_Philip_2019-02-13T04:23:33.366700
1,550,031,813.3667
8,101
pythondev
help
Maybe JSON.stringify(data)
2019-02-13T04:24:15.367200
Malena
pythondev_help_Malena_2019-02-13T04:24:15.367200
1,550,031,855.3672
8,102
pythondev
help
but if its `JSON.stringify(data)` shouldn't `json.dumps` work?
2019-02-13T04:24:39.367500
Philip
pythondev_help_Philip_2019-02-13T04:24:39.367500
1,550,031,879.3675
8,103
pythondev
help
That's for the js.
2019-02-13T04:24:52.367700
Malena
pythondev_help_Malena_2019-02-13T04:24:52.367700
1,550,031,892.3677
8,104
pythondev
help
Though I'll give that a shot as well
2019-02-13T04:24:54.367900
Philip
pythondev_help_Philip_2019-02-13T04:24:54.367900
1,550,031,894.3679
8,105
pythondev
help
JSON.stringify(ham)
2019-02-13T04:25:04.368100
Malena
pythondev_help_Malena_2019-02-13T04:25:04.368100
1,550,031,904.3681
8,106
pythondev
help
Sorry, I meant to say `json.dumps` is the counterpart for `JSON.stringify` if I'm not mistaken
2019-02-13T04:25:22.368300
Philip
pythondev_help_Philip_2019-02-13T04:25:22.368300
1,550,031,922.3683
8,107
pythondev
help
I believe so.
2019-02-13T04:25:33.368500
Malena
pythondev_help_Malena_2019-02-13T04:25:33.368500
1,550,031,933.3685
8,108
pythondev
help
Ohhhhh.
2019-02-13T04:27:13.368800
Malena
pythondev_help_Malena_2019-02-13T04:27:13.368800
1,550,032,033.3688
8,109
pythondev
help
`${ham}` returns `[object Object]`
2019-02-13T04:27:33.369000
Malena
pythondev_help_Malena_2019-02-13T04:27:33.369000
1,550,032,053.369
8,110
pythondev
help
That's why it's squiff.
2019-02-13T04:27:42.369200
Malena
pythondev_help_Malena_2019-02-13T04:27:42.369200
1,550,032,062.3692
8,111
pythondev
help
Sorry. I mean ``${ham}``
2019-02-13T04:28:00.369400
Malena
pythondev_help_Malena_2019-02-13T04:28:00.369400
1,550,032,080.3694
8,112
pythondev
help
Hello guys, had anyone here deployed to Google cloud's app engine?
2019-02-13T04:40:05.370900
Shaniqua
pythondev_help_Shaniqua_2019-02-13T04:40:05.370900
1,550,032,805.3709
8,113
pythondev
help
a python app. I am trying to run multiple files
2019-02-13T04:40:30.371400
Shaniqua
pythondev_help_Shaniqua_2019-02-13T04:40:30.371400
1,550,032,830.3714
8,114
pythondev
help
So uhm, I tried ``` ham = json.dumps({"foo": "bar"}).encode() hmac.new("secret".encode(), ham, hashlib.sha256).hexdigest() ``` ``` b'{"foo": "bar"}' 5910d971d6909f5bce3abc3e035e17faa72249399d6906248ce80dde30a32285 ```
2019-02-13T04:46:37.371500
Philip
pythondev_help_Philip_2019-02-13T04:46:37.371500
1,550,033,197.3715
8,115
pythondev
help
``` let ham = {"foo": "bar"} ham = JSON.stringify(ham) console.log(ham) postman.setEnvironmentVariable('hmac', CryptoJS.HmacSHA256(`${ham}`, 'secret')); ``` ``` {"foo":"bar"} 3f3ab3986b656abb17af3eb1443ed6c08ef8fff9fea83915909d1b421aec89be ```
2019-02-13T04:47:28.371700
Philip
pythondev_help_Philip_2019-02-13T04:47:28.371700
1,550,033,248.3717
8,116
pythondev
help
It appears the serialisation is indeed different between `JSON.stringify` and `json.dumps` because whenever I try string datatype, the `hmac` generated is the same
2019-02-13T04:47:57.371900
Philip
pythondev_help_Philip_2019-02-13T04:47:57.371900
1,550,033,277.3719
8,117
pythondev
help
Finally I am able to match my python result with the javascript result using `ham = json.dumps({"foo": "bar"}, separators=(',',':')).encode()`
2019-02-13T04:50:11.372200
Philip
pythondev_help_Philip_2019-02-13T04:50:11.372200
1,550,033,411.3722
8,118
pythondev
help
Quote: `The difference is that json.dumps applies some minor pretty-printing by default but JSON.stringify does not.`
2019-02-13T04:50:28.372400
Philip
pythondev_help_Philip_2019-02-13T04:50:28.372400
1,550,033,428.3724
8,119
pythondev
help
tvm <@Malena> :taco: :taco: :taco:
2019-02-13T04:50:49.372600
Philip
pythondev_help_Philip_2019-02-13T04:50:49.372600
1,550,033,449.3726
8,120