Generate Single PowerPoint from two powerpoints using pywin32(python)

2014-06-16 Thread Jaydeep Patil
Hi, I have two powerpoints, which consists of images in each slide. I need to read each powerpoint, copy images from both powerpoint & paste these images into output powerpoint side by side. How should i do thism using python? The repoisition of shapes seems to be difficult. Regards Jaydeep -

Al madinah international university opening apply for university colleges (September season)

2014-06-16 Thread Marwa Kotb
MR/ MiSS * Al madinah international university which win dependence Malaysian Ministry of Higher Education Malaysia (MOHE) and also winning the adoption of all academic programs and courses, the university that are approved by the Malaysian funds and private academy, which deals with q

PyGotham CFP open/looking for sponsors

2014-06-16 Thread Sarah Guido
Hello, NYC Python is hosting a conference, PyGotham http://pygotham.org/ The call for proposals is open until the 20th (http://pygotham.org/talks/call-for-proposals), and we're also looking for sponsors (http://pygotham.org/sponsors/prospectus). It's going to be awesome! Cheers, Sarah -- http

Python to Golang, sample 2

2014-06-16 Thread bookaa bookaa
This is the 2nd test sample for my 'Python to Go' project refer to https://groups.google.com/d/topic/comp.lang.python/dLAdCOLwbA4/discussion download url: http://pan.baidu.com/s/1i3qVozj This time I choose a 75 Python lines of Tetris game. It use PyGame library. With my 'Python to Go', I conver

Re: module_traverse segfault

2014-06-16 Thread Terry Reedy
On 6/16/2014 4:16 PM, Roland Plüss wrote: Was the program supposed to be shutting down when this occurred? Or did this happen during 'normal' execution? Shutting down. It happens though also if I trigger an error for example using if( ! PyArg_ParseTuple( args, "", &x1, &y1, &x2, &y2 )

Re: Python Custom Shapes Question

2014-06-16 Thread Mark Lawrence
On 16/06/2014 22:50, Elsa Mort wrote: Hi, I am using Python for a programming class at school. However, we are being asked to create a function that enables python to re-size an image that we custom made (in this case a Greek Meander.) I wasn't sure if you knew how to do this. I having troubl

Re: OT: This Swift thing

2014-06-16 Thread Chris Angelico
On Tue, Jun 17, 2014 at 8:12 AM, Gregory Ewing wrote: >> A few years ago jumbo sized but cheapish CULV laptops suddenly had 10 >> hours plus battery but did anyone notice or care? > > > I think people do care, it's just that going from > something like 6 hours to 10 hours is not a big > enough cha

Python Custom Shapes Question

2014-06-16 Thread Elsa Mort
Hi, I am using Python for a programming class at school. However, we are being asked to create a function that enables python to re-size an image that we custom made (in this case a Greek Meander.) I wasn't sure if you knew how to do this. I having trouble. Thank you, Elsa -- https://mail.pyt

Re: OT: This Swift thing

2014-06-16 Thread Gregory Ewing
Anssi Saari wrote: That was before 90 nm when leakage current started dominating over switching current. Well, if you don't care about speed, you probably don't need to make it that small. There's plenty of time for signals to propagate, so you can afford to spread the circuitry out more. The

Re: OT: This Swift thing

2014-06-16 Thread Anssi Saari
Gregory Ewing writes: > Current draw of CMOS circuitry is pretty much zero when > nothing is changing, so if you didn't care how slow it ran, > you probably could run a server off a watch battery today. That was before 90 nm when leakage current started dominating over switching current. But has

Re: module_traverse segfault

2014-06-16 Thread Roland Plüss
>> Program received signal SIGSEGV, Segmentation fault. >> 0x7fffc958 in ?? () >> (gdb) bt >> #0 0x7fffc958 in ?? () >> #1 0x7fffdd2f9ed0 in module_traverse () from >> /usr/lib64/libpython3.3.so.1.0 >> #2 0x7fffdd396cc7 in collect_with_callback () from >> /usr/lib64/libp

Re: module_traverse segfault

2014-06-16 Thread Terry Reedy
On 6/16/2014 1:14 PM, Roland Plüss wrote: I'm still trying to get Python3 embedded working. The main problem I'm hitting now is an unexplainable segfault: /unexplainable/unexplained/ ;-) Program received signal SIGSEGV, Segmentation fault. 0x7fffc958 in ?? () (gdb) bt #0 0x7f

module_traverse segfault

2014-06-16 Thread Roland Plüss
I'm still trying to get Python3 embedded working. The main problem I'm hitting now is an unexplainable segfault: Program received signal SIGSEGV, Segmentation fault. 0x7fffc958 in ?? () (gdb) bt #0 0x7fffc958 in ?? () #1 0x7fffdd2f9ed0 in module_traverse () from /usr/lib64/li

Re: parsley parsing question, how to make a variable grammar

2014-06-16 Thread Eric S. Johansson
On 6/14/2014 8:10 PM, Michael Torrie wrote: On 06/13/2014 03:05 PM, Eric S. Johansson wrote: I appreciate any insight before I go too far off track. --- eric Perhaps this is off-topic, and doesn't answer your question, but is Parsley a natural language parsing tool? If not, and if it is natur

Re: Python Tutorial

