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
|
indeed
|
2017-08-09T12:53:50.051481
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:53:50.051481
| 1,502,283,230.051481 | 89,303 |
pythondev
|
help
|
and this is internal IP will do a route print
|
2017-08-09T12:54:01.058073
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:54:01.058073
| 1,502,283,241.058073 | 89,304 |
pythondev
|
help
|
back
|
2017-08-09T12:54:02.058710
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:54:02.058710
| 1,502,283,242.05871 | 89,305 |
pythondev
|
help
|
i verified in the term
|
2017-08-09T12:54:11.064284
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:54:11.064284
| 1,502,283,251.064284 | 89,306 |
pythondev
|
help
|
does OS X's ping support that flag? :slightly_smiling_face:
|
2017-08-09T12:54:36.079361
|
Suellen
|
pythondev_help_Suellen_2017-08-09T12:54:36.079361
| 1,502,283,276.079361 | 89,307 |
pythondev
|
help
|
it does
|
2017-08-09T12:54:41.082391
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:54:41.082391
| 1,502,283,281.082391 | 89,308 |
pythondev
|
help
|
oh :confused:
|
2017-08-09T12:54:47.086311
|
Suellen
|
pythondev_help_Suellen_2017-08-09T12:54:47.086311
| 1,502,283,287.086311 | 89,309 |
pythondev
|
help
|
yeah i can not provide you with the output but it does work
|
2017-08-09T12:55:05.097235
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:55:05.097235
| 1,502,283,305.097235 | 89,310 |
pythondev
|
help
|
since this is deep inside a private network
|
2017-08-09T12:55:15.102924
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:55:15.102924
| 1,502,283,315.102924 | 89,311 |
pythondev
|
help
|
but it does work
|
2017-08-09T12:55:17.104265
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:55:17.104265
| 1,502,283,317.104265 | 89,312 |
pythondev
|
help
|
the command does print back
|
2017-08-09T12:55:21.107235
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:55:21.107235
| 1,502,283,321.107235 | 89,313 |
pythondev
|
help
|
but not the route?
|
2017-08-09T12:56:08.135418
|
Suellen
|
pythondev_help_Suellen_2017-08-09T12:56:08.135418
| 1,502,283,368.135418 | 89,314 |
pythondev
|
help
|
keyboard-cowboy:~ stephenziehr$ ping -R <http://ya.ru|ya.ru> -c 1
PING <http://ya.ru|ya.ru> (87.250.250.242): 56 data bytes
64 bytes from 87.250.250.242: icmp_seq=0 ttl=56 time=305.609 ms
RR: <http://agr02.cerberus.nuc.nxcorp.net|agr02.cerberus.nuc.nxcorp.net> (207.65.6.130)
207.65.6.165
<http://the-nexus-g.bar2.nashville1.level3.net|the-nexus-g.bar2.nashville1.level3.net> (4.31.149.122)
<http://lo-22.bar2.nashville1.level3.net|lo-22.bar2.nashville1.level3.net> (4.69.180.99)
<http://xe-11-0-3.edge3.frankfurt1.level3.net|xe-11-0-3.edge3.frankfurt1.level3.net> (62.67.38.217)
<http://fra1-b1.yndx.net|fra1-b1.yndx.net> (5.45.200.24)
<http://iva-b-c2-ae0-801.yndx.net|iva-b-c2-ae0-801.yndx.net> (141.8.164.190)
<http://ya.ru|ya.ru> (87.250.250.242)
<http://ya.ru|ya.ru> (87.250.250.242)
--- <http://ya.ru|ya.ru> ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 305.609/305.609/305.609/0.000 m
|
2017-08-09T12:56:19.142702
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:56:19.142702
| 1,502,283,379.142702 | 89,315 |
pythondev
|
help
|
that is the termainal
|
2017-08-09T12:56:23.144879
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:56:23.144879
| 1,502,283,383.144879 | 89,316 |
pythondev
|
help
|
to the same place your script goes
|
2017-08-09T12:56:29.148797
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:56:29.148797
| 1,502,283,389.148797 | 89,317 |
pythondev
|
help
|
the RR part is the route
|
2017-08-09T12:57:25.183384
|
Antionette
|
pythondev_help_Antionette_2017-08-09T12:57:25.183384
| 1,502,283,445.183384 | 89,318 |
pythondev
|
help
|
yep ok i got it now i just need to list it cleaner
|
2017-08-09T12:59:10.248145
|
Ressie
|
pythondev_help_Ressie_2017-08-09T12:59:10.248145
| 1,502,283,550.248145 | 89,319 |
pythondev
|
help
|
i need to split the lines
|
2017-08-09T13:00:34.300869
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:00:34.300869
| 1,502,283,634.300869 | 89,320 |
pythondev
|
help
|
<@Suellen> what is the last part where you decode
|
2017-08-09T13:02:02.356009
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:02:02.356009
| 1,502,283,722.356009 | 89,321 |
pythondev
|
help
|
`out.decode('utf-8')`?
|
2017-08-09T13:02:16.364801
|
Suellen
|
pythondev_help_Suellen_2017-08-09T13:02:16.364801
| 1,502,283,736.364801 | 89,322 |
pythondev
|
help
|
(b’PING <http://ya.ru|ya.ru> (87.250.250.242): 56 data bytes\n64 bytes from 87.250.250.242: icmp_seq=0 ttl=56 time=148.555 ms\nRR: \<http://tagr02.cerberus.nuc.nxcorp.net|tagr02.cerberus.nuc.nxcorp.net> (207.65.6.130)\n\t207.65.6.165\n\<http://tthe-nexus-g.bar2.nashville1.level3.net|tthe-nexus-g.bar2.nashville1.level3.net> (4.31.149.122)\n\<http://tlo-22.bar2.nashville1.level3.net|tlo-22.bar2.nashville1.level3.net> (4.69.180.99)\n\<http://txe-11-0-3.edge3.frankfurt1.level3.net|txe-11-0-3.edge3.frankfurt1.level3.net> (62.67.38.217)\n\<http://tfra1-b1.yndx.net|tfra1-b1.yndx.net> (5.45.200.24)\n\<http://tiva-b-c2-ae0-801.yndx.net|tiva-b-c2-ae0-801.yndx.net> (141.8.164.190)\n\<http://tya.ru|tya.ru> (87.250.250.242)\n\<http://tya.ru|tya.ru> (87.250.250.242)\n\n--- <http://ya.ru|ya.ru> ping statistics ---\n1 packets transmitted, 1 packets received, 0.0% packet loss\nround-trip min/avg/max/stddev = 148.555/148.555/148.555/0.000 ms\n’, None)
|
2017-08-09T13:03:46.421474
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:03:46.421474
| 1,502,283,826.421474 | 89,323 |
pythondev
|
help
|
as you can see it is ugly and not spliting up
|
2017-08-09T13:03:53.425931
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:03:53.425931
| 1,502,283,833.425931 | 89,324 |
pythondev
|
help
|
i want to run a .split
|
2017-08-09T13:04:13.437637
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:04:13.437637
| 1,502,283,853.437637 | 89,325 |
pythondev
|
help
|
with no luck
|
2017-08-09T13:04:16.440092
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:04:16.440092
| 1,502,283,856.440092 | 89,326 |
pythondev
|
help
|
i have to do a [0].splitlines
|
2017-08-09T13:08:37.596692
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:08:37.596692
| 1,502,284,117.596692 | 89,327 |
pythondev
|
help
|
p.communicate returns a tuple
|
2017-08-09T13:09:03.612039
|
Suellen
|
pythondev_help_Suellen_2017-08-09T13:09:03.612039
| 1,502,284,143.612039 | 89,328 |
pythondev
|
help
|
instead of assigning it to one value, like `result = p.communicate()`, unpack it into two variables: `out, err = p.communicate()`
|
2017-08-09T13:09:34.630562
|
Suellen
|
pythondev_help_Suellen_2017-08-09T13:09:34.630562
| 1,502,284,174.630562 | 89,329 |
pythondev
|
help
|
that helped but i am not able to check for a route inside
|
2017-08-09T13:20:36.019065
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:20:36.019065
| 1,502,284,836.019065 | 89,330 |
pythondev
|
help
|
a if xxxxxxx in out.splitlines() does not hit
|
2017-08-09T13:20:53.029107
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:20:53.029107
| 1,502,284,853.029107 | 89,331 |
pythondev
|
help
|
what am i missing on the format of this data
|
2017-08-09T13:21:11.039701
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:21:11.039701
| 1,502,284,871.039701 | 89,332 |
pythondev
|
help
|
`if 'xxx' in out.splitlines()` is true when one of the items in this list is precisely `'xxx'`
|
2017-08-09T13:21:45.060257
|
Suellen
|
pythondev_help_Suellen_2017-08-09T13:21:45.060257
| 1,502,284,905.060257 | 89,333 |
pythondev
|
help
|
yeah i tried pulled the output
|
2017-08-09T13:22:11.075235
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:22:11.075235
| 1,502,284,931.075235 | 89,334 |
pythondev
|
help
|
you probably wanted to check if 'xxx' is part of the string (it's a list of strings)
|
2017-08-09T13:22:14.077504
|
Suellen
|
pythondev_help_Suellen_2017-08-09T13:22:14.077504
| 1,502,284,934.077504 | 89,335 |
pythondev
|
help
|
ok whats that syntax then
|
2017-08-09T13:22:28.085606
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:22:28.085606
| 1,502,284,948.085606 | 89,336 |
pythondev
|
help
|
you can do `'xxx' in out` without the split... maybe..
|
2017-08-09T13:23:02.105599
|
Suellen
|
pythondev_help_Suellen_2017-08-09T13:23:02.105599
| 1,502,284,982.105599 | 89,337 |
pythondev
|
help
|
yeah that did not work
|
2017-08-09T13:23:12.111044
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:23:12.111044
| 1,502,284,992.111044 | 89,338 |
pythondev
|
help
|
:open_mouth:
|
2017-08-09T13:23:20.115953
|
Suellen
|
pythondev_help_Suellen_2017-08-09T13:23:20.115953
| 1,502,285,000.115953 | 89,339 |
pythondev
|
help
|
what is in `out`?
|
2017-08-09T13:23:26.119194
|
Meg
|
pythondev_help_Meg_2017-08-09T13:23:26.119194
| 1,502,285,006.119194 | 89,340 |
pythondev
|
help
|
output from console
|
2017-08-09T13:24:27.155754
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:24:27.155754
| 1,502,285,067.155754 | 89,341 |
pythondev
|
help
|
snippet
|
2017-08-09T13:24:29.156962
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:24:29.156962
| 1,502,285,069.156962 | 89,342 |
pythondev
|
help
|
ok, so you can do `'xxx' in some_string` for a match
|
2017-08-09T13:24:58.173869
|
Meg
|
pythondev_help_Meg_2017-08-09T13:24:58.173869
| 1,502,285,098.173869 | 89,343 |
pythondev
|
help
|
but it will not work for a list
|
2017-08-09T13:25:03.176427
|
Meg
|
pythondev_help_Meg_2017-08-09T13:25:03.176427
| 1,502,285,103.176427 | 89,344 |
pythondev
|
help
|
you'll have to iterate over the list
|
2017-08-09T13:25:08.179777
|
Meg
|
pythondev_help_Meg_2017-08-09T13:25:08.179777
| 1,502,285,108.179777 | 89,345 |
pythondev
|
help
|
eg
```
for result in out:
if 'xxx' in result:
# do what you want here
```
|
2017-08-09T13:25:43.200308
|
Meg
|
pythondev_help_Meg_2017-08-09T13:25:43.200308
| 1,502,285,143.200308 | 89,346 |
pythondev
|
help
|
that did not work
|
2017-08-09T13:28:52.314289
|
Ressie
|
pythondev_help_Ressie_2017-08-09T13:28:52.314289
| 1,502,285,332.314289 | 89,347 |
pythondev
|
help
|
Hi Guyz
|
2017-08-09T13:34:41.527993
|
Ok
|
pythondev_help_Ok_2017-08-09T13:34:41.527993
| 1,502,285,681.527993 | 89,348 |
pythondev
|
help
|
Thats my case
|
2017-08-09T13:37:29.628343
|
Ok
|
pythondev_help_Ok_2017-08-09T13:37:29.628343
| 1,502,285,849.628343 | 89,349 |
pythondev
|
help
|
Am trying run thats test case
|
2017-08-09T13:37:36.632373
|
Ok
|
pythondev_help_Ok_2017-08-09T13:37:36.632373
| 1,502,285,856.632373 | 89,350 |
pythondev
|
help
|
Where instead of showing both tests output it only shows fail
|
2017-08-09T13:38:04.649235
|
Ok
|
pythondev_help_Ok_2017-08-09T13:38:04.649235
| 1,502,285,884.649235 | 89,351 |
pythondev
|
help
|
What changes need to be done to get both test output
|
2017-08-09T13:38:30.664872
|
Ok
|
pythondev_help_Ok_2017-08-09T13:38:30.664872
| 1,502,285,910.664872 | 89,352 |
pythondev
|
help
|
you need to define `test_software`, etc inside `class_unit_test.setUp`
|
2017-08-09T13:42:13.798099
|
Meg
|
pythondev_help_Meg_2017-08-09T13:42:13.798099
| 1,502,286,133.798099 | 89,353 |
pythondev
|
help
|
because the unit test instanciates the class
|
2017-08-09T13:42:36.811916
|
Meg
|
pythondev_help_Meg_2017-08-09T13:42:36.811916
| 1,502,286,156.811916 | 89,354 |
pythondev
|
help
|
so anything you do outside it, in the context of a unit test, will not exist
|
2017-08-09T13:42:49.819355
|
Meg
|
pythondev_help_Meg_2017-08-09T13:42:49.819355
| 1,502,286,169.819355 | 89,355 |
pythondev
|
help
|
in other words, use `setUp` to define variables you need for the test
|
2017-08-09T13:43:13.833444
|
Meg
|
pythondev_help_Meg_2017-08-09T13:43:13.833444
| 1,502,286,193.833444 | 89,356 |
pythondev
|
help
|
also, you need better naming for your class and variables
|
2017-08-09T13:43:33.845554
|
Meg
|
pythondev_help_Meg_2017-08-09T13:43:33.845554
| 1,502,286,213.845554 | 89,357 |
pythondev
|
help
|
And do i need to define multiple fuctions
|
2017-08-09T13:44:13.870295
|
Ok
|
pythondev_help_Ok_2017-08-09T13:44:13.870295
| 1,502,286,253.870295 | 89,358 |
pythondev
|
help
|
one test method for each piece you test
|
2017-08-09T13:44:26.878405
|
Meg
|
pythondev_help_Meg_2017-08-09T13:44:26.878405
| 1,502,286,266.878405 | 89,359 |
pythondev
|
help
|
Okay
|
2017-08-09T13:45:23.912844
|
Ok
|
pythondev_help_Ok_2017-08-09T13:45:23.912844
| 1,502,286,323.912844 | 89,360 |
pythondev
|
help
|
<https://jeffknupp.com/blog/2013/12/09/improve-your-python-understanding-unit-testing/>
|
2017-08-09T13:46:21.948655
|
Meg
|
pythondev_help_Meg_2017-08-09T13:46:21.948655
| 1,502,286,381.948655 | 89,361 |
pythondev
|
help
|
I want to convert the value of a decimal to a string, but only show the trailing decimals if they're not all zeros.
e.g.
```
nice_decimal_show(Decimal("3.00")) == "3"
nice_decimal_show(Decimal("3.14")) == "3.14"
```
What would be the canonical way of doing this?
|
2017-08-10T05:44:50.745282
|
Lanita
|
pythondev_help_Lanita_2017-08-10T05:44:50.745282
| 1,502,343,890.745282 | 89,362 |
pythondev
|
help
|
Right now I'm doing
```
def format_decimal_to_integer_string_if_possible(decimal: Decimal) -> str:
"""
>>> format_decimal_to_integer_string_if_possible(Decimal("3.000"))
"3"
>>> format_decimal_to_integer_string_if_possible(Decimal("3.400"))
"3.400"
"""
assert isinstance(decimal, Decimal)
integral = decimal.to_integral()
if integral == decimal:
return str(integral)
else:
return str(decimal)
```
|
2017-08-10T05:46:58.792575
|
Lanita
|
pythondev_help_Lanita_2017-08-10T05:46:58.792575
| 1,502,344,018.792575 | 89,363 |
pythondev
|
help
|
```
>>> Decimal('3.0').normalize()
Decimal('3')
>>> Decimal('3.10').normalize()
Decimal('3.1')
>>> Decimal('3.14').normalize()
Decimal('3.14')
>>> # and to get a string:
>>> str(Decimal('3.0').normalize())
'3'
>>> str(Decimal('3.10').normalize())
'3.1'
>>> str(Decimal('3.14').normalize())
'3.14'
```
|
2017-08-10T05:48:34.827911
|
Suellen
|
pythondev_help_Suellen_2017-08-10T05:48:34.827911
| 1,502,344,114.827911 | 89,364 |
pythondev
|
help
|
<@Suellen> thanks!
|
2017-08-10T05:49:27.847344
|
Lanita
|
pythondev_help_Lanita_2017-08-10T05:49:27.847344
| 1,502,344,167.847344 | 89,365 |
pythondev
|
help
|
:tada:
|
2017-08-10T05:49:42.852838
|
Suellen
|
pythondev_help_Suellen_2017-08-10T05:49:42.852838
| 1,502,344,182.852838 | 89,366 |
pythondev
|
help
|
ok, so mine was subtly different: 3.400 became 3.400, normalize takes 3.400 to 3.4.
But that's usually what I want anyway
|
2017-08-10T05:51:20.889387
|
Lanita
|
pythondev_help_Lanita_2017-08-10T05:51:20.889387
| 1,502,344,280.889387 | 89,367 |
pythondev
|
help
|
Yo
|
2017-08-10T07:49:32.134075
|
Maida
|
pythondev_help_Maida_2017-08-10T07:49:32.134075
| 1,502,351,372.134075 | 89,368 |
pythondev
|
help
|
The best practice in TwoScoopsOfDjango recommends that we no longer use signals for saving the OneToOne UserProfile extension
|
2017-08-10T07:49:59.142531
|
Maida
|
pythondev_help_Maida_2017-08-10T07:49:59.142531
| 1,502,351,399.142531 | 89,369 |
pythondev
|
help
|
I'm trying to achieve this with a manager, perhaps putting on bigger pants
|
2017-08-10T07:50:10.146244
|
Maida
|
pythondev_help_Maida_2017-08-10T07:50:10.146244
| 1,502,351,410.146244 | 89,370 |
pythondev
|
help
|
Not sure how to go about doing this, though
|
2017-08-10T07:50:15.147816
|
Maida
|
pythondev_help_Maida_2017-08-10T07:50:15.147816
| 1,502,351,415.147816 | 89,371 |
pythondev
|
help
|
Can anybody kindly point me in the right direction?
|
2017-08-10T07:50:24.150861
|
Maida
|
pythondev_help_Maida_2017-08-10T07:50:24.150861
| 1,502,351,424.150861 | 89,372 |
pythondev
|
help
|
Hi you might have better luck asking in <#C0LMFRMB5|django> :slightly_smiling_face:
|
2017-08-10T07:50:34.153866
|
Ciera
|
pythondev_help_Ciera_2017-08-10T07:50:34.153866
| 1,502,351,434.153866 | 89,373 |
pythondev
|
help
|
Anyone as an idea how to skip some unittest on older python version when it trigger a syntax error ?
|
2017-08-10T10:43:37.426659
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:43:37.426659
| 1,502,361,817.426659 | 89,374 |
pythondev
|
help
|
Could catch and pass the exception (or suppress), or put the whole thing in an if statement that checks the version.
|
2017-08-10T10:51:26.742800
|
Meghan
|
pythondev_help_Meghan_2017-08-10T10:51:26.742800
| 1,502,362,286.7428 | 89,375 |
pythondev
|
help
|
I try the if statement but it's not working because it's a syntax error
|
2017-08-10T10:51:54.761684
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:51:54.761684
| 1,502,362,314.761684 | 89,376 |
pythondev
|
help
|
it can't even import the file :confused:
|
2017-08-10T10:52:00.765984
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:52:00.765984
| 1,502,362,320.765984 | 89,377 |
pythondev
|
help
|
Oh, right, good point.
|
2017-08-10T10:52:01.766947
|
Meghan
|
pythondev_help_Meghan_2017-08-10T10:52:01.766947
| 1,502,362,321.766947 | 89,378 |
pythondev
|
help
|
if version: import module
|
2017-08-10T10:52:16.777119
|
Meghan
|
pythondev_help_Meghan_2017-08-10T10:52:16.777119
| 1,502,362,336.777119 | 89,379 |
pythondev
|
help
|
Though, if the script is to work on the old version, are you subbing in a different module for the old version? Otherwise shouldn't you want it to fail the unit test?
|
2017-08-10T10:52:59.806045
|
Meghan
|
pythondev_help_Meghan_2017-08-10T10:52:59.806045
| 1,502,362,379.806045 | 89,380 |
pythondev
|
help
|
the syntax error is only in the test
|
2017-08-10T10:53:38.832532
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:53:38.832532
| 1,502,362,418.832532 | 89,381 |
pythondev
|
help
|
in the module itself I made an if based on the version
|
2017-08-10T10:53:52.841465
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:53:52.841465
| 1,502,362,432.841465 | 89,382 |
pythondev
|
help
|
What is the syntax error?
|
2017-08-10T10:53:57.844805
|
Meghan
|
pythondev_help_Meghan_2017-08-10T10:53:57.844805
| 1,502,362,437.844805 | 89,383 |
pythondev
|
help
|
it's for an asynchronous context manager
|
2017-08-10T10:54:02.848331
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:54:02.848331
| 1,502,362,442.848331 | 89,384 |
pythondev
|
help
|
You can check the `sys.version_info` and if it's before your thing do a no-op
|
2017-08-10T10:54:06.851148
|
Beula
|
pythondev_help_Beula_2017-08-10T10:54:06.851148
| 1,502,362,446.851148 | 89,385 |
pythondev
|
help
|
aiohttp does dynamic methods based on version, I added some of these :wink:
|
2017-08-10T10:54:29.866900
|
Beula
|
pythondev_help_Beula_2017-08-10T10:54:29.866900
| 1,502,362,469.8669 | 89,386 |
pythondev
|
help
|
finding a link
|
2017-08-10T10:54:34.870038
|
Beula
|
pythondev_help_Beula_2017-08-10T10:54:34.870038
| 1,502,362,474.870038 | 89,387 |
pythondev
|
help
|
yeah that's what I do but the syntax still need to be correct for the previous version
|
2017-08-10T10:54:58.886680
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:54:58.886680
| 1,502,362,498.88668 | 89,388 |
pythondev
|
help
|
<https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client.py#L583>
|
2017-08-10T10:54:58.886699
|
Beula
|
pythondev_help_Beula_2017-08-10T10:54:58.886699
| 1,502,362,498.886699 | 89,389 |
pythondev
|
help
|
Not possible to just fix the test?
|
2017-08-10T10:55:08.893282
|
Gabriele
|
pythondev_help_Gabriele_2017-08-10T10:55:08.893282
| 1,502,362,508.893282 | 89,390 |
pythondev
|
help
|
If you have to support old python, it isn't a broken test - technically
|
2017-08-10T10:55:22.903213
|
Beula
|
pythondev_help_Beula_2017-08-10T10:55:22.903213
| 1,502,362,522.903213 | 89,391 |
pythondev
|
help
|
well if you can find me a way to write this with a python3.4 syntax I'm good for it
|
2017-08-10T10:55:52.924710
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:55:52.924710
| 1,502,362,552.92471 | 89,392 |
pythondev
|
help
|
```
def test_contextmanager(self):
self.loop.run_until_complete(self.xmlrpc_with_context_manager())
async def xmlrpc_with_context_manager(self):
async with ServerProxy('<http://localhost/test_xmlrpc_ok>',
loop=self.loop) as client:
response = await client.name.space.proxfyiedcall()
self.assertEqual(response, 1)
self.assertIs(self.loop, client._loop)
```
|
2017-08-10T10:56:04.932922
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:56:04.932922
| 1,502,362,564.932922 | 89,393 |
pythondev
|
help
|
I think I might need to put it in a different file and play on that
|
2017-08-10T10:56:39.956866
|
Ciera
|
pythondev_help_Ciera_2017-08-10T10:56:39.956866
| 1,502,362,599.956866 | 89,394 |
pythondev
|
help
|
In a class though? Oh, I can't imagine that not being ugly.
Perhaps inherit from the 3.4 safe class in the 3.5/6 class in the other file?
|
2017-08-10T10:59:22.070233
|
Meghan
|
pythondev_help_Meghan_2017-08-10T10:59:22.070233
| 1,502,362,762.070233 | 89,395 |
pythondev
|
help
|
yeah that could work
|
2017-08-10T11:00:19.111244
|
Ciera
|
pythondev_help_Ciera_2017-08-10T11:00:19.111244
| 1,502,362,819.111244 | 89,396 |
pythondev
|
help
|
Isn't the 3.4 syntax just `@asyncio.coroutine` on the function and `yield from` instead of `await`?
|
2017-08-10T11:01:01.142288
|
Beula
|
pythondev_help_Beula_2017-08-10T11:01:01.142288
| 1,502,362,861.142288 | 89,397 |
pythondev
|
help
|
why do you need 3.4?
|
2017-08-10T11:01:10.148674
|
Beula
|
pythondev_help_Beula_2017-08-10T11:01:10.148674
| 1,502,362,870.148674 | 89,398 |
pythondev
|
help
|
yes it is but there is no syntax for `async with` (that I know of)
|
2017-08-10T11:02:00.184004
|
Ciera
|
pythondev_help_Ciera_2017-08-10T11:02:00.184004
| 1,502,362,920.184004 | 89,399 |
pythondev
|
help
|
I don't need it I'm on 3.6 but it was in the library so trying to not take it out
|
2017-08-10T11:02:19.197343
|
Ciera
|
pythondev_help_Ciera_2017-08-10T11:02:19.197343
| 1,502,362,939.197343 | 89,400 |
pythondev
|
help
|
I don't even bother with backwards compatibility to 3.5 :slightly_smiling_face:
|
2017-08-10T11:02:28.203805
|
Meghan
|
pythondev_help_Meghan_2017-08-10T11:02:28.203805
| 1,502,362,948.203805 | 89,401 |
pythondev
|
help
|
factor test into different file, conditional import?
|
2017-08-10T11:02:33.207186
|
Gabriele
|
pythondev_help_Gabriele_2017-08-10T11:02:33.207186
| 1,502,362,953.207186 | 89,402 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.