On Tue, 23 Jan 2018 17:43:18 +, bartc wrote:
> It wouldn't be a satisfactory way of writing C programs. So, although
> I'm not that big a fan of C syntax, it might be better to write C as C,
> and Python as Python, to avoid confusion.)
This.
The fundamental reality is that `a + b` means diff
On Tuesday, January 23, 2018 at 8:23:43 PM UTC+5:30, Peter Otten wrote:
> Rustom Mody wrote:
> > [I find the OO/imperative style of making a half-done node and then
> > [throwing
> > piece-by-piece of contents in/at it highly aggravating]
>
> What I meant is that once you throw a bit of introspect
Ok Dennis,
You were correct. The following also works in the Windows 10 command window.
import time
import msvcrt
while "more work to do":
print("Getting data...")
time.sleep(1)
print("Saving data to file...")
time.sleep(1)
key = msvcrt.getwch()
#print('key: %s'%key) #
On 2018-01-23 23:29, Virgil Stokes wrote:
Another follow-up question:
How would this code be modified to handle using the "Esc" key instead of
the "Enter" key?
This version uses msvcrt on Windows:
import msvcrt
import threading
import time
shutdown = False
def wait_for_enter():
global s
On Tue, Jan 23, 2018 at 11:29 PM, Virgil Stokes wrote:
>
> How would this code be modified to handle using the "Esc" key instead of the
> "Enter" key?
The input() function depends on the console or terminal to read a line
of input. If you're using the Windows console, it calls the high-level
Read
On 23/01/18 23:42, Vincent Davis wrote:
> On Tue, Jan 23, 2018 at 4:15 PM Dennis Lee Bieber
> wrote:
>
>> On Tue, 23 Jan 2018 13:51:55 -0700, Vincent Davis
>> declaimed the following:
>>
>>> Looking for suggestions. I have an ordered list of names these names will
>>> be reordered. I am looking
On Tue, Jan 23, 2018 at 4:15 PM Dennis Lee Bieber
wrote:
> On Tue, 23 Jan 2018 13:51:55 -0700, Vincent Davis
> declaimed the following:
>
> >Looking for suggestions. I have an ordered list of names these names will
> >be reordered. I am looking to make a plot, graph, with the two origins of
>
>
Another follow-up question:
How would this code be modified to handle using the "Esc" key instead of
the "Enter" key?
On 2018-01-23 20:15, Chris Angelico wrote:
On Wed, Jan 24, 2018 at 5:50 AM, Virgil Stokes wrote:
I would appreciate help on finding a solution to following problem. This is
Looking for suggestions. I have an ordered list of names these names will
be reordered. I am looking to make a plot, graph, with the two origins of
the names in separate columns and a line connecting them to visually
represent how much they have moved in the reordering.
Surely there is some great e
Thanks very much Chris,
This code worked perfectly for "Enter". Your knowledge of Python and
more specifically this elegant solution are greatly appreciated. I now
know that I need to learn more about threads. :-)
On 2018-01-23 20:15, Chris Angelico wrote:
On Wed, Jan 24, 2018 at 5:50 AM, V
On Wed, Jan 24, 2018 at 5:50 AM, Virgil Stokes wrote:
> I would appreciate help on finding a solution to following problem. This is
> the general structure of the "problem" code:
>
>> while True
>> # Get some data from the web and process it
>> ...
>> ...
>> # Write these data to a
I would appreciate help on finding a solution to following problem. This
is the general structure of the "problem" code:
while True
# Get some data from the web and process it
...
...
# Write these data to a file
...
...
# Check if a_key has been pressed in the comma
On 23/01/2018 13:34, bartc wrote:
Perhaps you simply want to use Python syntax to write C code? That would > be a different kind of translator. And a simpler one, as 'a=b+c' >
translates to 'a+b+c;' in C.
Or rather, 'a=b+c;'
(I've written source to source translators, some of which could targe
On Wed, Jan 24, 2018 at 1:45 AM, wrote:
> Hey Ally,
>
> Cython adds a big chunk of complexity to simple things. That's the problem.
That's like saying "Unicode adds a big chunk of complexity to the
simple task of translating a word from Japanese into Russian". No, it
doesn't; the complexity is i
Hey Ally,
Cython adds a big chunk of complexity to simple things. That's the problem.
Greetings.
On 01/23/2018 01:54 PM, ally.m...@bankmail.host wrote:
Have you tried cython ?
On 01/23/2018 01:25 PM, kushal bhattacharya wrote:
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal
bha
Rustom Mody wrote:
> On Sunday, January 21, 2018 at 4:51:34 PM UTC+5:30, Peter Otten wrote:
>> Personally I'd probably avoid the extra layer and write a function that
>> directly maps dataclasses or database records to xml using the
>> conventional elementtree API.
>
> Would appreciate your thoug
Rustom Mody wrote:
> Its obviously easier in python to put optional/vararg parameters on the
> right side rather than on the left of a parameter list.
> But its not impossible to get it in the desired order — one just has to
> 'hand-parse' the parameter list received as a *param
> Thusly:
> appoi
On behalf of the Python development community, I'm pleased to announce
the availability of Python 3.4.8rc1 and Python 3.5.5rc1.
Both Python 3.4 and 3.5 are in "security fixes only" mode. Both versions
only accept security fixes, not conventional bug fixes, and both
releases are source-only.
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
> Hi,
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
>
> Thanks,
> Kushal
ok so which python tool would be the best one which can be included and
parameter
Id go this way too. Basic C is straightforward. I usually consider
learning a new "thing " if the time to support potwntially combersome
solution using existing methods justifies the effort.
On Jan 23, 2018 09:01, "Ned Batchelder" wrote:
> On 1/23/18 8:48 AM, kushal bhattacharya wrote:
>
>> On
You can look at SymPy code generator
http://docs.sympy.org/latest/modules/utilities/codegen.html
Perhaps this is exactly what you need.
With kind regards,
-gdg
2018-01-23 17:00 GMT+03:00 Ned Batchelder :
> On 1/23/18 8:48 AM, kushal bhattacharya wrote:
>
>> On Tuesday, January 23, 2018 at 7:05:0
On 1/23/18 8:48 AM, kushal bhattacharya wrote:
On Tuesday, January 23, 2018 at 7:05:02 PM UTC+5:30, bartc wrote:
On 23/01/2018 13:23, kushal bhattacharya wrote:
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
Hi,
Is there any python framework or any tool as
On Tuesday, January 23, 2018 at 7:05:02 PM UTC+5:30, bartc wrote:
> On 23/01/2018 13:23, kushal bhattacharya wrote:
> > On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
> > wrote:
> >> Hi,
> >> Is there any python framework or any tool as which can generate C code
> >>
On 23/01/2018 13:23, kushal bhattacharya wrote:
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
Hi,
Is there any python framework or any tool as which can generate C code from
python code as it is .
Thanks,
Kushal
yes i have but it generates a complex C co
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
> Hi,
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
>
> Thanks,
> Kushal
yes i have but it generates a complex C code with python dependencies.I want to
c
What about Cython?
On 01/23/2018 01:25 PM, kushal bhattacharya wrote:
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
Hi,
Is there any python framework or any tool as which can generate C code from
python code as it is .
Thanks,
Kushal
hi,
I have found nu
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
> Hi,
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
>
> Thanks,
> Kushal
hi,
I have found nuitka as asuitable candidate but it seems that nuitka doesnt
ge
Learn All The Essential Java Keywords, Operators, Statements, And Expressions.
SSDN Technologies is the premier Java training in Delhi, India. Highly
Qualified Trainers are available to assist you. Enroll Now!
Read More:- http://www.ssdntech.com/Java-training.aspx
--
https://mail.python.org/mail
ken...@gameofy.com writes:
> I'm using exec() to run a (multi-line) string of python code. If an
> exception occurs, I get a traceback containing a stack frame for the
> string. I've labeled the code object with a "file name" so I can
> identify it easily, and when I debug, I find that I can inter
29 matches
Mail list logo