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 | Say you have a function that functions as a key for a sort, and you need to pass a specific list index to it so it can sort your list of lists correctly. Do you need to use lambda to do that? | 2019-04-12T14:42:43.096900 | Javier | pythondev_help_Javier_2019-04-12T14:42:43.096900 | 1,555,080,163.0969 | 18,321 |
pythondev | help | Probably, yeah. There's also `functools.partial`, which can construct a new function that has some parameters already fixed. | 2019-04-12T14:51:42.097700 | Sasha | pythondev_help_Sasha_2019-04-12T14:51:42.097700 | 1,555,080,702.0977 | 18,322 |
pythondev | help | If i have an `_io.BufferedRandom` object, I'm iterating over it, and each time i iterate over it i'd like to copy the original.
is there a preferred way to copy an `_io.BufferedRandom` object? *copy.copy* doesnt seem to be the solution (throws a TypeError) | 2019-04-12T15:36:29.100200 | Jorge | pythondev_help_Jorge_2019-04-12T15:36:29.100200 | 1,555,083,389.1002 | 18,323 |
pythondev | help | I'm not quite sure I follow... that should be a random-access stream where you can `seek()` back to the start if you want to. | 2019-04-12T15:39:34.101100 | Sasha | pythondev_help_Sasha_2019-04-12T15:39:34.101100 | 1,555,083,574.1011 | 18,324 |
pythondev | help | is there a simple method of rounding timestamps to the hour? i.e. 3:48:52pm --> 3pm | 2019-04-12T15:40:43.102400 | Nenita | pythondev_help_Nenita_2019-04-12T15:40:43.102400 | 1,555,083,643.1024 | 18,325 |
pythondev | help | `str(3:48:52pm)[1]`
(this is a joke) | 2019-04-12T15:41:28.103700 | Claudine | pythondev_help_Claudine_2019-04-12T15:41:28.103700 | 1,555,083,688.1037 | 18,326 |
pythondev | help | yea, during the "saving" process, I jump back to the beginning of the `_io.BufferedRandom` object and dump the contents to a TextField in a database.
so i kind of lose my spot, and after the first iteration, i'm at the end of the file
so my plan was to save a copy of the object each time | 2019-04-12T15:41:29.103800 | Jorge | pythondev_help_Jorge_2019-04-12T15:41:29.103800 | 1,555,083,689.1038 | 18,327 |
pythondev | help | <@Claudine> glad you clearified. i was like, does that really work?! | 2019-04-12T15:42:03.104600 | Nenita | pythondev_help_Nenita_2019-04-12T15:42:03.104600 | 1,555,083,723.1046 | 18,328 |
pythondev | help | sure | 2019-04-12T15:42:11.105000 | Claudine | pythondev_help_Claudine_2019-04-12T15:42:11.105000 | 1,555,083,731.105 | 18,329 |
pythondev | help | You can get the current position with `tell()`, so maybe just save that? | 2019-04-12T15:42:20.105400 | Sasha | pythondev_help_Sasha_2019-04-12T15:42:20.105400 | 1,555,083,740.1054 | 18,330 |
pythondev | help | you could also just trim to the first `:` | 2019-04-12T15:42:20.105500 | Claudine | pythondev_help_Claudine_2019-04-12T15:42:20.105500 | 1,555,083,740.1055 | 18,331 |
pythondev | help | or use the datetime library they have conversions | 2019-04-12T15:42:31.106000 | Claudine | pythondev_help_Claudine_2019-04-12T15:42:31.106000 | 1,555,083,751.106 | 18,332 |
pythondev | help | <@Claudine> genius | 2019-04-12T15:42:31.106100 | Nenita | pythondev_help_Nenita_2019-04-12T15:42:31.106100 | 1,555,083,751.1061 | 18,333 |
pythondev | help | lol yea | 2019-04-12T15:42:38.106400 | Claudine | pythondev_help_Claudine_2019-04-12T15:42:38.106400 | 1,555,083,758.1064 | 18,334 |
pythondev | help | i remebered thats what i did last time xD | 2019-04-12T15:42:48.106900 | Nenita | pythondev_help_Nenita_2019-04-12T15:42:48.106900 | 1,555,083,768.1069 | 18,335 |
pythondev | help | i usually do that instead of instantiating a whole datetime library and do all sort of conversions and stuff | 2019-04-12T15:42:59.107200 | Claudine | pythondev_help_Claudine_2019-04-12T15:42:59.107200 | 1,555,083,779.1072 | 18,336 |
pythondev | help | sounds along the lines of work smarter not harder :wink: | 2019-04-12T15:43:37.107500 | Nenita | pythondev_help_Nenita_2019-04-12T15:43:37.107500 | 1,555,083,817.1075 | 18,337 |
pythondev | help | <@Sasha> :taco: | 2019-04-12T16:00:28.107900 | Javier | pythondev_help_Javier_2019-04-12T16:00:28.107900 | 1,555,084,828.1079 | 18,338 |
pythondev | help | where should I ask questions about Docker? | 2019-04-12T16:02:20.108200 | Hanna | pythondev_help_Hanna_2019-04-12T16:02:20.108200 | 1,555,084,940.1082 | 18,339 |
pythondev | help | <#C22DMH61M|devops> is a good channel. | 2019-04-12T16:10:29.108500 | Karoline | pythondev_help_Karoline_2019-04-12T16:10:29.108500 | 1,555,085,429.1085 | 18,340 |
pythondev | help | Cool thanks! | 2019-04-12T16:12:22.108700 | Hanna | pythondev_help_Hanna_2019-04-12T16:12:22.108700 | 1,555,085,542.1087 | 18,341 |
pythondev | help | i have a (hopefully) fun question. I am already in the process of creating some formula for running the report, but I want to hear others suggestions because there may be an easier/quicker way of finding the results. Here's the synopsis: I am having to find how many items of a specific type were sold on average for each hour of the day to see if the sales for a specific item drop after certain hours. | 2019-04-12T16:14:28.110700 | Nenita | pythondev_help_Nenita_2019-04-12T16:14:28.110700 | 1,555,085,668.1107 | 18,342 |
pythondev | help | If you're doing a SQL query, then `GROUP BY` is probably your friend. | 2019-04-12T16:16:20.111400 | Sasha | pythondev_help_Sasha_2019-04-12T16:16:20.111400 | 1,555,085,780.1114 | 18,343 |
pythondev | help | well for a much data as i am going to be pushing (about 1 million sales) i want to use python because its more flexable | 2019-04-12T16:16:52.112000 | Nenita | pythondev_help_Nenita_2019-04-12T16:16:52.112000 | 1,555,085,812.112 | 18,344 |
pythondev | help | Then `collections.Counter()` is probably your friend. | 2019-04-12T16:17:59.113500 | Sasha | pythondev_help_Sasha_2019-04-12T16:17:59.113500 | 1,555,085,879.1135 | 18,345 |
pythondev | help | what flexibility do you need? for this sort of question SQL sure sounds like the right ansewer | 2019-04-12T16:18:15.113800 | Clemmie | pythondev_help_Clemmie_2019-04-12T16:18:15.113800 | 1,555,085,895.1138 | 18,346 |
pythondev | help | (I mean, normally the more data you're dealing with, the more you want to get the database to deal with locally.) | 2019-04-12T16:18:54.114800 | Sasha | pythondev_help_Sasha_2019-04-12T16:18:54.114800 | 1,555,085,934.1148 | 18,347 |
pythondev | help | well i have 11 locations to filter, about 50 items to filter, and about 1+ mil sales. the query will take forever and i wont be able to do anything with the data other than was sql allows | 2019-04-12T16:19:06.115200 | Nenita | pythondev_help_Nenita_2019-04-12T16:19:06.115200 | 1,555,085,946.1152 | 18,348 |
pythondev | help | if not SQL - which would be the first thing I'd reach for too - then Pandas | 2019-04-12T16:19:12.115400 | Joette | pythondev_help_Joette_2019-04-12T16:19:12.115400 | 1,555,085,952.1154 | 18,349 |
pythondev | help | pandas is my best friend. i just am trying to figure a good formula that i can just shove all the data into. | 2019-04-12T16:19:40.116100 | Nenita | pythondev_help_Nenita_2019-04-12T16:19:40.116100 | 1,555,085,980.1161 | 18,350 |
pythondev | help | though if the query is taking forever that suggests other issues (e.g. indexing) and not the DB per se | 2019-04-12T16:20:08.116800 | Joette | pythondev_help_Joette_2019-04-12T16:20:08.116800 | 1,555,086,008.1168 | 18,351 |
pythondev | help | i did this to step by step figure out what the best method would be | 2019-04-12T16:20:24.117900 | Nenita | pythondev_help_Nenita_2019-04-12T16:20:24.117900 | 1,555,086,024.1179 | 18,352 |
pythondev | help | yea, our db is setup with ms access over firebird odbc and ms access is a pain, but effective. | 2019-04-12T16:20:57.119000 | Nenita | pythondev_help_Nenita_2019-04-12T16:20:57.119000 | 1,555,086,057.119 | 18,353 |
pythondev | help | and sometimes when i run queries on certain tables, access just crashes so im looking to avoid that all together | 2019-04-12T16:21:16.119700 | Nenita | pythondev_help_Nenita_2019-04-12T16:21:16.119700 | 1,555,086,076.1197 | 18,354 |
pythondev | help | ... I cannot remember the method/function but Pandas does have a facility for aggregating by say, the hour, of a timestamp in a column | 2019-04-12T16:21:18.119900 | Joette | pythondev_help_Joette_2019-04-12T16:21:18.119900 | 1,555,086,078.1199 | 18,355 |
pythondev | help | I spent a lot of time researching how to do it but then abandoned it b/c it wasn't the right fit for what I was working on | 2019-04-12T16:21:37.120400 | Joette | pythondev_help_Joette_2019-04-12T16:21:37.120400 | 1,555,086,097.1204 | 18,356 |
pythondev | help | but with this screenshot, i dont even know if i am doing the math right | 2019-04-12T16:22:15.121000 | Nenita | pythondev_help_Nenita_2019-04-12T16:22:15.121000 | 1,555,086,135.121 | 18,357 |
pythondev | help | in Excel I'd create a column extracting the hour from each time and then use a PivotTable | 2019-04-12T16:22:46.121600 | Joette | pythondev_help_Joette_2019-04-12T16:22:46.121600 | 1,555,086,166.1216 | 18,358 |
pythondev | help | a pivot table is a good idea to start, havent had much reason to use a pivottable, but that will surely speed things up | 2019-04-12T16:23:38.122600 | Nenita | pythondev_help_Nenita_2019-04-12T16:23:38.122600 | 1,555,086,218.1226 | 18,359 |
pythondev | help | What are good IDEs for Python ? . | 2019-04-12T16:34:46.123600 | Clayton | pythondev_help_Clayton_2019-04-12T16:34:46.123600 | 1,555,086,886.1236 | 18,360 |
pythondev | help | My favorites in order: PyCharm, VS Code, Atom/Sublime Text | 2019-04-12T16:38:45.124100 | Sarita | pythondev_help_Sarita_2019-04-12T16:38:45.124100 | 1,555,087,125.1241 | 18,361 |
pythondev | help | Oh, I'm currently working on a Flask web app which is causing me to realize that it may require a different approach than what I've been doing with data analysis. | 2019-04-12T16:39:39.124200 | Junior | pythondev_help_Junior_2019-04-12T16:39:39.124200 | 1,555,087,179.1242 | 18,362 |
pythondev | help | I like Atom's integration with GitHub Desktop | 2019-04-12T16:59:14.124800 | Granville | pythondev_help_Granville_2019-04-12T16:59:14.124800 | 1,555,088,354.1248 | 18,363 |
pythondev | help | I've been using PyCharm. Never tried anything else, but haven't needed to either. Doe's just what I need and the UI is fairly simple, but powerful. I'm sure others may have better/other suggestions. | 2019-04-12T17:01:14.125800 | Nenita | pythondev_help_Nenita_2019-04-12T17:01:14.125800 | 1,555,088,474.1258 | 18,364 |
pythondev | help | is there a way to quickly create a list of dates? like for i in range(3/1/18, 4/1/18)? | 2019-04-12T17:02:35.126400 | Nenita | pythondev_help_Nenita_2019-04-12T17:02:35.126400 | 1,555,088,555.1264 | 18,365 |
pythondev | help | nvm found a helpful solution <https://stackoverflow.com/questions/993358/creating-a-range-of-dates-in-python> | 2019-04-12T17:04:23.126700 | Nenita | pythondev_help_Nenita_2019-04-12T17:04:23.126700 | 1,555,088,663.1267 | 18,366 |
pythondev | help | IDE or Editor / Terminal for running Python files ? | 2019-04-12T17:16:54.127400 | Clayton | pythondev_help_Clayton_2019-04-12T17:16:54.127400 | 1,555,089,414.1274 | 18,367 |
pythondev | help | i use straight ide for debuggin purposes - too convenient for me. | 2019-04-12T17:17:27.127800 | Nenita | pythondev_help_Nenita_2019-04-12T17:17:27.127800 | 1,555,089,447.1278 | 18,368 |
pythondev | help | depends on what you want | 2019-04-12T17:17:32.128000 | Hiroko | pythondev_help_Hiroko_2019-04-12T17:17:32.128000 | 1,555,089,452.128 | 18,369 |
pythondev | help | me, I do both | 2019-04-12T17:17:35.128200 | Hiroko | pythondev_help_Hiroko_2019-04-12T17:17:35.128200 | 1,555,089,455.1282 | 18,370 |
pythondev | help | Jupyter or Colab ? | 2019-04-12T17:23:51.128500 | Clayton | pythondev_help_Clayton_2019-04-12T17:23:51.128500 | 1,555,089,831.1285 | 18,371 |
pythondev | help | no clue | 2019-04-12T17:25:54.128900 | Hiroko | pythondev_help_Hiroko_2019-04-12T17:25:54.128900 | 1,555,089,954.1289 | 18,372 |
pythondev | help | what’s prompting these questions? | 2019-04-12T17:26:00.129300 | Hiroko | pythondev_help_Hiroko_2019-04-12T17:26:00.129300 | 1,555,089,960.1293 | 18,373 |
pythondev | help | i first used jupyter until i found pycharm, but i love jupyter since its web-based | 2019-04-12T17:26:04.129500 | Nenita | pythondev_help_Nenita_2019-04-12T17:26:04.129500 | 1,555,089,964.1295 | 18,374 |
pythondev | help | easy to test code | 2019-04-12T17:26:17.129700 | Nenita | pythondev_help_Nenita_2019-04-12T17:26:17.129700 | 1,555,089,977.1297 | 18,375 |
pythondev | help | <https://www.youtube.com/watch?v=7jiPeIFXb6U> | 2019-04-12T17:27:18.129900 | Caridad | pythondev_help_Caridad_2019-04-12T17:27:18.129900 | 1,555,090,038.1299 | 18,376 |
pythondev | help | i found this really entertaining to listen to | 2019-04-12T17:27:49.130700 | Caridad | pythondev_help_Caridad_2019-04-12T17:27:49.130700 | 1,555,090,069.1307 | 18,377 |
pythondev | help | referred to me by <@Bethany> he gets the credit | 2019-04-12T17:28:57.131900 | Caridad | pythondev_help_Caridad_2019-04-12T17:28:57.131900 | 1,555,090,137.1319 | 18,378 |
pythondev | help | ayy | 2019-04-12T17:33:21.132200 | Bethany | pythondev_help_Bethany_2019-04-12T17:33:21.132200 | 1,555,090,401.1322 | 18,379 |
pythondev | help | notebooks are ok for exploratory analysis. If you plan to re use anything, use a real IDE | 2019-04-12T17:34:26.132800 | Bethany | pythondev_help_Bethany_2019-04-12T17:34:26.132800 | 1,555,090,466.1328 | 18,380 |
pythondev | help | I like Spyder with Anaconda | 2019-04-12T17:37:46.133300 | Clayton | pythondev_help_Clayton_2019-04-12T17:37:46.133300 | 1,555,090,666.1333 | 18,381 |
pythondev | help | And Colab | 2019-04-12T17:37:52.133500 | Clayton | pythondev_help_Clayton_2019-04-12T17:37:52.133500 | 1,555,090,672.1335 | 18,382 |
pythondev | help | give pycharm a try | 2019-04-12T17:44:53.133700 | Bethany | pythondev_help_Bethany_2019-04-12T17:44:53.133700 | 1,555,091,093.1337 | 18,383 |
pythondev | help | Tried Pycharm on Mac and Windows with Conda and Venv and all had some issue or another with installing and/or importing packages | 2019-04-12T17:48:51.134900 | Clayton | pythondev_help_Clayton_2019-04-12T17:48:51.134900 | 1,555,091,331.1349 | 18,384 |
pythondev | help | I’ve found you need to invalidate caches and restart sometimes with pycharm to pick up new packages when you install outside it | 2019-04-12T17:51:42.136000 | Hiroko | pythondev_help_Hiroko_2019-04-12T17:51:42.136000 | 1,555,091,502.136 | 18,385 |
pythondev | help | so if you’re hsing troulble picking up packages, <@Clayton>, that could be why | 2019-04-12T17:52:03.136500 | Hiroko | pythondev_help_Hiroko_2019-04-12T17:52:03.136500 | 1,555,091,523.1365 | 18,386 |
pythondev | help | I've noticed lag, on occasion, before PyCharm reindexes after installing a new package to a virtualenv environment outside of PyCharm, but haven't otherwise had any issues - that's the only way I've installed them, fwiw | 2019-04-12T17:57:42.138500 | Joette | pythondev_help_Joette_2019-04-12T17:57:42.138500 | 1,555,091,862.1385 | 18,387 |
pythondev | help | Fave / Best Linux distro for Python coding ? About to go with Fedora 29. | 2019-04-12T18:20:59.139400 | Clayton | pythondev_help_Clayton_2019-04-12T18:20:59.139400 | 1,555,093,259.1394 | 18,388 |
pythondev | help | I have kind of a weird question. I am subclassing an object and would like to have a little utility method that accepts a json string and returns an object:
``` def load_str(arg_string):
return __class__(**json.loads(arg_string))``` | 2019-04-12T18:53:45.141500 | Clorinda | pythondev_help_Clorinda_2019-04-12T18:53:45.141500 | 1,555,095,225.1415 | 18,389 |
pythondev | help | I am using attrs, so I can't mess with the __init__ directly | 2019-04-12T18:53:58.141900 | Clorinda | pythondev_help_Clorinda_2019-04-12T18:53:58.141900 | 1,555,095,238.1419 | 18,390 |
pythondev | help | I'd like to define that method in the base class and call it via the subclass and get a subclass object back. | 2019-04-12T18:55:59.142700 | Clorinda | pythondev_help_Clorinda_2019-04-12T18:55:59.142700 | 1,555,095,359.1427 | 18,391 |
pythondev | help | If I just define it as a class method, will that work?
``` @class_method
def load_str(cls, arg_string):
return cls(**json.loads(arg_string))``` | 2019-04-12T18:58:41.143300 | Clorinda | pythondev_help_Clorinda_2019-04-12T18:58:41.143300 | 1,555,095,521.1433 | 18,392 |
pythondev | help | Yes, that's my understanding. If you call `Subclass.load_str(foo)`, then the `cls` argument will be `Subclass`, even if it's defined as a class method of `Superclass`. | 2019-04-12T19:01:17.144800 | Sasha | pythondev_help_Sasha_2019-04-12T19:01:17.144800 | 1,555,095,677.1448 | 18,393 |
pythondev | help | got it. Thanks! mixing up my OOP with Python is always... fun | 2019-04-12T19:03:50.145300 | Clorinda | pythondev_help_Clorinda_2019-04-12T19:03:50.145300 | 1,555,095,830.1453 | 18,394 |
pythondev | help | Hello everyone, thanks for the enormous help you've been providing us in the channels. I do have a small question about how apps like Slack here, Telegram, WhatsApp or those Android app clients used to speak in real time are implemented, theoretically speaking.
I'm not sure how it works, so I think of this scenario, assuming Slack here is Telegram one-on-one private chat:
I'm texting you now, this message gets sent to the Telegram server(and the government maybe?), then to your client and it appears almost immediately as if it wasn't routed to any intermediaries. Your Telegram client picks it up almost immediately I send it here. How do you think your Telegram client gets the message? Does it *probe/poke* the Telegram server on timely basis checking for any updates or does the Telegram server just notify the client app magically? I mean sort of like how `conditional_variable::wait()` and `::notify()` works locally when used with mutexes from different threads. | 2019-04-13T00:47:25.155200 | Tam | pythondev_help_Tam_2019-04-13T00:47:25.155200 | 1,555,116,445.1552 | 18,395 |
pythondev | help | Hi! I'd really appreciate your help.
I am new to python and was trying to write unit tests. I am kind of stuck trying to mock user input. Is there something I am missing?
This is what my code looks like:
```
class GetInput:
def __init__(self):
self.key1 = os.environ['key1']
self.key2 = os.environ['key2']
self.fruits = []
def get(self):
try:
while True:
user_input = self.fruit_input()
if user_input == 'apple':
print('you entered apple')
return
self.fruits.append(user_input)
if user_input == 'mango':
# call other method(user_input)
return
except:
#log error
def fruit_input(self):
user_input = input('Enter Fruit')
return user_input
rs = GetInput()
rs.get()
```
Test Cases:
```
import unittest
from unittest.mock import patch
from fruit import GetInput
class FruitTest(unittest.TestCase):
@patch('fruit.GetInput.fruit_input', return_value='apple')
def test_user_input(self, input):
self.assertEqual(GetInput.get(), 'you entered apple')
``` | 2019-04-13T02:18:05.155800 | Serina | pythondev_help_Serina_2019-04-13T02:18:05.155800 | 1,555,121,885.1558 | 18,396 |
pythondev | help | So one thing that looks weird is `GetInput.get()`, since you're calling it like a class method. You should probably create an object, like `GetInput().get()`. | 2019-04-13T02:22:19.156700 | Sasha | pythondev_help_Sasha_2019-04-13T02:22:19.156700 | 1,555,122,139.1567 | 18,397 |
pythondev | help | I did that <@Sasha>; This is what it throws
`ModuleNotFoundError: No module named 'GetInput()` | 2019-04-13T02:26:57.156800 | Serina | pythondev_help_Serina_2019-04-13T02:26:57.156800 | 1,555,122,417.1568 | 18,398 |
pythondev | help | Also made this change `@patch('GetInput().get().fruit_input', return_value='apple')` in test case | 2019-04-13T02:28:26.157100 | Serina | pythondev_help_Serina_2019-04-13T02:28:26.157100 | 1,555,122,506.1571 | 18,399 |
pythondev | help | I meant in your `assertEqual` statement, not the `patch`. | 2019-04-13T02:28:36.157300 | Sasha | pythondev_help_Sasha_2019-04-13T02:28:36.157300 | 1,555,122,516.1573 | 18,400 |
pythondev | help | I did that in `assert`. But I think its not going past `patch`. It's throwing error there | 2019-04-13T02:29:58.157500 | Serina | pythondev_help_Serina_2019-04-13T02:29:58.157500 | 1,555,122,598.1575 | 18,401 |
pythondev | help | I agree, that's definitely going to be wrong in your patch. You probably want `'fruit.GetInput.fruit_input'` there, but I'm not 100% sure. | 2019-04-13T02:31:04.157800 | Sasha | pythondev_help_Sasha_2019-04-13T02:31:04.157800 | 1,555,122,664.1578 | 18,402 |
pythondev | help | Sure. Thanks though! :+1::slightly_smiling_face:
I will keep trying | 2019-04-13T02:33:12.158100 | Serina | pythondev_help_Serina_2019-04-13T02:33:12.158100 | 1,555,122,792.1581 | 18,403 |
pythondev | help | Are you still getting an error? | 2019-04-13T02:34:30.158300 | Sasha | pythondev_help_Sasha_2019-04-13T02:34:30.158300 | 1,555,122,870.1583 | 18,404 |
pythondev | help | Yes.
`ModuleNotFoundError: No module named 'fruit.GetInput'; 'fruit' is not a package`
This is how my patch looks like
`@patch('fruit.GetInput.get.self.fruit_input', return_value='apple')` | 2019-04-13T02:39:04.158600 | Serina | pythondev_help_Serina_2019-04-13T02:39:04.158600 | 1,555,123,144.1586 | 18,405 |
pythondev | help | You may want to ask for further help in #testing_, as this is probably an easy question for someone more familiar with mocks. | 2019-04-13T02:40:03.158900 | Sasha | pythondev_help_Sasha_2019-04-13T02:40:03.158900 | 1,555,123,203.1589 | 18,406 |
pythondev | help | You might need `patch.object()`, for instance. | 2019-04-13T02:40:44.159100 | Sasha | pythondev_help_Sasha_2019-04-13T02:40:44.159100 | 1,555,123,244.1591 | 18,407 |
pythondev | help | So, something like this?
a = patch.object()
@a('fruit.GetInput.get.self.fruit_input', return_value='apple') | 2019-04-13T02:42:46.159400 | Serina | pythondev_help_Serina_2019-04-13T02:42:46.159400 | 1,555,123,366.1594 | 18,408 |
pythondev | help | Heh, I'm sure that's wrong, but I couldn't tell you the right way, sorry. | 2019-04-13T02:47:37.159600 | Sasha | pythondev_help_Sasha_2019-04-13T02:47:37.159600 | 1,555,123,657.1596 | 18,409 |
pythondev | help | No problem. Thank you <@Sasha> | 2019-04-13T02:50:11.159800 | Serina | pythondev_help_Serina_2019-04-13T02:50:11.159800 | 1,555,123,811.1598 | 18,410 |
pythondev | help | Which is the channel for IDE-specific questions? | 2019-04-13T06:29:52.161300 | Raven | pythondev_help_Raven_2019-04-13T06:29:52.161300 | 1,555,136,992.1613 | 18,411 |
pythondev | help | so clearly we can embed python in a windows application per the docs. I'm assuming that this can't be done with Mac?
<https://docs.python.org/3.6/using/windows.html#embedded-distribution> | 2019-04-13T07:11:38.162100 | Monica | pythondev_help_Monica_2019-04-13T07:11:38.162100 | 1,555,139,498.1621 | 18,412 |
pythondev | help | Anyone here ever needed to embed python in a windows app, but also access third-party mods like Numpy, SciPy? | 2019-04-13T07:28:55.162800 | Monica | pythondev_help_Monica_2019-04-13T07:28:55.162800 | 1,555,140,535.1628 | 18,413 |
pythondev | help | After I pip installed the google cloud SDK, I'm getting the following error message every time I run any sort of Python script, regardless if it uses any google module or not: ```Error processing line 3 of /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/google_cloud_core-0.29.1-py3.6-nspkg.pth:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 580, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
Error processing line 3 of /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/grpc_google_iam_v1-0.11.4-py3.7-nspkg.pth:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 580, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored``` | 2019-04-13T07:39:55.164000 | Conchita | pythondev_help_Conchita_2019-04-13T07:39:55.164000 | 1,555,141,195.164 | 18,414 |
pythondev | help | Any idea why? | 2019-04-13T07:39:59.164200 | Conchita | pythondev_help_Conchita_2019-04-13T07:39:59.164200 | 1,555,141,199.1642 | 18,415 |
pythondev | help | There is no user on my macbook that is named `usr` | 2019-04-13T07:40:24.164600 | Conchita | pythondev_help_Conchita_2019-04-13T07:40:24.164600 | 1,555,141,224.1646 | 18,416 |
pythondev | help | usr is not a user | 2019-04-13T07:41:02.165300 | Henriette | pythondev_help_Henriette_2019-04-13T07:41:02.165300 | 1,555,141,262.1653 | 18,417 |
pythondev | help | It is a location | 2019-04-13T07:41:14.165600 | Henriette | pythondev_help_Henriette_2019-04-13T07:41:14.165600 | 1,555,141,274.1656 | 18,418 |
pythondev | help | Well that's right | 2019-04-13T07:48:10.166700 | Conchita | pythondev_help_Conchita_2019-04-13T07:48:10.166700 | 1,555,141,690.1667 | 18,419 |
pythondev | help | Do you have any idea why i'm getting this error though? | 2019-04-13T07:48:23.167200 | Conchita | pythondev_help_Conchita_2019-04-13T07:48:23.167200 | 1,555,141,703.1672 | 18,420 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.