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
or use a recursive generator function... ``` def casePermutations(word): if word: for restOfWord in casePermutations(word[1:]): yield word[0].lower() + restOfWord yield word[0].upper() + restOfWord else: yield '' ``` ``` >>> list(casePermutations('foo')) ['foo'...
2019-01-24T21:23:54.416600
Kiera
pythondev_help_Kiera_2019-01-24T21:23:54.416600
1,548,365,034.4166
4,021
pythondev
help
guess i should have read this first :)
2019-01-24T21:27:51.416900
Kiera
pythondev_help_Kiera_2019-01-24T21:27:51.416900
1,548,365,271.4169
4,022
pythondev
help
Heh. Good to post the code in the channel regardless.
2019-01-24T21:32:19.417100
Sasha
pythondev_help_Sasha_2019-01-24T21:32:19.417100
1,548,365,539.4171
4,023
pythondev
help
I've used `spyne` to build a SOAP server. And that's how my request looks like. ``` <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:spy="soap-service"> <Header/> <soapenv:Body> <soap_service> <email>test@test.com</email> <passwo...
2019-01-25T03:47:59.422200
Valeri
pythondev_help_Valeri_2019-01-25T03:47:59.422200
1,548,388,079.4222
4,024
pythondev
help
What I get is `<Element action at 0x7f8fe04988c8>`
2019-01-25T03:48:24.422600
Valeri
pythondev_help_Valeri_2019-01-25T03:48:24.422600
1,548,388,104.4226
4,025
pythondev
help
What I expect is my xml payload
2019-01-25T03:48:34.422900
Valeri
pythondev_help_Valeri_2019-01-25T03:48:34.422900
1,548,388,114.4229
4,026
pythondev
help
I'm missing out on something. New to SOAP.
2019-01-25T03:49:05.423600
Valeri
pythondev_help_Valeri_2019-01-25T03:49:05.423600
1,548,388,145.4236
4,027
pythondev
help
`<Element action at 0x7f8fe04988c8>` looks very much like you are printing/serializing an actual object
2019-01-25T05:02:03.424400
Yaeko
pythondev_help_Yaeko_2019-01-25T05:02:03.424400
1,548,392,523.4244
4,028
pythondev
help
And not the text/request/whatever content from an attribute or method belonging to that object
2019-01-25T05:02:19.424900
Yaeko
pythondev_help_Yaeko_2019-01-25T05:02:19.424900
1,548,392,539.4249
4,029
pythondev
help
However, I have never used `spyne` so I do not the syntax/issue/common pitfall causing this.
2019-01-25T05:02:57.425700
Yaeko
pythondev_help_Yaeko_2019-01-25T05:02:57.425700
1,548,392,577.4257
4,030
pythondev
help
Can anybody help how to integrate this api in django or oscar <https://www.recombee.com/>
2019-01-25T05:44:19.427000
Hyman
pythondev_help_Hyman_2019-01-25T05:44:19.427000
1,548,395,059.427
4,031
pythondev
help
<@Marc> No, not yet.
2019-01-25T06:11:11.427200
Rodrick
pythondev_help_Rodrick_2019-01-25T06:11:11.427200
1,548,396,671.4272
4,032
pythondev
help
None
2019-01-25T07:16:23.428300
Rodrick
pythondev_help_Rodrick_2019-01-25T07:16:23.428300
1,548,400,583.4283
4,033
pythondev
help
you can’t compare groups directly like that
2019-01-25T07:17:24.428900
Hiroko
pythondev_help_Hiroko_2019-01-25T07:17:24.428900
1,548,400,644.4289
4,034
pythondev
help
so, you have the variable
2019-01-25T07:17:38.429400
Hiroko
pythondev_help_Hiroko_2019-01-25T07:17:38.429400
1,548,400,658.4294
4,035
pythondev
help
What do you mean?
2019-01-25T07:17:42.429700
Rodrick
pythondev_help_Rodrick_2019-01-25T07:17:42.429700
1,548,400,662.4297
4,036
pythondev
help
the first comparison goes through
2019-01-25T07:17:44.429800
Hiroko
pythondev_help_Hiroko_2019-01-25T07:17:44.429800
1,548,400,664.4298
4,037
pythondev
help
but the second just says “2”
2019-01-25T07:17:52.430000
Hiroko
pythondev_help_Hiroko_2019-01-25T07:17:52.430000
1,548,400,672.43
4,038
pythondev
help
compare 2 with what? you don’t specify
2019-01-25T07:18:00.430300
Hiroko
pythondev_help_Hiroko_2019-01-25T07:18:00.430300
1,548,400,680.4303
4,039
pythondev
help
Oh, ok
2019-01-25T07:18:07.430500
Rodrick
pythondev_help_Rodrick_2019-01-25T07:18:07.430500
1,548,400,687.4305
4,040
pythondev
help
I see
2019-01-25T07:18:13.430900
Rodrick
pythondev_help_Rodrick_2019-01-25T07:18:13.430900
1,548,400,693.4309
4,041
pythondev
help
None
2019-01-25T07:18:52.431300
Rodrick
pythondev_help_Rodrick_2019-01-25T07:18:52.431300
1,548,400,732.4313
4,042
pythondev
help
Like that?
2019-01-25T07:19:00.431700
Rodrick
pythondev_help_Rodrick_2019-01-25T07:19:00.431700
1,548,400,740.4317
4,043
pythondev
help
yep, or you could do `if xfac1 in [1, 2, 3, 4]:`
2019-01-25T07:19:19.432200
Hiroko
pythondev_help_Hiroko_2019-01-25T07:19:19.432200
1,548,400,759.4322
4,044
pythondev
help
OK
2019-01-25T07:19:25.432400
Rodrick
pythondev_help_Rodrick_2019-01-25T07:19:25.432400
1,548,400,765.4324
4,045
pythondev
help
Ok*
2019-01-25T07:19:29.432700
Rodrick
pythondev_help_Rodrick_2019-01-25T07:19:29.432700
1,548,400,769.4327
4,046
pythondev
help
I'll try it
2019-01-25T07:19:41.433100
Rodrick
pythondev_help_Rodrick_2019-01-25T07:19:41.433100
1,548,400,781.4331
4,047
pythondev
help
but also note what you’re passing in for a value to `xfac1`
2019-01-25T07:19:44.433300
Hiroko
pythondev_help_Hiroko_2019-01-25T07:19:44.433300
1,548,400,784.4333
4,048
pythondev
help
you’re setting it as 6
2019-01-25T07:19:55.433600
Hiroko
pythondev_help_Hiroko_2019-01-25T07:19:55.433600
1,548,400,795.4336
4,049
pythondev
help
so with the revised statement, you will be skipping over that one
2019-01-25T07:20:25.434100
Hiroko
pythondev_help_Hiroko_2019-01-25T07:20:25.434100
1,548,400,825.4341
4,050
pythondev
help
Ok
2019-01-25T07:20:42.434300
Rodrick
pythondev_help_Rodrick_2019-01-25T07:20:42.434300
1,548,400,842.4343
4,051
pythondev
help
That worked thanks.
2019-01-25T07:22:34.434600
Rodrick
pythondev_help_Rodrick_2019-01-25T07:22:34.434600
1,548,400,954.4346
4,052
pythondev
help
:thumbsup:
2019-01-25T07:22:44.434800
Hiroko
pythondev_help_Hiroko_2019-01-25T07:22:44.434800
1,548,400,964.4348
4,053
pythondev
help
None
2019-01-25T07:35:19.435200
Coleen
pythondev_help_Coleen_2019-01-25T07:35:19.435200
1,548,401,719.4352
4,054
pythondev
help
So basically I want to add another value to the iterator manually.
2019-01-25T07:35:56.435600
Coleen
pythondev_help_Coleen_2019-01-25T07:35:56.435600
1,548,401,756.4356
4,055
pythondev
help
`itertools.chain` perhaps?
2019-01-25T07:43:23.435800
Jenni
pythondev_help_Jenni_2019-01-25T07:43:23.435800
1,548,402,203.4358
4,056
pythondev
help
Hi! Does anyone know of if there exist a Python source coude cross reference tool, something like <https://github.com/bootlin/elixir> or LXR for C/C++ projects. Idea is to have a web enabled Python project browser for quick lookups (so that potential user do not have to setup dev-env/IDE)? Thanks!
2019-01-25T08:10:03.439900
Jenni
pythondev_help_Jenni_2019-01-25T08:10:03.439900
1,548,403,803.4399
4,057
pythondev
help
I don't have an answer, other than to say pipenv is hell.
2019-01-25T08:43:33.440900
Melynda
pythondev_help_Melynda_2019-01-25T08:43:33.440900
1,548,405,813.4409
4,058
pythondev
help
I second Mat
2019-01-25T08:43:48.441100
Valeri
pythondev_help_Valeri_2019-01-25T08:43:48.441100
1,548,405,828.4411
4,059
pythondev
help
I haven't heard of conda before, we're talking internally about trying out poetry though. Interesting that conda has built-in support for different environment _versions_, which would help our transition to Py3.7
2019-01-25T08:49:20.441300
Melynda
pythondev_help_Melynda_2019-01-25T08:49:20.441300
1,548,406,160.4413
4,060
pythondev
help
yeah it looks like that conda is the only one among these that automatically creates an isolated env and download for you the correct python version…. I tried poetry, and I think its strong feature is the dependencies management Now i am trying pipenv…
2019-01-25T09:09:13.442200
Alicia
pythondev_help_Alicia_2019-01-25T09:09:13.442200
1,548,407,353.4422
4,061
pythondev
help
pipenv can use pyenv to build a required python version
2019-01-25T09:23:38.442600
Jimmy
pythondev_help_Jimmy_2019-01-25T09:23:38.442600
1,548,408,218.4426
4,062
pythondev
help
Pipenv does that. I personally hate conda
2019-01-25T09:24:27.443000
Jonas
pythondev_help_Jonas_2019-01-25T09:24:27.443000
1,548,408,267.443
4,063
pythondev
help
``` $ pipenv --python 3.7 Warning: Python 3.7 was not found on your system...```
2019-01-25T09:24:57.443200
Melynda
pythondev_help_Melynda_2019-01-25T09:24:57.443200
1,548,408,297.4432
4,064
pythondev
help
<@Jonas> ``` pipenv --python 3.6 Warning: Python 3.6 was not found on your system… You can specify specific versions of Python with: $ pipenv --python path/to/python ```
2019-01-25T09:25:24.443400
Alicia
pythondev_help_Alicia_2019-01-25T09:25:24.443400
1,548,408,324.4434
4,065
pythondev
help
So I have to somehow manually install different versions? Shame, I was hoping for something more like `nvm`
2019-01-25T09:25:32.443600
Melynda
pythondev_help_Melynda_2019-01-25T09:25:32.443600
1,548,408,332.4436
4,066
pythondev
help
do you have pyenv installed ?
2019-01-25T09:26:09.443800
Jimmy
pythondev_help_Jimmy_2019-01-25T09:26:09.443800
1,548,408,369.4438
4,067
pythondev
help
``` &gt; pipenv --python 3.3 Warning: Python 3.3 was not found on your system… Would you like us to install CPython 3.3.7 with pyenv? [Y/n]: ```
2019-01-25T09:26:51.444000
Jimmy
pythondev_help_Jimmy_2019-01-25T09:26:51.444000
1,548,408,411.444
4,068
pythondev
help
``` ✘  ~  brew install pyenv Updating Homebrew... ==&gt; Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==&gt; Updated Formulae youtube-dl ✔ ==&gt; Downloading <https://homebrew.bintray.com/bottles/pyenv-1.2.9.mojave.bottle.tar.gz> ######################################################################## 100.0...
2019-01-25T09:28:55.444200
Melynda
pythondev_help_Melynda_2019-01-25T09:28:55.444200
1,548,408,535.4442
4,069
pythondev
help
works on my laptop :smile: don't know about :apple:
2019-01-25T09:29:48.444400
Jimmy
pythondev_help_Jimmy_2019-01-25T09:29:48.444400
1,548,408,588.4444
4,070
pythondev
help
`pipenv, version 11.10.1`
2019-01-25T09:29:52.444600
Jimmy
pythondev_help_Jimmy_2019-01-25T09:29:52.444600
1,548,408,592.4446
4,071
pythondev
help
…dafuq, they changed version strings?! `pipenv, version 2018.11.26`
2019-01-25T09:30:19.444800
Melynda
pythondev_help_Melynda_2019-01-25T09:30:19.444800
1,548,408,619.4448
4,072
pythondev
help
`brew install pyenv`
2019-01-25T09:30:46.445000
Jonas
pythondev_help_Jonas_2019-01-25T09:30:46.445000
1,548,408,646.445
4,073
pythondev
help
`pipenv --python 3.2.1`
2019-01-25T09:30:55.445200
Jonas
pythondev_help_Jonas_2019-01-25T09:30:55.445200
1,548,408,655.4452
4,074
pythondev
help
``` /v/f/9/t/T/tmp.TOwMvSTH  pipenv --python 3.3 Fri Jan 25 14:31:12 2019 Warning: Python 3.3 was not found on your system… Would you like us to install CPython 3.3.7 with pyenv? [Y/n]: y ...
2019-01-25T09:31:33.445400
Jonas
pythondev_help_Jonas_2019-01-25T09:31:33.445400
1,548,408,693.4454
4,075
pythondev
help
maybe some path thing. Is `pyenv` available in your paht ?
2019-01-25T09:32:09.445600
Jimmy
pythondev_help_Jimmy_2019-01-25T09:32:09.445600
1,548,408,729.4456
4,076
pythondev
help
Yup, I'm using it to manually install 3.7.1 now.
2019-01-25T09:33:22.445800
Melynda
pythondev_help_Melynda_2019-01-25T09:33:22.445800
1,548,408,802.4458
4,077
pythondev
help
Open a new shell before running `pipenv --python`
2019-01-25T09:36:16.446000
Jonas
pythondev_help_Jonas_2019-01-25T09:36:16.446000
1,548,408,976.446
4,078
pythondev
help
Ugh, which doesn't work because I need to manually install all the build deps? This is a rabbit hole I'm not willing to dig into right now.
2019-01-25T09:36:31.446200
Melynda
pythondev_help_Melynda_2019-01-25T09:36:31.446200
1,548,408,991.4462
4,079
pythondev
help
And it usually says you have to add something to your bashrc: `status --is-interactive; and source (pyenv init -|psub)`
2019-01-25T09:36:54.446400
Jonas
pythondev_help_Jonas_2019-01-25T09:36:54.446400
1,548,409,014.4464
4,080
pythondev
help
<https://github.com/pyenv/pyenv#homebrew-on-macos> it's explained here.
2019-01-25T09:37:24.446600
Jonas
pythondev_help_Jonas_2019-01-25T09:37:24.446600
1,548,409,044.4466
4,081
pythondev
help
and <https://github.com/pyenv/pyenv/wiki#suggested-build-environment> gives you what you need to install
2019-01-25T09:37:50.446900
Jonas
pythondev_help_Jonas_2019-01-25T09:37:50.446900
1,548,409,070.4469
4,082
pythondev
help
Not including _required_ packages in the install docs is really poor form. :confused:
2019-01-25T09:38:38.447200
Melynda
pythondev_help_Melynda_2019-01-25T09:38:38.447200
1,548,409,118.4472
4,083
pythondev
help
"optional" – no, if it doesn't work without them then that thing isn't optional.
2019-01-25T09:39:03.447400
Melynda
pythondev_help_Melynda_2019-01-25T09:39:03.447400
1,548,409,143.4474
4,084
pythondev
help
Open a ticket and say this is annoying. I also found it annoying, but it's all linked in the readme.
2019-01-25T09:41:53.447700
Jonas
pythondev_help_Jonas_2019-01-25T09:41:53.447700
1,548,409,313.4477
4,085
pythondev
help
``` =&gt; pyenv install 3.6.4 python-build: use openssl from homebrew python-build: use readline from homebrew Downloading Python-3.6.4.tar.xz... -&gt; <https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz> Installing Python-3.6.4... python-build: use readline from homebrew BUILD FAILED (OS X 10.13.6 using pyt...
2019-01-25T10:01:50.448200
Alicia
pythondev_help_Alicia_2019-01-25T10:01:50.448200
1,548,410,510.4482
4,086
pythondev
help
Where is the pyenv + pyenv-virtualenv option?
2019-01-25T10:02:52.448500
Gemma
pythondev_help_Gemma_2019-01-25T10:02:52.448500
1,548,410,572.4485
4,087
pythondev
help
<@Gemma> it’s an open poll you can add alternatives :smile:
2019-01-25T10:03:28.448700
Alicia
pythondev_help_Alicia_2019-01-25T10:03:28.448700
1,548,410,608.4487
4,088
pythondev
help
<https://github.com/pyenv/pyenv/issues/1107>
2019-01-25T10:05:57.448900
Jonas
pythondev_help_Jonas_2019-01-25T10:05:57.448900
1,548,410,757.4489
4,089
pythondev
help
<@Alicia>: follow the readme. You need to run `xcode-select --install`
2019-01-25T10:06:09.449200
Jonas
pythondev_help_Jonas_2019-01-25T10:06:09.449200
1,548,410,769.4492
4,090
pythondev
help
and some other command. MacOS ships with a pretty old build system
2019-01-25T10:06:29.449500
Jonas
pythondev_help_Jonas_2019-01-25T10:06:29.449500
1,548,410,789.4495
4,091
pythondev
help
I have already installed xcode a lot of time ago :thinking_face: i will try to run that again
2019-01-25T10:07:30.449800
Alicia
pythondev_help_Alicia_2019-01-25T10:07:30.449800
1,548,410,850.4498
4,092
pythondev
help
``` xcode-select --install xcode-select: error: command line tools are already installed, use "Software Update" to install updates ```
2019-01-25T10:08:31.450000
Alicia
pythondev_help_Alicia_2019-01-25T10:08:31.450000
1,548,410,911.45
4,093
pythondev
help
How can I split a string of the form "ABC123" into "ABC", "123"?
2019-01-25T10:22:40.451300
Coleen
pythondev_help_Coleen_2019-01-25T10:22:40.451300
1,548,411,760.4513
4,094
pythondev
help
is it always the same pattern?
2019-01-25T10:23:08.452000
Claudine
pythondev_help_Claudine_2019-01-25T10:23:08.452000
1,548,411,788.452
4,095
pythondev
help
The number of letters and digits can be arbitrary, but always in this order.
2019-01-25T10:23:13.452100
Coleen
pythondev_help_Coleen_2019-01-25T10:23:13.452100
1,548,411,793.4521
4,096
pythondev
help
Please read the readme
2019-01-25T10:23:40.452300
Jonas
pythondev_help_Jonas_2019-01-25T10:23:40.452300
1,548,411,820.4523
4,097
pythondev
help
`sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /` as well
2019-01-25T10:24:17.453000
Jonas
pythondev_help_Jonas_2019-01-25T10:24:17.453000
1,548,411,857.453
4,098
pythondev
help
Or follow the ticket I linked :+1:
2019-01-25T10:24:39.453500
Jonas
pythondev_help_Jonas_2019-01-25T10:24:39.453500
1,548,411,879.4535
4,099
pythondev
help
I second that pipenv is basically not a real option.
2019-01-25T10:24:51.453900
Chester
pythondev_help_Chester_2019-01-25T10:24:51.453900
1,548,411,891.4539
4,100
pythondev
help
Poetry ftw
2019-01-25T10:24:55.454200
Chester
pythondev_help_Chester_2019-01-25T10:24:55.454200
1,548,411,895.4542
4,101
pythondev
help
``` import re s = "ABC123" pattern = re.compile(r"([a-zA-Z]*)(\d*)") pattern.sub(r'\1 \2', s) ```
2019-01-25T10:25:10.454600
Claudine
pythondev_help_Claudine_2019-01-25T10:25:10.454600
1,548,411,910.4546
4,102
pythondev
help
should work for any given `s` as long as the patten is consistent
2019-01-25T10:25:28.455000
Claudine
pythondev_help_Claudine_2019-01-25T10:25:28.455000
1,548,411,928.455
4,103
pythondev
help
a-zA-Z?
2019-01-25T10:25:52.455200
Coleen
pythondev_help_Coleen_2019-01-25T10:25:52.455200
1,548,411,952.4552
4,104
pythondev
help
things in between `[ ]` match any given character
2019-01-25T10:26:13.455800
Claudine
pythondev_help_Claudine_2019-01-25T10:26:13.455800
1,548,411,973.4558
4,105
pythondev
help
`a-z` matches any lowercase letter a through z
2019-01-25T10:26:28.456300
Claudine
pythondev_help_Claudine_2019-01-25T10:26:28.456300
1,548,411,988.4563
4,106
pythondev
help
`A-Z` is the same but for uppercase
2019-01-25T10:26:34.456800
Claudine
pythondev_help_Claudine_2019-01-25T10:26:34.456800
1,548,411,994.4568
4,107
pythondev
help
Yes, i mean you put lowercase z at the end, is that a typo
2019-01-25T10:26:35.456900
Coleen
pythondev_help_Coleen_2019-01-25T10:26:35.456900
1,548,411,995.4569
4,108
pythondev
help
oh rip yea that should be caps
2019-01-25T10:26:46.457200
Claudine
pythondev_help_Claudine_2019-01-25T10:26:46.457200
1,548,412,006.4572
4,109
pythondev
help
awesome, tnx!
2019-01-25T10:26:55.457500
Coleen
pythondev_help_Coleen_2019-01-25T10:26:55.457500
1,548,412,015.4575
4,110
pythondev
help
no prob
2019-01-25T10:26:59.457800
Claudine
pythondev_help_Claudine_2019-01-25T10:26:59.457800
1,548,412,019.4578
4,111
pythondev
help
if you've got a problem, i've got a regex
2019-01-25T10:27:11.458200
Claudine
pythondev_help_Claudine_2019-01-25T10:27:11.458200
1,548,412,031.4582
4,112
pythondev
help
:smile:
2019-01-25T10:27:17.458600
Coleen
pythondev_help_Coleen_2019-01-25T10:27:17.458600
1,548,412,037.4586
4,113
pythondev
help
good to know!
2019-01-25T10:27:25.458900
Coleen
pythondev_help_Coleen_2019-01-25T10:27:25.458900
1,548,412,045.4589
4,114
pythondev
help
Does anyone by any chance know if it's possible to have multiple sys.path.append statements if I'm linking modules/packages contained in other directories?
2019-01-25T10:28:31.459800
Granville
pythondev_help_Granville_2019-01-25T10:28:31.459800
1,548,412,111.4598
4,115
pythondev
help
seems like you should be able to do that
2019-01-25T10:28:51.460100
Claudine
pythondev_help_Claudine_2019-01-25T10:28:51.460100
1,548,412,131.4601
4,116
pythondev
help
thanks. I don't know if it's the most efficient way to do it but I guess it's what makes the most amt of sense atm
2019-01-25T10:29:38.460800
Granville
pythondev_help_Granville_2019-01-25T10:29:38.460800
1,548,412,178.4608
4,117
pythondev
help
I'm just creating a `pyproject.toml` now from our Pipfile. Bit of a pain, but I'm keen to compare the speed of pipenv vs poetry.
2019-01-25T10:30:23.460900
Melynda
pythondev_help_Melynda_2019-01-25T10:30:23.460900
1,548,412,223.4609
4,118
pythondev
help
Huh. Poetry is actually _slower_ on initial install than pipenv.
2019-01-25T10:38:53.461100
Melynda
pythondev_help_Melynda_2019-01-25T10:38:53.461100
1,548,412,733.4611
4,119
pythondev
help
```$ time pipenv install pipenv install 151.43s user 41.61s system 207% cpu 1:32.89 total $ time poetry install poetry install 89.01s user 28.50s system 89% cpu 2:11.40 total```
2019-01-25T10:40:58.461300
Melynda
pythondev_help_Melynda_2019-01-25T10:40:58.461300
1,548,412,858.4613
4,120