2014-06-16 Thread Zachary Ware
(Note, for those confused, context: https://mail.python.org/pipermail/python-list/2010-August/584707.html) On Mon, Jun 16, 2014 at 10:06 AM, wrote: > hello... pls how did ur tutorial creation go? > Could i get it as i am starting to learn python > thanks Hi, Please note that you've just posted

ANN: Wing IDE 5.0.7 released

2014-06-16 Thread Wingware
Hi, Wingware has released version 5.0.7 of Wing IDE, our cross-platform integrated development environment for the Python programming language. Wing IDE includes a professional quality code editor with vi, emacs, visual studio, and other key bindings, auto-completion, call tips, goto-definiti

Re: Python Tutorial

2014-06-16 Thread jonadina
hello... pls how did ur tutorial creation go? Could i get it as i am starting to learn python thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: line to argv transformation

2014-06-16 Thread Tim Chase
On 2014-06-16 13:51, Antoon Pardon wrote: > >>> shlex.split("ls *.py") > ['ls', '*.py'] > >>> shlex.split("ls '*.py'") > ['ls', '*.py'] To accommodate this, I'd probably just clone the shlib.py to my local project under a new name and then tweak the source to emit whether a token was quoted or

Re: line to argv transformation

2014-06-16 Thread Antoon Pardon
On 16-06-14 13:01, Peter Otten wrote: > Antoon Pardon wrote: > >> I am looking for an interface that takes a string as argument. The >> string is to be treated as if it is a command line and transformed into >> an argv list. >> >> "ls file" -> ['ls', 'file'] >> "ls *.py" -> ['ls', 'file1.py', '

Re: line to argv transformation

2014-06-16 Thread Chris Angelico
On Mon, Jun 16, 2014 at 8:59 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> def shell_split(cmd): >> return subprocess.check_output("""python -c 'import sys; >> print("\\0".join(sys.argv[1:]))' """+cmd,shell=True)[:-1].split(b"\0") >> >> You'll get back a list of byte strings, in any case.

Re: line to argv transformation

2014-06-16 Thread Tim Chase
On 2014-06-16 20:41, Chris Angelico wrote: > Oops! I made the cardinal error of trying in one and assuming it'd > work in both. Just needs a b prefix on the split string: > > def shell_split(cmd): > return subprocess.check_output("""python -c 'import sys; > print("\\0".join(sys.argv[1:]))' > "

Re: line to argv transformation

2014-06-16 Thread Chris Angelico
On Mon, Jun 16, 2014 at 8:51 PM, Tim Chase wrote: > On 2014-06-16 20:41, Chris Angelico wrote: >> Oops! I made the cardinal error of trying in one and assuming it'd >> work in both. Just needs a b prefix on the split string: >> >> def shell_split(cmd): >> return subprocess.check_output("""pyth

Re: line to argv transformation

2014-06-16 Thread Peter Otten
Antoon Pardon wrote: > I am looking for an interface that takes a string as argument. The > string is to be treated as if it is a command line and transformed into > an argv list. > > "ls file" -> ['ls', 'file'] > "ls *.py" -> ['ls', 'file1.py', 'file2.py', ...] > "ls '*.py'" -> ['ls', '*.py'

Re: line to argv transformation

2014-06-16 Thread Marko Rauhamaa
Chris Angelico : > def shell_split(cmd): > return subprocess.check_output("""python -c 'import sys; > print("\\0".join(sys.argv[1:]))' """+cmd,shell=True)[:-1].split(b"\0") > > You'll get back a list of byte strings, in any case. Feel free to pass > them through a decode operation, or to incor

Re: line to argv transformation

2014-06-16 Thread Chris Angelico
On Mon, Jun 16, 2014 at 8:24 PM, Antoon Pardon wrote: > On 16-06-14 12:06, Chris Angelico wrote: > >> def shell_split(cmd): >> return subprocess.check_output("""python -c 'import sys; >> print("\\0".join(sys.argv[1:]))' """+cmd,shell=True)[:-1].split("\0") > > Nice idea, unfortunatly it doesn'

Re: line to argv transformation

2014-06-16 Thread Antoon Pardon
On 16-06-14 12:06, Chris Angelico wrote: > def shell_split(cmd): > return subprocess.check_output("""python -c 'import sys; > print("\\0".join(sys.argv[1:]))' """+cmd,shell=True)[:-1].split("\0") Nice idea, unfortunatly it doesn't work in python3.3 >>> shell_split("ls *.py") Traceback (most

Re: line to argv transformation

2014-06-16 Thread Chris Angelico
On Mon, Jun 16, 2014 at 7:56 PM, Antoon Pardon wrote: > I am looking for an interface that takes a string as argument. The > string is to be treated as if it is a command line and transformed into > an argv list. > > "ls file" -> ['ls', 'file'] > "ls *.py" -> ['ls', 'file1.py', 'file2.py', ...

line to argv transformation

2014-06-16 Thread Antoon Pardon
I am looking for an interface that takes a string as argument. The string is to be treated as if it is a command line and transformed into an argv list. "ls file" -> ['ls', 'file'] "ls *.py" -> ['ls', 'file1.py', 'file2.py', ...] "ls '*.py'" -> ['ls', '*.py'] Does something like this already

Re: Python's numeric tower

2014-06-16 Thread Mark Lawrence
On 16/06/2014 04:38, Dan Sommers wrote: On Sun, 15 Jun 2014 22:17:57 -0400, Roy Smith wrote: I don't believe HandGrenade implements throw(). It does, however, implement lobbeth(). And therein lies the problem with Object Oriented Programming: instances of HandGrenade neither throw nor lobbet