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
1
2017-07-17T09:14:33.986261
Meg
pythondev_help_Meg_2017-07-17T09:14:33.986261
1,500,282,873.986261
85,803
pythondev
help
<@Gabriele> Thanks for the link! This is so much better than building my own system from scratch.
2017-07-17T09:18:09.092084
Thomasina
pythondev_help_Thomasina_2017-07-17T09:18:09.092084
1,500,283,089.092084
85,804
pythondev
help
no problem
2017-07-17T09:18:42.108187
Gabriele
pythondev_help_Gabriele_2017-07-17T09:18:42.108187
1,500,283,122.108187
85,805
pythondev
help
Always check what already exist ;)
2017-07-17T09:19:01.117536
Ciera
pythondev_help_Ciera_2017-07-17T09:19:01.117536
1,500,283,141.117536
85,806
pythondev
help
<@Ciera> Yep, not sure why it didn't even occur to me. I gotta make that my motto. :joy:
2017-07-17T09:20:32.162654
Thomasina
pythondev_help_Thomasina_2017-07-17T09:20:32.162654
1,500,283,232.162654
85,807
pythondev
help
yeah, good idea
2017-07-17T09:21:06.179251
Meg
pythondev_help_Meg_2017-07-17T09:21:06.179251
1,500,283,266.179251
85,808
pythondev
help
"is there anything already done for this?" is a good question to ask
2017-07-17T09:21:28.190236
Meg
pythondev_help_Meg_2017-07-17T09:21:28.190236
1,500,283,288.190236
85,809
pythondev
help
saves _a lot_ of work
2017-07-17T09:21:34.193076
Meg
pythondev_help_Meg_2017-07-17T09:21:34.193076
1,500,283,294.193076
85,810
pythondev
help
<@Thomasina> you should also consider limiting the precision of your lat/lng coordinates to something like `decimal(9, 6)`. More precision than that often leads to misrepresented accuracy. 6 decimal places is accurate to about 4 inches...
2017-07-17T10:10:48.843957
Willena
pythondev_help_Willena_2017-07-17T10:10:48.843957
1,500,286,248.843957
85,811
pythondev
help
<@Willena> Oh, good point. Thanks! :smile:
2017-07-17T10:29:00.504146
Thomasina
pythondev_help_Thomasina_2017-07-17T10:29:00.504146
1,500,287,340.504146
85,812
pythondev
help
why cant i get the absolute value of the number i input based on this code?
2017-07-17T14:14:43.659910
Kandis
pythondev_help_Kandis_2017-07-17T14:14:43.659910
1,500,300,883.65991
85,813
pythondev
help
<@Kandis> you are calling the function from inside it, but after `return`
2017-07-17T14:18:52.797838
Patty
pythondev_help_Patty_2017-07-17T14:18:52.797838
1,500,301,132.797838
85,814
pythondev
help
So, the function has already run
2017-07-17T14:18:59.801857
Patty
pythondev_help_Patty_2017-07-17T14:18:59.801857
1,500,301,139.801857
85,815
pythondev
help
Input always returns a string I believe
2017-07-17T14:18:59.802199
Ciera
pythondev_help_Ciera_2017-07-17T14:18:59.802199
1,500,301,139.802199
85,816
pythondev
help
both <@Patty> and <@Ciera> are right, note if you are using python2 you need to use the `raw_input` function
2017-07-17T14:19:34.821427
Beula
pythondev_help_Beula_2017-07-17T14:19:34.821427
1,500,301,174.821427
85,817
pythondev
help
python 3
2017-07-17T14:20:01.836720
Kandis
pythondev_help_Kandis_2017-07-17T14:20:01.836720
1,500,301,201.83672
85,818
pythondev
help
Also, you need to have `x()` take an argument that is passed in
2017-07-17T14:20:03.837954
Patty
pythondev_help_Patty_2017-07-17T14:20:03.837954
1,500,301,203.837954
85,819
pythondev
help
Yeah, looks like the indentation is off for that print
2017-07-17T14:20:20.848235
Beula
pythondev_help_Beula_2017-07-17T14:20:20.848235
1,500,301,220.848235
85,820
pythondev
help
like this?
2017-07-17T14:20:29.853447
Kandis
pythondev_help_Kandis_2017-07-17T14:20:29.853447
1,500,301,229.853447
85,821
pythondev
help
Yep, now convert the `num` to an `int`
2017-07-17T14:20:35.857261
Beula
pythondev_help_Beula_2017-07-17T14:20:35.857261
1,500,301,235.857261
85,822
pythondev
help
<@Beula> woah it worked. what do we need to convert it to an int
2017-07-17T14:21:33.890105
Kandis
pythondev_help_Kandis_2017-07-17T14:21:33.890105
1,500,301,293.890105
85,823
pythondev
help
i did this: num=int(input(‘enter a number: ‘))
2017-07-17T14:21:45.896843
Kandis
pythondev_help_Kandis_2017-07-17T14:21:45.896843
1,500,301,305.896843
85,824
pythondev
help
That'll do :slightly_smiling_face: Of course, test inserting a string instead :wink:
2017-07-17T14:22:05.908470
Beula
pythondev_help_Beula_2017-07-17T14:22:05.908470
1,500,301,325.90847
85,825
pythondev
help
woahhh so cool. thanks very much!
2017-07-17T14:22:27.920807
Kandis
pythondev_help_Kandis_2017-07-17T14:22:27.920807
1,500,301,347.920807
85,826
pythondev
help
No problem!
2017-07-17T14:23:01.940416
Patty
pythondev_help_Patty_2017-07-17T14:23:01.940416
1,500,301,381.940416
85,827
pythondev
help
<@Beula> <@Patty> <@Ciera> :taco:
2017-07-17T14:23:02.941094
Kandis
pythondev_help_Kandis_2017-07-17T14:23:02.941094
1,500,301,382.941094
85,828
pythondev
help
haha!
2017-07-17T14:23:11.945805
Kandis
pythondev_help_Kandis_2017-07-17T14:23:11.945805
1,500,301,391.945805
85,829
pythondev
help
Everybody gets :taco: :smile:
2017-07-17T14:36:07.402666
Shelly
pythondev_help_Shelly_2017-07-17T14:36:07.402666
1,500,302,167.402666
85,830
pythondev
help
<@Shelly> Fact: I have never eaten, nor even seen, a taco.
2017-07-17T14:38:16.475687
Thomasina
pythondev_help_Thomasina_2017-07-17T14:38:16.475687
1,500,302,296.475687
85,831
pythondev
help
I think I'm a freak!
2017-07-17T14:38:39.488308
Thomasina
pythondev_help_Thomasina_2017-07-17T14:38:39.488308
1,500,302,319.488308
85,832
pythondev
help
I have never eaten a real taco but I had once prepared at my place. Do not ask me how it tasted. :smile:
2017-07-17T14:39:35.520127
Shelly
pythondev_help_Shelly_2017-07-17T14:39:35.520127
1,500,302,375.520127
85,833
pythondev
help
Oh, glad I'm not completely alone then. I must say though I'm awfully curious to try one though. I'm pretty sure there's a place within walking distance of here that sells tacos. I may just have to check them out.
2017-07-17T14:40:23.547649
Thomasina
pythondev_help_Thomasina_2017-07-17T14:40:23.547649
1,500,302,423.547649
85,834
pythondev
help
:yum:
2017-07-17T14:40:45.559799
Beula
pythondev_help_Beula_2017-07-17T14:40:45.559799
1,500,302,445.559799
85,835
pythondev
help
I've seen plenty of tacos in various commercials and whatnot and to be frank they do look appetizing.
2017-07-17T14:40:49.561837
Thomasina
pythondev_help_Thomasina_2017-07-17T14:40:49.561837
1,500,302,449.561837
85,836
pythondev
help
interesting
2017-07-17T14:42:00.602240
Meg
pythondev_help_Meg_2017-07-17T14:42:00.602240
1,500,302,520.60224
85,837
pythondev
help
I prefer burritos over tacos, tbh
2017-07-17T14:42:06.605358
Meg
pythondev_help_Meg_2017-07-17T14:42:06.605358
1,500,302,526.605358
85,838
pythondev
help
<@Thomasina> tacos are a perfect street food.
2017-07-17T14:42:07.606210
Levi
pythondev_help_Levi_2017-07-17T14:42:07.606210
1,500,302,527.60621
85,839
pythondev
help
especially after an afternoon on the bike
2017-07-17T14:42:25.616024
Meg
pythondev_help_Meg_2017-07-17T14:42:25.616024
1,500,302,545.616024
85,840
pythondev
help
corn tortillas or nothing :smile:
2017-07-17T14:42:38.623638
Levi
pythondev_help_Levi_2017-07-17T14:42:38.623638
1,500,302,558.623638
85,841
pythondev
help
rice, beans and meat are a perfect combo to recover
2017-07-17T14:42:39.623980
Meg
pythondev_help_Meg_2017-07-17T14:42:39.623980
1,500,302,559.62398
85,842
pythondev
help
hi anybody here use rabbitmq can give me any tips on how to make it faster ? Im using the client and server as here in the docs <https://www.rabbitmq.com/tutorials/tutorial-six-python.html>
2017-07-17T14:44:42.694773
Coretta
pythondev_help_Coretta_2017-07-17T14:44:42.694773
1,500,302,682.694773
85,843
pythondev
help
I’m asking your help because I’m in a little rush is for tommorrow my work
2017-07-17T14:44:56.702405
Coretta
pythondev_help_Coretta_2017-07-17T14:44:56.702405
1,500,302,696.702405
85,844
pythondev
help
Imagining having a taco outdoors after a nice bike ride...ah now I'm hungry!
2017-07-17T14:45:16.713754
Thomasina
pythondev_help_Thomasina_2017-07-17T14:45:16.713754
1,500,302,716.713754
85,845
pythondev
help
Hello, I'm in need of some help. I can't figure out why my if statement in the while loop keeps evaluating to True and not breaking out of the loop. <https://pastebin.com/5dCYKRMP>
2017-07-17T14:46:05.742595
Landon
pythondev_help_Landon_2017-07-17T14:46:05.742595
1,500,302,765.742595
85,846
pythondev
help
<@Coretta> what is slow about it?
2017-07-17T14:46:17.749427
Patty
pythondev_help_Patty_2017-07-17T14:46:17.749427
1,500,302,777.749427
85,847
pythondev
help
and what are you trying to get to in terms of speed?
2017-07-17T14:46:26.754171
Patty
pythondev_help_Patty_2017-07-17T14:46:26.754171
1,500,302,786.754171
85,848
pythondev
help
rabbitmq is already very fast
2017-07-17T14:46:32.758213
Patty
pythondev_help_Patty_2017-07-17T14:46:32.758213
1,500,302,792.758213
85,849
pythondev
help
<@Patty> something between the answer and the response I’m getting above 2 second time
2017-07-17T14:48:10.813186
Coretta
pythondev_help_Coretta_2017-07-17T14:48:10.813186
1,500,302,890.813186
85,850
pythondev
help
so yeah Im wonder what Im doing wrong
2017-07-17T14:48:25.822153
Coretta
pythondev_help_Coretta_2017-07-17T14:48:25.822153
1,500,302,905.822153
85,851
pythondev
help
:disappointed:
2017-07-17T14:48:28.824090
Coretta
pythondev_help_Coretta_2017-07-17T14:48:28.824090
1,500,302,908.82409
85,852
pythondev
help
Is this specifically with the part of the tutorial?
2017-07-17T14:50:00.875403
Patty
pythondev_help_Patty_2017-07-17T14:50:00.875403
1,500,303,000.875403
85,853
pythondev
help
I use the same code of the tutorial just change the finnocci funtion for a bot
2017-07-17T14:51:08.914497
Coretta
pythondev_help_Coretta_2017-07-17T14:51:08.914497
1,500,303,068.914497
85,854
pythondev
help
that i have
2017-07-17T14:51:14.917284
Coretta
pythondev_help_Coretta_2017-07-17T14:51:14.917284
1,500,303,074.917284
85,855
pythondev
help
I only want liitle tips like what is faster no_ack=True or no_ack=False
2017-07-17T14:51:53.939909
Coretta
pythondev_help_Coretta_2017-07-17T14:51:53.939909
1,500,303,113.939909
85,856
pythondev
help
how to config the options
2017-07-17T14:52:07.947715
Coretta
pythondev_help_Coretta_2017-07-17T14:52:07.947715
1,500,303,127.947715
85,857
pythondev
help
it’s faster without acking, and with prefetching generally
2017-07-17T14:52:15.952162
Patty
pythondev_help_Patty_2017-07-17T14:52:15.952162
1,500,303,135.952162
85,858
pythondev
help
I’d recommend to choose no_ack not by speed but by your use case
2017-07-17T14:54:45.039000
Luana
pythondev_help_Luana_2017-07-17T14:54:45.039000
1,500,303,285.039
85,859
pythondev
help
also is the function on the bot is running taking that long time? or is that from after the function is completely to sending back to the response? that should only be milliseconds
2017-07-17T14:55:14.055279
Patty
pythondev_help_Patty_2017-07-17T14:55:14.055279
1,500,303,314.055279
85,860
pythondev
help
what cant i return i
2017-07-17T15:02:01.291441
Kandis
pythondev_help_Kandis_2017-07-17T15:02:01.291441
1,500,303,721.291441
85,861
pythondev
help
What does it return right now?
2017-07-17T15:02:17.300544
Beula
pythondev_help_Beula_2017-07-17T15:02:17.300544
1,500,303,737.300544
85,862
pythondev
help
BTW, you can simplify that: `smaller = min(x, y)` :smile:
2017-07-17T15:02:26.305236
Beula
pythondev_help_Beula_2017-07-17T15:02:26.305236
1,500,303,746.305236
85,863
pythondev
help
the specific ‘i’ i wanna get in that range
2017-07-17T15:02:47.316882
Kandis
pythondev_help_Kandis_2017-07-17T15:02:47.316882
1,500,303,767.316882
85,864
pythondev
help
you can return from within the `for` if you want, no reason to keep iterating (otherwise you will *always* get the last `i` value)
2017-07-17T15:03:47.349060
Beula
pythondev_help_Beula_2017-07-17T15:03:47.349060
1,500,303,827.34906
85,865
pythondev
help
mhm? can i return i ?
2017-07-17T15:04:52.384695
Kandis
pythondev_help_Kandis_2017-07-17T15:04:52.384695
1,500,303,892.384695
85,866
pythondev
help
want do you mean ha!
2017-07-17T15:05:14.396812
Kandis
pythondev_help_Kandis_2017-07-17T15:05:14.396812
1,500,303,914.396812
85,867
pythondev
help
``` for i in range(10): if i == 6: return i ```
2017-07-17T15:05:24.402068
Beula
pythondev_help_Beula_2017-07-17T15:05:24.402068
1,500,303,924.402068
85,868
pythondev
help
Instead of waiting to return after the loop
2017-07-17T15:05:30.405248
Beula
pythondev_help_Beula_2017-07-17T15:05:30.405248
1,500,303,930.405248
85,869
pythondev
help
but the problem of my code is not this
2017-07-17T15:06:49.447753
Kandis
pythondev_help_Kandis_2017-07-17T15:06:49.447753
1,500,304,009.447753
85,870
pythondev
help
i couldnt get output with the code i pasted
2017-07-17T15:07:00.453558
Kandis
pythondev_help_Kandis_2017-07-17T15:07:00.453558
1,500,304,020.453558
85,871
pythondev
help
oh i got 24 but its the wrong answer.
2017-07-17T15:07:41.474677
Kandis
pythondev_help_Kandis_2017-07-17T15:07:41.474677
1,500,304,061.474677
85,872
pythondev
help
it should be 6
2017-07-17T15:07:46.477185
Kandis
pythondev_help_Kandis_2017-07-17T15:07:46.477185
1,500,304,066.477185
85,873
pythondev
help
after i changed the thing i return to this:
2017-07-17T15:08:17.493391
Kandis
pythondev_help_Kandis_2017-07-17T15:08:17.493391
1,500,304,097.493391
85,874
pythondev
help
then it worked and got 6
2017-07-17T15:08:33.501568
Kandis
pythondev_help_Kandis_2017-07-17T15:08:33.501568
1,500,304,113.501568
85,875
pythondev
help
i dont understand why
2017-07-17T15:08:45.507860
Kandis
pythondev_help_Kandis_2017-07-17T15:08:45.507860
1,500,304,125.50786
85,876
pythondev
help
<@Shelly>
2017-07-17T15:08:52.511462
Kandis
pythondev_help_Kandis_2017-07-17T15:08:52.511462
1,500,304,132.511462
85,877
pythondev
help
because in Python variables are scoped for the function in this case. So `i` keeps getting re-assigned as it loops over the `range`
2017-07-17T15:09:52.542038
Beula
pythondev_help_Beula_2017-07-17T15:09:52.542038
1,500,304,192.542038
85,878
pythondev
help
If you want to use the `i` without an intermediate variable, either return the `i` directly (as I demonstrated), or use the `break` statement
2017-07-17T15:10:11.551314
Beula
pythondev_help_Beula_2017-07-17T15:10:11.551314
1,500,304,211.551314
85,879
pythondev
help
<@Beula> what is the code look like when you return the i directly
2017-07-17T15:16:18.739968
Kandis
pythondev_help_Kandis_2017-07-17T15:16:18.739968
1,500,304,578.739968
85,880
pythondev
help
Basically drop in my code snippet!
2017-07-17T15:16:37.749064
Beula
pythondev_help_Beula_2017-07-17T15:16:37.749064
1,500,304,597.749064
85,881
pythondev
help
Those should be equivalent
2017-07-17T15:17:43.782760
Beula
pythondev_help_Beula_2017-07-17T15:17:43.782760
1,500,304,663.78276
85,882
pythondev
help
i appreciate it but they dont work
2017-07-17T15:18:49.816024
Kandis
pythondev_help_Kandis_2017-07-17T15:18:49.816024
1,500,304,729.816024
85,883
pythondev
help
i got this:
2017-07-17T15:19:02.822346
Kandis
pythondev_help_Kandis_2017-07-17T15:19:02.822346
1,500,304,742.822346
85,884
pythondev
help
if x % i == 0 and y % i == 0: ^ TabError: inconsistent use of tabs and spaces in indentation
2017-07-17T15:19:05.824132
Kandis
pythondev_help_Kandis_2017-07-17T15:19:05.824132
1,500,304,745.824132
85,885
pythondev
help
<@Kandis> Did you mix spaces and tabs?
2017-07-17T15:19:56.849896
Thomasina
pythondev_help_Thomasina_2017-07-17T15:19:56.849896
1,500,304,796.849896
85,886
pythondev
help
I assume she copied my snippet
2017-07-17T15:20:03.853440
Beula
pythondev_help_Beula_2017-07-17T15:20:03.853440
1,500,304,803.85344
85,887
pythondev
help
Oh sorry, just caught that
2017-07-17T15:20:14.859664
Thomasina
pythondev_help_Thomasina_2017-07-17T15:20:14.859664
1,500,304,814.859664
85,888
pythondev
help
Looks like what you posed used tabs <@Kandis> - the python standard is to use 4 spaces instead
2017-07-17T15:20:20.862590
Beula
pythondev_help_Beula_2017-07-17T15:20:20.862590
1,500,304,820.86259
85,889
pythondev
help
So my stuff is configured different, if you re-do the indentation to match that visually, you will be good
2017-07-17T15:20:36.871030
Beula
pythondev_help_Beula_2017-07-17T15:20:36.871030
1,500,304,836.87103
85,890
pythondev
help
yea i copied and pasted
2017-07-17T15:20:38.871851
Kandis
pythondev_help_Kandis_2017-07-17T15:20:38.871851
1,500,304,838.871851
85,891
pythondev
help
oh
2017-07-17T15:20:42.874304
Kandis
pythondev_help_Kandis_2017-07-17T15:20:42.874304
1,500,304,842.874304
85,892
pythondev
help
if you're using ipython, just do `%paste`
2017-07-17T15:20:43.874507
Meg
pythondev_help_Meg_2017-07-17T15:20:43.874507
1,500,304,843.874507
85,893
pythondev
help
Is it the standard? :open_mouth: I've been using tabs from day 1.
2017-07-17T15:20:54.880481
Thomasina
pythondev_help_Thomasina_2017-07-17T15:20:54.880481
1,500,304,854.880481
85,894
pythondev
help
<https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces>
2017-07-17T15:21:35.901558
Beula
pythondev_help_Beula_2017-07-17T15:21:35.901558
1,500,304,895.901558
85,895
pythondev
help
PEP8 my friend :smile:
2017-07-17T15:21:42.904958
Beula
pythondev_help_Beula_2017-07-17T15:21:42.904958
1,500,304,902.904958
85,896
pythondev
help
i am using pycharm <@Meg>
2017-07-17T15:22:13.920934
Kandis
pythondev_help_Kandis_2017-07-17T15:22:13.920934
1,500,304,933.920934
85,897
pythondev
help
and me too ive been using tabs and nothing wrong yet
2017-07-17T15:22:18.923482
Kandis
pythondev_help_Kandis_2017-07-17T15:22:18.923482
1,500,304,938.923482
85,898
pythondev
help
Oh, shoot! My bad. Although I'm curious why spaces are the standard. I think it seems so much easier to press tab once for every indent than space four times for every indent.
2017-07-17T15:22:51.940745
Thomasina
pythondev_help_Thomasina_2017-07-17T15:22:51.940745
1,500,304,971.940745
85,899
pythondev
help
omg i still get this: IndentationError: unindent does not match any outer indentation level
2017-07-17T15:23:02.946266
Kandis
pythondev_help_Kandis_2017-07-17T15:23:02.946266
1,500,304,982.946266
85,900
pythondev
help
my 4 spaces is the same as 1 tab
2017-07-17T15:23:13.951805
Kandis
pythondev_help_Kandis_2017-07-17T15:23:13.951805
1,500,304,993.951805
85,901
pythondev
help
<@Kandis> You're trying to convert <@Beula>'s snippet from spaces to tabs?
2017-07-17T15:23:29.959815
Thomasina
pythondev_help_Thomasina_2017-07-17T15:23:29.959815
1,500,305,009.959815
85,902