Slack NLP : open source project
If you would like to join the slack NLP project, please share your github id to email address is [email protected] or [email protected]. Slack NLP github repository https://github.com/bhagvank/slacknlp Slack channel http://goo.gl/BMGHjr Telegram group https://t.me/joinchat/KisuQBRcgs9F7x6lQESpmg check out my latest presentation on open source project-SlackNLP at Pycon 2018 https://goo.gl/hpWu12 -- https://mail.python.org/mailman/listinfo/python-list
Re: Question about slight deviations when using integer division with large integers.
Perhaps the "secret" is *not* do integer division with negative numbers? -- https://mail.python.org/mailman/listinfo/python-list
Re: Question about slight deviations when using integer division with large integers.
On Mon, Dec 31, 2018 at 1:56 PM Christian Seberino wrote: > > Perhaps the "secret" is *not* do integer division with negative numbers? I have no idea what you're replying to, but integer division with negative numbers IS well defined. Python will floor - it will always round down. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Question about slight deviations when using integer division with large integers.
What is simplest way to make both those prints give same values? Any slicker way than an if statement? -- https://mail.python.org/mailman/listinfo/python-list
Re: Question about slight deviations when using integer division with large integers.
On 30Dec2018 21:14, Christian Seberino wrote: What is simplest way to make both those prints give same values? Any slicker way than an if statement? If your post had an attachment, be aware that the python-list list drops all attachments - it is a text only list. Please paste your code directly into your messages so that others can easily see it. Thanks, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list
Re: Facing an Error after migrating from python 3.4.1 to python 3.6.6 ( Failed to import the site module )
On Friday, December 28, 2018 at 5:41:52 PM UTC+5:30, Piet van Oostrum wrote: > [email protected] writes: > > > ``` > > Error code: > > -- > > > > > > Traceback (most recent call last): > > File > > "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\Lib\site.py", > > line 73, in > import os > > File > > "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\Lib\os.py", > > line 652, in > > from _collections_abc import MutableMapping > > File > > "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\Lib\_collections_abc.py", > > line 58 > > async def _coro(): pass > > ^ > > SyntaxError: invalid syntax > > Failed to import the site module > > > > > > > > After migrating from python 3.4.1 to python 3.6.6 > > while Executing my project, I'm facing this issue and not able to > > resolve it. Can i get any solution for this issue? > > Could it be that your PYTHONPATH environment variable is set to a directory > in Python 3.4.1? > > -- > Piet van Oostrum > WWW: http://piet.vanoostrum.org/ > PGP key: [8DAE142BE17999C4] Thankyou, but not worked. Then i tried by removing the python 3.6.6 variables from PYTHONPATH and now , it is working fine for me -- https://mail.python.org/mailman/listinfo/python-list
Error while calling a subprocess and execute another script from one py file
Hi all,
==
Error code :
--
Traceback (most recent call last):
File "E:\ocius_tjb\run.py", line 163, in
subprocess.check_call(['C:/Python34/python.exe', logxml_parser, '-i', arg1,
'-o', arg2], cwd=cur_work_dir)
File
"C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
line 286, in check_call
retcode = call(*popenargs, **kwargs)
File
"C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
line 267, in call
with Popen(*popenargs, **kwargs) as p:
File
"C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
line 709, in __init__
restore_signals, start_new_session)
File
"C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
line 971, in _execute_child
args = list2cmdline(args)
File
"C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
line 461, in list2cmdline
needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'module' is not iterable
--
> I'm currently facing this error while execute another py_script from one
> script.
> and i need to execute the program from python 3.6.6 and in subprocess from
> python 3.4.1
Can i get a solution for this problem im facing?
--
https://mail.python.org/mailman/listinfo/python-list
Re: Question about slight deviations when using integer division with large integers.
On Sun, Dec 30, 2018 at 10:27 PM Cameron Simpson wrote: > > On 30Dec2018 21:14, Christian Seberino wrote: > >What is simplest way to make both those > >prints give same values? Any slicker way > >than an if statement? > > If your post had an attachment, be aware that the python-list list drops > all attachments - it is a text only list. Please paste your code > directly into your messages so that others can easily see it. The Google group has an initial post in this thread that didn't make it through to the mailing list for whatever reason. For posterity, here it is: > Why are the following two similar prints slightly different and how fix? > > >>> x = 0x739ad43ed636 > > >>> print(x + (-x) // 2048) > 127046758190683 > > >>> print(x - x // 2048) > 127046758190684 > > I'm working in an area where such deviations matter. It would nice to > understand what is happening. > > Any help greatly appreciated. > > cs -- https://mail.python.org/mailman/listinfo/python-list
Re: Question about slight deviations when using integer division with large integers.
On Mon, Dec 31, 2018 at 6:36 PM Ian Kelly wrote: > > The Google group has an initial post in this thread that didn't make it > through to the mailing list for whatever reason. For posterity, here > it is: Thanks Ian. > > Why are the following two similar prints slightly different and how fix? > > > > >>> x = 0x739ad43ed636 > > > > >>> print(x + (-x) // 2048) > > 127046758190683 > > > > >>> print(x - x // 2048) > > 127046758190684 > > > > I'm working in an area where such deviations matter. It would nice to > > understand what is happening. This is a distinctly different order of operations. Remember from grade school that division is done before addition and subtraction; the first one will calculate (-x)//2048 and then add that onto x, and the second will calculate x//2048 and then subtract that from x. As has already been pointed out, Python's // operator is *floor division*, meaning that it will always round down, whether the number is positive or negative. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: Question about slight deviations when using integer division with large integers.
On Sun, Dec 30, 2018 at 10:18 PM Christian Seberino wrote: > > What is simplest way to make both those > prints give same values? Any slicker way > than an if statement? Stack Overflow has a few suggestions: https://stackoverflow.com/questions/19919387/in-python-what-is-a-good-way-to-round-towards-zero-in-integer-division -- https://mail.python.org/mailman/listinfo/python-list
