get return or locals from "exec" str in "environment"

2012-08-30 Thread lucas
uot;rtn" the variables within the function lucas53. i do not know how to access the local variables within lucas53 or the locals to find harry or rtn. i really just want the return dictionary. make sense? anyway, python impresses me with its graceful and concise code, but i really

Re: get return or locals from "exec" str in "environment"

2012-08-30 Thread lucas
> Far as I can see, you never actually called that function anywhere. > ChrisA doesn't the exec command call the function? -- http://mail.python.org/mailman/listinfo/python-list

Re: get return or locals from "exec" str in "environment"

2012-08-30 Thread lucas
? like, i am afraid that i will get cross-over or bleeding into other threads or sessions. does exec do that kind of common memory space wherein i have to be very very careful about executing such code and my daemon crashing or security holes and the like. lucas -- http://mail.python.org/mailman

Re: get return or locals from "exec" str in "environment"

2012-08-30 Thread lucas
also, does that environment space, what i am assigning as env, have any such common memory space or cross thread problem with simultaneous threads or sessions? -- http://mail.python.org/mailman/listinfo/python-list

XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-02-24 Thread lucas
e the possibility to test this on python 3.8 specifically, but since the XML and XMLRPC modules have been updated in 3.8, and since 3.9 doesn't seems to introduce any change for them, i would expect 3.8 to introduce some change that dokuwikixmlrpc has somehow to take into considerati

Re: name for a mutually inclusive relationship

