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 | Thank you in advance! | 2017-11-28T08:44:30.000284 | Roy | pythondev_help_Roy_2017-11-28T08:44:30.000284 | 1,511,858,670.000284 | 101,403 |
pythondev | help | Say I have two variables, `a` and `b`, and I want to assign the value of `a` to `b`. When is it advisable to just use `b = a` vs `b = a.copy()`? Are there certain situations that would call for one method over the other? | 2017-11-28T10:03:26.000131 | Kenny | pythondev_help_Kenny_2017-11-28T10:03:26.000131 | 1,511,863,406.000131 | 101,404 |
pythondev | help | one is a reference, and the other actually copies the content over to the new variable | 2017-11-28T10:04:33.000614 | Meg | pythondev_help_Meg_2017-11-28T10:04:33.000614 | 1,511,863,473.000614 | 101,405 |
pythondev | help | ```
In [1]: a = 'some_text'
In [2]: b = 'some_other_text'
In [3]: a = b
In [4]: b
Out[4]: 'some_other_text'
In [5]: a
Out[5]: 'some_other_text'``` | 2017-11-28T10:05:25.000835 | Meg | pythondev_help_Meg_2017-11-28T10:05:25.000835 | 1,511,863,525.000835 | 101,406 |
pythondev | help | Hey i made a widget that allows the user to input a lead time, but im getting data stored like this `[u'7-14', u'Days']`
```
def __init__(self, *args, **kwargs):
list_fields = "{0} {1}".format(forms.fields.CharField(max_length=31),
forms.fields.CharField())
s... | 2017-11-28T10:48:35.000105 | Robbin | pythondev_help_Robbin_2017-11-28T10:48:35.000105 | 1,511,866,115.000105 | 101,407 |
pythondev | help | Hey guys! If my project is defined like this:
File a.py:
```
def method_one():
something
```
File b.py:
```
import a
some_var = a.method_one()
```
How would I stub the method `a.method_one()` in my test for b so that the original method never gets called? | 2017-11-28T11:52:42.000779 | Micheline | pythondev_help_Micheline_2017-11-28T11:52:42.000779 | 1,511,869,962.000779 | 101,408 |
pythondev | help | <@Micheline> Welcome to the wonderful world of Mock <https://docs.python.org/3/library/unittest.mock.html> | 2017-11-28T12:28:30.000381 | Tanya | pythondev_help_Tanya_2017-11-28T12:28:30.000381 | 1,511,872,110.000381 | 101,409 |
pythondev | help | <@Tanya> I know I have to use mock, but I don't know how to use it before a `import` | 2017-11-28T13:03:38.000911 | Micheline | pythondev_help_Micheline_2017-11-28T13:03:38.000911 | 1,511,874,218.000911 | 101,410 |
pythondev | help | If I do: `import b`, `a.method_one()` gets called during the import | 2017-11-28T13:04:07.000250 | Micheline | pythondev_help_Micheline_2017-11-28T13:04:07.000250 | 1,511,874,247.00025 | 101,411 |
pythondev | help | clean up `b` so it doesn't run any code automatically | 2017-11-28T13:04:32.000336 | Frieda | pythondev_help_Frieda_2017-11-28T13:04:32.000336 | 1,511,874,272.000336 | 101,412 |
pythondev | help | Sorry, what do you mean by that? | 2017-11-28T13:05:14.000725 | Micheline | pythondev_help_Micheline_2017-11-28T13:05:14.000725 | 1,511,874,314.000725 | 101,413 |
pythondev | help | hi team | 2017-11-28T13:12:14.000576 | Sara | pythondev_help_Sara_2017-11-28T13:12:14.000576 | 1,511,874,734.000576 | 101,414 |
pythondev | help | os.walk not able to search files in all the directories python. | 2017-11-28T13:12:33.000457 | Sara | pythondev_help_Sara_2017-11-28T13:12:33.000457 | 1,511,874,753.000457 | 101,415 |
pythondev | help | I tried this below code and buts it just traverses through some folders and exists.I have around 400 directories where in a search has to made my current sample code import os for root,dirs,files in os.walk('/backup'): for file in files: if file.startswith("abc") and file.endswith(".gz"): print(os.path.join(root,file))... | 2017-11-28T13:12:53.000126 | Sara | pythondev_help_Sara_2017-11-28T13:12:53.000126 | 1,511,874,773.000126 | 101,416 |
pythondev | help | <@Micheline> any code that's at the base level of a file (not inside a function, class, if condition that evaluates to false, etc) will be run any time the file is accessed. `python some_file.py` and `import some_file` are both going to trigger any code that's in there | 2017-11-28T13:13:58.000541 | Frieda | pythondev_help_Frieda_2017-11-28T13:13:58.000541 | 1,511,874,838.000541 | 101,417 |
pythondev | help | I tried this below code and buts it just traverses through some folders and exists.I have around 400 directories where in a search has to made and this is my current sample code | 2017-11-28T13:14:40.000007 | Sara | pythondev_help_Sara_2017-11-28T13:14:40.000007 | 1,511,874,880.000007 | 101,418 |
pythondev | help | <@Frieda> So then how would I write tests to stub `a.method_one()` then? | 2017-11-28T13:17:58.000416 | Micheline | pythondev_help_Micheline_2017-11-28T13:17:58.000416 | 1,511,875,078.000416 | 101,419 |
pythondev | help | Is there some way to stub the method then load the file? | 2017-11-28T13:18:17.000288 | Micheline | pythondev_help_Micheline_2017-11-28T13:18:17.000288 | 1,511,875,097.000288 | 101,420 |
pythondev | help | it's _probably_ possible but if you can change `b` so it doesn't auto-run `a.method_one()`, that's much cleaner | 2017-11-28T13:18:46.000152 | Frieda | pythondev_help_Frieda_2017-11-28T13:18:46.000152 | 1,511,875,126.000152 | 101,421 |
pythondev | help | ```
if __name__ == '__main__':
a.method_one()
``` | 2017-11-28T13:18:48.000356 | Frieda | pythondev_help_Frieda_2017-11-28T13:18:48.000356 | 1,511,875,128.000356 | 101,422 |
pythondev | help | that will cause `a.method_one()` to only be called if `b` is run directly (`python b.py`) | 2017-11-28T13:19:15.000597 | Frieda | pythondev_help_Frieda_2017-11-28T13:19:15.000597 | 1,511,875,155.000597 | 101,423 |
pythondev | help | It's more efficient to have `a.method_one()` run on import for my case since it could be a operation that takes a short while. Is there an alternative I can do in my tests? | 2017-11-28T13:24:10.000663 | Micheline | pythondev_help_Micheline_2017-11-28T13:24:10.000663 | 1,511,875,450.000663 | 101,424 |
pythondev | help | sorry, not that i know of | 2017-11-28T13:24:51.000310 | Frieda | pythondev_help_Frieda_2017-11-28T13:24:51.000310 | 1,511,875,491.00031 | 101,425 |
pythondev | help | i need some help in finding files through huge list of directories in python | 2017-11-28T13:26:43.000082 | Sara | pythondev_help_Sara_2017-11-28T13:26:43.000082 | 1,511,875,603.000082 | 101,426 |
pythondev | help | I tried os.walk but it is not traversing all the directories and exists after traversing few of them | 2017-11-28T13:27:23.000291 | Sara | pythondev_help_Sara_2017-11-28T13:27:23.000291 | 1,511,875,643.000291 | 101,427 |
pythondev | help | can some one help me with this | 2017-11-28T13:27:32.000711 | Sara | pythondev_help_Sara_2017-11-28T13:27:32.000711 | 1,511,875,652.000711 | 101,428 |
pythondev | help | <@Sara> how many files are you expecting to find, and how many are actually found? | 2017-11-28T13:39:53.000057 | Meg | pythondev_help_Meg_2017-11-28T13:39:53.000057 | 1,511,876,393.000057 | 101,429 |
pythondev | help | Also can you post an example/some code with how you are using it? | 2017-11-28T13:40:06.000236 | Antionette | pythondev_help_Antionette_2017-11-28T13:40:06.000236 | 1,511,876,406.000236 | 101,430 |
pythondev | help | ``` Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files (x86)\Python36-32\lib\tkinter\__init__.py", line 1699, in __call__
return self.func(*args)
File "m:\aaDonE\Projects\gp_outage\test2.py", line 37, in update_options
menu = self.optionmenu_b["menu"]
AttributeError: 'Ap... | 2017-11-28T13:44:04.000130 | Lilliam | pythondev_help_Lilliam_2017-11-28T13:44:04.000130 | 1,511,876,644.00013 | 101,431 |
pythondev | help | import os
for root,dirs,files in os.walk('/backup'):
for file in files:
if file.startswith("abc") and file.endswith(".gz"):
print(os.path.join(root,file)) | 2017-11-28T13:58:10.000293 | Sara | pythondev_help_Sara_2017-11-28T13:58:10.000293 | 1,511,877,490.000293 | 101,432 |
pythondev | help | There are around 100 files that should get listed but it just lists me 8 files and exits | 2017-11-28T13:59:01.000723 | Sara | pythondev_help_Sara_2017-11-28T13:59:01.000723 | 1,511,877,541.000723 | 101,433 |
pythondev | help | <@Sara> its best if you avoid using threads.. because you’re responding in multiple areas where your response is naturally hidden | 2017-11-28T14:00:06.000030 | Meg | pythondev_help_Meg_2017-11-28T14:00:06.000030 | 1,511,877,606.00003 | 101,434 |
pythondev | help | for example, your code example to <@Antionette> is hidden to me unless I manually open that thread | 2017-11-28T14:00:36.000095 | Meg | pythondev_help_Meg_2017-11-28T14:00:36.000095 | 1,511,877,636.000095 | 101,435 |
pythondev | help | and its not targeted to me | 2017-11-28T14:00:42.000167 | Meg | pythondev_help_Meg_2017-11-28T14:00:42.000167 | 1,511,877,642.000167 | 101,436 |
pythondev | help | nor is your response to my question visibile by default to <@Antionette> | 2017-11-28T14:01:04.000732 | Meg | pythondev_help_Meg_2017-11-28T14:01:04.000732 | 1,511,877,664.000732 | 101,437 |
pythondev | help | sure <@Meg>.I will take care of this in future.There are around 100 files that should get listed but it just lists me 8 files and exits. <@Antionette> My code is attached as py snippet | 2017-11-28T14:03:15.000377 | Sara | pythondev_help_Sara_2017-11-28T14:03:15.000377 | 1,511,877,795.000377 | 101,438 |
pythondev | help | :thumbsup: :slightly_smiling_face: | 2017-11-28T14:03:27.000373 | Meg | pythondev_help_Meg_2017-11-28T14:03:27.000373 | 1,511,877,807.000373 | 101,439 |
pythondev | help | Also <@Meg> there are symlinks as well for my directories .Do u think that can create an issue ?I think yes but not sure though | 2017-11-28T14:04:32.000353 | Sara | pythondev_help_Sara_2017-11-28T14:04:32.000353 | 1,511,877,872.000353 | 101,440 |
pythondev | help | yes, that will be an issue | 2017-11-28T14:04:41.000480 | Meg | pythondev_help_Meg_2017-11-28T14:04:41.000480 | 1,511,877,881.00048 | 101,441 |
pythondev | help | Yes, walk does not follow symlinks | 2017-11-28T14:04:45.000270 | Antionette | pythondev_help_Antionette_2017-11-28T14:04:45.000270 | 1,511,877,885.00027 | 101,442 |
pythondev | help | by default | 2017-11-28T14:04:47.000028 | Antionette | pythondev_help_Antionette_2017-11-28T14:04:47.000028 | 1,511,877,887.000028 | 101,443 |
pythondev | help | <https://docs.python.org/2/library/os.html#os.walk> | 2017-11-28T14:04:58.000727 | Meg | pythondev_help_Meg_2017-11-28T14:04:58.000727 | 1,511,877,898.000727 | 101,444 |
pythondev | help | note the `followlinks` parameter | 2017-11-28T14:05:06.000058 | Meg | pythondev_help_Meg_2017-11-28T14:05:06.000058 | 1,511,877,906.000058 | 101,445 |
pythondev | help | >By default, walk() will not walk down into symbolic links that resolve to directories. Set `followlinks` to True to visit directories pointed to by symlinks, on systems that support them. | 2017-11-28T14:05:26.000560 | Meg | pythondev_help_Meg_2017-11-28T14:05:26.000560 | 1,511,877,926.00056 | 101,446 |
pythondev | help | thanks mate <@Meg> let me try that quickly . | 2017-11-28T14:05:58.000611 | Sara | pythondev_help_Sara_2017-11-28T14:05:58.000611 | 1,511,877,958.000611 | 101,447 |
pythondev | help | yup <@Meg> works like a charm.Thanks again. | 2017-11-28T14:10:33.000181 | Sara | pythondev_help_Sara_2017-11-28T14:10:33.000181 | 1,511,878,233.000181 | 101,448 |
pythondev | help | :thumbsup: | 2017-11-28T14:11:32.000152 | Meg | pythondev_help_Meg_2017-11-28T14:11:32.000152 | 1,511,878,292.000152 | 101,449 |
pythondev | help | <@Lilliam>I think we just had this issue come up the other day in here. The problem is that you are calling `self.update_options()` before you create `self._optionmenu_b`, so it doesn't actually exist yet even though you are retrieving it in the `update_options` function | 2017-11-28T15:20:40.000542 | Sirena | pythondev_help_Sirena_2017-11-28T15:20:40.000542 | 1,511,882,440.000542 | 101,450 |
pythondev | help | The solution is probably one of a.) don't touch it in `update_options`, b.) call `update_options()` after creation of your menus, c.) change your design to not need to do things in that way | 2017-11-28T15:22:17.000363 | Sirena | pythondev_help_Sirena_2017-11-28T15:22:17.000363 | 1,511,882,537.000363 | 101,451 |
pythondev | help | to be more specific, line 19 seems to be the most immediate culprit | 2017-11-28T15:24:58.000481 | Sirena | pythondev_help_Sirena_2017-11-28T15:24:58.000481 | 1,511,882,698.000481 | 101,452 |
pythondev | help | <@Sirena> thanks is there any other way to update an option menu based on what is selected in another option menu? | 2017-11-28T15:36:09.000271 | Lilliam | pythondev_help_Lilliam_2017-11-28T15:36:09.000271 | 1,511,883,369.000271 | 101,453 |
pythondev | help | hard to say without knowing more, but probably you should create some kind of empty or default menu stuff in the __init__ before you call the other functions, as it sits currently you have a circular dependence | 2017-11-28T15:41:58.000459 | Sirena | pythondev_help_Sirena_2017-11-28T15:41:58.000459 | 1,511,883,718.000459 | 101,454 |
pythondev | help | so I don't think it's impossible to update a menu based on a menu | 2017-11-28T15:42:07.000306 | Sirena | pythondev_help_Sirena_2017-11-28T15:42:07.000306 | 1,511,883,727.000306 | 101,455 |
pythondev | help | but you can't update a menu based on unknowable information for sure | 2017-11-28T15:42:30.000425 | Sirena | pythondev_help_Sirena_2017-11-28T15:42:30.000425 | 1,511,883,750.000425 | 101,456 |
pythondev | help | you might be able to just move #19 down to #25 and have it work, there's a lot going on here that I'm not terribly familiar with | 2017-11-28T15:44:29.000001 | Sirena | pythondev_help_Sirena_2017-11-28T15:44:29.000001 | 1,511,883,869.000001 | 101,457 |
pythondev | help | I don't do much GUI or DB stuff, sadly | 2017-11-28T15:44:59.000417 | Sirena | pythondev_help_Sirena_2017-11-28T15:44:59.000417 | 1,511,883,899.000417 | 101,458 |
pythondev | help | flask experts, a noob here needs your help :slightly_smiling_face: | 2017-11-28T17:12:10.000134 | Derek | pythondev_help_Derek_2017-11-28T17:12:10.000134 | 1,511,889,130.000134 | 101,459 |
pythondev | help | Hello | 2017-11-28T23:31:12.000069 | Tangela | pythondev_help_Tangela_2017-11-28T23:31:12.000069 | 1,511,911,872.000069 | 101,460 |
pythondev | help | Guys, I need to get all external requests from a website, someone knows I could do that? I thought that I could obtain with requests, but I didn't find nothing about using requests with this purpose. | 2017-11-28T23:32:59.000199 | Tangela | pythondev_help_Tangela_2017-11-28T23:32:59.000199 | 1,511,911,979.000199 | 101,461 |
pythondev | help | <@Tangela> you're probably best looking at something like scrapy, which is pretty well built for crawling websites like that | 2017-11-29T01:11:44.000200 | Marcie | pythondev_help_Marcie_2017-11-29T01:11:44.000200 | 1,511,917,904.0002 | 101,462 |
pythondev | help | we do something similar for our speed tests but it involves an external tool called browsermob, which lets you export <https://en.wikipedia.org/wiki/.har> files that we parse | 2017-11-29T01:13:00.000244 | Marcie | pythondev_help_Marcie_2017-11-29T01:13:00.000244 | 1,511,917,980.000244 | 101,463 |
pythondev | help | Hey, Guys currently i am PHP Expert but now think to learn python. SO, python is good for future or not? | 2017-11-29T02:28:08.000178 | Dede | pythondev_help_Dede_2017-11-29T02:28:08.000178 | 1,511,922,488.000178 | 101,464 |
pythondev | help | Team,I am looking for online python courses.Can some one help with that ? | 2017-11-29T02:48:37.000046 | Sara | pythondev_help_Sara_2017-11-29T02:48:37.000046 | 1,511,923,717.000046 | 101,465 |
pythondev | help | I've heard good things about <https://automatetheboringstuff.com/> | 2017-11-29T03:01:28.000028 | Cleora | pythondev_help_Cleora_2017-11-29T03:01:28.000028 | 1,511,924,488.000028 | 101,466 |
pythondev | help | <@Darline> thanks mate | 2017-11-29T05:30:56.000572 | Sara | pythondev_help_Sara_2017-11-29T05:30:56.000572 | 1,511,933,456.000572 | 101,467 |
pythondev | help | <@Cleora> thanks mate | 2017-11-29T05:31:03.000265 | Sara | pythondev_help_Sara_2017-11-29T05:31:03.000265 | 1,511,933,463.000265 | 101,468 |
pythondev | help | I'm pretty sure this is simple enough, but SO doesn't seem to be helping me... | 2017-11-29T06:10:47.000280 | Edda | pythondev_help_Edda_2017-11-29T06:10:47.000280 | 1,511,935,847.00028 | 101,469 |
pythondev | help | I have the following XML:
```
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetOrderStatusResponse xmlns="http://www..co... | 2017-11-29T06:11:08.000111 | Edda | pythondev_help_Edda_2017-11-29T06:11:08.000111 | 1,511,935,868.000111 | 101,470 |
pythondev | help | How do I return the text in GetOrderStatusResult in the cleanest way? | 2017-11-29T06:11:28.000348 | Edda | pythondev_help_Edda_2017-11-29T06:11:28.000348 | 1,511,935,888.000348 | 101,471 |
pythondev | help | Should I be using find, iterfind? | 2017-11-29T06:11:41.000248 | Edda | pythondev_help_Edda_2017-11-29T06:11:41.000248 | 1,511,935,901.000248 | 101,472 |
pythondev | help | are you using beautifulsoup to parse that xml, or some other lib? | 2017-11-29T06:12:12.000126 | Meg | pythondev_help_Meg_2017-11-29T06:12:12.000126 | 1,511,935,932.000126 | 101,473 |
pythondev | help | I'm using `ElementTree` | 2017-11-29T06:12:35.000293 | Edda | pythondev_help_Edda_2017-11-29T06:12:35.000293 | 1,511,935,955.000293 | 101,474 |
pythondev | help | so libxml, ok | 2017-11-29T06:13:03.000316 | Meg | pythondev_help_Meg_2017-11-29T06:13:03.000316 | 1,511,935,983.000316 | 101,475 |
pythondev | help | have you looked at the example here? <https://docs.python.org/2/library/xml.etree.elementtree.html> | 2017-11-29T06:13:50.000405 | Meg | pythondev_help_Meg_2017-11-29T06:13:50.000405 | 1,511,936,030.000405 | 101,476 |
pythondev | help | specifically `find`, `findall` | 2017-11-29T06:14:51.000281 | Meg | pythondev_help_Meg_2017-11-29T06:14:51.000281 | 1,511,936,091.000281 | 101,477 |
pythondev | help | <https://docs.python.org/2/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.find> | 2017-11-29T06:15:20.000080 | Meg | pythondev_help_Meg_2017-11-29T06:15:20.000080 | 1,511,936,120.00008 | 101,478 |
pythondev | help | Yeah, but this is where I'm coming unstuck. | 2017-11-29T06:16:39.000226 | Edda | pythondev_help_Edda_2017-11-29T06:16:39.000226 | 1,511,936,199.000226 | 101,479 |
pythondev | help | So I'm after the `GetOrderStatusResult` element. | 2017-11-29T06:16:50.000201 | Edda | pythondev_help_Edda_2017-11-29T06:16:50.000201 | 1,511,936,210.000201 | 101,480 |
pythondev | help | I know that root[0][0][0] is that element in this case, but it might not be in all cases. | 2017-11-29T06:17:10.000144 | Edda | pythondev_help_Edda_2017-11-29T06:17:10.000144 | 1,511,936,230.000144 | 101,481 |
pythondev | help | doing `root[0][0][0].tag` gives me `'{<http://www.tharstern.com/webservices/cXML/>}GetOrderStatusResult'` | 2017-11-29T06:17:30.000238 | Edda | pythondev_help_Edda_2017-11-29T06:17:30.000238 | 1,511,936,250.000238 | 101,482 |
pythondev | help | that’s where find comes into play | 2017-11-29T06:17:43.000398 | Meg | pythondev_help_Meg_2017-11-29T06:17:43.000398 | 1,511,936,263.000398 | 101,483 |
pythondev | help | or findall | 2017-11-29T06:17:49.000324 | Meg | pythondev_help_Meg_2017-11-29T06:17:49.000324 | 1,511,936,269.000324 | 101,484 |
pythondev | help | and then find `root.find('{<http://www.tharstern.com/webservices/cXML/>}GetOrderStatusResult')` doesn't return anything | 2017-11-29T06:18:06.000242 | Edda | pythondev_help_Edda_2017-11-29T06:18:06.000242 | 1,511,936,286.000242 | 101,485 |
pythondev | help | same for findall | 2017-11-29T06:18:09.000183 | Edda | pythondev_help_Edda_2017-11-29T06:18:09.000183 | 1,511,936,289.000183 | 101,486 |
pythondev | help | `root.findall('GetOrderStatus')` | 2017-11-29T06:18:13.000157 | Meg | pythondev_help_Meg_2017-11-29T06:18:13.000157 | 1,511,936,293.000157 | 101,487 |
pythondev | help | assuming you’ve already loaded the xml response in `root` | 2017-11-29T06:18:37.000145 | Meg | pythondev_help_Meg_2017-11-29T06:18:37.000145 | 1,511,936,317.000145 | 101,488 |
pythondev | help | That didn't work, but I think I've found a solution | 2017-11-29T06:27:08.000248 | Edda | pythondev_help_Edda_2017-11-29T06:27:08.000248 | 1,511,936,828.000248 | 101,489 |
pythondev | help | Because I what to be able to find the tag wherever it may be in the xml hierarchy, I need to prepend the XPath with `.//` which means start from the current (root) node and then subsequently search all sub-elements. | 2017-11-29T06:28:04.000008 | Edda | pythondev_help_Edda_2017-11-29T06:28:04.000008 | 1,511,936,884.000008 | 101,490 |
pythondev | help | uhm, `findall` shoud do that for you, provided you have the correct tag name | 2017-11-29T06:32:08.000425 | Meg | pythondev_help_Meg_2017-11-29T06:32:08.000425 | 1,511,937,128.000425 | 101,491 |
pythondev | help | >>>findall(match)
Finds all matching subelements, by tag name or path. Returns a list containing all matching elements in document order. | 2017-11-29T06:33:02.000002 | Meg | pythondev_help_Meg_2017-11-29T06:33:02.000002 | 1,511,937,182.000002 | 101,492 |
pythondev | help | since `GetOrderStatus` is a tag name, you should return a list of element size one | 2017-11-29T06:33:32.000078 | Meg | pythondev_help_Meg_2017-11-29T06:33:32.000078 | 1,511,937,212.000078 | 101,493 |
pythondev | help | `root.findall('{<http://www.tharstern.com/webservices/cXML/>}GetOrderStatusResult')` returns `[]` | 2017-11-29T06:36:55.000121 | Edda | pythondev_help_Edda_2017-11-29T06:36:55.000121 | 1,511,937,415.000121 | 101,494 |
pythondev | help | Go figure o_o | 2017-11-29T06:37:02.000239 | Edda | pythondev_help_Edda_2017-11-29T06:37:02.000239 | 1,511,937,422.000239 | 101,495 |
pythondev | help | Trying to calc the sum between two times. having issues with the time(), date() works fine.
``` if self.accepted_date:
today = datetime.datetime.now()
accepted = self.accepted_date
diff_date = today.date() - accepted.date()
diff_time = today.time() - accepted.time(... | 2017-11-29T07:03:45.000277 | Robbin | pythondev_help_Robbin_2017-11-29T07:03:45.000277 | 1,511,939,025.000277 | 101,496 |
pythondev | help | I dont understand why this isnt working SO says
```
>>> import datetime
>>> a = datetime.datetime.now()
>>> # ...wait a while...
>>> b = datetime.datetime.now()
>>> print(b-a)
0:03:43.984000
```
which is what i'm doing :s | 2017-11-29T07:06:31.000085 | Robbin | pythondev_help_Robbin_2017-11-29T07:06:31.000085 | 1,511,939,191.000085 | 101,497 |
pythondev | help | ```
>>> accepted = datetime.datetime(2017, 11, 28, 11, 50, 44)
>>> now = datetime.datetime.now()
>>> diff = now - accepted
>>> diff.days # full days
1
>>> diff.seconds
11743
>>> diff.total_seconds()
98143.461705
>>> str(diff)
'1 day, 3:15:43.461705'
``` | 2017-11-29T07:07:28.000134 | Suellen | pythondev_help_Suellen_2017-11-29T07:07:28.000134 | 1,511,939,248.000134 | 101,498 |
pythondev | help | What isn't working exactly? | 2017-11-29T07:08:03.000210 | Suellen | pythondev_help_Suellen_2017-11-29T07:08:03.000210 | 1,511,939,283.00021 | 101,499 |
pythondev | help | Giving me blank output, when i use diff_time, so i'm guessing its that | 2017-11-29T07:08:30.000248 | Robbin | pythondev_help_Robbin_2017-11-29T07:08:30.000248 | 1,511,939,310.000248 | 101,500 |
pythondev | help | ```
>>> now.time() - accepted.time()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for -: 'datetime.time' and 'datetime.time'
``` | 2017-11-29T07:10:51.000040 | Suellen | pythondev_help_Suellen_2017-11-29T07:10:51.000040 | 1,511,939,451.00004 | 101,501 |
pythondev | help | I wonder why it worked for you, not raising an Exception | 2017-11-29T07:11:02.000252 | Suellen | pythondev_help_Suellen_2017-11-29T07:11:02.000252 | 1,511,939,462.000252 | 101,502 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.