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
```The Qt open source licensing is ideal for use cases such as open source projects with open source distribution, student/academic purposes, hobby projects, internal research projects without external distribution, or other projects where all (L)GPL obligations can be met.```
2017-10-30T06:55:14.000230
Ciera
pythondev_help_Ciera_2017-10-30T06:55:14.000230
1,509,346,514.00023
98,603
pythondev
help
ah ok, thanks
2017-10-30T06:55:25.000213
Toby
pythondev_help_Toby_2017-10-30T06:55:25.000213
1,509,346,525.000213
98,604
pythondev
help
```The commercial Qt license gives you the full rights to create and distribute software on your own terms without any open source license obligations.```
2017-10-30T06:55:30.000170
Ciera
pythondev_help_Ciera_2017-10-30T06:55:30.000170
1,509,346,530.00017
98,605
pythondev
help
Do u mind if i ask about you ??
2017-10-30T06:56:15.000097
Emily
pythondev_help_Emily_2017-10-30T06:56:15.000097
1,509,346,575.000097
98,606
pythondev
help
in what way?
2017-10-30T06:56:44.000134
Toby
pythondev_help_Toby_2017-10-30T06:56:44.000134
1,509,346,604.000134
98,607
pythondev
help
tell me about you !
2017-10-30T06:57:14.000070
Emily
pythondev_help_Emily_2017-10-30T06:57:14.000070
1,509,346,634.00007
98,608
pythondev
help
so maybe those presentations should bring topics like git workflow and its' benefits?
2017-10-30T06:59:52.000386
Mirian
pythondev_help_Mirian_2017-10-30T06:59:52.000386
1,509,346,792.000386
98,609
pythondev
help
This is a weird conversation with all the quoting
2017-10-30T07:02:00.000232
Vada
pythondev_help_Vada_2017-10-30T07:02:00.000232
1,509,346,920.000232
98,610
pythondev
help
There is no need to share every message as you respond. you can just respond - it's actually easier to follow that way
2017-10-30T07:03:11.000187
Vada
pythondev_help_Vada_2017-10-30T07:03:11.000187
1,509,346,991.000187
98,611
pythondev
help
Especially after Kevin Spacey's coming-out...
2017-10-30T07:03:12.000104
Collette
pythondev_help_Collette_2017-10-30T07:03:12.000104
1,509,346,992.000104
98,612
pythondev
help
By the ways, there are <#C07EFN21K|random> and <#C07EHQYFN|introductions> which are more suitable for such personal discussions.
2017-10-30T07:03:57.000011
Collette
pythondev_help_Collette_2017-10-30T07:03:57.000011
1,509,347,037.000011
98,613
pythondev
help
<@Collette> I am both surprised by the news and confused as to the relevance
2017-10-30T07:04:00.000013
Vada
pythondev_help_Vada_2017-10-30T07:04:00.000013
1,509,347,040.000013
98,614
pythondev
help
Or, even, personal messages.
2017-10-30T07:04:02.000154
Collette
pythondev_help_Collette_2017-10-30T07:04:02.000154
1,509,347,042.000154
98,615
pythondev
help
<@Emily> it is inappropriate to ask someone to talk about themselves in such a public forum. It's not exactly appropriate to ask in a private chat either, but it would be a better place than here. <@Toby> should also have no obligation to respond as well. This is not a complaint, or necessarily a violation of any rule...
2017-10-30T07:06:36.000122
Vada
pythondev_help_Vada_2017-10-30T07:06:36.000122
1,509,347,196.000122
98,616
pythondev
help
Sorry sir !
2017-10-30T07:07:36.000274
Emily
pythondev_help_Emily_2017-10-30T07:07:36.000274
1,509,347,256.000274
98,617
pythondev
help
i should have asked this question at <#C07EHQYFN|introductions>
2017-10-30T07:07:59.000399
Emily
pythondev_help_Emily_2017-10-30T07:07:59.000399
1,509,347,279.000399
98,618
pythondev
help
Ah right now I see why you asked
2017-10-30T07:09:22.000025
Vada
pythondev_help_Vada_2017-10-30T07:09:22.000025
1,509,347,362.000025
98,619
pythondev
help
yes <@Toby> feel free to introduce yourself to the group in <#C07EHQYFN|introductions>
2017-10-30T07:09:36.000135
Vada
pythondev_help_Vada_2017-10-30T07:09:36.000135
1,509,347,376.000135
98,620
pythondev
help
got messed up with group! <@Vada> sir
2017-10-30T07:10:13.000050
Emily
pythondev_help_Emily_2017-10-30T07:10:13.000050
1,509,347,413.00005
98,621
pythondev
help
no worries
2017-10-30T07:10:18.000211
Vada
pythondev_help_Vada_2017-10-30T07:10:18.000211
1,509,347,418.000211
98,622
pythondev
help
okay
2017-10-30T07:10:28.000118
Emily
pythondev_help_Emily_2017-10-30T07:10:28.000118
1,509,347,428.000118
98,623
pythondev
help
Should I be using list comprehension to `assert` that all members of a list parameter in my function are of a required custom class, or is there a cleaner way of doing it?
2017-10-30T11:50:34.000449
Margrett
pythondev_help_Margrett_2017-10-30T11:50:34.000449
1,509,364,234.000449
98,624
pythondev
help
I tend to do a lot of `assert isinstance(param1, CustomClass)`
2017-10-30T11:51:43.000089
Margrett
pythondev_help_Margrett_2017-10-30T11:51:43.000089
1,509,364,303.000089
98,625
pythondev
help
a list comprehension sounds like the best way to do it based on my experiences
2017-10-30T11:53:11.000038
Lory
pythondev_help_Lory_2017-10-30T11:53:11.000038
1,509,364,391.000038
98,626
pythondev
help
unless there's a way to just do the entire list in one go which I am not aware of personally
2017-10-30T11:53:22.000728
Lory
pythondev_help_Lory_2017-10-30T11:53:22.000728
1,509,364,402.000728
98,627
pythondev
help
Yah, I didn't see some hidden functionality in isinstance, at least from the official docs
2017-10-30T11:53:44.000620
Margrett
pythondev_help_Margrett_2017-10-30T11:53:44.000620
1,509,364,424.00062
98,628
pythondev
help
But you won't be using the resulting list anyway... Why not just `for param in params: assert(....)`?
2017-10-30T11:54:00.000800
Scot
pythondev_help_Scot_2017-10-30T11:54:00.000800
1,509,364,440.0008
98,629
pythondev
help
you could have your class self validate before being appended to the list or something too. depends on your code structure but the various approaches all do the same thing at the end of the day
2017-10-30T11:54:45.000556
Lory
pythondev_help_Lory_2017-10-30T11:54:45.000556
1,509,364,485.000556
98,630
pythondev
help
I probably should just use a normal for loop, that way I can complain about the specific non-conforming item.
2017-10-30T11:54:54.000209
Margrett
pythondev_help_Margrett_2017-10-30T11:54:54.000209
1,509,364,494.000209
98,631
pythondev
help
In my current code, I'm just talking to myself, but this is very similar to a another one of my projects where I expect random non-python proficient people to be using my classes
2017-10-30T11:55:39.000284
Margrett
pythondev_help_Margrett_2017-10-30T11:55:39.000284
1,509,364,539.000284
98,632
pythondev
help
Figured I should try to be consistent in my approach :slightly_smiling_face:
2017-10-30T11:55:54.000216
Margrett
pythondev_help_Margrett_2017-10-30T11:55:54.000216
1,509,364,554.000216
98,633
pythondev
help
I personally wouldn't use a list comprehension if I didn't intend to use the resulting list for anything
2017-10-30T11:58:42.000401
Scot
pythondev_help_Scot_2017-10-30T11:58:42.000401
1,509,364,722.000401
98,634
pythondev
help
could also do a test in the list comprehension, and use `any` and `all` type checks
2017-10-30T11:58:43.000464
Junita
pythondev_help_Junita_2017-10-30T11:58:43.000464
1,509,364,723.000464
98,635
pythondev
help
```Should I be using list comprehension to `assert` that all members of a list parameter in my function are of a required custom class``` Should you really do that and not let it fails later on ?
2017-10-30T12:01:26.000348
Ciera
pythondev_help_Ciera_2017-10-30T12:01:26.000348
1,509,364,886.000348
98,636
pythondev
help
My general philosophy is to fail fast. In this tool, if a user provides me with wacky input data, it could be devastating to the downstream systems that I'm re-configuring.
2017-10-30T12:03:14.000854
Margrett
pythondev_help_Margrett_2017-10-30T12:03:14.000854
1,509,364,994.000854
98,637
pythondev
help
I do like the potential idea of using any/all, need to play with that. Could make the code more readable
2017-10-30T12:04:12.000707
Margrett
pythondev_help_Margrett_2017-10-30T12:04:12.000707
1,509,365,052.000707
98,638
pythondev
help
yeah I use that sometimes and like it. the inline assert seems nice too as well
2017-10-30T12:05:04.000755
Junita
pythondev_help_Junita_2017-10-30T12:05:04.000755
1,509,365,104.000755
98,639
pythondev
help
A simplified example: ```my_ints = [1,2,3] assert all(isinstance(i, int) for i in my_ints), 'my_ints must all be integers'```
2017-10-30T12:11:29.000449
Margrett
pythondev_help_Margrett_2017-10-30T12:11:29.000449
1,509,365,489.000449
98,640
pythondev
help
Seems to meet the test of being self-documenting
2017-10-30T12:12:44.000542
Margrett
pythondev_help_Margrett_2017-10-30T12:12:44.000542
1,509,365,564.000542
98,641
pythondev
help
Thanks <@Junita>, <@Truman>, <@Scot>,<@Ciera> Thanks for the help with the assert list question :taco:
2017-10-30T12:19:55.000391
Margrett
pythondev_help_Margrett_2017-10-30T12:19:55.000391
1,509,365,995.000391
98,642
pythondev
help
om nom nom. np
2017-10-30T12:21:10.000413
Junita
pythondev_help_Junita_2017-10-30T12:21:10.000413
1,509,366,070.000413
98,643
pythondev
help
Hurray, already prevented a shooting self in foot incident
2017-10-30T12:43:15.000059
Margrett
pythondev_help_Margrett_2017-10-30T12:43:15.000059
1,509,367,395.000059
98,644
pythondev
help
` assert all(isinstance(ts, TrapServer) for ts in trap_servers), 'trap_servers must all be TrapServers'`
2017-10-30T12:43:19.000281
Margrett
pythondev_help_Margrett_2017-10-30T12:43:19.000281
1,509,367,399.000281
98,645
pythondev
help
`AssertionError: trap_servers must all be TrapServers`
2017-10-30T12:43:30.000237
Margrett
pythondev_help_Margrett_2017-10-30T12:43:30.000237
1,509,367,410.000237
98,646
pythondev
help
Trap music is infecting everything!
2017-10-30T12:44:14.000028
Mallie
pythondev_help_Mallie_2017-10-30T12:44:14.000028
1,509,367,454.000028
98,647
pythondev
help
:smile:
2017-10-30T12:44:24.000012
Mallie
pythondev_help_Mallie_2017-10-30T12:44:24.000012
1,509,367,464.000012
98,648
pythondev
help
Hi all, wondering if anyone could help make my code less repetitive. I have a list of excel files and I want to read data from different parts of them and combine them into DataFrames based on content. I have functions (e.g. `read_range_a`) that specify the portion of the document to read. Any advice would be appreciat...
2017-10-30T13:04:04.000452
Deadra
pythondev_help_Deadra_2017-10-30T13:04:04.000452
1,509,368,644.000452
98,649
pythondev
help
Anyone got any experience using the pyrebase library for Firebase?
2017-10-30T13:07:16.000056
Corrinne
pythondev_help_Corrinne_2017-10-30T13:07:16.000056
1,509,368,836.000056
98,650
pythondev
help
<https://github.com/ionelmc/pytest-benchmark>
2017-10-30T14:43:34.000708
Bruno
pythondev_help_Bruno_2017-10-30T14:43:34.000708
1,509,374,614.000708
98,651
pythondev
help
<@Meg> That's a really great list of things :taco: <@Evelin> We did a rotating presentation at work on a dev focused topic, that helped a bit to open up discussion towards newer ways of doing things. We also had a couple hours a week dedicating to do "learning" but it worked better when there was a discussion about w...
2017-10-30T16:03:26.000615
Kiersten
pythondev_help_Kiersten_2017-10-30T16:03:26.000615
1,509,379,406.000615
98,652
pythondev
help
Hi Guys , I have a json Que and I want to check for some value ordering , what is the fastest way to do that? { First Property : true , Second Property:false} I want to be sure that the First Property showed in this que before the Second Property
2017-10-30T16:30:49.000217
Elanor
pythondev_help_Elanor_2017-10-30T16:30:49.000217
1,509,381,049.000217
98,653
pythondev
help
Do you know what the order is prior to run time or is it dynamic?
2017-10-30T16:42:50.000589
Lory
pythondev_help_Lory_2017-10-30T16:42:50.000589
1,509,381,770.000589
98,654
pythondev
help
sounds like you need to make a priority queue
2017-10-30T16:43:03.000246
Meg
pythondev_help_Meg_2017-10-30T16:43:03.000246
1,509,381,783.000246
98,655
pythondev
help
actually all I have is dictionary with some json objects in it ,I want to know how can I check if one of those objects come before another one or not
2017-10-30T16:45:56.000015
Elanor
pythondev_help_Elanor_2017-10-30T16:45:56.000015
1,509,381,956.000015
98,656
pythondev
help
Dictionaries are unordered by default
2017-10-30T16:47:10.000440
Rosetta
pythondev_help_Rosetta_2017-10-30T16:47:10.000440
1,509,382,030.00044
98,657
pythondev
help
yes you are right
2017-10-30T16:47:24.000420
Elanor
pythondev_help_Elanor_2017-10-30T16:47:24.000420
1,509,382,044.00042
98,658
pythondev
help
that's why is not that easy to do that , my dictionary is specific dictionary which the order is important to me
2017-10-30T16:47:55.000092
Elanor
pythondev_help_Elanor_2017-10-30T16:47:55.000092
1,509,382,075.000092
98,659
pythondev
help
Lists are ordered so that's reliable but only helps if you know what you're looking for. I've never used priority ques so I'm not sure how they work personally
2017-10-30T16:47:59.000138
Lory
pythondev_help_Lory_2017-10-30T16:47:59.000138
1,509,382,079.000138
98,660
pythondev
help
You could try using an ordereddict
2017-10-30T16:48:13.000696
Antionette
pythondev_help_Antionette_2017-10-30T16:48:13.000696
1,509,382,093.000696
98,661
pythondev
help
<https://docs.python.org/3/library/collections.html#collections.OrderedDict>
2017-10-30T16:48:15.000549
Antionette
pythondev_help_Antionette_2017-10-30T16:48:15.000549
1,509,382,095.000549
98,662
pythondev
help
let me check thnx
2017-10-30T16:48:26.000370
Elanor
pythondev_help_Elanor_2017-10-30T16:48:26.000370
1,509,382,106.00037
98,663
pythondev
help
I don't thinks that's will work <@Antionette>
2017-10-30T16:49:55.000361
Elanor
pythondev_help_Elanor_2017-10-30T16:49:55.000361
1,509,382,195.000361
98,664
pythondev
help
<@Elanor> are you looking to sort your dictionary by key or value?
2017-10-30T16:51:22.000330
Keesha
pythondev_help_Keesha_2017-10-30T16:51:22.000330
1,509,382,282.00033
98,665
pythondev
help
ordered dicts only work with insertion order
2017-10-30T16:51:26.000250
Meg
pythondev_help_Meg_2017-10-30T16:51:26.000250
1,509,382,286.00025
98,666
pythondev
help
sounds like you need to write a list comp to output your dict to a list based on the key value
2017-10-30T16:51:48.000174
Meg
pythondev_help_Meg_2017-10-30T16:51:48.000174
1,509,382,308.000174
98,667
pythondev
help
I thought 3.6 had order in order out for dicts, now I have to go check...
2017-10-30T17:12:24.000419
Seema
pythondev_help_Seema_2017-10-30T17:12:24.000419
1,509,383,544.000419
98,668
pythondev
help
3.6 does have dicts that are ordered by default. However, they aren't promised to be in future versions.
2017-10-30T17:12:52.000268
Meghan
pythondev_help_Meghan_2017-10-30T17:12:52.000268
1,509,383,572.000268
98,669
pythondev
help
totally understand that, and he may not be able to 3.6 for a variety of reasons
2017-10-30T17:13:15.000470
Seema
pythondev_help_Seema_2017-10-30T17:13:15.000470
1,509,383,595.00047
98,670
pythondev
help
I;m using 2.7
2017-10-30T17:13:31.000029
Elanor
pythondev_help_Elanor_2017-10-30T17:13:31.000029
1,509,383,611.000029
98,671
pythondev
help
and when you say they are ordered, are they ordered by a key or a value or are you thinking that they're are indexed?
2017-10-30T17:14:11.000545
Seema
pythondev_help_Seema_2017-10-30T17:14:11.000545
1,509,383,651.000545
98,672
pythondev
help
They are ordered in the way they were created, not based on any other logic.
2017-10-30T17:15:17.000421
Meghan
pythondev_help_Meghan_2017-10-30T17:15:17.000421
1,509,383,717.000421
98,673
pythondev
help
<@Elanor> what is it about OrderedDict that think won't work?
2017-10-30T17:16:28.000192
Seema
pythondev_help_Seema_2017-10-30T17:16:28.000192
1,509,383,788.000192
98,674
pythondev
help
and is the creation of the dictionary a one-time thing?
2017-10-30T17:17:44.000098
Seema
pythondev_help_Seema_2017-10-30T17:17:44.000098
1,509,383,864.000098
98,675
pythondev
help
my dict's value is another dictionary
2017-10-30T17:19:50.000161
Elanor
pythondev_help_Elanor_2017-10-30T17:19:50.000161
1,509,383,990.000161
98,676
pythondev
help
conceptually it doesn't change the problem of ordering if it is nested or not
2017-10-30T17:30:09.000030
Lory
pythondev_help_Lory_2017-10-30T17:30:09.000030
1,509,384,609.00003
98,677
pythondev
help
I think I solved this problem , because I have enabled the timpestamp
2017-10-30T17:32:13.000244
Elanor
pythondev_help_Elanor_2017-10-30T17:32:13.000244
1,509,384,733.000244
98,678
pythondev
help
and then I dont need to have the dictionary ordered or not , since it will come with timestamp
2017-10-30T17:32:36.000128
Elanor
pythondev_help_Elanor_2017-10-30T17:32:36.000128
1,509,384,756.000128
98,679
pythondev
help
Yeah there's an easy method there
2017-10-30T17:52:14.000196
Lory
pythondev_help_Lory_2017-10-30T17:52:14.000196
1,509,385,934.000196
98,680
pythondev
help
Hi, I recently was asked to work on a django project and I’m having a little difficulty getting the app set up locally. Python 3.6 and django 1.11. I created the database and went to run the migration files, but I get an error saying “relation table_name does not exist”. That table should be created by the first mig...
2017-10-30T18:27:56.000147
Daysi
pythondev_help_Daysi_2017-10-30T18:27:56.000147
1,509,388,076.000147
98,681
pythondev
help
You should probably run your own. Who knows what state the DB was in when those first migrations were generated
2017-10-30T18:30:37.000123
Rosetta
pythondev_help_Rosetta_2017-10-30T18:30:37.000123
1,509,388,237.000123
98,682
pythondev
help
It sounds like you're missing some or the tables/database were created outside of Django
2017-10-30T18:31:00.000047
Rosetta
pythondev_help_Rosetta_2017-10-30T18:31:00.000047
1,509,388,260.000047
98,683
pythondev
help
should I delete the migrations folder and run makemigrations?
2017-10-30T18:31:33.000220
Daysi
pythondev_help_Daysi_2017-10-30T18:31:33.000220
1,509,388,293.00022
98,684
pythondev
help
Yes..
2017-10-30T18:32:43.000266
Cammy
pythondev_help_Cammy_2017-10-30T18:32:43.000266
1,509,388,363.000266
98,685
pythondev
help
an make sure you have the database existing
2017-10-30T18:33:03.000466
Cammy
pythondev_help_Cammy_2017-10-30T18:33:03.000466
1,509,388,383.000466
98,686
pythondev
help
makemigrations and migrate..
2017-10-30T18:33:34.000261
Cammy
pythondev_help_Cammy_2017-10-30T18:33:34.000261
1,509,388,414.000261
98,687
pythondev
help
the database exists, so I deleted the migrations folder and ran makemigrations, I got the same error as before. ‘’'psycopg2.ProgrammingError: relation “proposals_proposal” does not exist LINE 1: ...estions”, “proposals_proposal”.“final_price” FROM “proposals...‘’'
2017-10-30T18:35:24.000419
Daysi
pythondev_help_Daysi_2017-10-30T18:35:24.000419
1,509,388,524.000419
98,688
pythondev
help
Try running `manage.py migrate proposals`
2017-10-30T18:48:58.000009
Rosetta
pythondev_help_Rosetta_2017-10-30T18:48:58.000009
1,509,389,338.000009
98,689
pythondev
help
I've had migrations that got in to a state where one app had to be run before all the others
2017-10-30T18:49:38.000244
Rosetta
pythondev_help_Rosetta_2017-10-30T18:49:38.000244
1,509,389,378.000244
98,690
pythondev
help
same error, it’s like it’s stuck! I can’t get away from it.
2017-10-30T18:52:54.000155
Daysi
pythondev_help_Daysi_2017-10-30T18:52:54.000155
1,509,389,574.000155
98,691
pythondev
help
Which migration file is throwing the error?
2017-10-30T18:59:59.000162
Rosetta
pythondev_help_Rosetta_2017-10-30T18:59:59.000162
1,509,389,999.000162
98,692
pythondev
help
Well, there isn’t any migration files now, I deleted the entire directory. So in theory, it shouldn’t be throwing an error at all on a migration file.
2017-10-30T19:05:11.000099
Daysi
pythondev_help_Daysi_2017-10-30T19:05:11.000099
1,509,390,311.000099
98,693
pythondev
help
but prior to deleting the directory, I ran the very first migration file 0001_initial.py and it produced the same error.
2017-10-30T19:06:01.000031
Daysi
pythondev_help_Daysi_2017-10-30T19:06:01.000031
1,509,390,361.000031
98,694
pythondev
help
CAn you share the stack trace
2017-10-30T19:31:57.000266
Rosetta
pythondev_help_Rosetta_2017-10-30T19:31:57.000266
1,509,391,917.000266
98,695
pythondev
help
You can add an `__init__` and then print the variables of your choice. <@Vena>
2017-10-30T23:48:21.000123
Rosa
pythondev_help_Rosa_2017-10-30T23:48:21.000123
1,509,407,301.000123
98,696
pythondev
help
so, when making a library that you plan on only supporting 3.6+, do you still use or worry about things like `six` or custom `compat.py` modules?
2017-10-31T00:08:20.000051
Bruno
pythondev_help_Bruno_2017-10-31T00:08:20.000051
1,509,408,500.000051
98,697
pythondev
help
<@Bruno> I don't. Why?
2017-10-31T00:08:43.000036
Collette
pythondev_help_Collette_2017-10-31T00:08:43.000036
1,509,408,523.000036
98,698
pythondev
help
just curious. i havent either.
2017-10-31T00:11:28.000191
Bruno
pythondev_help_Bruno_2017-10-31T00:11:28.000191
1,509,408,688.000191
98,699
pythondev
help
Morning everyone! :}
2017-10-31T00:14:17.000094
Ricki
pythondev_help_Ricki_2017-10-31T00:14:17.000094
1,509,408,857.000094
98,700
pythondev
help
good evening
2017-10-31T00:14:42.000044
Bruno
pythondev_help_Bruno_2017-10-31T00:14:42.000044
1,509,408,882.000044
98,701
pythondev
help
<@Bruno> i would love some help if you don't mind me asking
2017-10-31T00:15:32.000112
Ricki
pythondev_help_Ricki_2017-10-31T00:15:32.000112
1,509,408,932.000112
98,702