2021-02-24 Thread lucas
by a checkbox that, when checked, enables the widgets associated to all the mutually inclusive options. Best regards, --lucas On 24/02/2021 17:12, Ethan Furman wrote: I'm looking for a name for a group of options that, when one is specified, all of them must be specified. For contrast

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-02-24 Thread lucas
came from 3.8 or 3.9, since i can still reach the wiki nominally with my (some being non-updated) machines using python 3.7. This didn't evolve since i discovered the problem few days ago. --lucas On 24/02/2021 16:20, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-02-24 at 15:29:58 +0

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-02-24 Thread lucas
On 24/02/2021 18:00, Chris Angelico wrote: On Thu, Feb 25, 2021 at 2:02 AM lucas wrote: Hi everyone, (Sorry for the double-send if any, i'm not sure the first send was performed, maybe because of bounce errors according to mailman.) I'm currently trying to understand an error

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-02-24 Thread lucas
On 24/02/2021 18:48, Chris Angelico wrote: On Thu, Feb 25, 2021 at 4:36 AM lucas wrote: A properly-formed URL will start with a protocol. I don't know specifically what changed, but it's looking like something started rejecting malformed URLs. Try adding "http://"; or &qu

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-02-24 Thread lucas
On 24/02/2021 19:22, Chris Angelico wrote: On Thu, Feb 25, 2021 at 5:12 AM lucas wrote: On 24/02/2021 18:48, Chris Angelico wrote: I added socket.gethostbyname("wiki.example.net") (i removed the https:// since it, obviously now i think about it, led to a socket error) in the pro

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-02-24 Thread lucas
On 24/02/2021 20:21, Chris Angelico wrote: On Thu, Feb 25, 2021 at 6:14 AM lucas wrote: I tested from the windows computer (Python 3.8, it appears, not 3.7 as i thought), and got the following nginx log: [LAPTOP IP] - - [24/Feb/2021:20:06:42 +0100] "POST /lib/exe/xmlrpc.php?u=[us

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-03-27 Thread lucas
#x27; app.run(debug=True, host='localhost', port=PORT) else: url = 'http://' + URL + '?' + urlencode({'u': USER, 'p': PASSWD}) print(url) proxy = client.ServerProxy(url) print(proxy, dir(proxy)) print(proxy.add

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-03-27 Thread lucas
And, in my outputs, a key part is missing: the received arguments as parsed by Flask: Python 3.7: REQUEST: ImmutableMultiDict([('u', 'user'), ('p', 'password')]) Python 3.9: REQUEST: ImmutableMultiDict([]) Have a good day everyone, --

Re: XML RPC changes between 3.7 and 3.9 yield 401 http error

2021-03-27 Thread lucas
Thank you ChrisA ! I hope it will solve it too. Do i need to do anything ? Thank you for your time and help. Best wishes, --lucas On 27/03/2021 22:49, Chris Angelico wrote: On Sun, Mar 28, 2021 at 5:00 AM lucas wrote: I finally took time (thanks to Florian R.) to get a reproducible

argparse support of/by argparse

2021-07-12 Thread lucas
appears that some type annotations were added to tierce party modules, provided by mypy itself. Is there a technical issue preventing such work to be made for argparse (or other CLI ; i didn't find anything for others either) Thank you for reading, --lucas -- https://mail.python.org/mailman/listinfo/python-list

Re: argparse support of/by argparse

2021-07-13 Thread lucas
Mmmh, that may work just fine ! Thanks for that idea, ChrisA, i'm looking forward to implement that. Best wishes, --lucas On 12/07/2021 21:33, Chris Angelico wrote: On Tue, Jul 13, 2021 at 5:22 AM lucas wrote: Hello everyone, Let us consider this patch of code: import arg

Re: on writing a while loop for rolling two dice

2021-09-02 Thread lucas
def how_many_times(): x, y = 0, 1 c = 0 while x != y: c = c + 1 x, y = roll() return c, (x, y) Since I haven't seen it used in answers yet, here's another option using our new walrus operator def how_many_times(): roll_count = 1 while (rolls := roll())[0] != rol

import question

2021-11-18 Thread lucas
n advance and have a great day, lucas -- https://mail.python.org/mailman/listinfo/python-list

Re: import question

2021-11-19 Thread lucas
the client browser and the browser will process and interact with the Brython directly. overall, the server will stay secure and the students can learn python through Brython. sound, right? Lucas -- https://mail.python.org/mailman/listinfo/python-list

Re: ast.parse, ast.dump, but with comment preservation?

2021-12-16 Thread lucas
Hi ! Maybe RedBaron may help you ? https://github.com/PyCQA/redbaron IIRC, it aims to conserve the exact same representation of the source code, including comments and empty lines. --lucas On 16/12/2021 04:37, samue...@gmail.com wrote: I wrote a little open-source tool to expose internal

How to print a file in binary mode

2006-10-22 Thread Lucas
I need print a file in binary mode . f = f.open('python.jpg','rb') bytes = f.read() f.close() print(bytes) I can't get any binary code. how to do it? Thank you very much! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to print a file in binary mode

2006-10-22 Thread Lucas
a string into a picture using RSA algorithm. so I first convert the string to binary,and then saving the binary into picture finally, print the picture by binary! It is my coursework and studying PYTHON passingly : ) Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, L

Re: How to print a file in binary mode

2006-10-22 Thread Lucas
27;a.jpg','rb') b = fileRead.read() fileRead.close() print b ??? Thanks again Fredrik Lundh wrote: > Lucas wrote: > > > I do it because I want to encrypt a string into a picture using RSA > > algorithm. > > what does "into" mean? are you su

Re: How to print a file in binary mode

2006-10-22 Thread Lucas
x27;rb') b = fileRead.read() fileRead.close() print b #it is wrong # How can I display a.jpg's binary code? Lucas wrote: > well, if I just open the file in binary mode, and write a string,e.g > '660', how do i read the result? I means I need print the binary

How to get each pixel value from a picture file!

2006-10-23 Thread Lucas
I want to change some pixel value in the picture file. how to do it? If I read the file in binary mode, a bit == a pixel ? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get each pixel value from a picture file!

2006-10-23 Thread Lucas
age bit). If i use putpixel((44,55),0) , the number 0 will be changed RGB value or others.? 3) pix = im.load() print pix[44,55] pix[44, 55] = value my python cannt identify "[x,y]" ?? Steve Holden wrote: > Lucas wrote: > > I want to change s

Re: How to get each pixel value from a picture file!

2006-10-23 Thread Lucas
:) 1)I just copy the tutorial to run "print pix[44,55]". I really dont know why they wrote that?! 2) i think putpixel((44, 55), (0, 0, 0)) and putpixel((44,55),0) is same. thank you again. I think I have solved my problem. Steve Holden wrote: > Lucas wrote: > > Thank

