{Sorry about the no-wrap in the first post...}
I use the pywin environment on Windows for python code editing and
interactive environment.
I've been able to find the place in the editor files where the enter
key is handled and where the whitespace is stripped from a line and
I've been able
I just sent a similar suggestion to tutor: check out the %g format.
>>> print '%g' % 1.2345e7
1.2345e+07
>>> print '%g' % 1.2345e-7
1.2345e-07
>>> print '%g' % 1.2345
1.2345
>>> def me(n, sigfigs = 4):
... s = ('%.'+'%ig' % sigfigs) % n # check docs for a better way?
... if 'e' in s: m, e = s.s
Jason Swails wrote:
>> s = ('%%%ig' % sigfigs) % n # double-% cancels the %
Thanks! I see that the parenthesis can be dropped, too:
>>> '%%.%ig' % 3 % 4.23456e-5
'4.23e-05'
/c
--
http://mail.python.org/mailman/listinfo/python-list
On 14/01/2021 15.25, boB Stepp wrote:
> On Wed, Jan 13, 2021 at 7:28 PM Chris Angelico wrote:
>
>> I love how "I think" is allowed to trump decades of usability research.
I'm just pleased that @Chris has found love!
(not detracting from the point though)
> Can you recommend a good reference fo
Officially April-Fools Day is over (here), but...
On 01/04/2021 19.25, Chris Angelico wrote:
> On Thu, Apr 1, 2021 at 3:36 PM dn via Python-list
> wrote:
>>
>> On 01/04/2021 13.54, Chris Angelico wrote:
>>> Real and imaginary are the same thing, just rotated a quarter turn
>>
>> In which dim
On 25/09/2021 11.00, Chris Angelico wrote:
> Invented because there weren't enough markup languages, so we needed another?
Anything You Can Do I Can Do Better
https://www.youtube.com/watch?v=_UB1YAsPD6U
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list
On 27/10/2021 12.29, Stefan Ram wrote:
> dn writes:
>> On 27/10/2021 11.16, Stefan Ram wrote:
>>> The Mental Game of Python - Raymond Hettinger (PyBay 2019)
>>> | "The computer gives us words that do ### things.
> ...
>> Alternately, if your question was to identify the mumbled word, it is
>> (se
On 13/11/2021 10.51, Abdur-Rahmaan Janhangeer wrote:
> Greetings list,
>
> Let's say i created a package named miaw
>
> miaw also has a cli command called miaw
>
> miaw prints files and folders in the directory it is called in
>
> except that when miaw is used, it prints the files and folders i
On 7/10/19 4:11 AM, Alexander Vergun wrote:
I am coding a voice assistant under Python 3.7, Windows 7. I am using
PYcharm and libraries such as PYSimpleGUI, mouse, keyboard etc.
Everything works except for the mouse control and probably keyboard, the
problem is following, when I run the script
On 7/10/19 4:11 AM, Alexander Vergun wrote:
Hello all,
I am coding a voice assistant under Python 3.7, Windows 7. I am using
PYcharm and libraries such as PYSimpleGUI, mouse, keyboard etc.
Everything works except for the mouse control and probably keyboard, the
problem is following, when I ru
On 23/10/19 8:51 PM, joseph pareti wrote:
I am experimnenting with this (reproducer) code:
pattern_eur= ['Total amount']
mylines = []# Declare an empty list.
with open ('tmp0.txt', 'rt') as myfile: # Open tmp.txt for reading text.
for myline in myfile:
On 6/04/20 10:35 AM, Malcolm Greene wrote:
Is there a difference between the following 2 ways to launch a console-less
script under Windows?
python
On 31/07/2020 16:48, R Pasco wrote:
Thanks for your extensive info. Its too bad this isn't published in the
python winreg/_winreg modules' info.
Ray Pasco
Welcome to the world of documentation!
Perhaps you have 'discovered' something, or maybe you're using the tool
in an unusual way, or mayb
On 07/01/2021 22.44, Dario Dario wrote:
> Sir, I am one of the user of your python program, that is after completion
> of installation I got some statement like "you got code execution problem
> ". I don't know how to rectify this problem.so please help me to rectify
> this problem .
> You send me
Your message dated Mon, 26 Dec 2005 10:15:57 +0545 with subject "Re: Mail
Authentification" has been submitted to the moderator of the
ASIABREAKINGNEWS list.
--
http://mail.python.org/mailman/listinfo/python-list
Suppose I have a batch file called mybatch.bat and I want to run it
from a python script. How can I call this batch file in python script?
Thanx/NSP
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 4, 5:01 pm, [EMAIL PROTECTED] wrote:
> On Sep 4, 8:42 am, n o s p a m p l e a s e <[EMAIL PROTECTED]>
> wrote:
>
> > Suppose I have a batch file called mybatch.bat and I want to run it
> > from a python script. How can I call this batch file in python scri
Suppose I have a matlab script mymatlab.m. How can I call this script
from a python script?
Thanx/NSP
--
http://mail.python.org/mailman/listinfo/python-list
601 - 618 of 618 matches
Mail list logo