In the same folder as the ogg file was an html file with the transcript.
So I guess the python command works some times. I'm still not sure if it
just doesn't work on large files.
--
https://mail.python.org/mailman/listinfo/python-list
Hello there,
I have developed free learning materials for young kids (targeting 8+ kids) to
learn Python from scratch on https://kidspython.com lately. I put lots of
efforts on simplifying the course materials, providing plenty of good examples
and sufficient exercises for kids to practice
Hey,
Look what I've just found on the web, that really cool, yeah, more info here
<http://tycraxyphe.wisewomanseries.com/aegbd>
My Best, Python-list
--
https://mail.python.org/mailman/listinfo/python-list
Hello All.
Using a network camera with built-in webserver, I'd like to have a python
program download .jpg files on a local lan. the location is
http:///jpg/image.jpg.
Currently, I'm importing urllib and using urlopen to the address, then
read()-ing it, saving it to a binary file.
Anyone know if there's a module which will allow me to 'create' windows
printer definitions? Not from a Windows domain network, but just to add a
printer that sends to a jet-direct-attached printer.
Thanks!
Dave
--
http://mail.python.org/mailman/listinfo/python-list
fName: Dave
Then save the bitmap with filename:
0001_13:00:00_06-21-2005.bmp
To make things faster, I also have a table of filenames saved, so I can know
exactly which files I want to read in.
-Dave
--
http://mail.python.org/mailman/listinfo/python-list
Hello All.
First, I'd like to thank you all for the tremendous help I've received in
the past while posting here. I'd like to ask another question.
I'd like to use Python to invoke ffmpeg to encode some still-frames into
an animation. I'd like to use MySQL to s
Hi, first I wanted to say that:
I have finally been able to ftp a file in my python app - however, it
works like this:
When you use storbinary and hand it a full path
"c:\myfiles\morefiles\picture.gif"..
it will find the file on your hard drive, and
then upload the file, but
a temp file until later in the
day when I open it to begin the encoding process.)
Can someone please help me with some direction?
Thank you!
Dave
--
http://mail.python.org/mailman/listinfo/python-list
Hello all. Looking, I have not found a version of Python which runs on
Netware by Novell. I wonder, since Java there is a Java for Netware, is
this where Jython would come in as useful, to be able to use a Python script
where Java is installed?
I'm interested in the threaded heartbeat pr
A example in learning Python by Mark Lutz and David Ascher
about function scope
example like this:
>>def outer(x):
def inner(i):
print i,
if i: inner(i-1)
inner(x)
>>outer(3)
Here supposely, it should report error, because the function inner
cannot see
Thanks all for replying.
I finally know what's going on.
--
http://mail.python.org/mailman/listinfo/python-list
s (3 given)
How to pass arguments to a functions that use dictionary collection?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
thanks, got it.
I want to test the **name option for argument matching.
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to drive mailx using popen.
Here is what I am trying to do:
a=popen('mailx -s "test" [EMAIL PROTECTED]','w')
print a>>, "This is a test"
print a>>, "."
a.flush()
The email never sends, and I have to kill the
processes
An example in the book I didn't understood well
two modules files recursively import/from each other
in recur1.py,we have:
x=1
import recur2
y=1
in recur2.py, we have
from recur1 import x
from recur1 import y
If we run interactively at python command line,
>>> import recur1
hi to all,
im moving from the windows world to the linux world and i need to make a python script to see if a service is instaled (ex: apache), if it is running or stoped and to start/stop a service like apache or mysql. Theres an API on windows to manage services and i need to know how to do
Hello,
being an almost complete Python AND programming neophyte I would like to ask
the following - very elementary, as I might suspect - question:
How do I do the following flawed things right:
a1=a2=0
def f(x):
if x == a1:
a1 = a1 + 1
elif x == a2:
a2 = a2 + 1
Now
ut
I'd obviously rather do it the _right_ way and have it work properly in
*nix too.
--
http://mail.python.org/mailman/listinfo/python-list
rocessing 'foo [bar].par2'
glob.glob(filename[:-5]+'.*par2')
doesn't return anything. Using win32api.FindFiles(filename[:-5]+'.*par2')
works perfectly, but I don't want to rely on win32api functions. I hope
that made more sense :).
--
http://mail.python.org/mailman/listinfo/python-list
Michael Hoffman <[EMAIL PROTECTED]> wrote in comp.lang.python:
> Python Dunce wrote:
>
>> So if I happen
>> to be processing 'foo [bar].par2'
>>
>> glob.glob(filename[:-5]+'.*par2')
>>
>> doesn't return anything. U
r_str = win32api.GetVersionEx()
>>>> print major, minor, spack, platform, ver_str
> 5 0 2195 2 Service Pack 4
>
> =Tony.Meyer
>
--
http://mail.python.org/mailman/listinfo/python-list
difference in time of startup
and now.
Thanks!
Dave
--
http://mail.python.org/mailman/listinfo/python-list
Hello Everyone.
Whil e reading the Python Cookbook as a means of learning Python, I
came across the script by Nicola Larosa. Not knowing anything about PERL, I
was wondering if there were a translation in PERL so I could have my Netware
servers send heartbeats to the heartbeat
Anyone know where the python sane imaging module is? Searching google, I
can't find it to download. I have a win32 & linux system -- hope to find
it for both OSes.
Dave
--
http://mail.python.org/mailman/listinfo/python-list
y --help-commands
or: install.py cmd --help
error: option --force-imports not recognized
Press any key to continue . . .
--
Any suggestions?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
ove
> that option. It should work.
>
> -Anand
>
--
http://mail.python.org/mailman/listinfo/python-list
o remove
> that option. It should work.
>
> -Anand
>
--
http://mail.python.org/mailman/listinfo/python-list
file to remove
> that option. It should work.
>
> -Anand
>
--
http://mail.python.org/mailman/listinfo/python-list
o remove
> that option. It should work.
>
> -Anand
>
--
http://mail.python.org/mailman/listinfo/python-list
again.
"Anand" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
>Latest version of py2exe does not support the option
> --force-imports anymore I think. You can edit the .bat file to remove
> that option. It should work.
>
> -Anand
>
--
h
L or any others? I
have a Canoscan Lide-50 & Lide 30.
Thanks!
Dave
--
http://mail.python.org/mailman/listinfo/python-list
mages.
Thanks!
Dave
--
http://mail.python.org/mailman/listinfo/python-list
)
User.DeleteItem(sku=22)
User.CheckOut(State='CT', CredCard='Visa', CredNum='1234-5678-8765-4321')
So, there's the why. This just barely scratches the surface. hope I didn't
confuse you.
-Dave
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PRO
Hi,
I am new to python, am trying to use embedding python API's in
C,as below
I have my python file test.py in "/var/tmp" path and trying to fetch
objects and functions from python script as below, but
PyImport_ImportModule("test") returning NULL always(instea
On 12-08-15 08:04, Montana Burr wrote:
Hi,
I'm interested in using Python to create a server for streaming my
state's traffic cameras - which are only available as Windows Media
streams - to devices that do not natively support streaming Windows
Media content (think Linux
On 09-10-14 14:20, vijna...@gmail.com wrote:
Hi,
I need to develop a python CLI framework.
For example if i need to set an ip address in linux:
ifconfig eth0 172.16.25.125
I should be able to use python to do the above.
1. The user will execute a python script to which i will pass the
On Tue, 5 Feb 2013 15:32:32 +0100 (CET), Jean-Michel Pichavant wrote:
> By the way, did someone ever notice that r'\' fails ? I'm sure
> there's a reason for that... (python 2.5) Anyone knows ?
>
> r'\'
> SyntaxError: EOL while scanning single-quot
What is the idiomatically appropriate Python way to pass, as a "function-type
parameter", code that is most clearly written with a local variable?
For example, map takes a function-type parameter:
map(lambda x: x+1, [5, 17, 49.5])
What if, instead of just having x+1, I want an
write the
lines directly into Python, like maybe at the IDLE interpreter. Like maybe
you're testing the functionality of the routine for correctness, not actual
implementation.
You have a ShoppingCartClass(), and three users-> Dave, Tommy, Bryan.
ShoppngCartClass() has 3 methods:
.AddI
'15','16','17
','18','19','20']
>>> print a[3:4]
['4']
>>> print a[0xa:0xc]
['11', '12']
>>> print a[0xa:0xa+5]
['11', '12', '13', '14', '15
Hello All.
I'm trying to 'compile-to-EXE' a python program which uses Win32 & WMI to
pull system info. from the PC such as serial number, CPU speed, etc. I'm
having problems with py2exe -- with regard to Win2000 & WinXP platforms. It
seems that the program only wor
;hello'.
'hello' - 'lo' is invalid.
string repetition can not repeat a value negative times:
'hello' * -3 is invalid.
'hello' * 2.75 is also invalid, in that you can not repeat a fractional
amount.
-Dave
(Python Newbie)
<[EMAIL PROTECTED]> wrote in m
Hello
I'd like to consider making a program which is 'seti-like' where I could run
a command-line Python script to just 'do something', and then be able to
launch a viewer program (maybe linux x11 or Windows, possibly over a network
socket) using wxPython to be able to
see the result? or do you want to recieve
> screenshots, or even "live" view of the client?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list
Sounds like you want to use the ConfigObject module.
http://www.voidspace.org.uk/python/modules.shtml#configobj
-dave
"RFQ" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi, I'm struggling here to do the following with any success:
>
> I have a c
x,pressing the "left" key
will just print "^[[D" in the screen ,but not what i want.
so , how can i move the cursor Interactive Interpreter in linux?
i've googled and find nothing useful.who i tell me what to do?
--
http://mail.python.org/mailman/listinfo/python-list
i move the cursor Interactive Interpreter in linux?
> > i've googled and find nothing useful.who i tell me what to do?
>
> Python uses GNU readline for cursor movements. The Python version that ships
> with your distribution should work out of the box. If you compile Python
> yoursel
nstall the readline
> development package -- after some struggle with Mandriva's website I came
> to suppose that it's libreadline5-devel for you:
>
> urpmi libreadline5-devel.rpm
>
> After you have successfully installed that package unpack the python archive
> into a fr
Thread(target=SlpFcn)
trd.start()
#
MATLAB is started as it should, but the python interpreter does not answer
and has to be shut
down using CTRL+ALT+DEL. After restarting the interpreter it is possible to
use pymat again
without problems (seems to be some kind of memory issue).
What differences betw
Hi,
Do you mean something like py2exe?
http://www.py2exe.org/
--
http://mail.python.org/mailman/listinfo/python-list
I am new to Python however I would like some feedback from those who
know more about Python than I do at this time.
def scrambleLine(line):
s = ''
for c in line:
s += chr(ord(c) | 0x80)
return s
def descrambleLine(line):
s = ''
for c in line:
On Sep 20, 3:57 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote:
> On 9/20/07, Python Maniac <[EMAIL PROTECTED]> wrote:
>
> > I am new to Python however I would like some feedback from those who
> > know more about Python than I do at this time.
>
> Well
is the fastest among those using the original algorithm. Of
> > course using a lookup table as Diez showed is even faster. FWIW, here
> > are some timings (Python 2.5, WinXP):
>
> > scramble: 1.818
> > scramble_listcomp: 1.492
> > scramble_gencom
On Sep 21, 3:02 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote:
> > Now I think I will code this little scrambler using nothing but the D
> > Language just to see whether there is any benefit in using D over
> > Python for this sort of problem.
>
> Isn'
On Sep 21, 4:48 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote:
> > It would be nice if Python could be made to automatically detect the
> > LC and string translation patterns used by the unoptimized Python code
> > and make them into optimized Python code on the f
On Sep 21, 11:39 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Fri, 21 Sep 2007 16:25:20 -0700, Python Maniac wrote:
> > On Sep 21, 3:02 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote:
>
> >> Isn't D compiled to machine code?
is the fastest among those using the original algorithm. Of
> > course using a lookup table as Diez showed is even faster. FWIW, here
> > are some timings (Python 2.5, WinXP):
>
> > scramble: 1.818
> > scramble_listcomp: 1.492
> > scramble_gencom
If you or anyone who reads the thread is interested in using Python in
an advanced way you use generators and build processing chains that
will take the performance of Python to the edge and even give old AWK
a run for its money for certain types of processing.
Python:
wwwlog = open("a
needs to be brought down/up to bring in those changes to the
config file.
8. Script in what you learned in 7.
9. Finished.
2009/2/11 :
> Hi,
>
> Anybody have suggestions of how network proxy settings can be changed
> programmatically on the Mac, Tiger and Leopard. Are there any help
If your use is to Generically "want to use python on Windows XP" you
install the standard/generic Python that you download from python.org
Without any details to decide with, I would also say download version
2.5.4 of Python from python.org
2009/2/12 Saeed Iravani :
> Hello, I want
3
>1 . 2
>just text
>"""
>
>for test in tests.split( '\n' ):
>print 'test (%0s), isnumber: %1s' % \
> ( test.strip(), isnumber( test ) )
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list
silly me, forgot to mention
build a set from digits + '.' and use that for testing.
Cheers,
PN
2009/2/16 Python Nutter :
> Type casting seems to be the wrong way to go about this.
>
> teststring = '15719'
> teststring.isdigit()
> returns True
>
> Tha
st found the GUI toolkit for Python I've been searching
> for. It seems to meet all of the following requirements:
>
> * free software
> * small (I don't need batteries -- Python already comes with those.)
> * easy to use
> * actively maintained
> * cross-platfo
nstalled (0 dependencies) and on every Mac out
there so when I said 87Kbytes for a widget set that looks rather Mac
like I was saying compare 87Kbytes to 50+Megabytes to get a GUI for my
python application.
Along the same lines on my Linux boxes, GDK+/KDE are normally already
installed, nothi
Perl Cookbook for Python Programmers:
http://pleac.sourceforge.net/pleac_python/index.html
P3K as starting point (slight cringe) as long as you know the caveats.
I'm of the mind as Christopher with regard to how Python 3.0 has been
released on Python.org:
"""I don't t
RE?" :-)
>
> One of the reasons REs don't get used in Python as much as in Perl is
> because strings have useful methods like startswith(), endswith(), and
> split(), and also the "in" operator. These combine to give you easy ways
> to do many things you might othe
using standard Python string searching.
You could go to regex's but its overkill in my opinion if you can
simply do standard string searches. The buffer always follows a set
pattern so you are not going to have to search wildly varying output
from OpenSSL call to OpenSSL call.
I look
83
and so on.
Is there a fast way to this without scanning the log file many times?
Thanks in advance.
- Jo
--
http://mail.python.org/mailman/listinfo/python-list
ECTED]> wrote:
> On Wed, Oct 8, 2008 at 1:55 PM, Joe Python <[EMAIL PROTECTED]> wrote:
> > I want to find the top '100' hosts (sorted in descending order of total
> > requests) like follows:
> > Is there a fast way to this without scanning the log file many tim
008 4:39:55 PM Maecenas lectus libero, tincidunt sed ]
Note: there is an element corresponding to each time entry in the array
I tried to use the pattern but its not working:
pattern = r'(\d+/\d+/\d+ \d+:\d+:\d+ .+)'
pat = re.compile(pattern)
result = re.split(pat,s)
Yeah. The day Python goes Certification required to get a job is the day I
quit Python forever and move on to another language.
Certification prooves you're an idiot who needs to spend money to work
for another idiot who doesn't know enough about programming to know if
they hire
Mini install guide for python on the iPhone:
Cydia => Install SSH helps make initial configuration easier until you
get used to MobileTerminal
Cydia => Install MobileTerminal (closest to a bash shell you get on
your iPhone currently)
Cydia => Install Finder (graphical alternative to
For simple hashing algorithms, then use the aformentioned built in
hashlib in Python.
However for the rest you need M2Crypto to get a wrapper around OpenSSL:
M2Crypto is the most complete Python wrapper for OpenSSL featuring
RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including
AES
anything related to csv, I usually use VB within excel to manipulate
the data, nonetheless, i finally got the courage to take a dive into
python. i have viewed a lot of googled csv tutorials, but none of
them address everything i need. Nonetheless, I was wondering if
someone can help me
+1 for site packages and standard shebang, still lets you launch with
python first followed by .py file or followed by .py file
also for some clues, just open up a terminal in your Mac OS X computer
and check out your exports your PATH will be different depending on
all the software and
from my .profile file in ~
# This file does not get executed because .bash_profile exists in the
home directory
# and that gets executed instead. If .bash_profile did not exist then
this file gets executed
# PN hand edit export PATH to process the most recently installed
Python Framework
Looks like we finally get tkinter GUI based programs according to
Issue# 2983 in Python 3.1a so our programs don't look like something
out of early 1980's and can be themed to more closely match the
underlying Operating Systems widget set!
This is a big deal in that while tkinter came
Maybe if everyone shares their own thinking for their own situations
it may help.
I know the 2.x branch rather well, and cut my teeth on it.
My work involves x509 cryptographic materials and I cut my own
binaries and then wrap them in python to extend and enhance or build a
lot of automation
I'm a total newbe to scripting not to mention python. However I was able to
successfully create a telnet script to initiate login, initiate tftp, exit,
exit, confirm and close session. Frustrated, possibly causing my own misery.
I replace the sript the script with the standard example.
i
Thats newbe experience for ya ;-) thanks. Its seems to work and leads to
another question. whether running the script or stepping thru the process at
the command line I get what looks like hex
C:\Python30>python \Python30\scripts\telnet-tftp1.py
b'\x1b[24;1H\x1b[24;31H\x1b[24;1H\x1b[
binary?
Thanks
C:\Python30>python \Python30\scripts\telnet-tftp1.py
b'\x1b[24;1H\x1b[24;31H\x1b[24;1H\x1b[?25h\x1b[24;31H\x1b[24;31Hy\x1b[24;31H\x1b
[?25h\x1b[24;32H\x1b[24;0H\x1bE\x1b[24;1H\x1b[24;32H\x1b[24;1H\x1b[2K\x1b[24;1H\
x1b[?25h\x1b[24;1H\x1b[1;24r\x1b[24;1H\x1b[2J\x1b[?7l\x1b[1;24r\x1b
On Apr 21, 11:50 pm, "Martin v. Löwis" wrote:
> I'm proposing the following PEP for inclusion into Python 3.1.
> Please comment.
Basically the scheme doesn't work. Aside from that, it is very close.
There are tons of encoding schemes that could work... they
Vaše zpráva pro konferenci 'Python' ve věci
RE: SALE 79% 0FF on Pfizer!
Nebyla rozeslána. Pro její distribuci je nutný souhlas moderátora.
Důvod pozdržení distribuce zprávy je:
Příspěvek od nečlena do konference s přispíváním omezeným pouze na
členy.
Vaše zpráva buď bude
2008/6/12 Brad Navarro <[EMAIL PROTECTED]>:
> Basically, what I am trying to do is get a list of each file's attributes
> within a directory. Basically, the information that the 'ls –l' command
Python For System Administrators:
http://www.ibm.com/developerworks/aix/li
y and continue off where you were. It puts IDEs to shame.
If you can't get your Windows-centric IDE need eliminated, then Wing
IDE 101 will not auto-complete, its been deliberately disabled to
force students (hence 101) to memorize python/function names.
Komodo Edit is a free download and will Aut
10.5.4 for Intel equipped Macs
If you know anything about Rabbyt or want to run any of the Rabbyt +
pyglet tutorials or demonstration programs, you can now easily install
it onto your Mac.
Cheers,
PN
--
http://mail.python.org/mailman/listinfo/python-list
well written (The L express game programming book) and
highly recommended if you need to get some basic game design and
programming under your belt in Python.
That said its stupidly easy to port examples to work on Pyglet/Rabbyt
so you won't do yourself a dis-service if you want to buy the boo
PS. To see some real games developed under pressure/time constraints
in Python you should visit PyWeek to see what individuals and teams
can create in only a weeks time!
http://pyweek.org/
2008/7/19 Michael Lubker <[EMAIL PROTECTED]>:
> Any people that use Python as the predominant lan
In the original post you asked for "hidden gems" and now it seems you
> just want to know about Madonna or Justin Timberlake.
>
> Maybe a look on this collection helps
>
> http://wiki.python.org/moin/UsefulModules
> --
> http://mail.python.org/mailman/listinfo/python-lis
ar to shutil.copyfileobj
source.close()
target.close()
Now if you are again purely in it for a challenge or for and
educational roller coaster ride, ignore the suggestion to look at
higher level ftp modules =)
Cheers,
PN
--
http://mail.python.org/mailman/listinfo/python-list
sorry cut off due to original email being sent not to the list due to gmail:
A second for that suggestion--the ftp module in the python standard library is
very low level and not very useful for beginners as a lot of the heavy
lifting and management is still left up to you, the programmer.
2008
Hello,
Just curious; can I post a basic programming question to this mailing list?
Thanks in advance.
Pete
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.--
http://mail.python.org/mailman/listinfo/python-list
) and (tries < total_attempts):
print "You guessed it! The number was", the_number
print "And it only took you", tries, "tries!\n"
print "The correct answer is: ", the_number
Below is the complete script:
#! /usr/bin/python
# Aurt
t the privileges that are required to run fsutil.
Disclaimer: I am new to python and programming. This may not be they python
way of doing things.
Pete
Ohad Frand <[EMAIL PROTECTED]> wrote:Hi
I am looking for a way to get a list of all active logical hard d
Hello everyone,
I am trying to get a list of all the partitions (along with their respective
file system types) listed in the /media directory. Does anybody know if
there is a way to do this using Python, or do I have to get this information
by parsing the output of a Linux command?
Thanks in
Yes it does involve Jailbreaking.
Python
GCC
Java
and Ruby
are all available to run on the iPhone after you Jailbreak it.
Just run the Cydia appliacation (jailbreak's AppStore) to install
anything you want.
For me I have not installed Python (yet). Jailbreak was only to tether
iPhone
Hi,
sorry, I have these ideas for longer than 10 years, please have a look on it
and comment on it. Thx.
This is another proposal for introducing types into Python.
There are many reasons for incorporating types into Python, but there is
also a lot of concern about doing so because of
Gabriel Genellina wrote:
> En Thu, 25 Sep 2008 16:24:58 -0300, <[EMAIL PROTECTED]> escribió:
>
>> sorry, I have these ideas for longer than 10 years, please have a look
>> on it
>> and comment on it. Thx.
>>
>> This is another proposal for intro
Hello all,
Newbie here so go easy on me. I've been trying to get the IDLE GUI to
work on my machine, but have been unsuccessful so far. I have an IBM
Thinkpad running Windows XP and it has an older version of Python
running (2.2, I believe). When I try to use the shortcut to open the
IDL
601 - 700 of 5560 matches
Mail list logo