Re: How to get each pixel value from a picture file!

2006-10-23 Thread Lucas
http://www.pythonware.com/library/pil/handbook/image.htm im.load() said Leif K-Brooks wrote: > Lucas wrote: > > 1)I just copy the tutorial to run "print pix[44,55]". I really dont > > know why they wrote that?! > > What tutorial? Where does it say that? --

lucas ares

2008-01-03 Thread lucas
visitame www.lucasares.com.ar -- http://mail.python.org/mailman/listinfo/python-list

Silly function call lookup stuff?

2005-09-27 Thread Lucas Lemmens
Dear pythonians, I've been reading/thinking about the famous function call speedup trick where you use a function in the local context to represent a "remoter" function to speed up the 'function lookup'. "This is especially usefull in a loop where you call the function a zillion time" they say

Re: Silly function call lookup stuff?

2005-09-27 Thread Lucas Lemmens
On Tue, 27 Sep 2005 22:41:22 +0200, Fredrik Lundh wrote: > Lucas Lemmens wrote: > >> Why isn't the result of the first function-lookup cached so that >> following function calls don't need to do the function-lookup at all? >> >> And if the context cha

Re: Silly function call lookup stuff?

2005-09-27 Thread Lucas Lemmens
On Tue, 27 Sep 2005 13:56:53 -0700, Michael Spencer wrote: > Lucas Lemmens wrote: >> Dear pythonians, >> >> I've been reading/thinking about the famous function call speedup trick >> where you use a function in the local context to represent a "remoter&q

Re: Pythonwin crashes

2005-09-28 Thread Lucas Raab
;s pretty much universal. Pythonwin crashes when you run programs with Tk in them. -- -- Lucas Raab lvraab"@"earthlink.net dotpyFE"@"gmail.com AIM:Phoenix11890 MSN:dotpyfe "@" gmail.com IRC:lvraab ICQ:324767918 Yahoo: Phoenix11890 -- http://mail.python.org/mailman/listinfo/python-list

Re: A Moronicity of Guido van Rossum

2005-10-02 Thread Lucas Raab
Xah Lee wrote: [snip] >(they tried, with their limited implementation of lambda and > shun it like a plaque) Can't say I've heard that expression before... -- ------ Lucas Raab lvraab"@"earthlink.net dotpyFE"@"gmail.com AIM:Phoeni

Re: Perl-Python-a-Day: Sorting

2005-10-18 Thread Lucas Raab
[snip] > Thanks. I didn't know there's also a sort function in Python (2.4), > besides the method. (i've mentioned your name as acknowledgement at my > website essay) [snip] With his permission, of course... -- ------ Lucas Raab lvraab"@"

Re: Python Operating System???

2005-01-06 Thread Lucas Raab
David Brown wrote: Hello. I recently came across a free operating system called Unununium (or something like that) and it was developed in Python and Assembly. Now, I have been looking for a way to make an operating system for a long long time and the only possibilities I could find were C++ and as

Re: Old Paranoia Game in Python

2005-01-09 Thread Lucas Raab
Sean P. Kane wrote: I ported the old (and long since removed) game from the bsd-game pacakge called, Paranoia, based on the old Paranoia role playing game from C to Python as a simple exercise in learning the language and pure late night boredom. Anyways, here it is for anyone looking for a few

Re: Old Paranoia Game in Python

2005-01-09 Thread Lucas Raab
Aahz wrote: In article <[EMAIL PROTECTED]>, Lucas Raab <[EMAIL PROTECTED]> wrote: Sean P. Kane wrote: I ported the old (and long since removed) game from the bsd-game pacakge called, Paranoia, based on the old Paranoia role playing game from C to Python as a simple exercise in

Re: Old Paranoia Game in Python

2005-01-10 Thread Lucas Raab
[EMAIL PROTECTED] wrote: Aahz wrote: Trust the computer, the computer is your friend. However, the computer isn't a fuckin' mind reader. If you're going to post source code on the usenet, don't have lines longer than 72 characters. Otherwise you'll find your code has wrapped lines. This not only c

Re: Game programming in Python

2005-01-11 Thread Lucas Raab
Baza wrote: I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? -- Computer says, 'no' www.panda3d.com, www.pygame.org, www.blender3d.com ... -- http://mail.python.org/mailman/listinfo/python-list

Re: Game programming in Python

2005-01-11 Thread Lucas Raab
Mike C. Fletcher wrote: Lucas Raab wrote: Baza wrote: I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? -- Computer says, 'no' www.panda3d.com, www.pygame.org, www.blender3d.com ... http://www.vrplumber.com/py3d.py?ca

Re: Python setup question

2005-01-11 Thread Lucas Raab
Robert Lin wrote: Hi, Sorry for this newbie question, I was wondering if anyone knows why when I run the test, the "test_anydbm" test will seg fault and the tests "test_aepack" and "test_al" are skipped? Thanks in advance. __ Robert Lin Eng. Intern | Blue

[OT] SciTe

2005-01-11 Thread Lucas Raab
I didn't want to go through the rigamole of adding myself to the SciTe mailing list, so I'm asking my question here. How do I choose a different C/C++ compiler to compile in?? I don't use the g++ compiler; I use the VC 7 compiler. TIA, Lucas -- http://mail.python.org/mailman/

Re: [OT] SciTe

2005-01-12 Thread Lucas Raab
Fouff wrote: I use Scintilla which is Scite with a lot of configurations files. In directory exists a file "cpp.properties" and near the end of the file is describe the command line use to compile, to link, ... I think you would be able to change here the compiler. regards Fouff Thanks. -- http:/

Re: Python.org, Website of Satan

2005-01-13 Thread Lucas Raab
Jane wrote: <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] python.org = 194.109.137.226 194 + 109 + 137 + 226 = 666 What is this website with such a demonic name and IP address? What evils are the programmers who use this language up to? Some people have too much time on their hands..

