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 goal are to win memory and sometime time | 2017-12-20T10:10:32.000322 | Ciera | pythondev_help_Ciera_2017-12-20T10:10:32.000322 | 1,513,764,632.000322 | 105,203 |
pythondev | help | ```
for x in [1,2,3,4,5]:
if x == 2:
break
``` | 2017-12-20T10:10:58.000454 | Ciera | pythondev_help_Ciera_2017-12-20T10:10:58.000454 | 1,513,764,658.000454 | 105,204 |
pythondev | help | For example in this loop it will exit on the second item | 2017-12-20T10:11:24.000432 | Ciera | pythondev_help_Ciera_2017-12-20T10:11:24.000432 | 1,513,764,684.000432 | 105,205 |
pythondev | help | so there isn't really a need to create a list with 5 item. If I have something that can give the item one by one I will win a bif of memory | 2017-12-20T10:12:33.000275 | Ciera | pythondev_help_Ciera_2017-12-20T10:12:33.000275 | 1,513,764,753.000275 | 105,206 |
pythondev | help | ```
def give_items():
result = []
for x in range(10):
time.sleep(2)
results.append(x)
return results
for x in give_items():
if x == 2:
break
``` | 2017-12-20T10:13:49.000148 | Ciera | pythondev_help_Ciera_2017-12-20T10:13:49.000148 | 1,513,764,829.000148 | 105,207 |
pythondev | help | In this case `give_items` will take a lot of time to return the full results | 2017-12-20T10:14:30.000305 | Ciera | pythondev_help_Ciera_2017-12-20T10:14:30.000305 | 1,513,764,870.000305 | 105,208 |
pythondev | help | ```
def give_items():
for y in range(10):
time.sleep(2)
yield y
for x in give_items():
if x == 2:
break
``` | 2017-12-20T10:15:03.000770 | Ciera | pythondev_help_Ciera_2017-12-20T10:15:03.000770 | 1,513,764,903.00077 | 105,209 |
pythondev | help | In this case it will be faster because once `give_items` yield 2 I can continue | 2017-12-20T10:15:36.000414 | Ciera | pythondev_help_Ciera_2017-12-20T10:15:36.000414 | 1,513,764,936.000414 | 105,210 |
pythondev | help | does that make sense <@Bella> ? | 2017-12-20T10:16:05.000132 | Ciera | pythondev_help_Ciera_2017-12-20T10:16:05.000132 | 1,513,764,965.000132 | 105,211 |
pythondev | help | <@Ciera> Yes! thanks for the explanation! and main goal of generatos it’s save time? | 2017-12-20T10:18:14.000669 | Bella | pythondev_help_Bella_2017-12-20T10:18:14.000669 | 1,513,765,094.000669 | 105,212 |
pythondev | help | mainly memory (I didn't really illustrate that here but imagine if the list is 1 million item long) | 2017-12-20T10:18:52.000262 | Ciera | pythondev_help_Ciera_2017-12-20T10:18:52.000262 | 1,513,765,132.000262 | 105,213 |
pythondev | help | it can save time but if you need to complete the loop if will take the same time | 2017-12-20T10:19:18.000303 | Ciera | pythondev_help_Ciera_2017-12-20T10:19:18.000303 | 1,513,765,158.000303 | 105,214 |
pythondev | help | <@Ciera> Okay, got it! thanks;) | 2017-12-20T10:19:54.000055 | Bella | pythondev_help_Bella_2017-12-20T10:19:54.000055 | 1,513,765,194.000055 | 105,215 |
pythondev | help | :thumbsup: | 2017-12-20T10:20:05.000176 | Ciera | pythondev_help_Ciera_2017-12-20T10:20:05.000176 | 1,513,765,205.000176 | 105,216 |
pythondev | help | The video is really worth watching (as all :dabeaz: videos). Maybe not everything but just the beginning if you don't have the time | 2017-12-20T10:20:53.000206 | Ciera | pythondev_help_Ciera_2017-12-20T10:20:53.000206 | 1,513,765,253.000206 | 105,217 |
pythondev | help | <@Ciera> Yeah, David Beazley discuss about generators and etc a lot:slightly_smiling_face: | 2017-12-20T10:24:22.000706 | Bella | pythondev_help_Bella_2017-12-20T10:24:22.000706 | 1,513,765,462.000706 | 105,218 |
pythondev | help | What's the best way to run a separate python file as a subprocess? | 2017-12-20T10:32:20.000186 | Elsie | pythondev_help_Elsie_2017-12-20T10:32:20.000186 | 1,513,765,940.000186 | 105,219 |
pythondev | help | When I use Popen its opening a python repl in my terminal that I launch the main script from... | 2017-12-20T10:32:45.000266 | Elsie | pythondev_help_Elsie_2017-12-20T10:32:45.000266 | 1,513,765,965.000266 | 105,220 |
pythondev | help | the cleanest way would be to use the `multiprocessing` module, but then you don't launch a file | 2017-12-20T10:34:52.000635 | Ciera | pythondev_help_Ciera_2017-12-20T10:34:52.000635 | 1,513,766,092.000635 | 105,221 |
pythondev | help | otherwise `subprocess.Popen()` with `python path/to/script.py` | 2017-12-20T10:35:28.000155 | Ciera | pythondev_help_Ciera_2017-12-20T10:35:28.000155 | 1,513,766,128.000155 | 105,222 |
pythondev | help | Well oddly enough when I run it on windows it runs as expected, however on linux it's opening the python repl in the terminal | 2017-12-20T10:35:53.000233 | Elsie | pythondev_help_Elsie_2017-12-20T10:35:53.000233 | 1,513,766,153.000233 | 105,223 |
pythondev | help | subprocess.Popen([sys.executable, basepath+"/DeviceSocket.py"], shell=True) | 2017-12-20T10:36:31.000072 | Elsie | pythondev_help_Elsie_2017-12-20T10:36:31.000072 | 1,513,766,191.000072 | 105,224 |
pythondev | help | what does your python script do? does it require input? | 2017-12-20T10:37:58.000587 | Winnifred | pythondev_help_Winnifred_2017-12-20T10:37:58.000587 | 1,513,766,278.000587 | 105,225 |
pythondev | help | Currently have a Django list table view for books (w/ filters - book title, author, etc.). Books has a `foreign key` to comments, but comments has a `generic foreign key` to books (or anything else you could leave a comment on, like movies).
*How could I go about having a free form text based search on a field pointe... | 2017-12-20T10:39:09.000273 | Russ | pythondev_help_Russ_2017-12-20T10:39:09.000273 | 1,513,766,349.000273 | 105,226 |
pythondev | help | Just needs to run the 'DeviceSocket' script as a subprocess, and continue on with the code block below the subprocess call in the main script | 2017-12-20T10:39:20.000017 | Elsie | pythondev_help_Elsie_2017-12-20T10:39:20.000017 | 1,513,766,360.000017 | 105,227 |
pythondev | help | However when I run my main script in the terminal when it gets to the Popen line for that subprocess it opens a python repl in the terminal as if i had typed in "python3" | 2017-12-20T10:40:32.000705 | Elsie | pythondev_help_Elsie_2017-12-20T10:40:32.000705 | 1,513,766,432.000705 | 105,228 |
pythondev | help | This problem only occurs when I got from windows to linux | 2017-12-20T10:40:58.000805 | Elsie | pythondev_help_Elsie_2017-12-20T10:40:58.000805 | 1,513,766,458.000805 | 105,229 |
pythondev | help | in windows it continues on with the code block below the subprocess.Popen | 2017-12-20T10:41:23.000526 | Elsie | pythondev_help_Elsie_2017-12-20T10:41:23.000526 | 1,513,766,483.000526 | 105,230 |
pythondev | help | hm, I like <@Ciera>'s approach. I personally use `subprocess.run()`. | 2017-12-20T10:41:25.000052 | Winnifred | pythondev_help_Winnifred_2017-12-20T10:41:25.000052 | 1,513,766,485.000052 | 105,231 |
pythondev | help | Yeah unfortunately I'm restricted to using subprocess, the rest of the application is too tightly coupled to implement multithreading | 2017-12-20T10:42:05.000848 | Elsie | pythondev_help_Elsie_2017-12-20T10:42:05.000848 | 1,513,766,525.000848 | 105,232 |
pythondev | help | <@Russ> what database are you using ? some db have full text search | 2017-12-20T10:42:15.000612 | Ciera | pythondev_help_Ciera_2017-12-20T10:42:15.000612 | 1,513,766,535.000612 | 105,233 |
pythondev | help | Could it be that I don't have the file marked as an executable on my linux setup? | 2017-12-20T10:43:50.000795 | Elsie | pythondev_help_Elsie_2017-12-20T10:43:50.000795 | 1,513,766,630.000795 | 105,234 |
pythondev | help | no, you don't execute it anyway | 2017-12-20T10:44:05.000261 | Suellen | pythondev_help_Suellen_2017-12-20T10:44:05.000261 | 1,513,766,645.000261 | 105,235 |
pythondev | help | you point Python to it | 2017-12-20T10:44:09.000215 | Suellen | pythondev_help_Suellen_2017-12-20T10:44:09.000215 | 1,513,766,649.000215 | 105,236 |
pythondev | help | does this works ? `python -c "print('hello world')"` | 2017-12-20T10:45:15.000432 | Ciera | pythondev_help_Ciera_2017-12-20T10:45:15.000432 | 1,513,766,715.000432 | 105,237 |
pythondev | help | as a subpocess | 2017-12-20T10:45:23.000423 | Ciera | pythondev_help_Ciera_2017-12-20T10:45:23.000423 | 1,513,766,723.000423 | 105,238 |
pythondev | help | what is the call you are using, <@Elsie>? Can you show us some code? | 2017-12-20T10:45:29.000193 | Winnifred | pythondev_help_Winnifred_2017-12-20T10:45:29.000193 | 1,513,766,729.000193 | 105,239 |
pythondev | help | <@Ciera> I am utilizing MySQL, however, I am not sure how to have this Book list view be filtered by the comments - given that there is the generic foreign key from comments to Books. | 2017-12-20T10:45:45.000413 | Russ | pythondev_help_Russ_2017-12-20T10:45:45.000413 | 1,513,766,745.000413 | 105,240 |
pythondev | help | Where basepath is the path in which my main script and "DeviceSocket.py" are located | 2017-12-20T10:47:44.000042 | Elsie | pythondev_help_Elsie_2017-12-20T10:47:44.000042 | 1,513,766,864.000042 | 105,241 |
pythondev | help | <@Ciera> using Popen? | 2017-12-20T10:49:57.000606 | Elsie | pythondev_help_Elsie_2017-12-20T10:49:57.000606 | 1,513,766,997.000606 | 105,242 |
pythondev | help | yeah, my guess is it's not finding your script | 2017-12-20T10:52:25.000394 | Winnifred | pythondev_help_Winnifred_2017-12-20T10:52:25.000394 | 1,513,767,145.000394 | 105,243 |
pythondev | help | it should throw an error and not enter the repl in that case | 2017-12-20T10:52:51.000418 | Ciera | pythondev_help_Ciera_2017-12-20T10:52:51.000418 | 1,513,767,171.000418 | 105,244 |
pythondev | help | hm okay | 2017-12-20T10:53:11.000413 | Winnifred | pythondev_help_Winnifred_2017-12-20T10:53:11.000413 | 1,513,767,191.000413 | 105,245 |
pythondev | help | well at least on my system it does. | 2017-12-20T10:53:26.000690 | Ciera | pythondev_help_Ciera_2017-12-20T10:53:26.000690 | 1,513,767,206.00069 | 105,246 |
pythondev | help | And just to reiterate, it does not enter the repl on win7 | 2017-12-20T10:53:48.000008 | Elsie | pythondev_help_Elsie_2017-12-20T10:53:48.000008 | 1,513,767,228.000008 | 105,247 |
pythondev | help | python 3.4.3 | 2017-12-20T10:53:58.000786 | Elsie | pythondev_help_Elsie_2017-12-20T10:53:58.000786 | 1,513,767,238.000786 | 105,248 |
pythondev | help | are you 100% sure it's the same script ? | 2017-12-20T10:54:25.000547 | Ciera | pythondev_help_Ciera_2017-12-20T10:54:25.000547 | 1,513,767,265.000547 | 105,249 |
pythondev | help | 100% | 2017-12-20T10:54:33.000230 | Elsie | pythondev_help_Elsie_2017-12-20T10:54:33.000230 | 1,513,767,273.00023 | 105,250 |
pythondev | help | <@Russ> I'm not familliar with mysql, you might have better luck in <#C0LMFRMB5|django> or <#C3X4T24LB|databases> :slightly_smiling_face: | 2017-12-20T10:55:02.000481 | Ciera | pythondev_help_Ciera_2017-12-20T10:55:02.000481 | 1,513,767,302.000481 | 105,251 |
pythondev | help | Copied everything over and tried running it | 2017-12-20T10:55:06.000778 | Elsie | pythondev_help_Elsie_2017-12-20T10:55:06.000778 | 1,513,767,306.000778 | 105,252 |
pythondev | help | can you run this from the directory where the script lives? so something like `[sys.executable, 'DeviceSocket.py']`? | 2017-12-20T10:55:29.000932 | Winnifred | pythondev_help_Winnifred_2017-12-20T10:55:29.000932 | 1,513,767,329.000932 | 105,253 |
pythondev | help | <@Winnifred> in the repl? | 2017-12-20T10:55:58.000229 | Elsie | pythondev_help_Elsie_2017-12-20T10:55:58.000229 | 1,513,767,358.000229 | 105,254 |
pythondev | help | Hello, I'm working with the lxml library, and when debugging I never get to the third line of the following code:
```
if node.text is not None:
if node.text >= target:
print('Test')
```
After checking that node.text is not None, and target being a string just like node.text, I still get a... | 2017-12-20T10:56:48.000030 | Ashlea | pythondev_help_Ashlea_2017-12-20T10:56:48.000030 | 1,513,767,408.00003 | 105,255 |
pythondev | help | Scratch this. I just tested my hypothesis locally. | 2017-12-20T10:57:50.000105 | Winnifred | pythondev_help_Winnifred_2017-12-20T10:57:50.000105 | 1,513,767,470.000105 | 105,256 |
pythondev | help | Not sure what happens when you use `>=` with two strings | 2017-12-20T10:58:09.000480 | Ciera | pythondev_help_Ciera_2017-12-20T10:58:09.000480 | 1,513,767,489.00048 | 105,257 |
pythondev | help | <@Winnifred> same behavior when run it in the repl | 2017-12-20T10:58:16.000756 | Elsie | pythondev_help_Elsie_2017-12-20T10:58:16.000756 | 1,513,767,496.000756 | 105,258 |
pythondev | help | are you sure it's what you want ? what do you want to check ? | 2017-12-20T10:58:25.000478 | Ciera | pythondev_help_Ciera_2017-12-20T10:58:25.000478 | 1,513,767,505.000478 | 105,259 |
pythondev | help | I want to make sure that the length of node.text is higher than the length of target. | 2017-12-20T10:58:45.000113 | Ashlea | pythondev_help_Ashlea_2017-12-20T10:58:45.000113 | 1,513,767,525.000113 | 105,260 |
pythondev | help | <@Elsie> do you get any output on `stderr` or `stdout` ? | 2017-12-20T10:58:56.000419 | Ciera | pythondev_help_Ciera_2017-12-20T10:58:56.000419 | 1,513,767,536.000419 | 105,261 |
pythondev | help | Or equal. | 2017-12-20T10:58:58.000375 | Ashlea | pythondev_help_Ashlea_2017-12-20T10:58:58.000375 | 1,513,767,538.000375 | 105,262 |
pythondev | help | you should use `len(my_string)` I believe | 2017-12-20T10:59:18.000129 | Ciera | pythondev_help_Ciera_2017-12-20T10:59:18.000129 | 1,513,767,558.000129 | 105,263 |
pythondev | help | <@Ciera> How should I check that? | 2017-12-20T10:59:43.000549 | Elsie | pythondev_help_Elsie_2017-12-20T10:59:43.000549 | 1,513,767,583.000549 | 105,264 |
pythondev | help | That throws the same error. Also, pylint states that you may not use len as a conditional value. | 2017-12-20T10:59:57.000038 | Ashlea | pythondev_help_Ashlea_2017-12-20T10:59:57.000038 | 1,513,767,597.000038 | 105,265 |
pythondev | help | ```
>>> a = 'aaa'
>>> b = 'b'
>>> a > b
False
>>> a < b
True
``` | 2017-12-20T11:00:34.000107 | Ciera | pythondev_help_Ciera_2017-12-20T11:00:34.000107 | 1,513,767,634.000107 | 105,266 |
pythondev | help | I believe it's checking the numerical value of the letter and not the length of the string. | 2017-12-20T11:01:19.000212 | Ciera | pythondev_help_Ciera_2017-12-20T11:01:19.000212 | 1,513,767,679.000212 | 105,267 |
pythondev | help | <@Elsie> <https://stackoverflow.com/questions/13398261/python-subprocess-call-and-subprocess-popen-stdout>. You might need to kill the process to make it finish if it hangs | 2017-12-20T11:02:05.000170 | Ciera | pythondev_help_Ciera_2017-12-20T11:02:05.000170 | 1,513,767,725.00017 | 105,268 |
pythondev | help | <@Ciera> So the only way to go about this is using len(string)? | 2017-12-20T11:02:40.000089 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:02:40.000089 | 1,513,767,760.000089 | 105,269 |
pythondev | help | <@Elsie>, additionally, check out: <https://stackoverflow.com/a/43276598/3046539> | 2017-12-20T11:02:53.000153 | Winnifred | pythondev_help_Winnifred_2017-12-20T11:02:53.000153 | 1,513,767,773.000153 | 105,270 |
pythondev | help | Ok thanks, I'll check thoe out | 2017-12-20T11:03:04.000325 | Elsie | pythondev_help_Elsie_2017-12-20T11:03:04.000325 | 1,513,767,784.000325 | 105,271 |
pythondev | help | ```
if node.text is not None:
if len(node.text) >= len(target):
print('Test')
```
This throws the same error. | 2017-12-20T11:03:44.000700 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:03:44.000700 | 1,513,767,824.0007 | 105,272 |
pythondev | help | instead of `shell=True`, you can do `stdout=subprocess.PIPE` and then poll to see if it is completed unless you need some output from subprocess. | 2017-12-20T11:03:53.000078 | Winnifred | pythondev_help_Winnifred_2017-12-20T11:03:53.000078 | 1,513,767,833.000078 | 105,273 |
pythondev | help | <@Ashlea> What is `target`? | 2017-12-20T11:04:08.000273 | Antionette | pythondev_help_Antionette_2017-12-20T11:04:08.000273 | 1,513,767,848.000273 | 105,274 |
pythondev | help | Target is an argument that the function expects. It's a string. | 2017-12-20T11:04:29.000611 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:04:29.000611 | 1,513,767,869.000611 | 105,275 |
pythondev | help | you sure ? can you print it ? | 2017-12-20T11:05:11.000791 | Ciera | pythondev_help_Ciera_2017-12-20T11:05:11.000791 | 1,513,767,911.000791 | 105,276 |
pythondev | help | Yes I can. And yes I am sure cause I'm running a unit test for this function, and I pass a string. | 2017-12-20T11:05:40.000157 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:05:40.000157 | 1,513,767,940.000157 | 105,277 |
pythondev | help | Can you post the stack trace? | 2017-12-20T11:06:33.000014 | Antionette | pythondev_help_Antionette_2017-12-20T11:06:33.000014 | 1,513,767,993.000014 | 105,278 |
pythondev | help | This is the only thing I have, I'm using VS Code:
```
ERROR: test_getFirstByContentContains (test_crawler.CrawlerTests)
Test method for getFirstByContentContains.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ps/Projects/LibCrawler/test/test_craw... | 2017-12-20T11:07:09.000495 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:07:09.000495 | 1,513,768,029.000495 | 105,279 |
pythondev | help | `cra.getFirstByContentContains(searchcontent, True)` is returning `None` | 2017-12-20T11:08:06.000211 | Ciera | pythondev_help_Ciera_2017-12-20T11:08:06.000211 | 1,513,768,086.000211 | 105,280 |
pythondev | help | From the name I suppose because it couldn't find anything | 2017-12-20T11:08:25.000323 | Ciera | pythondev_help_Ciera_2017-12-20T11:08:25.000323 | 1,513,768,105.000323 | 105,281 |
pythondev | help | Because it stops the function at the third line of what I posted. | 2017-12-20T11:08:47.000095 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:08:47.000095 | 1,513,768,127.000095 | 105,282 |
pythondev | help | Otherwise if the function would have found something it would `return True, 'thisiswhatIfound'` or `Return False, ''`. | 2017-12-20T11:09:36.000523 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:09:36.000523 | 1,513,768,176.000523 | 105,283 |
pythondev | help | Can you post the full function? | 2017-12-20T11:09:58.000739 | Antionette | pythondev_help_Antionette_2017-12-20T11:09:58.000739 | 1,513,768,198.000739 | 105,284 |
pythondev | help | ```
def getFirstRec(self, target, node, isregex, isdeepsearch):
"""Recursively search for the given target in the xml tree
and return the first hit."""
if node.text is not None:
if len(node.text) >= len(target):
print('Test')
if isregex:
... | 2017-12-20T11:10:28.000270 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:10:28.000270 | 1,513,768,228.00027 | 105,285 |
pythondev | help | Sorry, had a part commented out. | 2017-12-20T11:11:20.000153 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:11:20.000153 | 1,513,768,280.000153 | 105,286 |
pythondev | help | ```
def getFirstRec(self, target, node, isregex, isdeepsearch):
"""Recursively search for the given target in the xml tree
and return the first hit."""
if node.text is not None:
if len(node.text) >= len(target):
print('Test')
if isregex:
... | 2017-12-20T11:11:23.000523 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:11:23.000523 | 1,513,768,283.000523 | 105,287 |
pythondev | help | This function has the issue. | 2017-12-20T11:12:01.000593 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:12:01.000593 | 1,513,768,321.000593 | 105,288 |
pythondev | help | The unit test just calls
```
def getFirstByContentContains(self, target, deepsearch):
"""Search for the given target
and return the first one found if there is a hit."""
if target is not None:
count = len(target)
if count == 0:
return False, ''
... | 2017-12-20T11:12:11.000602 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:12:11.000602 | 1,513,768,331.000602 | 105,289 |
pythondev | help | Which in turn calls the function with the issue. | 2017-12-20T11:12:19.000348 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:12:19.000348 | 1,513,768,339.000348 | 105,290 |
pythondev | help | `for child in node` could return `None` if `found` is always `False` | 2017-12-20T11:12:42.000776 | Ciera | pythondev_help_Ciera_2017-12-20T11:12:42.000776 | 1,513,768,362.000776 | 105,291 |
pythondev | help | Thanks for pointing that out. I'll fix that. However that part was commented out, so the issue remains. | 2017-12-20T11:13:35.000375 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:13:35.000375 | 1,513,768,415.000375 | 105,292 |
pythondev | help | what was commented out ? | 2017-12-20T11:14:13.000197 | Ciera | pythondev_help_Ciera_2017-12-20T11:14:13.000197 | 1,513,768,453.000197 | 105,293 |
pythondev | help | That loop. | 2017-12-20T11:14:20.000572 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:14:20.000572 | 1,513,768,460.000572 | 105,294 |
pythondev | help | ```
if node.text is not None:
if len(node.text) >= len(target):
print('Test')
``` | 2017-12-20T11:14:41.000489 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:14:41.000489 | 1,513,768,481.000489 | 105,295 |
pythondev | help | This is the issue. | 2017-12-20T11:14:44.000154 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:14:44.000154 | 1,513,768,484.000154 | 105,296 |
pythondev | help | When debugging, I go from line to line, and when I execute that string compare `if len(node.text) >= len(target):`, it leaves the function, leaves the function that the unit test is calling etc. | 2017-12-20T11:15:50.000276 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:15:50.000276 | 1,513,768,550.000276 | 105,297 |
pythondev | help | and throws the error? Couldn't that be beacuse that evaluates to false and then it continues to the `elif (node.items() is not None) and (len(node.items())) and isdeepsearch:` line where the error occurs? | 2017-12-20T11:18:13.000428 | Antionette | pythondev_help_Antionette_2017-12-20T11:18:13.000428 | 1,513,768,693.000428 | 105,298 |
pythondev | help | Well, the debugger in VS Code is kind of confusing, but for as far as I can tell that is not the case. | 2017-12-20T11:19:37.000639 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:19:37.000639 | 1,513,768,777.000639 | 105,299 |
pythondev | help | I'm actually looking for a noncommercial alternative to VS Code for Python, cause the IDE has issues with its Python extension. | 2017-12-20T11:20:20.000071 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:20:20.000071 | 1,513,768,820.000071 | 105,300 |
pythondev | help | Something seems off because the snippet you posted definitely does not appear to contain any iteration and comparisons/len called on None types would have thrown different error | 2017-12-20T11:20:32.000369 | Antionette | pythondev_help_Antionette_2017-12-20T11:20:32.000369 | 1,513,768,832.000369 | 105,301 |
pythondev | help | I thought the same. | 2017-12-20T11:20:47.000501 | Ashlea | pythondev_help_Ashlea_2017-12-20T11:20:47.000501 | 1,513,768,847.000501 | 105,302 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.