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
|
so, maybe an edge case?
|
2017-07-27T13:25:57.888632
|
Meg
|
pythondev_help_Meg_2017-07-27T13:25:57.888632
| 1,501,161,957.888632 | 87,603 |
pythondev
|
help
|
<https://gitlab.com/pycqa/flake8/issues/353>
|
2017-07-27T13:30:21.044378
|
Sade
|
pythondev_help_Sade_2017-07-27T13:30:21.044378
| 1,501,162,221.044378 | 87,604 |
pythondev
|
help
|
Finally finished this stupid gui. It should work
|
2017-07-27T14:46:16.743446
|
Myong
|
pythondev_help_Myong_2017-07-27T14:46:16.743446
| 1,501,166,776.743446 | 87,605 |
pythondev
|
help
|
omg it works
|
2017-07-27T14:58:32.173473
|
Myong
|
pythondev_help_Myong_2017-07-27T14:58:32.173473
| 1,501,167,512.173473 | 87,606 |
pythondev
|
help
|
:awwyea:
|
2017-07-27T15:08:32.511741
|
Junita
|
pythondev_help_Junita_2017-07-27T15:08:32.511741
| 1,501,168,112.511741 | 87,607 |
pythondev
|
help
|
Hey everyone. I need some help with django, particualrly behave-django. I have some tests, some of which are dependent on there being some entries in a specific table. I thought Django would run migrations when it sets up the test database and created one but to no avail. I'd like to know if there's a way to add those table entries after the test database has been created. I'm using DRF.
|
2017-07-27T15:09:06.529675
|
Hattie
|
pythondev_help_Hattie_2017-07-27T15:09:06.529675
| 1,501,168,146.529675 | 87,608 |
pythondev
|
help
|
You may want to ask in <#C0LMFRMB5|django> <@Hattie> instead of here
|
2017-07-27T15:09:28.541586
|
Beula
|
pythondev_help_Beula_2017-07-27T15:09:28.541586
| 1,501,168,168.541586 | 87,609 |
pythondev
|
help
|
Cool, thanks.
|
2017-07-27T15:10:10.563324
|
Hattie
|
pythondev_help_Hattie_2017-07-27T15:10:10.563324
| 1,501,168,210.563324 | 87,610 |
pythondev
|
help
|
Anyone update PyCharm in the last couple of days and have your colors change?
|
2017-07-27T15:18:02.809167
|
Meghan
|
pythondev_help_Meghan_2017-07-27T15:18:02.809167
| 1,501,168,682.809167 | 87,611 |
pythondev
|
help
|
I don't think function names were colored before.
|
2017-07-27T15:20:09.875458
|
Meghan
|
pythondev_help_Meghan_2017-07-27T15:20:09.875458
| 1,501,168,809.875458 | 87,612 |
pythondev
|
help
|
Mine have been for as long as I can recall - but maybe it accidentally overrode your config
|
2017-07-27T15:30:49.211842
|
Beula
|
pythondev_help_Beula_2017-07-27T15:30:49.211842
| 1,501,169,449.211842 | 87,613 |
pythondev
|
help
|
It looks like many of the colors changed a bit. I don't remember what color functions were, maybe they were highlighted, but it is different. The TODO: colors also look a little different.
|
2017-07-27T15:31:42.240719
|
Meghan
|
pythondev_help_Meghan_2017-07-27T15:31:42.240719
| 1,501,169,502.240719 | 87,614 |
pythondev
|
help
|
has anyone used the attribute "placeholder" when using pyramid and deform?
|
2017-07-27T15:57:18.051831
|
Salome
|
pythondev_help_Salome_2017-07-27T15:57:18.051831
| 1,501,171,038.051831 | 87,615 |
pythondev
|
help
|
I need to add a placeholder to a field but Im not actually coding an html page. so this would need to be done while constructing the schema of the table fields
|
2017-07-27T15:57:50.069051
|
Salome
|
pythondev_help_Salome_2017-07-27T15:57:50.069051
| 1,501,171,070.069051 | 87,616 |
pythondev
|
help
|
<@Meghan> yeah my colors got changed too
|
2017-07-27T15:59:38.128710
|
Ciera
|
pythondev_help_Ciera_2017-07-27T15:59:38.128710
| 1,501,171,178.12871 | 87,617 |
pythondev
|
help
|
<@Ciera> Are they easy to change back? I think I liked the old ones better.
|
2017-07-27T16:00:04.143345
|
Meghan
|
pythondev_help_Meghan_2017-07-27T16:00:04.143345
| 1,501,171,204.143345 | 87,618 |
pythondev
|
help
|
Yeah color are easy to edit. But you need to figure out what they where before. I launched the previous version and compared some
|
2017-07-27T16:00:49.169740
|
Ciera
|
pythondev_help_Ciera_2017-07-27T16:00:49.169740
| 1,501,171,249.16974 | 87,619 |
pythondev
|
help
|
Oh I guess I am on the EAP, I guess mine have been _different_ for a while :facepalm:
|
2017-07-27T16:00:51.170874
|
Beula
|
pythondev_help_Beula_2017-07-27T16:00:51.170874
| 1,501,171,251.170874 | 87,620 |
pythondev
|
help
|
Mine were changed with 2017.2
|
2017-07-27T16:01:10.180550
|
Ciera
|
pythondev_help_Ciera_2017-07-27T16:01:10.180550
| 1,501,171,270.18055 | 87,621 |
pythondev
|
help
|
I tried the IntelliJ theme, I can't stand it, it's too bright and the colors don't stand out much.
|
2017-07-27T16:03:53.269190
|
Meghan
|
pythondev_help_Meghan_2017-07-27T16:03:53.269190
| 1,501,171,433.26919 | 87,622 |
pythondev
|
help
|
I use darcula with small modification
|
2017-07-27T16:05:00.304306
|
Ciera
|
pythondev_help_Ciera_2017-07-27T16:05:00.304306
| 1,501,171,500.304306 | 87,623 |
pythondev
|
help
|
Yeah, that's what I use. Only issue I have with the prior to this week colors is that I want multi-line TODOs.
|
2017-07-27T16:05:26.318193
|
Meghan
|
pythondev_help_Meghan_2017-07-27T16:05:26.318193
| 1,501,171,526.318193 | 87,624 |
pythondev
|
help
|
That's more of how it parses those than the color though.
|
2017-07-27T16:05:43.326828
|
Meghan
|
pythondev_help_Meghan_2017-07-27T16:05:43.326828
| 1,501,171,543.326828 | 87,625 |
pythondev
|
help
|
multiline todos would be nice - have you had that working before?
|
2017-07-27T16:09:06.431629
|
Beula
|
pythondev_help_Beula_2017-07-27T16:09:06.431629
| 1,501,171,746.431629 | 87,626 |
pythondev
|
help
|
I haven't.
|
2017-07-27T16:09:12.434756
|
Meghan
|
pythondev_help_Meghan_2017-07-27T16:09:12.434756
| 1,501,171,752.434756 | 87,627 |
pythondev
|
help
|
Just something I would like to see.
|
2017-07-27T16:09:18.437788
|
Meghan
|
pythondev_help_Meghan_2017-07-27T16:09:18.437788
| 1,501,171,758.437788 | 87,628 |
pythondev
|
help
|
Aww, I thought you were about to make my week!
|
2017-07-27T16:09:24.440918
|
Beula
|
pythondev_help_Beula_2017-07-27T16:09:24.440918
| 1,501,171,764.440918 | 87,629 |
pythondev
|
help
|
It would be something worth requesting, I would think.
|
2017-07-27T16:13:50.577264
|
Meghan
|
pythondev_help_Meghan_2017-07-27T16:13:50.577264
| 1,501,172,030.577264 | 87,630 |
pythondev
|
help
|
Maybe I'll offer to pay for a year if they add it.
|
2017-07-27T16:13:57.581150
|
Meghan
|
pythondev_help_Meghan_2017-07-27T16:13:57.581150
| 1,501,172,037.58115 | 87,631 |
pythondev
|
help
|
Appreciate any help to point me to the right direction, not familiar with os class, how the files look like is in the comment :pray:
|
2017-07-27T16:44:32.551331
|
Jed
|
pythondev_help_Jed_2017-07-27T16:44:32.551331
| 1,501,173,872.551331 | 87,632 |
pythondev
|
help
|
`if f.filename in os.listdir(dir_name)`
Maybe?
|
2017-07-27T17:13:42.443181
|
Deedee
|
pythondev_help_Deedee_2017-07-27T17:13:42.443181
| 1,501,175,622.443181 | 87,633 |
pythondev
|
help
|
yeah.. this works for me if I have zip file that extracts to csv if csv not there. But print "csv-filename already exists" if csv w/ same same already exists.
|
2017-07-27T17:33:07.971767
|
Deedee
|
pythondev_help_Deedee_2017-07-27T17:33:07.971767
| 1,501,176,787.971767 | 87,634 |
pythondev
|
help
|
Thanks! This is what I have so far, not working as I thought it would be, instead of file_a_1, file_a_2, file_b_1, file_b_2. It gives file_a_1, file_a_2, file_b_3, file_b_4
|
2017-07-27T17:43:30.232361
|
Jed
|
pythondev_help_Jed_2017-07-27T17:43:30.232361
| 1,501,177,410.232361 | 87,635 |
pythondev
|
help
|
update line 1 to:
```
import os
import os.path
from zipfile import ZipFile
```
|
2017-07-27T17:55:56.531641
|
Deedee
|
pythondev_help_Deedee_2017-07-27T17:55:56.531641
| 1,501,178,156.531641 | 87,636 |
pythondev
|
help
|
this `zip_ref = zipfile.ZipFile(file_name)` to `zip_ref = ZipFile(file_name)`
|
2017-07-27T17:56:46.551821
|
Deedee
|
pythondev_help_Deedee_2017-07-27T17:56:46.551821
| 1,501,178,206.551821 | 87,637 |
pythondev
|
help
|
quick question assume I have a list `["abc","ab","cda" ..]` I want to remove all elements that are substring i.e. in this case it would be `["abc","cda"]`
|
2017-07-27T17:59:11.609328
|
Thelma
|
pythondev_help_Thelma_2017-07-27T17:59:11.609328
| 1,501,178,351.609328 | 87,638 |
pythondev
|
help
|
what is the quickest way to do that?
|
2017-07-27T18:00:08.633655
|
Thelma
|
pythondev_help_Thelma_2017-07-27T18:00:08.633655
| 1,501,178,408.633655 | 87,639 |
pythondev
|
help
|
len?
|
2017-07-27T18:00:16.637497
|
Jed
|
pythondev_help_Jed_2017-07-27T18:00:16.637497
| 1,501,178,416.637497 | 87,640 |
pythondev
|
help
|
huh?
|
2017-07-27T18:00:47.650866
|
Thelma
|
pythondev_help_Thelma_2017-07-27T18:00:47.650866
| 1,501,178,447.650866 | 87,641 |
pythondev
|
help
|
<@Thelma> what have you tried?
|
2017-07-27T18:02:06.682706
|
Beula
|
pythondev_help_Beula_2017-07-27T18:02:06.682706
| 1,501,178,526.682706 | 87,642 |
pythondev
|
help
|
We like to see what you've tried before just giving answers :)
|
2017-07-27T18:02:18.687426
|
Beula
|
pythondev_help_Beula_2017-07-27T18:02:18.687426
| 1,501,178,538.687426 | 87,643 |
pythondev
|
help
|
```for e in li:
any([ x in e for x in e if x !=e])
```
|
2017-07-27T18:04:06.728668
|
Thelma
|
pythondev_help_Thelma_2017-07-27T18:04:06.728668
| 1,501,178,646.728668 | 87,644 |
pythondev
|
help
|
<@Jed> moving our convo as comments/thread into your last code snippet
|
2017-07-27T18:05:20.757067
|
Deedee
|
pythondev_help_Deedee_2017-07-27T18:05:20.757067
| 1,501,178,720.757067 | 87,645 |
pythondev
|
help
|
You want a substring, right? So I'm not sure a `!=` makes sense
|
2017-07-27T18:05:27.759700
|
Beula
|
pythondev_help_Beula_2017-07-27T18:05:27.759700
| 1,501,178,727.7597 | 87,646 |
pythondev
|
help
|
Try `in`
|
2017-07-27T18:05:39.764280
|
Beula
|
pythondev_help_Beula_2017-07-27T18:05:39.764280
| 1,501,178,739.76428 | 87,647 |
pythondev
|
help
|
I have that as well
|
2017-07-27T18:05:49.768038
|
Thelma
|
pythondev_help_Thelma_2017-07-27T18:05:49.768038
| 1,501,178,749.768038 | 87,648 |
pythondev
|
help
|
just ensures it doesn’t check the same element
|
2017-07-27T18:05:56.770498
|
Thelma
|
pythondev_help_Thelma_2017-07-27T18:05:56.770498
| 1,501,178,756.770498 | 87,649 |
pythondev
|
help
|
<@Jed> here, actually
|
2017-07-27T18:06:03.773256
|
Deedee
|
pythondev_help_Deedee_2017-07-27T18:06:03.773256
| 1,501,178,763.773256 | 87,650 |
pythondev
|
help
|
Also any returns a Boolean, aren't you trying to remove from the list?
|
2017-07-27T18:06:11.776015
|
Beula
|
pythondev_help_Beula_2017-07-27T18:06:11.776015
| 1,501,178,771.776015 | 87,651 |
pythondev
|
help
|
from zipfile import ZipFile doesn’t work actually. I’m using Python 2.7
|
2017-07-27T18:06:20.779547
|
Jed
|
pythondev_help_Jed_2017-07-27T18:06:20.779547
| 1,501,178,780.779547 | 87,652 |
pythondev
|
help
|
Or filter it down, rather
|
2017-07-27T18:06:21.780129
|
Beula
|
pythondev_help_Beula_2017-07-27T18:06:21.780129
| 1,501,178,781.780129 | 87,653 |
pythondev
|
help
|
So make these changes. Also, what are you trying to do w/ i counter/index in lines 12 and 19?
|
2017-07-27T18:06:39.786649
|
Deedee
|
pythondev_help_Deedee_2017-07-27T18:06:39.786649
| 1,501,178,799.786649 | 87,654 |
pythondev
|
help
|
yeah that would just be a filter and I would add it to a list
|
2017-07-27T18:11:20.887605
|
Thelma
|
pythondev_help_Thelma_2017-07-27T18:11:20.887605
| 1,501,179,080.887605 | 87,655 |
pythondev
|
help
|
So is it working, or are you trying to make it faster/more efficient?
|
2017-07-27T18:12:20.908189
|
Beula
|
pythondev_help_Beula_2017-07-27T18:12:20.908189
| 1,501,179,140.908189 | 87,656 |
pythondev
|
help
|
make it more efficient
|
2017-07-27T18:12:43.915936
|
Thelma
|
pythondev_help_Thelma_2017-07-27T18:12:43.915936
| 1,501,179,163.915936 | 87,657 |
pythondev
|
help
|
basically there are 3-5 files in each zipped folder: file_a, file_b, file_c, file_d
I wanted to make it so that the filename would increment, file_a_1, file_a_2, file_b_1, file_b_2
|
2017-07-27T18:12:46.917207
|
Jed
|
pythondev_help_Jed_2017-07-27T18:12:46.917207
| 1,501,179,166.917207 | 87,658 |
pythondev
|
help
|
so there is a conflict w/ i here.
|
2017-07-27T18:20:58.082451
|
Deedee
|
pythondev_help_Deedee_2017-07-27T18:20:58.082451
| 1,501,179,658.082451 | 87,659 |
pythondev
|
help
|
on line 12 you initialize it to 0.
on line 13, i takes values 0 to len(zip_ref.filelist)-1 (automatically incrementing it's value as f gets a new element value from zip_ref.filelist
|
2017-07-27T18:22:37.114922
|
Deedee
|
pythondev_help_Deedee_2017-07-27T18:22:37.114922
| 1,501,179,757.114922 | 87,660 |
pythondev
|
help
|
so list ["cat", "dog", "bird"]
i=0; f=cat
i=1; f=dog
i=2;f=bird
|
2017-07-27T18:24:32.152045
|
Deedee
|
pythondev_help_Deedee_2017-07-27T18:24:32.152045
| 1,501,179,872.152045 | 87,661 |
pythondev
|
help
|
just to be clear, this happens automatically when you `for i, f in enumerate(pet_list):`
|
2017-07-27T18:27:40.211472
|
Deedee
|
pythondev_help_Deedee_2017-07-27T18:27:40.211472
| 1,501,180,060.211472 | 87,662 |
pythondev
|
help
|
ah makes sense didn’t notice it
|
2017-07-27T18:36:02.370819
|
Jed
|
pythondev_help_Jed_2017-07-27T18:36:02.370819
| 1,501,180,562.370819 | 87,663 |
pythondev
|
help
|
getting a KeyError: “There is no item named “cat_0.csv” in the archive”
|
2017-07-27T18:38:44.420175
|
Jed
|
pythondev_help_Jed_2017-07-27T18:38:44.420175
| 1,501,180,724.420175 | 87,664 |
pythondev
|
help
|
yeah. So basically what you are trying to do is change the name of the file inside the zip and then unzip, right?
|
2017-07-27T18:47:47.581328
|
Deedee
|
pythondev_help_Deedee_2017-07-27T18:47:47.581328
| 1,501,181,267.581328 | 87,665 |
pythondev
|
help
|
yeap!
|
2017-07-27T18:59:30.785133
|
Jed
|
pythondev_help_Jed_2017-07-27T18:59:30.785133
| 1,501,181,970.785133 | 87,666 |
pythondev
|
help
|
right. so what is happening is you are only updating the name of the list, now the name of the file, inside the zip, on the HD.
|
2017-07-27T19:08:14.937858
|
Deedee
|
pythondev_help_Deedee_2017-07-27T19:08:14.937858
| 1,501,182,494.937858 | 87,667 |
pythondev
|
help
|
Check this out: <https://stackoverflow.com/questions/3982034/how-can-i-extract-files-using-custom-names-with-zipfile-module-from-python>
|
2017-07-27T19:08:25.940916
|
Deedee
|
pythondev_help_Deedee_2017-07-27T19:08:25.940916
| 1,501,182,505.940916 | 87,668 |
pythondev
|
help
|
looks like unziping to a tmp folder might be the way to go.
|
2017-07-27T19:08:55.949136
|
Deedee
|
pythondev_help_Deedee_2017-07-27T19:08:55.949136
| 1,501,182,535.949136 | 87,669 |
pythondev
|
help
|
> right. so what is happening is you are only updating the name of the list, now the name of the file, inside the zip, on the HD.
What I said here, is wrong. Zip file is one that is getting overwritten. NOT the files inside the zip.
|
2017-07-27T19:12:00.999706
|
Deedee
|
pythondev_help_Deedee_2017-07-27T19:12:00.999706
| 1,501,182,720.999706 | 87,670 |
pythondev
|
help
|
so if there are existing files of `file_a`, it should create `file_a_0` and then `file_a_1`, and so on? It just keeps adding to file_a_watever-count and file_b_whatever-count, depending on the files that have already been extracted?
|
2017-07-27T19:14:13.035286
|
Deedee
|
pythondev_help_Deedee_2017-07-27T19:14:13.035286
| 1,501,182,853.035286 | 87,671 |
pythondev
|
help
|
anytime i open a file in pycharm it says loading … arggg. why does this happen when i have something really important to fix.
|
2017-07-27T19:16:06.065457
|
Johana
|
pythondev_help_Johana_2017-07-27T19:16:06.065457
| 1,501,182,966.065457 | 87,672 |
pythondev
|
help
|
file_a_0, file_a_1
or file_a, file_a_1
or file_a, file_a_0, file_a_1
are all acceptable!
|
2017-07-27T19:24:27.194293
|
Jed
|
pythondev_help_Jed_2017-07-27T19:24:27.194293
| 1,501,183,467.194293 | 87,673 |
pythondev
|
help
|
yes... I saw that.
|
2017-07-27T19:30:08.282055
|
Deedee
|
pythondev_help_Deedee_2017-07-27T19:30:08.282055
| 1,501,183,808.282055 | 87,674 |
pythondev
|
help
|
if f.filename in os.listdir(dir_name):
name, ext = os.path.splitext(f.filename)
|
2017-07-27T19:30:14.283674
|
Deedee
|
pythondev_help_Deedee_2017-07-27T19:30:14.283674
| 1,501,183,814.283674 | 87,675 |
pythondev
|
help
|
<@Jed>
|
2017-07-27T20:14:56.933648
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:14:56.933648
| 1,501,186,496.933648 | 87,676 |
pythondev
|
help
|
line 7 counts the number of files that start the same and end the same... this assumes that file_a_1, file_a_2... is sequential. If you get file_a_1, file_a_4, file_a_7 then just play w/ this. Also, had line 11 one indentation back so it was trying to unzip/extract file from previous iteration, that were the file not found error coming from
|
2017-07-27T20:18:51.985583
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:18:51.985583
| 1,501,186,731.985583 | 87,677 |
pythondev
|
help
|
hmm it still only opens the first 2 zipped folders and line 10 is giving me RunTimeError: Attempt to read ZIP archive that was already closed
|
2017-07-27T20:24:23.056539
|
Jed
|
pythondev_help_Jed_2017-07-27T20:24:23.056539
| 1,501,187,063.056539 | 87,678 |
pythondev
|
help
|
```
import os
import os.path
from zipfile import ZipFile
dir_name = '../data/'
extension = ".zip"
os.chdir(dir_name)
for item in os.listdir(dir_name):
if item.endswith(extension):
zip_ref = ZipFile(item)
for f in zip_ref.filelist:
if f.filename in os.listdir(dir_name):
name, ext = os.path.splitext(f.filename)
f.filename = name + '_' + str(len([elem for elem in os.listdir(dir_name) if elem.startswith(name) and elem.endswith(ext)])) + ext
zip_ref.extract(f)
else:
#continue
zip_ref.extractall(dir_name)
zip_ref.close()
os.remove(item)
```
|
2017-07-27T20:33:04.169703
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:33:04.169703
| 1,501,187,584.169703 | 87,679 |
pythondev
|
help
|
that's the whole script that I am using
|
2017-07-27T20:33:10.171139
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:33:10.171139
| 1,501,187,590.171139 | 87,680 |
pythondev
|
help
|
<@Jed> Try with `with`:
```
with ZipFile(item) as zip_ref:
for f in zip_ref.filelist:
if f.filename in os.listdir(dir_name):
name, ext = os.path.splitext(f.filename)
f.filename = name + '_' + str(len([elem for elem in os.listdir(dir_name) if elem.startswith(name) and elem.endswith(ext)])) + ext
zip_ref.extract(f)
else:
zip_ref.extractall(dir_name)
os.remove(item)
```
|
2017-07-27T20:40:04.255762
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:40:04.255762
| 1,501,188,004.255762 | 87,681 |
pythondev
|
help
|
that way you don't have to worry about closing
|
2017-07-27T20:40:37.262375
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:40:37.262375
| 1,501,188,037.262375 | 87,682 |
pythondev
|
help
|
Hey, could I get some quick help from someone? No idea how to explain the situation
|
2017-07-27T20:41:18.270270
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:41:18.270270
| 1,501,188,078.27027 | 87,683 |
pythondev
|
help
|
Essentially calling a function from another file doesn’t seem to work the same when you call it from inside another function
|
2017-07-27T20:41:38.274201
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:41:38.274201
| 1,501,188,098.274201 | 87,684 |
pythondev
|
help
|
Is there any reason why these two calls would act different?
|
2017-07-27T20:42:47.288169
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:42:47.288169
| 1,501,188,167.288169 | 87,685 |
pythondev
|
help
|
line 2 vs lines 4-6?
|
2017-07-27T20:43:36.298169
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:43:36.298169
| 1,501,188,216.298169 | 87,686 |
pythondev
|
help
|
lines 4 through 6 won't execute unless today_posts is called from somewhere.
|
2017-07-27T20:44:22.307664
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:44:22.307664
| 1,501,188,262.307664 | 87,687 |
pythondev
|
help
|
Yeah, I get that :slightly_smiling_face:
|
2017-07-27T20:44:35.310338
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:44:35.310338
| 1,501,188,275.310338 | 87,688 |
pythondev
|
help
|
ok
|
2017-07-27T20:44:39.311099
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:44:39.311099
| 1,501,188,279.311099 | 87,689 |
pythondev
|
help
|
I’m calling the function, but the call on line 6 acts differently
|
2017-07-27T20:44:55.314489
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:44:55.314489
| 1,501,188,295.314489 | 87,690 |
pythondev
|
help
|
Do you know much about the Telegram API wrapper telebot?
|
2017-07-27T20:45:04.316364
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:45:04.316364
| 1,501,188,304.316364 | 87,691 |
pythondev
|
help
|
no, so I'll let it go for someone else.
|
2017-07-27T20:46:33.334480
|
Deedee
|
pythondev_help_Deedee_2017-07-27T20:46:33.334480
| 1,501,188,393.33448 | 87,692 |
pythondev
|
help
|
Okay, thanks :slightly_smiling_face:
|
2017-07-27T20:46:50.337895
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:46:50.337895
| 1,501,188,410.337895 | 87,693 |
pythondev
|
help
|
<@Graciela>: at a flance the only difference is that `db` and `c` are both scoped outside the context of the function so they could have different values each time it's called
|
2017-07-27T20:50:45.385557
|
Marcie
|
pythondev_help_Marcie_2017-07-27T20:50:45.385557
| 1,501,188,645.385557 | 87,694 |
pythondev
|
help
|
Hmmm okay
|
2017-07-27T20:51:37.395855
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:51:37.395855
| 1,501,188,697.395855 | 87,695 |
pythondev
|
help
|
Any reason the above wouldn’t work?
|
2017-07-27T20:52:11.402411
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:52:11.402411
| 1,501,188,731.402411 | 87,696 |
pythondev
|
help
|
<@Marcie>, sorry to tag you :slightly_smiling_face:
|
2017-07-27T20:54:58.434235
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:54:58.434235
| 1,501,188,898.434235 | 87,697 |
pythondev
|
help
|
that looks legitimate, what behaviours are you seeing?
|
2017-07-27T20:55:29.440265
|
Marcie
|
pythondev_help_Marcie_2017-07-27T20:55:29.440265
| 1,501,188,929.440265 | 87,698 |
pythondev
|
help
|
Essentially the sql doesn’t execute, but the function is defo called, I’ve put print statements everywhere and they all execute
|
2017-07-27T20:57:20.461859
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:57:20.461859
| 1,501,189,040.461859 | 87,699 |
pythondev
|
help
|
But if I move the sql statement out of the function and hard code args[0] then it all runs
|
2017-07-27T20:57:41.466106
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:57:41.466106
| 1,501,189,061.466106 | 87,700 |
pythondev
|
help
|
The function is called when the bot recieves a command on Telegram
|
2017-07-27T20:57:51.468135
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:57:51.468135
| 1,501,189,071.468135 | 87,701 |
pythondev
|
help
|
So the way the wrapper is coded is the only thing I can think of
|
2017-07-27T20:58:04.470673
|
Graciela
|
pythondev_help_Graciela_2017-07-27T20:58:04.470673
| 1,501,189,084.470673 | 87,702 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.