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
``` >>> numbers = [(1, 2), (3, 3), (5, 2)] >>> [x - y for (x, y) in numbers] [-1, 0, 3] ```
2017-12-14T16:08:44.000125
Suellen
pythondev_help_Suellen_2017-12-14T16:08:44.000125
1,513,267,724.000125
104,003
pythondev
help
Yes that
2017-12-14T16:08:51.000541
Myong
pythondev_help_Myong_2017-12-14T16:08:51.000541
1,513,267,731.000541
104,004
pythondev
help
As im writing it lol
2017-12-14T16:08:54.000345
Myong
pythondev_help_Myong_2017-12-14T16:08:54.000345
1,513,267,734.000345
104,005
pythondev
help
That’s perfect. Thanks guys
2017-12-14T16:09:17.000573
Felicita
pythondev_help_Felicita_2017-12-14T16:09:17.000573
1,513,267,757.000573
104,006
pythondev
help
:tada:
2017-12-14T16:09:21.000674
Suellen
pythondev_help_Suellen_2017-12-14T16:09:21.000674
1,513,267,761.000674
104,007
pythondev
help
Thanks for :pineapple:, I'll put it on my pizza :slightly_smiling_face:
2017-12-14T16:09:55.000626
Suellen
pythondev_help_Suellen_2017-12-14T16:09:55.000626
1,513,267,795.000626
104,008
pythondev
help
dont start this
2017-12-14T16:10:05.000201
Myong
pythondev_help_Myong_2017-12-14T16:10:05.000201
1,513,267,805.000201
104,009
pythondev
help
:lower_left_ballpoint_pen: - this I didn't get
2017-12-14T16:10:21.000038
Suellen
pythondev_help_Suellen_2017-12-14T16:10:21.000038
1,513,267,821.000038
104,010
pythondev
help
it's not going on any pizzas
2017-12-14T16:10:26.000393
Suellen
pythondev_help_Suellen_2017-12-14T16:10:26.000393
1,513,267,826.000393
104,011
pythondev
help
sorry, you said pizza but my brain thought pen pineapple apple pen
2017-12-14T16:10:56.000601
Seema
pythondev_help_Seema_2017-12-14T16:10:56.000601
1,513,267,856.000601
104,012
pythondev
help
ooh, nice reference
2017-12-14T16:11:11.000151
Suellen
pythondev_help_Suellen_2017-12-14T16:11:11.000151
1,513,267,871.000151
104,013
pythondev
help
Okay so now I don't have the `pypy-c.exe` to install into my virtualenv...
2017-12-14T16:12:34.000426
Myong
pythondev_help_Myong_2017-12-14T16:12:34.000426
1,513,267,954.000426
104,014
pythondev
help
:no_mouth::gun:
2017-12-14T16:13:19.000207
Suellen
pythondev_help_Suellen_2017-12-14T16:13:19.000207
1,513,267,999.000207
104,015
pythondev
help
This is a ball, boys
2017-12-14T16:14:12.000005
Myong
pythondev_help_Myong_2017-12-14T16:14:12.000005
1,513,268,052.000005
104,016
pythondev
help
Yeah just getting an incompatibility error when trying to directly do a venv with pypy.exe in main directory
2017-12-14T16:15:50.000268
Myong
pythondev_help_Myong_2017-12-14T16:15:50.000268
1,513,268,150.000268
104,017
pythondev
help
did you tell it what version ?
2017-12-14T16:18:37.000311
Seema
pythondev_help_Seema_2017-12-14T16:18:37.000311
1,513,268,317.000311
104,018
pythondev
help
yeah pypy3.exe
2017-12-14T16:19:26.000263
Myong
pythondev_help_Myong_2017-12-14T16:19:26.000263
1,513,268,366.000263
104,019
pythondev
help
`the following executable... pypy3.exe is not functioning`
2017-12-14T16:19:46.000370
Myong
pythondev_help_Myong_2017-12-14T16:19:46.000370
1,513,268,386.00037
104,020
pythondev
help
`It thinks sys.prefix is 'c:\\users\\kbowman\\documents\\code\\python\\auto mation\\model matcher' (should be 'c:\\users\\kbowman\\docume~1\\code\\python\\au toma~1\\modelm~1\\pypy-env')`
2017-12-14T16:20:12.000111
Myong
pythondev_help_Myong_2017-12-14T16:20:12.000111
1,513,268,412.000111
104,021
pythondev
help
Another question guys. How do you pair up elements in an array that was right next to each other. For example: [1, 2, 3, 4] would be [(1,2),(3,4)]
2017-12-14T16:20:33.000521
Felicita
pythondev_help_Felicita_2017-12-14T16:20:33.000521
1,513,268,433.000521
104,022
pythondev
help
I’m currently using itertools.combinations but that’s not what I’m looking for
2017-12-14T16:21:12.000186
Felicita
pythondev_help_Felicita_2017-12-14T16:21:12.000186
1,513,268,472.000186
104,023
pythondev
help
```virtualenv -p c:\bin\pypy\pypy.exe pypy copy c:\bin\pypy\lib_pypy \virtualenvs\pypy copy c:\bin\pypy\lib-python \virtualenvs\pypy virtualenv -p c:\bin\pypy\pypy.exe pypy```
2017-12-14T16:22:33.000129
Seema
pythondev_help_Seema_2017-12-14T16:22:33.000129
1,513,268,553.000129
104,024
pythondev
help
I found that on SO <https://stackoverflow.com/questions/13578593/how-to-create-virtualenv-with-pypy>
2017-12-14T16:22:51.000163
Seema
pythondev_help_Seema_2017-12-14T16:22:51.000163
1,513,268,571.000163
104,025
pythondev
help
Manny, you can take every nth element in a list with [start:stop:step], so you could zip the every otther.... wife calling, hang on
2017-12-14T16:26:42.000502
Seema
pythondev_help_Seema_2017-12-14T16:26:42.000502
1,513,268,802.000502
104,026
pythondev
help
`[tuple([0:2]), tuple([2:])]` manually
2017-12-14T16:28:24.000409
Myong
pythondev_help_Myong_2017-12-14T16:28:24.000409
1,513,268,904.000409
104,027
pythondev
help
What package does izip come from?
2017-12-14T16:29:01.000235
Felicita
pythondev_help_Felicita_2017-12-14T16:29:01.000235
1,513,268,941.000235
104,028
pythondev
help
izip?
2017-12-14T16:29:09.000219
Myong
pythondev_help_Myong_2017-12-14T16:29:09.000219
1,513,268,949.000219
104,029
pythondev
help
Tried to import it from itertools
2017-12-14T16:29:17.000421
Felicita
pythondev_help_Felicita_2017-12-14T16:29:17.000421
1,513,268,957.000421
104,030
pythondev
help
Yea
2017-12-14T16:29:20.000655
Felicita
pythondev_help_Felicita_2017-12-14T16:29:20.000655
1,513,268,960.000655
104,031
pythondev
help
its itertools
2017-12-14T16:29:22.000685
Myong
pythondev_help_Myong_2017-12-14T16:29:22.000685
1,513,268,962.000685
104,032
pythondev
help
`from itertools import izip`
2017-12-14T16:29:41.000315
Myong
pythondev_help_Myong_2017-12-14T16:29:41.000315
1,513,268,981.000315
104,033
pythondev
help
I’m getting the error that it’s not an attribute of itertools
2017-12-14T16:29:48.000135
Felicita
pythondev_help_Felicita_2017-12-14T16:29:48.000135
1,513,268,988.000135
104,034
pythondev
help
what IDE
2017-12-14T16:29:58.000250
Myong
pythondev_help_Myong_2017-12-14T16:29:58.000250
1,513,268,998.00025
104,035
pythondev
help
if using an IDE
2017-12-14T16:30:04.000197
Myong
pythondev_help_Myong_2017-12-14T16:30:04.000197
1,513,269,004.000197
104,036
pythondev
help
Python IDE
2017-12-14T16:30:18.000352
Felicita
pythondev_help_Felicita_2017-12-14T16:30:18.000352
1,513,269,018.000352
104,037
pythondev
help
That comes with python
2017-12-14T16:30:26.000031
Felicita
pythondev_help_Felicita_2017-12-14T16:30:26.000031
1,513,269,026.000031
104,038
pythondev
help
I have zip_longest and that’s it
2017-12-14T16:30:48.000437
Felicita
pythondev_help_Felicita_2017-12-14T16:30:48.000437
1,513,269,048.000437
104,039
pythondev
help
izip doesnt exist
2017-12-14T16:30:52.000551
Myong
pythondev_help_Myong_2017-12-14T16:30:52.000551
1,513,269,052.000551
104,040
pythondev
help
back, zip is a builtin
2017-12-14T16:30:53.000266
Seema
pythondev_help_Seema_2017-12-14T16:30:53.000266
1,513,269,053.000266
104,041
pythondev
help
past 2.7
2017-12-14T16:30:57.000374
Myong
pythondev_help_Myong_2017-12-14T16:30:57.000374
1,513,269,057.000374
104,042
pythondev
help
Izip is also a built in?
2017-12-14T16:31:12.000570
Felicita
pythondev_help_Felicita_2017-12-14T16:31:12.000570
1,513,269,072.00057
104,043
pythondev
help
no
2017-12-14T16:31:15.000098
Myong
pythondev_help_Myong_2017-12-14T16:31:15.000098
1,513,269,075.000098
104,044
pythondev
help
zip is
2017-12-14T16:31:17.000062
Myong
pythondev_help_Myong_2017-12-14T16:31:17.000062
1,513,269,077.000062
104,045
pythondev
help
I think I’m using 3.5
2017-12-14T16:31:23.000036
Felicita
pythondev_help_Felicita_2017-12-14T16:31:23.000036
1,513,269,083.000036
104,046
pythondev
help
`zip(x,y)`
2017-12-14T16:31:26.000049
Myong
pythondev_help_Myong_2017-12-14T16:31:26.000049
1,513,269,086.000049
104,047
pythondev
help
Okay so it’s basically the same as izip
2017-12-14T16:31:44.000436
Felicita
pythondev_help_Felicita_2017-12-14T16:31:44.000436
1,513,269,104.000436
104,048
pythondev
help
```Python 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; a = [1,2,3] &gt;&gt;&gt; b = [2,3,4] &gt;&gt;&gt; c = zip(a,b) &gt;&gt;&gt; c [(1, 2), (2, 3), (3, 4)] ```
2017-12-14T16:31:50.000196
Seema
pythondev_help_Seema_2017-12-14T16:31:50.000196
1,513,269,110.000196
104,049
pythondev
help
I'm sure there are more elegant ways to do it but I'm a bit of a long-hand kind of guy
2017-12-14T16:32:29.000128
Seema
pythondev_help_Seema_2017-12-14T16:32:29.000128
1,513,269,149.000128
104,050
pythondev
help
in your case a would be 1,3,5 [0::2] and b would be 2,4,6 or [1::2], then zip(a,b)
2017-12-14T16:33:35.000074
Seema
pythondev_help_Seema_2017-12-14T16:33:35.000074
1,513,269,215.000074
104,051
pythondev
help
I have: def chunkwise(t, size=2): it = iter(t) return izip(*[it]*size)
2017-12-14T16:33:58.000019
Felicita
pythondev_help_Felicita_2017-12-14T16:33:58.000019
1,513,269,238.000019
104,052
pythondev
help
Sorry I’m using my phone so I have to type everything out
2017-12-14T16:34:10.000316
Felicita
pythondev_help_Felicita_2017-12-14T16:34:10.000316
1,513,269,250.000316
104,053
pythondev
help
<@Seema> yea but I’m only using one list tho
2017-12-14T16:34:53.000441
Felicita
pythondev_help_Felicita_2017-12-14T16:34:53.000441
1,513,269,293.000441
104,054
pythondev
help
A = [1,2,3,4,5,6]
2017-12-14T16:36:13.000555
Felicita
pythondev_help_Felicita_2017-12-14T16:36:13.000555
1,513,269,373.000555
104,055
pythondev
help
Trying to split A into pairs
2017-12-14T16:36:29.000006
Felicita
pythondev_help_Felicita_2017-12-14T16:36:29.000006
1,513,269,389.000006
104,056
pythondev
help
izip requires that you pass the iterables that you will zip
2017-12-14T16:36:32.000016
Seema
pythondev_help_Seema_2017-12-14T16:36:32.000016
1,513,269,392.000016
104,057
pythondev
help
plural
2017-12-14T16:36:41.000668
Seema
pythondev_help_Seema_2017-12-14T16:36:41.000668
1,513,269,401.000668
104,058
pythondev
help
Yea but in this case I set the iterable to a variable and set the size of each pair to 2
2017-12-14T16:38:13.000297
Felicita
pythondev_help_Felicita_2017-12-14T16:38:13.000297
1,513,269,493.000297
104,059
pythondev
help
you said 3.5 right?
2017-12-14T16:38:49.000186
Seema
pythondev_help_Seema_2017-12-14T16:38:49.000186
1,513,269,529.000186
104,060
pythondev
help
Actually wait I think you were right. I’d do something like zip(A[::2], A[1::2])
2017-12-14T16:39:51.000051
Felicita
pythondev_help_Felicita_2017-12-14T16:39:51.000051
1,513,269,591.000051
104,061
pythondev
help
looks good, and....?
2017-12-14T16:40:15.000559
Seema
pythondev_help_Seema_2017-12-14T16:40:15.000559
1,513,269,615.000559
104,062
pythondev
help
Yup that was it. Thanks man
2017-12-14T16:41:44.000309
Felicita
pythondev_help_Felicita_2017-12-14T16:41:44.000309
1,513,269,704.000309
104,063
pythondev
help
you did the work
2017-12-14T16:41:56.000205
Seema
pythondev_help_Seema_2017-12-14T16:41:56.000205
1,513,269,716.000205
104,064
pythondev
help
You pretty much did lol. Cant take all the credit
2017-12-14T16:42:57.000055
Felicita
pythondev_help_Felicita_2017-12-14T16:42:57.000055
1,513,269,777.000055
104,065
pythondev
help
Are you doing python on your phone too?
2017-12-14T16:44:24.000023
Seema
pythondev_help_Seema_2017-12-14T16:44:24.000023
1,513,269,864.000023
104,066
pythondev
help
What's everyone's opinion on the following (complex) scenario: I am building a platform which retrieves order data of multiple webshops, those orders have different suppliers (depending on the products). Each of these suppliers have complete different API's. Expect data to be mapped differently and have different fea...
2017-12-14T17:58:16.000228
Casie
pythondev_help_Casie_2017-12-14T17:58:16.000228
1,513,274,296.000228
104,067
pythondev
help
I think your approach is appropriate, abstract the stuff you can, mixin the stuff that needs tweaking. I have a story that goes with this...
2017-12-14T18:18:27.000449
Seema
pythondev_help_Seema_2017-12-14T18:18:27.000449
1,513,275,507.000449
104,068
pythondev
help
<@Casie> so my dad once worked as a buyer and the problem was that all the suppliers had their own way they supplied the data. The product was a commodity so buying was mostly based on availability and price and not features
2017-12-14T18:19:34.000041
Seema
pythondev_help_Seema_2017-12-14T18:19:34.000041
1,513,275,574.000041
104,069
pythondev
help
he implemented an ingest system and said to the suppliers, "this is our system, here are the tools to adhere, we'll even teach you, if you don't adhere, we will buy from the other companies that do."
2017-12-14T18:20:19.000313
Seema
pythondev_help_Seema_2017-12-14T18:20:19.000313
1,513,275,619.000313
104,070
pythondev
help
there was a bunch of squabbling but my dad's company won because a) they were a big buyer and b) the tech the companies were offering was awful (word docs, xeroxed sheets, faxes(!))
2017-12-14T18:21:58.000126
Seema
pythondev_help_Seema_2017-12-14T18:21:58.000126
1,513,275,718.000126
104,071
pythondev
help
<@Seema> nice story! hehe, yeah it's really weird seeing all these suppliers holding on their own outdated stacks and tools
2017-12-14T18:39:35.000253
Casie
pythondev_help_Casie_2017-12-14T18:39:35.000253
1,513,276,775.000253
104,072
pythondev
help
I'll try to build a little further on the design I had in mind and see how it goes :slightly_smiling_face:
2017-12-14T18:40:58.000036
Casie
pythondev_help_Casie_2017-12-14T18:40:58.000036
1,513,276,858.000036
104,073
pythondev
help
Day one of SANS Automation with Python (573) and I highly recommend it. Learned more (beginner) in an hour, than hours of videos.
2017-12-14T20:27:18.000186
Sibyl
pythondev_help_Sibyl_2017-12-14T20:27:18.000186
1,513,283,238.000186
104,074
pythondev
help
how to give read only persmission to a user in linux ?
2017-12-15T03:32:52.000115
Sara
pythondev_help_Sara_2017-12-15T03:32:52.000115
1,513,308,772.000115
104,075
pythondev
help
i have root and abc user
2017-12-15T03:35:49.000055
Sara
pythondev_help_Sara_2017-12-15T03:35:49.000055
1,513,308,949.000055
104,076
pythondev
help
anyone using visual studio code . and now if you can import python-tksnack so i can test the code ?
2017-12-15T03:35:54.000022
Marg
pythondev_help_Marg_2017-12-15T03:35:54.000022
1,513,308,954.000022
104,077
pythondev
help
or any other sound module
2017-12-15T03:36:16.000318
Marg
pythondev_help_Marg_2017-12-15T03:36:16.000318
1,513,308,976.000318
104,078
pythondev
help
i want to restrict user abc to a particular directory as in make him read only for that directory
2017-12-15T03:36:20.000327
Sara
pythondev_help_Sara_2017-12-15T03:36:20.000327
1,513,308,980.000327
104,079
pythondev
help
but root should have full permission for that directory
2017-12-15T03:36:38.000078
Sara
pythondev_help_Sara_2017-12-15T03:36:38.000078
1,513,308,998.000078
104,080
pythondev
help
its only abc user which should have read only persmission for that directory
2017-12-15T03:36:58.000193
Sara
pythondev_help_Sara_2017-12-15T03:36:58.000193
1,513,309,018.000193
104,081
pythondev
help
<@Sara> default permissions are 644 for a file and 755 for a directory, which means the owner can read-and-write, and others can only read and go from dir to dir
2017-12-15T03:37:00.000136
Suellen
pythondev_help_Suellen_2017-12-15T03:37:00.000136
1,513,309,020.000136
104,082
pythondev
help
so if root creates a file, the users can't write to it by default
2017-12-15T03:37:23.000148
Suellen
pythondev_help_Suellen_2017-12-15T03:37:23.000148
1,513,309,043.000148
104,083
pythondev
help
how do i make aplay only play the wave file once or twice and the stop
2017-12-15T05:08:57.000192
Marg
pythondev_help_Marg_2017-12-15T05:08:57.000192
1,513,314,537.000192
104,084
pythondev
help
how can you connect spyder to remote linux machine
2017-12-15T07:11:39.000007
Malorie
pythondev_help_Malorie_2017-12-15T07:11:39.000007
1,513,321,899.000007
104,085
pythondev
help
to access code
2017-12-15T07:11:42.000235
Malorie
pythondev_help_Malorie_2017-12-15T07:11:42.000235
1,513,321,902.000235
104,086
pythondev
help
a better question rstudio has a version which runs remotely and can be accessed through browser. is there something similar for python?
2017-12-15T07:12:15.000444
Malorie
pythondev_help_Malorie_2017-12-15T07:12:15.000444
1,513,321,935.000444
104,087
pythondev
help
I want to convert a string character of 'ü' to '&amp;uuml;
2017-12-15T11:03:07.000451
Krysta
pythondev_help_Krysta_2017-12-15T11:03:07.000451
1,513,335,787.000451
104,088
pythondev
help
Anyone have any ideas? apart from string replace
2017-12-15T11:03:16.000415
Krysta
pythondev_help_Krysta_2017-12-15T11:03:16.000415
1,513,335,796.000415
104,089
pythondev
help
stdlib lacks in this regard it seems
2017-12-15T11:06:42.000523
Suellen
pythondev_help_Suellen_2017-12-15T11:06:42.000523
1,513,336,002.000523
104,090
pythondev
help
``` from html.entities import codepoint2name def escape(char): name = codepoint2name[ord(char)] return f'&amp;{name};' print(escape('ü')) &amp;uuml; ```
2017-12-15T11:07:42.000217
Suellen
pythondev_help_Suellen_2017-12-15T11:07:42.000217
1,513,336,062.000217
104,091
pythondev
help
Thanks <@Suellen>
2017-12-15T11:09:04.000190
Krysta
pythondev_help_Krysta_2017-12-15T11:09:04.000190
1,513,336,144.00019
104,092
pythondev
help
If I'm looking to find something in a 2d array can you use str.index(x,y) to return two positions?
2017-12-15T12:46:02.000551
Devorah
pythondev_help_Devorah_2017-12-15T12:46:02.000551
1,513,341,962.000551
104,093
pythondev
help
or does it just do one
2017-12-15T12:46:22.000086
Devorah
pythondev_help_Devorah_2017-12-15T12:46:22.000086
1,513,341,982.000086
104,094
pythondev
help
didn't get it
2017-12-15T12:51:25.000332
Tawanna
pythondev_help_Tawanna_2017-12-15T12:51:25.000332
1,513,342,285.000332
104,095
pythondev
help
what are you trying to find? Find 'y' inside the array indexed by 'x'?
2017-12-15T12:51:52.000479
Tawanna
pythondev_help_Tawanna_2017-12-15T12:51:52.000479
1,513,342,312.000479
104,096
pythondev
help
My problem says - # # Searches the 2d array 'records' for firstname, lastname. # Returns the index of the record or -1 if no record exists #
2017-12-15T12:52:25.000197
Devorah
pythondev_help_Devorah_2017-12-15T12:52:25.000197
1,513,342,345.000197
104,097
pythondev
help
so I'm wondering if they want both values returned
2017-12-15T12:52:44.000151
Devorah
pythondev_help_Devorah_2017-12-15T12:52:44.000151
1,513,342,364.000151
104,098
pythondev
help
nope, I don't think so
2017-12-15T12:53:03.000634
Tawanna
pythondev_help_Tawanna_2017-12-15T12:53:03.000634
1,513,342,383.000634
104,099
pythondev
help
or just to match both then return either one in order to figure out the index of birthdya
2017-12-15T12:53:05.000503
Devorah
pythondev_help_Devorah_2017-12-15T12:53:05.000503
1,513,342,385.000503
104,100
pythondev
help
for quick tests like these I would recommend you using the python REPL
2017-12-15T12:54:43.000617
Tawanna
pythondev_help_Tawanna_2017-12-15T12:54:43.000617
1,513,342,483.000617
104,101
pythondev
help
however, to help you on that matter, what is the answer you're supposed to give?
2017-12-15T12:55:06.000300
Tawanna
pythondev_help_Tawanna_2017-12-15T12:55:06.000300
1,513,342,506.0003
104,102