Re: Python.org, Website of Satan

2005-01-13 Thread Lucas Raab
Arich Chanachai wrote: Jane wrote: "Lucas Raab" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Jane wrote: <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] python.org = 194.109.137.226 194 + 109 + 137 + 226 = 666 What is this website wi

porting C code

2005-01-13 Thread Lucas Raab
2 b[3]" referencing the third bit of the integer. How do I do the same in Python?? If this is a stupid, I apologize. It's amazing what the lack of sleep does to the brain. TIA, Lucas -- http://mail.python.org/mailman/listinfo/python-list

Re: porting C code

2005-01-14 Thread Lucas Raab
Peter Hansen wrote: Lucas Raab wrote: I have the statement: "typedef unsigned long int word32" and later on: "word32 b[3]" referencing the third bit of the integer. If that's really exactly what you have, then you actually have something defining an array of thr

Re: porting C code

2005-01-15 Thread Lucas Raab
Peter Hansen wrote: Lucas Raab wrote: Sorry, the third "byte" is what I meant. Fair enough. Note, however, that as someone pointed out, it's actually the *fourth* of something, and it would not necessarily be a byte. In fact, in your case, it's not: typedef unsigned lon

List problems in C code ported to Python

2005-01-16 Thread Lucas Raab
I'm done porting the C code, but now when running the script I continually run into problems with lists. I tried appending and extending the lists, but with no avail. Any help is much appreciated Please see both the Python and C code at http://home.earthlink.net/~lvraab. The two files are ENIGM

Re: List problems in C code ported to Python

2005-01-16 Thread Lucas Raab
Grant Edwards wrote: On 2005-01-16, Lucas Raab <[EMAIL PROTECTED]> wrote: I'm done porting the C code, but now when running the script I continually run into problems with lists. I tried appending and extending the lists, but with no avail. Any help is much appreciated Please s

Re: List problems in C code ported to Python

2005-01-17 Thread Lucas Raab
Grant Edwards wrote: On 2005-01-16, Lucas Raab <[EMAIL PROTECTED]> wrote: Please see both the Python and C code at http://home.earthlink.net/~lvraab. The two files are ENIGMA.C and engima.py http://www.catb.org/~esr/faqs/smart-questions.html I didn't expect to get bitched out jus

Re: List problems in C code ported to Python

