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 | Does anyone here knows about bitcoin? | 2017-09-22T02:01:16.000195 | Collen | pythondev_help_Collen_2017-09-22T02:01:16.000195 | 1,506,045,676.000195 | 94,503 |
pythondev | help | project package manager seems to be the new thing | 2017-09-22T02:48:55.000041 | Ciera | pythondev_help_Ciera_2017-09-22T02:48:55.000041 | 1,506,048,535.000041 | 94,504 |
pythondev | help | look nice <@Elroy>. I'm just wondering why json and not yaml ? | 2017-09-22T02:49:28.000195 | Ciera | pythondev_help_Ciera_2017-09-22T02:49:28.000195 | 1,506,048,568.000195 | 94,505 |
pythondev | help | Hey! Anyone with `pygal` experience? <https://stackoverflow.com/questions/46337638/pygal-labels-on-multiseries-pie> | 2017-09-22T03:44:04.000159 | Jon | pythondev_help_Jon_2017-09-22T03:44:04.000159 | 1,506,051,844.000159 | 94,506 |
pythondev | help | Anyone know about priority management in Celery ? | 2017-09-22T06:29:32.000250 | Belva | pythondev_help_Belva_2017-09-22T06:29:32.000250 | 1,506,061,772.00025 | 94,507 |
pythondev | help | are you using rabbit? | 2017-09-22T06:45:38.000035 | Meg | pythondev_help_Meg_2017-09-22T06:45:38.000035 | 1,506,062,738.000035 | 94,508 |
pythondev | help | <@Ciera> thanks! went with json because python2/3 has a standard library, piper generates a setup.py in a project that uses piper.json. Not sure I can use third-party modules like pyYAML within setup.py. | 2017-09-22T06:45:47.000034 | Elroy | pythondev_help_Elroy_2017-09-22T06:45:47.000034 | 1,506,062,747.000034 | 94,509 |
pythondev | help | <@Belva> that’s more the broker’s responsibility for priority management, not celery | 2017-09-22T06:46:06.000238 | Meg | pythondev_help_Meg_2017-09-22T06:46:06.000238 | 1,506,062,766.000238 | 94,510 |
pythondev | help | I found the issue at the end, my priority settings were reversed :slightly_smiling_face: | 2017-09-22T06:46:39.000197 | Belva | pythondev_help_Belva_2017-09-22T06:46:39.000197 | 1,506,062,799.000197 | 94,511 |
pythondev | help | in rabbit? | 2017-09-22T06:46:49.000043 | Meg | pythondev_help_Meg_2017-09-22T06:46:49.000043 | 1,506,062,809.000043 | 94,512 |
pythondev | help | glad it was an easy fix | 2017-09-22T06:46:56.000245 | Meg | pythondev_help_Meg_2017-09-22T06:46:56.000245 | 1,506,062,816.000245 | 94,513 |
pythondev | help | looking at the new version of celery, I definitely can use some of the 4.x features | 2017-09-22T06:47:56.000126 | Meg | pythondev_help_Meg_2017-09-22T06:47:56.000126 | 1,506,062,876.000126 | 94,514 |
pythondev | help | _including in next update cycle_ | 2017-09-22T06:48:05.000195 | Meg | pythondev_help_Meg_2017-09-22T06:48:05.000195 | 1,506,062,885.000195 | 94,515 |
pythondev | help | Yes :slightly_smiling_face: | 2017-09-22T06:48:09.000072 | Belva | pythondev_help_Belva_2017-09-22T06:48:09.000072 | 1,506,062,889.000072 | 94,516 |
pythondev | help | The x-max-priority | 2017-09-22T06:48:15.000133 | Belva | pythondev_help_Belva_2017-09-22T06:48:15.000133 | 1,506,062,895.000133 | 94,517 |
pythondev | help | I though lower value would mean “prioritary” but it’s the opposite | 2017-09-22T06:48:28.000258 | Belva | pythondev_help_Belva_2017-09-22T06:48:28.000258 | 1,506,062,908.000258 | 94,518 |
pythondev | help | How can I convert number like this 2.7e-07 to 0.000000 | 2017-09-22T12:56:13.000315 | Yessenia | pythondev_help_Yessenia_2017-09-22T12:56:13.000315 | 1,506,084,973.000315 | 94,519 |
pythondev | help | You can use format with fixed point | 2017-09-22T13:03:57.000214 | Tanya | pythondev_help_Tanya_2017-09-22T13:03:57.000214 | 1,506,085,437.000214 | 94,520 |
pythondev | help | `format(2.7e-07, 'f')` | 2017-09-22T13:04:09.000061 | Tanya | pythondev_help_Tanya_2017-09-22T13:04:09.000061 | 1,506,085,449.000061 | 94,521 |
pythondev | help | you could also try casting to float | 2017-09-22T13:05:36.000038 | Orpha | pythondev_help_Orpha_2017-09-22T13:05:36.000038 | 1,506,085,536.000038 | 94,522 |
pythondev | help | float(2.7e-07) | 2017-09-22T13:05:44.000569 | Orpha | pythondev_help_Orpha_2017-09-22T13:05:44.000569 | 1,506,085,544.000569 | 94,523 |
pythondev | help | format seems to be the way to go on stack though | 2017-09-22T13:06:10.000633 | Orpha | pythondev_help_Orpha_2017-09-22T13:06:10.000633 | 1,506,085,570.000633 | 94,524 |
pythondev | help | does anyone know how to implement a repr that will be pretty printed without inheriting from list? | 2017-09-22T15:10:30.000190 | Jesusa | pythondev_help_Jesusa_2017-09-22T15:10:30.000190 | 1,506,093,030.00019 | 94,525 |
pythondev | help | e.g. | 2017-09-22T15:10:42.000070 | Jesusa | pythondev_help_Jesusa_2017-09-22T15:10:42.000070 | 1,506,093,042.00007 | 94,526 |
pythondev | help | `Dot([1, 2, 3])` is a nice repr | 2017-09-22T15:10:55.000025 | Jesusa | pythondev_help_Jesusa_2017-09-22T15:10:55.000025 | 1,506,093,055.000025 | 94,527 |
pythondev | help | but this is what happens | 2017-09-22T15:11:14.000177 | Jesusa | pythondev_help_Jesusa_2017-09-22T15:11:14.000177 | 1,506,093,074.000177 | 94,528 |
pythondev | help | `Dot([1, 2, 3, ... 100])` (where ... is actually just all numbers) | 2017-09-22T15:11:24.000061 | Jesusa | pythondev_help_Jesusa_2017-09-22T15:11:24.000061 | 1,506,093,084.000061 | 94,529 |
pythondev | help | a list will be pretty printed in ipython though | 2017-09-22T15:11:35.000608 | Jesusa | pythondev_help_Jesusa_2017-09-22T15:11:35.000608 | 1,506,093,095.000608 | 94,530 |
pythondev | help | <@Tanya> Thank you | 2017-09-22T20:31:20.000193 | Yessenia | pythondev_help_Yessenia_2017-09-22T20:31:20.000193 | 1,506,112,280.000193 | 94,531 |
pythondev | help | Hey guys new to this group | 2017-09-23T01:44:54.000037 | Cicely | pythondev_help_Cicely_2017-09-23T01:44:54.000037 | 1,506,131,094.000037 | 94,532 |
pythondev | help | <@Cicely> welcome | 2017-09-23T03:23:34.000025 | Bruno | pythondev_help_Bruno_2017-09-23T03:23:34.000025 | 1,506,137,014.000025 | 94,533 |
pythondev | help | is there a dunder method i can use in a class to return a dict, when using something like
```
opts = Config()['postgres']
```
this way `opts` is a dict that I can set up to return | 2017-09-23T03:24:55.000028 | Bruno | pythondev_help_Bruno_2017-09-23T03:24:55.000028 | 1,506,137,095.000028 | 94,534 |
pythondev | help | <@Bruno> `__getitem__`? | 2017-09-23T03:27:31.000013 | Collette | pythondev_help_Collette_2017-09-23T03:27:31.000013 | 1,506,137,251.000013 | 94,535 |
pythondev | help | yea im already using that when the resulting item only has a single element. but trying to get it working properly so I can also return a dict if needed. | 2017-09-23T03:28:24.000047 | Bruno | pythondev_help_Bruno_2017-09-23T03:28:24.000047 | 1,506,137,304.000047 | 94,536 |
pythondev | help | ooh, i think it got it. | 2017-09-23T03:30:02.000061 | Bruno | pythondev_help_Bruno_2017-09-23T03:30:02.000061 | 1,506,137,402.000061 | 94,537 |
pythondev | help | What is the best way to handle external api calls in Django? Should i put them in a model, just call them from a view or use javascript and do it all on the front end? | 2017-09-23T09:11:09.000030 | Cristal | pythondev_help_Cristal_2017-09-23T09:11:09.000030 | 1,506,157,869.00003 | 94,538 |
pythondev | help | Hey guys how can I get my current location using geopy? | 2017-09-23T13:15:40.000049 | Felicita | pythondev_help_Felicita_2017-09-23T13:15:40.000049 | 1,506,172,540.000049 | 94,539 |
pythondev | help | can anyone help me troubleshoot an issue I'm having working through chapter 5 of Tango with Django? <https://stackoverflow.com/questions/46331620/tango-with-django-v1-9-1-10-chapter-5-populate-rango-issues> | 2017-09-23T19:13:42.000019 | Meta | pythondev_help_Meta_2017-09-23T19:13:42.000019 | 1,506,194,022.000019 | 94,540 |
pythondev | help | Hi everyone! Can someone let me know what's the best way to find all runtime remote dependencies of a python program? | 2017-09-24T00:19:45.000001 | Randolph | pythondev_help_Randolph_2017-09-24T00:19:45.000001 | 1,506,212,385.000001 | 94,541 |
pythondev | help | <@Randolph> hi, see if this helps: <https://stackoverflow.com/questions/9232568/identifying-the-dependency-relationship-for-python-packages-installed-with-pip> | 2017-09-24T04:19:04.000046 | Niki | pythondev_help_Niki_2017-09-24T04:19:04.000046 | 1,506,226,744.000046 | 94,542 |
pythondev | help | I think that pipdeptree should do the job :slightly_smiling_face: | 2017-09-24T05:03:56.000059 | Mirian | pythondev_help_Mirian_2017-09-24T05:03:56.000059 | 1,506,229,436.000059 | 94,543 |
pythondev | help | can someone help me fix this error ```line 18, in question3
if edge[1] < minEdge[1] and edge[1] != minEdge[1] and edge[0] not in seen:
IndexError: string index out of range
``` | 2017-09-24T07:05:26.000033 | Honey | pythondev_help_Honey_2017-09-24T07:05:26.000033 | 1,506,236,726.000033 | 94,544 |
pythondev | help | full code ```def question3(adjDict):
newDict = {}
# make placeholder edge impossibly large
minsetEdge = ('placeHolder', 99999999)
# min edge found initially to true
found = True
seen = []
lastSeen = ''
# set initial vertex
vert = adjDict.keys()[0]
print vert
while len(seen) != len(adjDict):
for edge in vert:
if edge[0] in lastSeen and found == True:
newDict[vert].append(edge)
if edge[1] < minEdge[1] and edge[1] != minEdge[1] and edge[0] not in seen:
minEdge = edge
if minEdge[0] != 'placeholder':
newDict[vert].append(minEdge)
lastSeen = vert
minEdge = ('placeHolder', 99999999)
vert = adjDict[minEdge[0]]
else:
for edge in adjDict[lastSeen]:
# set found, now backtracking to find other edges
found = False
if edge[0] not in seen:
newDict[lastSeen].append(edge)
# set found to continue normal cycle
found = True
lastSeen = vert
minEdge = ('placeHolder', 99999999)
vert = adjDict[minEdge[0]]
if found == False:
# if edge still ot found:
# go back to the last vertex in the trail
vert = adjDict[lastSeen]
# set last seen to vertex 2 back in the trail
# using the first edge of the last seen vert in the new
# dictionary where the first added egde is the previous vertex
lastSeen = newDict[(lastSeen[0][0])]
minEdge = ('placeHolder', 99999999)
print 'Current New Dict ', newDict
return newDict
a = {
'A': [('B', 3), ('D', 4)],
'B': [('A', 3), ('E', 4), ('F', 6)],
'C': [('E', 5)],
'D': [('A', 4)],
'E': [('B', 4), ('F', 5), ('C', 5)],
'F': [('B', 6), ('E', 5)]
}
print question3(a)
# Should return
# {
# 'A': [('B', 3), ('D', 4)],
# 'B': [('A', 3), ('E', 4)],
# 'C': [('E', 5)],
# 'D': [('A', 4)],
# 'E': [('B', 4), ('C', 5), ('F', 5)],
# 'F': [('E', 5)]
# }``` | 2017-09-24T07:05:36.000034 | Honey | pythondev_help_Honey_2017-09-24T07:05:36.000034 | 1,506,236,736.000034 | 94,545 |
pythondev | help | just make a try except around and print all strings in your if cond | 2017-09-24T07:15:14.000027 | Spencer | pythondev_help_Spencer_2017-09-24T07:15:14.000027 | 1,506,237,314.000027 | 94,546 |
pythondev | help | <@Spencer> thanks could you give a code example please | 2017-09-24T08:16:39.000043 | Honey | pythondev_help_Honey_2017-09-24T08:16:39.000043 | 1,506,240,999.000043 | 94,547 |
pythondev | help | <@Spencer> I tried that but it resulted in infinite loop. see ```def question3(adjDict):
newDict = {}
# make placeholder edge impossibly large
minsetEdge = ('placeHolder', 99999999)
# min edge found initially to true
found = True
seen = []
lastSeen = ''
# set initial vertex
vert = adjDict.keys()[0]
print vert
while len(seen) != len(adjDict):
for edge in vert:
if edge[0] in lastSeen and found == True:
newDict[vert].append(edge)
try:
if edge:
if edge[1] < minEdge[1] and edge[1] != minEdge[1] and edge[0] not in seen:
minEdge = edge
if minEdge[0] != 'placeholder':
newDict[vert].append(minEdge)
lastSeen = vert
minEdge = ('placeHolder', 99999999)
vert = adjDict[minEdge[0]]
else:
for edge in adjDict[lastSeen]:
# set found, now backtracking to find other edges
found = False
if edge[0] not in seen:
newDict[lastSeen].append(edge)
# set found to continue normal cycle
found = True
lastSeen = vert
minEdge = ('placeHolder', 99999999)
vert = adjDict[minEdge[0]]
except:
print(edge)
if found == False:
# if edge still ot found:
# go back to the last vertex in the trail
vert = adjDict[lastSeen]
# set last seen to vertex 2 back in the trail
# using the first edge of the last seen vert in the new
# dictionary where the first added egde is the previous vertex
lastSeen = newDict[(lastSeen[0][0])]
minEdge = ('placeHolder', 99999999)
print 'Current New Dict ', newDict
return newDict
a = {
'A': [('B', 3), ('D', 4)],
'B': [('A', 3), ('E', 4), ('F', 6)],
'C': [('E', 5)],
'D': [('A', 4)],
'E': [('B', 4), ('F', 5), ('C', 5)],
'F': [('B', 6), ('E', 5)]
}
print question3(a)
# Should return
# {
# 'A': [('B', 3), ('D', 4)],
# 'B': [('A', 3), ('E', 4)],
# 'C': [('E', 5)],
# 'D': [('A', 4)],
# 'E': [('B', 4), ('C', 5), ('F', 5)],
# 'F': [('E', 5)]
# }``` | 2017-09-24T08:47:15.000038 | Honey | pythondev_help_Honey_2017-09-24T08:47:15.000038 | 1,506,242,835.000038 | 94,548 |
pythondev | help | oh sorry, add raise after print(edge) | 2017-09-24T08:47:48.000050 | Spencer | pythondev_help_Spencer_2017-09-24T08:47:48.000050 | 1,506,242,868.00005 | 94,549 |
pythondev | help | <@Spencer> tried that but now getting the same error ```line 20, in question3
if edge[1] < minEdge[1] and edge[1] != minEdge[1] and edge[0] not in seen:
IndexError: string index out of range``` | 2017-09-24T10:01:50.000078 | Honey | pythondev_help_Honey_2017-09-24T10:01:50.000078 | 1,506,247,310.000078 | 94,550 |
pythondev | help | and before what was printed… | 2017-09-24T10:02:32.000120 | Spencer | pythondev_help_Spencer_2017-09-24T10:02:32.000120 | 1,506,247,352.00012 | 94,551 |
pythondev | help | Are you comparing tuple with list? | 2017-09-24T10:10:52.000085 | Thu | pythondev_help_Thu_2017-09-24T10:10:52.000085 | 1,506,247,852.000085 | 94,552 |
pythondev | help | full code ```def question3(adjDict):
newDict = {}
# make placeholder edge impossibly large
minsetEdge = ('placeHolder', 99999999)
# min edge found initially to true
found = True
seen = []
lastSeen = ''
# set initial vertex
vert = adjDict.keys()[0]
print vert
while len(seen) != len(adjDict):
for edge in vert:
if edge[0] in lastSeen and found == True:
newDict[vert].append(edge)
try:
if edge:
if edge[1] < minEdge[1] and edge[1] != minEdge[1] and edge[0] not in seen:
minEdge = edge
if minEdge[0] != 'placeholder':
newDict[vert].append(minEdge)
lastSeen = vert
minEdge = ('placeHolder', 99999999)
vert = adjDict[minEdge[0]]
else:
for edge in adjDict[lastSeen]:
# set found, now backtracking to find other edges
found = False
if edge[0] not in seen:
newDict[lastSeen].append(edge)
# set found to continue normal cycle
found = True
lastSeen = vert
minEdge = ('placeHolder', 99999999)
vert = adjDict[minEdge[0]]
except:
print(edge)
raise
if found == False:
# if edge still ot found:
# go back to the last vertex in the trail
vert = adjDict[lastSeen]
# set last seen to vertex 2 back in the trail
# using the first edge of the last seen vert in the new
# dictionary where the first added egde is the previous vertex
lastSeen = newDict[(lastSeen[0][0])]
minEdge = ('placeHolder', 99999999)
print 'Current New Dict ', newDict
return newDict
a = {
'A': [('B', 3), ('D', 4)],
'B': [('A', 3), ('E', 4), ('F', 6)],
'C': [('E', 5)],
'D': [('A', 4)],
'E': [('B', 4), ('F', 5), ('C', 5)],
'F': [('B', 6), ('E', 5)]
}
print question3(a)
# Should return
# {
# 'A': [('B', 3), ('D', 4)],
# 'B': [('A', 3), ('E', 4)],
# 'C': [('E', 5)],
# 'D': [('A', 4)],
# 'E': [('B', 4), ('C', 5), ('F', 5)],
# 'F': [('E', 5)]
# }``` | 2017-09-24T10:13:22.000073 | Honey | pythondev_help_Honey_2017-09-24T10:13:22.000073 | 1,506,248,002.000073 | 94,553 |
pythondev | help | you see you printed the edge variable.. however it contains only “A” so you cant do edge[1] | 2017-09-24T10:13:45.000040 | Spencer | pythondev_help_Spencer_2017-09-24T10:13:45.000040 | 1,506,248,025.00004 | 94,554 |
pythondev | help | Maybe you should debug and watch the value for edge[1] & minEdge[1], which IDE are you using | 2017-09-24T10:15:54.000006 | Thu | pythondev_help_Thu_2017-09-24T10:15:54.000006 | 1,506,248,154.000006 | 94,555 |
pythondev | help | <@Spencer> thanks, yea edge only contains A so I only got edge[0] but not edge[1]. I guess my whole logic is wrong | 2017-09-24T10:18:05.000022 | Honey | pythondev_help_Honey_2017-09-24T10:18:05.000022 | 1,506,248,285.000022 | 94,556 |
pythondev | help | Hey! Can someone please help me?
I want to do calculations in different python scripts, each using 'custom variable types' that I created using classes in another file.
It worked okay, but now I want to move those python scripts each into their own folder, because they all use two files as inputs and give one file as output. I want it organised into folders.
This is my folder layout
```
-----main folder
|- module
| |- __init__.py
| |- custom_class.py
|- script folder 1
| |- script1.py
| |- script_1_input.csv
| |- script_1_output.csv
|- script folder 2
| |- script2.py
| |- script_2_input.csv
| |- script_2_output.csv
...
``` | 2017-09-24T11:49:00.000030 | Jon | pythondev_help_Jon_2017-09-24T11:49:00.000030 | 1,506,253,740.00003 | 94,557 |
pythondev | help | it keeps complaining about my module not having some attribute. As far as I know, I have created that attribute in my file as | 2017-09-24T11:49:18.000024 | Jon | pythondev_help_Jon_2017-09-24T11:49:18.000024 | 1,506,253,758.000024 | 94,558 |
pythondev | help | ```
class PumpSystem:
def __init__(self, name):
self.name = name
self.levels = []
#other functions down here
``` | 2017-09-24T11:49:26.000031 | Jon | pythondev_help_Jon_2017-09-24T11:49:26.000031 | 1,506,253,766.000031 | 94,559 |
pythondev | help | `AttributeError: module 'pumpsystem' has no attribute 'PumpSystem'` | 2017-09-24T11:49:32.000015 | Jon | pythondev_help_Jon_2017-09-24T11:49:32.000015 | 1,506,253,772.000015 | 94,560 |
pythondev | help | what is that file called? | 2017-09-24T15:23:31.000032 | Gabriele | pythondev_help_Gabriele_2017-09-24T15:23:31.000032 | 1,506,266,611.000032 | 94,561 |
pythondev | help | <@Jon> | 2017-09-24T15:23:42.000062 | Gabriele | pythondev_help_Gabriele_2017-09-24T15:23:42.000062 | 1,506,266,622.000062 | 94,562 |
pythondev | help | Sorry, just noticed this was hours ago... | 2017-09-24T15:24:00.000029 | Gabriele | pythondev_help_Gabriele_2017-09-24T15:24:00.000029 | 1,506,266,640.000029 | 94,563 |
pythondev | help | <@Niki> and <@Mirian>: Thank you :slightly_smiling_face: I tried --trace and it worked pretty well. | 2017-09-24T15:58:03.000070 | Randolph | pythondev_help_Randolph_2017-09-24T15:58:03.000070 | 1,506,268,683.00007 | 94,564 |
pythondev | help | i’m trying to upload a package to pypi and am having problems. I registered an account at ‘<https://pypi.python.org/pypi>', put my login info in into a .pypirc file in my home folder, filled out a setup.py file for my package with all my repository info, ran `python setup.py register -r pypitest`, and got a login error `Server response (401): You must login to access this feature` | 2017-09-24T17:57:59.000014 | Catheryn | pythondev_help_Catheryn_2017-09-24T17:57:59.000014 | 1,506,275,879.000014 | 94,565 |
pythondev | help | i followed this guide: <http://peterdowns.com/posts/first-time-with-pypi.html> | 2017-09-24T17:58:30.000050 | Catheryn | pythondev_help_Catheryn_2017-09-24T17:58:30.000050 | 1,506,275,910.00005 | 94,566 |
pythondev | help | is that outdated or something? | 2017-09-24T17:58:35.000001 | Catheryn | pythondev_help_Catheryn_2017-09-24T17:58:35.000001 | 1,506,275,915.000001 | 94,567 |
pythondev | help | oh i see. theres a seperate registration process for the pypi testing server | 2017-09-24T18:19:38.000013 | Catheryn | pythondev_help_Catheryn_2017-09-24T18:19:38.000013 | 1,506,277,178.000013 | 94,568 |
pythondev | help | Hello Guys ! I am new to this group. Good to see that such groups exists and good to be in a group like this.
I am a big fan of python
Lately, I am involved in a project, which involves many stemmed and hashed values. Does anybody have experience in dealing with hashed values, then your help is needed.
Thank you | 2017-09-24T19:14:05.000015 | Frederica | pythondev_help_Frederica_2017-09-24T19:14:05.000015 | 1,506,280,445.000015 | 94,569 |
pythondev | help | <@Frederica> It's better to ask a specific question than ask if people have knowledge in something. You are more likely to get an answer that way - either people know what you are talking about, they are interested enough to look it up, or the issue you have may be unrelated to a specific topic and more a general python issue | 2017-09-25T04:46:01.000257 | Vada | pythondev_help_Vada_2017-09-25T04:46:01.000257 | 1,506,314,761.000257 | 94,570 |
pythondev | help | I have written an api view | 2017-09-25T06:30:37.000290 | Desire | pythondev_help_Desire_2017-09-25T06:30:37.000290 | 1,506,321,037.00029 | 94,571 |
pythondev | help | how can i parse the params from get in my function? | 2017-09-25T06:30:57.000364 | Desire | pythondev_help_Desire_2017-09-25T06:30:57.000364 | 1,506,321,057.000364 | 94,572 |
pythondev | help | my url is `"<http://127.0.0.1:8000/gdfl/?params=>"NFO"` | 2017-09-25T06:31:41.000312 | Desire | pythondev_help_Desire_2017-09-25T06:31:41.000312 | 1,506,321,101.000312 | 94,573 |
pythondev | help | my url conf is `url(r'^gdfl/$', api_wrapper.views.gdfl),` | 2017-09-25T06:32:30.000260 | Desire | pythondev_help_Desire_2017-09-25T06:32:30.000260 | 1,506,321,150.00026 | 94,574 |
pythondev | help | my api view is :
```@api_view(['GET'])
def gdfl(req):
print(req.data)
return Response({'message': 'Request Body'}, status=status.HTTP_200_OK)``` | 2017-09-25T06:33:17.000167 | Desire | pythondev_help_Desire_2017-09-25T06:33:17.000167 | 1,506,321,197.000167 | 94,575 |
pythondev | help | use ```req.query_params.get('params')``` | 2017-09-25T06:34:57.000358 | Jorge | pythondev_help_Jorge_2017-09-25T06:34:57.000358 | 1,506,321,297.000358 | 94,576 |
pythondev | help | <@Jorge> Thanks that helped. | 2017-09-25T06:38:04.000228 | Desire | pythondev_help_Desire_2017-09-25T06:38:04.000228 | 1,506,321,484.000228 | 94,577 |
pythondev | help | Had forgotten this | 2017-09-25T06:38:10.000200 | Desire | pythondev_help_Desire_2017-09-25T06:38:10.000200 | 1,506,321,490.0002 | 94,578 |
pythondev | help | :+1: | 2017-09-25T06:38:18.000354 | Jorge | pythondev_help_Jorge_2017-09-25T06:38:18.000354 | 1,506,321,498.000354 | 94,579 |
pythondev | help | Is there a way i can parse an very long query param ? | 2017-09-25T06:38:32.000075 | Desire | pythondev_help_Desire_2017-09-25T06:38:32.000075 | 1,506,321,512.000075 | 94,580 |
pythondev | help | i didnt get you long param means | 2017-09-25T06:38:56.000340 | Jorge | pythondev_help_Jorge_2017-09-25T06:38:56.000340 | 1,506,321,536.00034 | 94,581 |
pythondev | help | like this ```params="exchange=NFO&instrumentIdentifier=OPTIDX_BANKNIFTY_28Sep2017_PE_24000&periodicity=MINUTE&max=1"``` | 2017-09-25T06:38:58.000324 | Desire | pythondev_help_Desire_2017-09-25T06:38:58.000324 | 1,506,321,538.000324 | 94,582 |
pythondev | help | iam not sure i think you can use the same , i guess | 2017-09-25T06:39:28.000439 | Jorge | pythondev_help_Jorge_2017-09-25T06:39:28.000439 | 1,506,321,568.000439 | 94,583 |
pythondev | help | have you tried? | 2017-09-25T06:39:39.000165 | Jorge | pythondev_help_Jorge_2017-09-25T06:39:39.000165 | 1,506,321,579.000165 | 94,584 |
pythondev | help | i did but when i did a print | 2017-09-25T06:39:43.000054 | Desire | pythondev_help_Desire_2017-09-25T06:39:43.000054 | 1,506,321,583.000054 | 94,585 |
pythondev | help | it printed only `"exchange=NFO` | 2017-09-25T06:40:36.000382 | Desire | pythondev_help_Desire_2017-09-25T06:40:36.000382 | 1,506,321,636.000382 | 94,586 |
pythondev | help | ya i have tried even i got same output | 2017-09-25T06:46:05.000183 | Jorge | pythondev_help_Jorge_2017-09-25T06:46:05.000183 | 1,506,321,965.000183 | 94,587 |
pythondev | help | <@Desire> check out query dict | 2017-09-25T08:10:45.000280 | Meg | pythondev_help_Meg_2017-09-25T08:10:45.000280 | 1,506,327,045.00028 | 94,588 |
pythondev | help | <https://docs.djangoproject.com/en/1.11/ref/request-response/#querydict-objects> | 2017-09-25T08:11:00.000252 | Meg | pythondev_help_Meg_2017-09-25T08:11:00.000252 | 1,506,327,060.000252 | 94,589 |
pythondev | help | which is accessible via `request.GET` or `<http://request.POST|request.POST>` | 2017-09-25T08:14:11.000100 | Meg | pythondev_help_Meg_2017-09-25T08:14:11.000100 | 1,506,327,251.0001 | 94,590 |
pythondev | help | and all regular dict methods are available | 2017-09-25T08:14:23.000127 | Meg | pythondev_help_Meg_2017-09-25T08:14:23.000127 | 1,506,327,263.000127 | 94,591 |
pythondev | help | so you can do `request.GET.items()` to get a list of tuples of all query params and values | 2017-09-25T08:14:52.000193 | Meg | pythondev_help_Meg_2017-09-25T08:14:52.000193 | 1,506,327,292.000193 | 94,592 |
pythondev | help | Hey guys | 2017-09-25T09:00:49.000535 | Rosalind | pythondev_help_Rosalind_2017-09-25T09:00:49.000535 | 1,506,330,049.000535 | 94,593 |
pythondev | help | How do you type this into the IDE? | 2017-09-25T09:00:57.000601 | Rosalind | pythondev_help_Rosalind_2017-09-25T09:00:57.000601 | 1,506,330,057.000601 | 94,594 |
pythondev | help | >>> from nltk.corpus import brown
>>> cfd = nltk.ConditionalFreqDist(
... (genre, word)
... for genre in brown.categories()
... for word in brown.words(categories=genre)) | 2017-09-25T09:00:59.000416 | Rosalind | pythondev_help_Rosalind_2017-09-25T09:00:59.000416 | 1,506,330,059.000416 | 94,595 |
pythondev | help | from nltk.corpus import brown
cfd = nltk.ConditionalFreqDist(
... (genre, word)
... for genre in brown.categories()
... for word in brown.words(categories=genre)) | 2017-09-25T09:01:11.000187 | Rosalind | pythondev_help_Rosalind_2017-09-25T09:01:11.000187 | 1,506,330,071.000187 | 94,596 |
pythondev | help | it always prompt me with error message | 2017-09-25T09:01:22.000238 | Rosalind | pythondev_help_Rosalind_2017-09-25T09:01:22.000238 | 1,506,330,082.000238 | 94,597 |
pythondev | help | What’s the error message? | 2017-09-25T09:01:48.000350 | Patty | pythondev_help_Patty_2017-09-25T09:01:48.000350 | 1,506,330,108.00035 | 94,598 |
pythondev | help | wait | 2017-09-25T09:04:23.000053 | Rosalind | pythondev_help_Rosalind_2017-09-25T09:04:23.000053 | 1,506,330,263.000053 | 94,599 |
pythondev | help | i think i got it | 2017-09-25T09:09:10.000162 | Rosalind | pythondev_help_Rosalind_2017-09-25T09:09:10.000162 | 1,506,330,550.000162 | 94,600 |
pythondev | help | hahahaha opps | 2017-09-25T09:09:12.000325 | Rosalind | pythondev_help_Rosalind_2017-09-25T09:09:12.000325 | 1,506,330,552.000325 | 94,601 |
pythondev | help | Thanks buddy :slightly_smiling_face: | 2017-09-25T09:51:23.000091 | Desire | pythondev_help_Desire_2017-09-25T09:51:23.000091 | 1,506,333,083.000091 | 94,602 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.