On 01/03/2018 14:36, Julien Carlier wrote:
Hi Tim,
I didn't send this message to several groups. I sended this message to
20 people from the same group.
I will take care to choose relevant groups.
What is considered good form?
Regards,
Julien
Replied off-list
On 01/03/2018 13:36, Julien Carlier wrote:
Cisco & Dimension Data organize a Python Challenge on EDITx. It is a good
way to test your skills & have fun.
[... snip ...]
You've just cross-posted this to several Python mailing lists /
newsgroups, some of them certainly irrelevant. This is not co
er, so the basics of programming are known by me.
Thank you in advance,
Kind regards,
Tim
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
[boB Stepp , on %i/%d and %f/%F]
> Hmm. I'm surprised this slight distinction was worth keeping two
> format codes that otherwise do the same thing. Is there an actual
> need for these due to Python being implemented behind the scenes in C?
The implementation is irrelevant to this. What is rele
[boB Stepp ]
> My Google-fu must be weak tonight.
Look here:
https://en.wikipedia.org/wiki/Printf_format_string
> I cannot find any discernible
> difference between '%f' % and '%F' %
> . Is there any or do they duplicate
> functionality? If the latter, why are there two ways of doing the
On 19/02/2017 16:34, Marie Shaw via Tutor wrote:
I am a teacher of 16-18 year olds. Since September, my classes have
been learning to program in Python, using all of the basics in
console mode. I now need to teach them OOP using Python, and GUI
programming using Python. Please could someone one p
On 13/02/2017 16:06, Lisa Hasler Waters wrote:
Hello Python Tutor,
We are trying to use the random function in the Tkinter module in
PyCharmEDU 3.5. (on Macs running 10.11.6). However, we get a number of
error messages:
Here's the code:
from tkinter import *
import random
tk = Tk()
canvas = C
On 24/07/2016 16:38, Ken G. wrote:
While the following program prints out fine using
Python 2.7.6 in Ubuntu 14.04.4 as developed using
Geany 1.23.1, same program won't print out to printer
under Windows 10 Pro (64 bit). Geany uses there is
version 1.28 using Python 2.7.12. I can use CTRL-P
t
On 08/06/2016 14:54, Alex Hall wrote:
> All,
> I'm working on a project that writes CSV files, and I have to get it done
> very soon. I've done this before, but I'm suddenly hitting a problem with
> unicode conversions. I'm trying to write data, but getting the standard
> cannot encode character: o
On 15/05/2016 22:45, Rosen, Brian - 2016 wrote:
> To Whom it May Concern,
>
>
> I am a high school student currently enrolled in an Intro to Computer
> Programming Class. In my current assignment, I would like to import
> the curses module into either Python 2.7 or Python 3.4. However,
> whenever
On 22/04/2016 17:08, Rene.Castillo wrote:
Hi, this is my first post on this mailing list-
I wanted to ask about this type of execution in python,
expected output-
reverse_words("This is an example!") # returns "sihT si na !elpmaxe"
below is my execution, followed by another persons execution
On 19/04/2016 10:03, Alan Gauld wrote:
However, for now, you probably want to use IDLE which should
come with Python. (It is sometimes called Python GUI on
Windows too.)
You should find it under Python in your All Programs view.
In any recent version of Windows (ie Vista & later) the most comm
On 13/01/2016 20:51, Tim Golden wrote:
Speaking as the list moderator in question over there: if I might
moderate Mark's well-known zeal...
(Absolutely no pun intended!)
TJG
___
Tutor maillist - Tutor@python.org
To unsubscribe or c
On 13/01/2016 20:44, Mark Lawrence wrote:
On 13/01/2016 18:13, Alan Gauld wrote:
On 13/01/16 17:53, Mark Lawrence wrote:
This is beyond a joke. The main mailing list is all ready being
moderated because of the constant messages asking for help on this
presumably homework question. Can these b
[Albert-Jan Roskam ]
> I just found a neat trick to free up an emergency stash of memory in
> a funtion that overrides sys.excepthook. The rationale is that all
> exceptions, including MemoryErrors will be logged.
> The code is below. My question: is that memory *guaranteed* to be
> freed right aft
On 10/09/2015 16:38, richard kappler wrote:
> Here's my code, no tabs were used, all whitespace verified made with
> spacebar:
>
> print("Please enter a number for feed speed...")
> print("1 - Batch")
> print("2 - 2 per second")
> print("3 - Real Time")
> print("4 - Exit")
>
> if x == ord('1'):
>
I have had some problems with another python.org ML.
I am sending this to see if it is received.
Please disregard.
thanks
--
Tim
http://www.akwebsoft.com, http://www.tj49.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription
* WolfRage [150402 11:45]:
> On 04/02/2015 03:08 PM, Tim Johnson wrote:
>
> > You have already received valuable replies from two advanced
> > python experts.
> > If you are looking for a book (available digitally for kindle)
> > I would recommend
>
ced
python experts.
If you are looking for a book (available digitally for kindle)
I would recommend
Guide To: Functional Python & Comprehension Constructs
by Matt Harrison
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49
Hi Guys,
Very simple question, I imagine.
this code throws of off a "counter not defined error".
Can you help?
*def word_counter(word, string):*
*counter = 0*
*for item in string:*
*if item == word:*
*counter = counter + 1*
*print counter*
Thanks,
Ti
you want to pursue a career in IT, you need to finish high school. You
would be wise to get a degree.
My $0.02.
Tim
On Sun, May 11, 2014 at 7:12 PM, C Smith wrote:
> I have never known anyone that works in this industry. I got one job
> transforming xml (should have used xslt, ended up us
No.
On Wed, Mar 12, 2014 at 1:33 PM, S Tareq wrote:
> so you can't delete the question that i have asked long time ago
>
>
> On Wednesday, 12 March 2014, 18:03, Zachary Ware
> wrote:
> On Wed, Mar 12, 2014 at 12:46 PM, S Tareq wrote:
>
>> this one http://code.activestate.com/lists/python-tutor
On 09/03/2014 17:06, Alan Gauld wrote:
On 09/03/14 10:37, Peter Otten wrote:
In this case, I'm fairly sure the line producing this error is::
image = Image.open("logo.jpg")
And Python is correct, the ‘Image’ type has no ‘open’ attribute. What
There are a few things around called `Image
I would agree with David and others. For programming, a chromebook would
not be a good choice because you can't install any type of development
environment onto the machine itself. Get something with a big screen and,
preferably a full keyboard - I'm talking full size in the sense that you
have t
On 05/02/2014 15:30, Alan Ho wrote:
Hi,
I am a novice in Python, having attended a course few weeks ago and I'm
working on my assignment now, and I encounter this issue when I was
trying to print the entire Windows Registry (WR) sub-keys directories
(trying that first with the below codes with a
On 05/02/2014 11:53, Ian D wrote:
> Hi
>
> In Python 2.7
>
> If I create my own modules and call them with
>
> import sys
> sys.path.append("d:\modules")
>
> import myMod
>
> and use tab to autocomplete I get a list functions.
> myMod.< if I tab this I get a list of my functions
>
On 05/02/2014 11:55, Ian D wrote:
> The network dictates that it is the only way I can really do it as I
> cannot edit any files directly. I have to append the path on the fly
Ok; just wanted to make sure you weren't making life more difficult for
yourself than needs be.
TJG
On 05/02/2014 11:58, Oscar Benjamin wrote:
> Another option is to place it in site-packages. If you don't want to
> use the system site packages you can always use the one in your user
> directory. In my case on Ubuntu that's in
> ~/.local/lib/pythonX.Y/site-packages/
Good point: I always forget t
On 05/02/2014 11:46, Ian D wrote:
> Ok even more strangely it is working in the original location.
>
> Am now not 100% sure that I have the folder structure correct.
>
> I will keep a eye on it.
You might want to consider whether your approach is the best. One
usually appends to sys.path when
On 30/01/2014 11:39, Tim Golden wrote:
> On 29/01/2014 21:58, danz wrote:
>> Tim.
>>
>> I came across your code while searching for a similar need. Your post was
>> the best I could find on the subject. Perhaps more importantly, you showed
>> me that going down t
On 29/01/2014 21:58, danz wrote:
> Tim.
>
> I came across your code while searching for a similar need. Your post was
> the best I could find on the subject. Perhaps more importantly, you showed
> me that going down the ctypes rabbit hole can be less intimidating than I
>
uld go
far to repesent what the poster might be as a prospective employee,
mate, president, chairman of the Fed or whatever :)
I hope that you all have the best holiday season possible and that
you have a great New Year.
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
h
On 02/12/2013 14:49, Alan Gauld wrote:
> Is there any point to this random set of data?
> Do you have a question for us?
I assumed it was a mis-posted email that should have gone to some
house-share group email but instead went to python-tutor. The OP's
probably lying low out of embarrassment :)
On 17/10/2013 16:36, Bill wrote:
>
> I know, way late to the party...
>
> Did you try Ctrl-Break? In Windows that is usually how you interrupt a
> program...
Take consolation from the fact that your five-month delay in replying
isn't even close to the longest delay I've seen on a Python list.
S
I think it really depends on why you are learning python. For me, I'm
using it primarily to supplement my tools as a system engineer. The
standard version of Python that installs with nearly every server I manage
is 2.7, so I decided to focus on learning 2.7 because I didn't want to be
in a posit
On 01/10/2013 11:41, Tim Golden wrote:
> You're sort-of correct. What happens is that the database doesn't enter
> autocommit mode (you'll still need to specify the right isolation level
> on the .connect for that). Rather, the __exit__ method of the
> connection-as
On 01/10/2013 11:28, Alan Gauld wrote:
> On 01/10/13 09:25, Tim Golden wrote:
>> On 01/10/2013 09:03, Alan Gauld wrote:
>>> You don't normally need to use COMMIT when programming SQLite from
>>> Python, the database starts and ends transactions automatically from
&
On 01/10/2013 09:03, Alan Gauld wrote:
> You don't normally need to use COMMIT when programming SQLite from
> Python, the database starts and ends transactions automatically from
> within the execute() function. You only need to manually commit if you
> manually create the transaction using BEGIN..
Okay, so I made it to FOR loops in the Lutz book. A couple of days ago I was
helped here with the .join method for creating strings from lists or tuples of
strings. I got to wondering if I could just, for the sake of learning, do the
same thing in a FOR loop, since that's today's chapter:
x=0
On Saturday, May 25, 2013 09:10:00 pm Jim Mooney wrote:
> On 25 May 2013 20:49, Tim Hanson wrote:
> > A lot of people tend to be intimidated by Mark Lutz, and so am I, I
> > guess.
>
> Interesting coincidence. This is a retirement project and I just
> decided on the
On Saturday, May 25, 2013 08:31:49 pm Martin A. Brown wrote:
> Greetings Tim,
>
> : I'm new to this, just getting through the first Mark Lutz book.
>
> Python objects, either variables your ham below or the string 'spam'
> you entered manually have a specific ty
I'm new to this, just getting through the first Mark Lutz book.
If I start out with :
ham=list('spam');ham
['s','p','a','m']
How do I get a string back?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mai
On 19/04/2013 17:12, eryksun wrote:
> On Fri, Apr 19, 2013 at 11:52 AM, Tim Golden wrote:
>> As usual, the excellent Christoph Gohlke has provided binaries for a
>> range of targets:
>>
>> http://www.lfd.uci.edu/~gohlke/pythonlibs/
>
> Maybe you missed th
On 19/04/2013 16:39, eryksun wrote:
> On Fri, Apr 19, 2013 at 11:12 AM, Oscar Benjamin
> wrote:
>> Did these files also come with a file called setup.py?
>>
>> Normally, a Python module is not installed by manually copying the
>> files to the appropriate places but by running 'python setup.py
>> i
On 02/04/2013 19:19, ankesh.pra...@cognizant.com wrote:
I am facing folowing erro while executing python code:
Win32 exception occurred releasing IUnknown at 0x03210eb8
You need to give us a bit more of a clue as to what your code does. My
guess is that you're using the p
On 26/02/2013 13:54, Mark Lawrence wrote:
> On 26/02/2013 13:02, Khalid Al-Ghamdi wrote:
>> Hi All,
>>
>> I'm not a programmer by profession, but I want to learn python. I've got
>> lots of Ideas that want to realize, but I always run into these
>> stupid hiccups where I follow the tutorials and so
On 31/07/2012 15:32, Tino Dai wrote:
> Hi All,
>
>I have been banging my head against a wall trying to figure it
> out. I'm getting a ImportError on a
> class that I know exists. I'm wondering if there is some dark corner of
> the import mechanism that
Try running python with the -v para
On 28/06/2012 20:48, James Chapman wrote:
The name of the file I'm trying to open comes from a UTF-16 encoded
text file, I'm then using regex to extract the string (filename) I
need to open.
OK. Let's focus on that. For the moment -- although it might
well be very relevant -- I'm going to igno
On 28/06/2012 18:19, James Chapman wrote:
Hi there python list.
I'm trying to open a text file named "This is_a-test'FILE to Ensure$
that£ stuff^ works.txt" (without the quotes) but I'm struggling to
find a way to open it.
Happily, you're using Windows, which makes this very much easier.
Shor
On 19/06/2012 06:37, Johan Geldenhuys wrote:
> I've looked all over, but couldn't find any help as far as an API goes
> to log to a 64-bit Windows7 machine event log.
There are functions available in the pywin32 package under
the win32evtlog module. I have wrapped some of them in my
winsys packag
On 08/04/2012 16:07, Steven D'Aprano wrote:
mjole...@gmail.com wrote:
Hey everyone,
I finally made my way into working on Opensource projects. I installed
tortoisesvn. I included command line tools when running the installer.
However when I invoke svn at command line, I get the following error:
;> "me".__class__.__name__
'str'
I note that the reference to '__class__.__name__' for string and
float literals is executed, but that there is a SyntaxError for that
same reference of a 'int' literal.
I'd welcome comments, explanations
ack in the day when I worked in C and did a bit of reconstructing
proprietory database schemes in legacy systems, it was common for
a binary file to start with a "map" which defined how to search
the subsequent content. I never did know if there was a formal
terminology for such a
which can be decomposed into a
nested list of integers which can then be used to parse the
'rightmost' string into a dictionary.
What would be a generic term or a pythonist term for such a string?
Thanks
--
Tim
tim at tee jay forty nine dot com or ak
On 27/03/2012 05:00, Michael Lewis wrote:
Traceback (most recent call last):
File "C:\Python27\Utilities\copyfiles.py", line 47, in
copyfiles(srcdir, dstdir)
File "C:\Python27\Utilities\copyfiles.py", line 42, in copyfiles
shutil.copy(srcfile, dstfile)
File "C:\Python27\lib\sh
On 25/03/2012 09:12, Albert-Jan Roskam wrote:
Thank you so much for this! I think this would also be a valuable
addition to os.path (where I'd expect it to be).
You call WNetGetConnection twice: one time with a 'dummy' string
buffer, and one time with a buffer of the exact require
On 24/03/2012 21:29, Albert-Jan Roskam wrote:
Thanks! This seems a feasible approach. I have found this Python
project that exposes some of the functions of mpr.dll:
http://sourceforge.net/projects/wnetconnect/ WNetGetConnection is
not among the functions, but the code will help.
On 24/03/2012 20:13, Albert-Jan Roskam wrote:
Hi,
Is there a function that takes a file path with a mapped drive
(z:\blah) and returns the associated UNC path
(\\server\share\ding\dang\dong\blah)? I looked in os.path, but it
doesn't seem to have this. The link below seems to be a solution
(code
On 23/02/2012 09:00, Alan Gauld wrote:
By no means, one of Pythons strengths is that the same code can run on
many OS. But as Steven has mentioned many developers use Linux because
GNU/Linux is designed as a developer's OS and comes with oodles of
tools. Most of those are available for Windows to
On 08/12/2011 15:28, surya k wrote:
Well, we all know to know the value when we have the index of a list.
But how can we find it in the reverse way... say a listl=[1,2,3,4]
l[0]=1.but how can I find its address with its value 1 ??
help ([])
...
index(...)
L.index(value, [start, [stop]])
[cc-ing back to the *correct* list in case other readers find it
helpful...]
On 15/11/2011 15:16, Tony Pelletier wrote:
Thanks, Tim!
This is working brilliantly Slow, but working..:) I can go from
here and see if there's a way to speed it up.
Well you've got a few options, a
On 14/11/2011 21:43, Tony Pelletier wrote:
Good Afternoon,
I'm writing a program that is essentially connecting to MS SQL Server
and dumping all the contents of the tables to separate csv's. I'm
almost complete, but now I'm running into a Unicode issue and I'm not
sure how to resolve it.
I hav
is a learning curve. One may find a learning curve with
> everything in existence, whereas I repudiate one discouraging
> another for the aforementioned.
Yup. Bigtime.
> Those who desire the power of emacs seek it.
> Tim, do you use GNU Emacs?
I did use GNU emacs. I also used Xema
o longer use emacs, but
have great respect for it. I use vim linked against the python
binary so that I can use python code to enhance my (hand-rolled)
"IDE". I much prefer python code to elisp code.
I hope my comments are of some help. I'm sure that you have been
well inf
you are not using Windows)
IDLE came pre-installed on my mac. I believe that I had to add it
on my ubuntu PC.
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com
___
Tutor maillist - Tutor@python.org
To unsubsc
any people
> struggling because their IDE changes the way their code works. I
> recommend you keep your code open in an editor, an interactive session
> open in a good xterm, and a second xterm tab open for running your
> script. That's my preferen
up until tomorrow at the soonest, but I will report
back on emacs and vim as defaults. A distribution call macvim is
available and vim can also be custom built.
cheers
--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com
style of editing. Neither are arcane, they are very up to date
and are a parallel way of doing things.
vim modal editing is a thing of beauty. Watching a adept
vim user work can be breathtaking to observe. The corollary
would be that s
On 29/09/2011 15:22, lina wrote:
I want to read a bunch of *.doc file in present working directory,
how can I use for to read one by one and do further work,
sorry,
what's the best reference webpage I can use?
I googled, lots of distracting info, and I barely can understand how
they think.
On 19/09/2011 11:01, Tim Golden wrote:
you're more likely to find people familiar with the package (including
its maintainer in fact...)
Sorry, I misread your post and thought you were referring lxml.etree
(which is a 3rd-party lib). My basic point still stands, though:
you'll get mo
On 19/09/2011 10:46, lists wrote:
Hello again.
So, any xml.etree experts out there who might have missed this over the weekend?
Not me, I'm afraid, but might I suggest that you ask on the mail
Python list:
http://mail.python.org/mailman/listinfo/python-list
There's nothing wrong with askin
* Emile van Sebille [110805 15:51]:
> On 8/5/2011 4:22 PM Tim Johnson said...
> >* Christopher King [110805 12:03]:
> >>To make a package, you make a folder named what you want to name the
> >>package, for example: virus_toolkit. Then you make a file in it called
&g
to leave the original as is, for backwards
compatibility.
cheers
--
Tim
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
I would like to do this
without a lot of code revisions.
I would welcome references to URLs on this topic.
thanks
--
Tim
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com
___
Tutor maillist - Tutor@python.org
To unsubs
On 28/07/2011 07:28, qbits...@gmail.com wrote:
Hi,
Which is the best package/module in Python to work with Windows Active
Directory?
I may need to create multiple OUs, set different users and computers and
fill their individual attributes. Later i may need to modify/delete and
then may need to
object:
class bool(int)
| bool(x) -> bool
..
I'd welcome comments on this as well.
:) I expect to be edified is so many ways, some
of them unexpected.
thanks
--
Tim
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com
__
On 12/05/2011 14:10, tee chwee liong wrote:
hi all,
i just started python but i'm hearing there is cpython. what is it
different from python? is there any tutorials i can refer.
CPython is just the most common version of Python, so-called because
it's written in C: the one you download from py
To confirm: Python does *nothing* to convert automatically
from one form of path separator to another. Windows from
very early on, has accepted /-slashes as path separators
to API calls. Where they don't work is: at the command shell
itself presumably since slashes are commonly used to introduce
o
On 04/05/2011 00:18, Alan Gauld wrote:
Since its more a Windows question than a Python one I suggest you try a
Windows forum. comp.python.windows might be worth a try? Or even the
ctypes group?
While we do have some Windows users here its not really a python nwewbie
type question.
True enough.
On 03/05/2011 5:35 PM, Bill Allen wrote:
I am needing to run a Python networked application with a specific
set of credentials, Windows AD, rather than the user's own so that
the app can access the needed CIFS shares. Where should I start?
By saying what operating system you're running on, whi
On 19/04/2011 15:53, Pierre Barthelemy wrote:
The problem i have is that, often, while the script is running, the
powerpoint file would already be open. In this case, my script would
open it anew, and make the modifications in the newly opened file.
To prevent that problem, i need to be able to l
On 29/03/2011 09:41, Peter Otten wrote:
Ben Hunter wrote:
Hi,
I'm completing the Python lessons on YouTube that Google posted. At the
end of section 2 of day 2, there is a task to identify files then put them
in a zip file in any directory. The code is from the 'solution' folder, so
it's not s
On 28/03/2011 23:17, Steven D'Aprano wrote:
Corey Richardson wrote:
Thunderbird has a "reply list" button that I use.
It does? What version are you using?
Also, if you're a keyboard person, Ctrl-Shift-L
(Win7, TB 3.1.9)
TJG
___
Tutor maillist -
On 17/03/2011 11:56, Dipo Elegbede wrote:
i wrote a code for extracting information from a csv file into another
csv file.
it worked well but i have an immediate challenge i can't seem to fix.
the new file that is created has an row and then an empty row and then a
row all through the file. how c
On 16/03/2011 17:12, Susana Iraiis Delgado Rodriguez wrote:
Thank you for your help!
Once I read your comments I tried both corrections in my code, but none
of them we're sucessful.
Ok, Susana, your problem (here) is the use of the csv module
so can I suggest we back away from your wider progr
* Steven D'Aprano [110316 05:26]:
> Tim Johnson wrote:
> > What is the difference between using
> > hasattr(object, name)
> > and
> > name in dir(object)
> > ?
>
> Did you read the Fine Manual?
No but I will :)
> http://docs.python.org/l
This following post was originally posted to the wrong thread.
I am reposting (hopefully correctly) with the first and very
succint response. I thing the answer is a revealation to
be noted:
##
On Tue, Mar 15, 2011 at 8:00 PM, Tim Johnson
* Wayne Werner [110315 17:29]:
> On Tue, Mar 15, 2011 at 8:00 PM, Tim Johnson wrote:
>
> > What is the difference between using
> > hasattr(object, name)
> > and
> > name in dir(object)
> >
>
> hasattr is basically
>
> try:
> ob
What is the difference between using
hasattr(object, name)
and
name in dir(object)
?
TIA
--
Tim
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change
On 11/03/2011 8:59 PM, Susana Iraiis Delgado Rodriguez wrote:
Hello list!!
I'm trying to write a CSV file to work it with Excel. My python script is
working, the issue is: when I import the file from excel the data comes with
quotes at the beginnig and ending of the row. I don't want to have the
On 11/03/2011 08:12, DistortGiygas wrote:
Python users, what's the best option for someone trying to emulate or
use the curses module on the Windows platform?
I've been fooling around with the console module:
effbot.org/zone/console-handbook.htm
But for the life of me, I can't figure out how to
On 02/03/2011 09:22, Emmanuel Ruellan wrote:
I installed Python 2.6 and pymssql on a machine, but as soon as I import
pymssql, it crashes.
It looks like this is a known problem:
http://code.google.com/p/pymssql/issues/detail?id=2
What alternatives to pymssql do you recommend? I just want to be
* Tim Johnson [110203 10:34]:
> # OR (project config file)
> kws = load.config("myconfig","tmpl_kws")
> kws.update({"prj":"myproject","templatepath":"views"})
#Grr! The following line is wrong ..
> kws = {"prj":&quo
odule containing the `LoadView' class
import tmpl
## set the module namespace variables.
tmpl.projectname = MyProject
tmpl.templatepath = TemplatePath
## Calling module settings follow.
I've received some very helpful comments in the past by senior
members of this ML and perhaps
On 30/01/2011 6:42 AM, walter weston wrote:
hello I am running python 2.7 , I am trying to install pywin32 version 2.7
when I run the setup.py file a black console windows pops up displays some
text and dissappears before I can read any of the text . I dont know what
says so I cant give details
* Emile van Sebille [110126 12:30]:
> On 1/26/2011 11:03 AM Tim Johnson said...
>>
>> I've developed a module which necessitates a very large amount of
>> documentation. At this point all of the documentation is in the
>> class docstring. I'm thinkin
On 26/01/2011 6:10 PM, Scott Nelson wrote:
Curses is one way to go. Another is to use the PyWin32 module discussed in
this thread:
http://thread.gmane.org/gmane.comp.python.tutor/58450/focus=58454
Basically, here's a snippet of code that can get you started. This requires
that you have the Py
this and a link to such a PEP would
suffice.
thanks
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 17/01/2011 18:35, Bill Allen wrote:
Tim,
Thanks for posting this. I have several uses for this WMI module at
my work.
Glad it's useful...
TJG
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
On 17/01/2011 03:01, FT wrote:
Is there a way to read the battery level using Python?
I am totally blind and want to write a script to capture the battery
level and send it through the voice activeX so I can speak it...
WMI should be able to query the battery information:
import wmi
c = wmi
1 - 100 of 598 matches
Mail list logo