2005-01-17 Thread Lucas Raab
Lucas Raab wrote: I'm done porting the C code, but now when running the script I continually run into problems with lists. I tried appending and extending the lists, but with no avail. Any help is much appreciated Please see both the Python and C code at http://home.earthlink.net/~lvraab

Re: how to write a tutorial

2005-01-23 Thread Lucas Raab
Daniel Bickett wrote: Most texts in computing are written by authors to defend and showcase their existence against their peers. When you aren't busy `showcasing' your ignorance, this is *all* i see in everything you write. Um, maybe that was his point... -- http://mail.python.org/mailman/listinf

Re: What's so funny? WAS Re: rotor replacement

2005-01-27 Thread Lucas Raab
As long as we are discussing cryptography, what's wrong with m2crypto? http://sandbox.rulemaker.net/ngps/m2/ Why not incorporate it into the standard distribution? Or, what about Andrew Kuchling's crypto toolkit? http://www.amk.ca/python/code/crypto.html Umm, is it just me or did we jus

Re: Suggesion for an undergrad final year project in Python

2005-02-01 Thread Lucas Raab
Paul Robson wrote: On Tue, 01 Feb 2005 12:11:47 +, Kartic wrote: Sridhar said the following on 2/1/2005 2:11 AM: Hi, I am doing my undergrade CS course. I am in the final year, and would like to do my project involving Python. Our instructors require the project to have novel ideas. Can the

Re: VBR mp3 length

2005-07-06 Thread Lucas Raab
to grab the bitrate of the first frame and > then apply that to the the file length to come up with a total length. > Needless to say, if the bitrate of the first frame isn't close to the > overall average, it's wildly off. > > Thanks, > -Steve Take a look at htt

Re: a new Python Podcast series (and the use of Python in creating podcasting tools)

2005-07-11 Thread Lucas Raab
w.awaretek.com/python/index.html and one can click on the > podcasts there to play them, or better you can subscribe to an rss feed > at http://www.awaretek.com/python/index.xml > Nice idea!! It would be great to get some of the advanced Python guys in on this from time to time.

Re: Defending Python

2005-07-11 Thread Lucas Raab
. Guttag et al, IEEE Trans Soft Eng > 2(5):24-365 (Sep 1985). "Larch: Languages and Tools for Formal > Specification", Guttag and Horning, Springer 1993.''' > > Maybe "Ni!"? > > -Peter Lumberjack?? -- -- Lucas Raab lvraab"@"earthlink.net dotpyFE"@"gmail.com AIM:Phoenix11890 MSN:dotpyfe "@" gmail.com IRC:lvraab ICQ:324767918 Yahoo: Phoenix11890 -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Lucas Raab
"Command Prompt" icon > from the Start Menu (or some equivalent)? And are you sure you haven't > installed something else that magically changed the behaviour of Ctrl-Z? > > (I get the documented behaviour with Python 2.4.1, under Win XP.) > > -Peter I'm

Re: python2.4/site-packages

2005-08-11 Thread Lucas Raab
nstalled . > > > There is a list of them packages which you MAY install but may also > choose not to here: > > http://www.python.org/pypi > > This used to be called the Python Package index but is now the Python > Cheese Shop? Huh??? You've never heard the Chees

Re: can I delete one of *.py *.pyc *.pyo in /usr/lib/python2.3 ?

2005-08-20 Thread Lucas Raab
The .pyc and .pyo files will load faster because they are compiled. Also, if you keep the .py files and then execute them, .pyc files will be generated. In short, I would keep the .pyc files and delete the others. -- -- Lucas Raab lvraab"@"earthlink.net

Re: network programming

2005-08-21 Thread Lucas Raab
and networking, please reply. Thanks! > I believe the Twisted Matrix library has an IM module written for it and a tutorial on programming with the library. www.twistedmatrix.com -- -- Lucas Raab lvraab"@"earthlink.net dotpyFE"@"gmail.com AIM:P

Re: Is there any module to play mp3 or wav format files?

2005-08-27 Thread Lucas Raab
> -= Get GrabIt for free from http://www.shemes.com/ =- > http://pymedia.org -- -- Lucas Raab lvraab"@"earthlink.net dotpyFE"@"gmail.com AIM:Phoenix11890 MSN:dotpyfe "@" gmail.com IRC:lvraab ICQ:324767918 Yahoo: Phoenix11890 -- http://mail.python.org/mailman/listinfo/python-list

Python game coding

2005-09-17 Thread Lucas Raab
thon/ -- ------ Lucas Raab lvraab"@"earthlink.net dotpyFE"@"gmail.com AIM:Phoenix11890 MSN:dotpyfe "@" gmail.com IRC:lvraab ICQ:324767918 Yahoo: Phoenix11890 -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting tired with py2exe

2005-09-21 Thread Lucas Raab
ical questions I'd like to thank you for all >> your hard work on py2exe over the years, which has benefited the >> Windows Python community immeasurably. > > > I second this. > > --Scott David Daniels > [EMAIL PROTECTED] *motion passed for entry into Python

Re: AES crypto in pure Python?

2005-02-13 Thread Lucas Raab
[EMAIL PROTECTED] wrote: I'm looking for an implementation of AES (the Advanced Encryption Standard) in pure Python. I'm aware of pycrypto, but that uses C code. I'm hoping to find something that only uses Python...I'm willing to trade speed for portability, since my application is designed for s

Re: [newbie]How to install python under DOS and is there any Wxpython can be installed under dos?

2005-02-17 Thread Lucas Raab
Leif B. Kristensen wrote: john san skrev: Actually the "windows" running very good under the xbox-NTOS via xboxmediacenter. its just limited functions(not easy to programming the "windows" prog.), if we can find WxPython-like can be ported (I can import * from it to my xboxPython) )it will be a g

weird strings question

2005-02-25 Thread Lucas Raab
Is it possible to assign a string a numerical value?? For example, in the string "test" can I assign a number to each letter as in "t" = 45, "e" = 89, "s" = 54, and so on and so forth?? TIA -- http://mail.python.org/mailman/listinfo/python-list

Re: weird strings question

2005-02-26 Thread Lucas Raab
Robert Kern wrote: Lucas Raab wrote: Is it possible to assign a string a numerical value?? For example, in the string "test" can I assign a number to each letter as in "t" = 45, "e" = 89, "s" = 54, and so on and so forth?? Use a dictionary with the str

Re: Python interfacing with other languages

2005-02-28 Thread Lucas Raab
wuhy80 wrote: Sure It can work with VB. you could use the python's com to work with VB. Take a look at Mark Hammond's Win32 suite of modules. http://starship.python.net/crew/mhammond/ -- http://mail.python.org/mailman/listinfo/python-list

Re: intigrate the PyGame module with my Python

2005-03-05 Thread Lucas Raab
[EMAIL PROTECTED] wrote: I want to intigrate the PyGame module with my Python exe, means i DONT want to generate .PYD files separtely rather than that want to put PyGame "c" src with Python workspace of VC project workspace. I am unable to import the sub modules( display, rect etc) of pygame, its r

Re: Win32 drive mapping... aka "net use"

2005-03-05 Thread Lucas Machado
net use * \\some_server\share_name instead of: net use k: \\server\share Thanks for the help in advance. Also, if anyone could provide a link to good windows api docs for python that would be great. Cheers, --Lucas Machado -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32 drive mapping... aka "net use"

2005-03-05 Thread Lucas Machado
I have already seen the "net help use" and i know how to manage samba shares from a command prompt. What i need help with is using the win32 api for python to manage shares.... --Lucas -- http://mail.python.org/mailman/listinfo/python-list

handling pywintypes.error exceptions

2005-03-05 Thread Lucas Machado
e.') I know the exception raised in these cases is "pywintypes.error", but how can i differentiate between the two exceptions? Being able to do this is critical for my script Thanks in advance, --Lucas Machado -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32 drive mapping... aka "net use"

2005-03-05 Thread Lucas Machado
Roger Upole wrote: > You could use win32api.GetLogicalDriveStrings to list > the drive letters currently in use, and find the next free > letter. net use * probably does something like that under > the covers. I went and took your advice and this is where I am now: >>> import win32api >>> a = wi

Re: reading timestamp from vid file (avi)

2005-03-09 Thread Lucas Raab
flupke wrote: Hi, i capture a movie from mividv to an avi containing the dv video. I found a program that reads the timestamp from the avi so you know the exact date and time the video was shot. However, the source of that program is not available and it doesn't allow to batch process a director

Re: Linux Multimedia System

2005-03-13 Thread Lucas Raab
k up to my computer. Are you using a Python alternative?? -- -- Lucas Raab lvraab located at earthlink.net dotpyFE located at gmail.com AIM:Phoenix11890 MSN:[EMAIL PROTECTED] IRC:lvraab ICQ:324767918 Yahoo: Phoenix11890 -- http://mail.python.org/mailman/listinfo/python-list

Re: Linux Multimedia System

2005-03-13 Thread Lucas Raab
tle mailinglist too (German & Yahoo): http://de.groups.yahoo.com/group/dulugprojekt/ Remember that the whole project is very basic for now! But it seems to work. Greets, Marek BTW, I'd be happy to help with a Windows version. -- -- Lucas Raab lvraab located at ea

Re: Linux Multimedia System

2005-03-13 Thread Lucas Raab
nteresting. -- -- Lucas Raab lvraab located at earthlink.net dotpyFE located at gmail.com AIM:Phoenix11890 MSN:[EMAIL PROTECTED] IRC:lvraab ICQ:324767918 Yahoo: Phoenix11890 -- http://mail.python.org/mailman/listinfo/python-list

Re: Protecting Python source

2004-11-30 Thread Lucas Raab
Peter Hansen wrote: Gustavo CÃrdova Avila wrote: Peter Maas wrote: Grant Edwards schrieb: On 2004-11-29, Peter Maas <[EMAIL PROTECTED]> wrote: If the "reverse engineering" argument boils down to "protecting source doesn't make sense" then why does Microsoft try so hard to protect its sources? To

Problems getting TwistedMatrix

2004-12-07 Thread Lucas Raab
Has anybody who has recently downloaded Twisted seem to have any problems with downloading it?? I'm a dial-up user (which might be why) and whenever I click the link to download it it takes 30+ for a 1.8 MB file, which should take only about 7-10. -- http://mail.python.org/mailman/listinfo/pytho

Performance (pystone) of python 2.4 lower then python 2.3 ???

2004-12-13 Thread Lucas Hofman
where configure without any options. Anyone who understands what is going on? Regards, Lucas -- http://mail.python.org/mailman/listinfo/python-list

Re: Performance (pystone) of python 2.4 lower then python 2.3 ???

2004-12-13 Thread Lucas Hofman
nd 2.4 Pystone(1.1) time for 100 passes = 25.94 This machine benchmarks at 38550.5 pystones/second Which shows a decrease in performance. Could this have anything to do with the fact that is is a dual processor box? Lucas -- http://mail.python.org/mailman/listinfo/python-list

Re: Performance (pystone) of python 2.4 lower then python 2.3 ???

2004-12-13 Thread Lucas Hofman
Mark Asbach wrote: Hi Lucas, On a dual Xeon 3.0 Ghz: [...] Which shows a decrease in performance. Could this have anything to do with the fact that is is a dual processor box? Maybe. But my 3Gh P4/HT is also detected as a dual processor machine (Kernel 2.6), so it might be a general problem

Re: Performance (pystone) of python 2.4 lower then python 2.3 ???

2004-12-14 Thread Lucas Hofman
Istvan Albert mailblocks.com> writes: > > Lucas Hofman wrote: > > > Anyone who understands what is going on? > > It is difficult to measure a speedup that might be > well within your measurement error. > > Run the same pystone benchmark repeatedly

Re: python & nurbs

2004-12-19 Thread Lucas Raab
Jelle Feringa // EZCT / Paris wrote: Hint to get a useful answer: Define your needs. Display in 3D (want to use them to define and display geometry)? Numeric analysis (writing some sort of CAD or automation system)? Modeling system (want some way to interactively define them)? I wish I could gi

Re: Funny story about python

2004-12-20 Thread Lucas Raab
[snip] eScrew eScrew will keep writing this shit because eScrew enjoys to masturbate your spiritual sense of self eScrew Awww, it was such a good story until now. -- http://mail.python.org/mailman/listinfo/python-list

Re: getting text from WinXP console

2005-03-21 Thread Lucas Raab
t.txt" only without the quotes. AFAIK, this only works on Windows. Correct me if it works from Linux or another OS. -- -- Lucas Raab lvraab located at earthlink.net dotpyFE located at gmail.com AIM:Phoenix11890 MSN:[EMAIL PROTECTED] IRC:lvraab ICQ:324

Re: getting text from WinXP console

2005-03-21 Thread Lucas Raab
Jeff Schwab wrote: Lucas Raab wrote: Chris Maloof wrote: Hello, Does anyone know how I can read the ASCII text from a console window (from another application) in WinXP? It doesn't sound like a major operation, but although I can find the window via pywin32, I haven't been able to d

Re: Python for a 10-14 years old?

2005-03-23 Thread Lucas Raab
to really go on. Give her Dive Into Python or How to Think Like a Computer Scientist and let her ask questions if she needs help. -- -- Lucas Raab lvraab located at earthlink.net dotpyFE located at gmail.com AIM:Phoenix11890 MSN:dotpyfe "@" gma

Re: Python for a 10-14 years old?

2005-03-25 Thread Lucas Raab
I should push to her to get her fascinated about _real_ programming, I'd be obliged. Or maybe her head isn't screwed together that way, what do I know. I found "How to Think Like a Computer Scientist" a very good book. It was very well written and didn't push too many thin

AAC extracton

2005-03-30 Thread Lucas Raab
TIA -- -- Lucas Raab lvraab"@"earthlink.net dotpyFE"@"gmail.com AIM:Phoenix11890 MSN:dotpyfe"@"gmail.com IRC:lvraab ICQ:324767918 Yahoo: Phoenix11890 -- http://mail.python.org/mailman/listinfo/python-list

Re: Change between Python 2.3 and 2.4 under WinXP

2005-04-04 Thread Lucas Raab
python24. if you want to deploy programs that depend on a specific python version, exemaker is your friend: http://effbot.org/zone/exemaker.htm not to be biased toward your own products at all, or course :-) -- -- Lucas Raab lvraab"@"earthlink.n

Re: What's up with the PyFX Project??? (ex PyCG nVidia CG implementation)

2005-04-04 Thread Lucas Raab
an open-source 3D engine. Python is the main language used to program the games. While you can use C++ or other languages, they aren't as well supported. -- -- Lucas Raab lvraab"@"earthlink.net dotpyFE"@"gmail.com AIM:Phoenix11890 MSN:dotpyfe&

trouble using \ to escape %

2005-04-15 Thread Lucas Machado
t escaping the '%' character. There has to be a way to write '%' to a file. Thanks in advance.. Cheers -Lucas Machado -- http://mail.python.org/mailman/listinfo/python-list

Re: Can .py be complied?

2005-04-27 Thread Lucas Raab
ation <http://fux0r.phathookups.com/programming-tutorials/Python/tut/node43.html>. It hides the source but you still need Python installed on the system running the bytecode. But those files can be decompyled. -- -- Lucas Raab lvraab"@"earthlink.net do

Drag and Drop Images in Python (NEED HELP!)

2015-01-01 Thread lucas mvm
Hi at all user! I used Tkinter and canvas to make a window and i added 2 transparent .png images. So when i start my programm it just shows the 2 images. I want to drag one image above the other image and than it will disappear. So I need help with "drag and drop images" heres my code if you wan

Yet Another Switch-Case Syntax Proposal

2014-04-02 Thread Lucas Malor
Hi all. I would proposeto you all a switch-case syntax for Python. I already read PEP 3103 and I'm not completely satisfied by any of the proposed solutions. This is my proposal: switch_stmt ::= "switch" identifier "case" expression_list ":" suite ("case" expression_list ":" suite)* ["e

Re: Yet Another Switch-Case Syntax Proposal

2014-04-03 Thread Lucas Malor
Thank you for reading and commenting my proposal. Here are my replies: In reply to Chris Angelico: > I don't like the "iterable vs non-iterable" distinction. Compare: [...] > case "Test": # And there's your problem. Yes, I had already thought after I posted that testing against string it's a pr

  1   2   >