Re: [Tutor] What made Python differ from other Languages?

2012-02-20 Thread Carlos Daniel Ruvalcaba Valenzuela
and flexible enough to cover different application types. Regards, Carlos Daniel Ruvalcaba Valenzuela ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Application packaging

2011-09-05 Thread Carlos Daniel Ruvalcaba Valenzuela
Hello list, Lately I have been working on a windows desktop application for a client, using python and pyside, everything working fine, but I'm getting a bit stuck when trying to distribute the application to the client. Currently I'm using a combination of py2exe and clickonce, what are your exp

Re: [Tutor] Reading the CDROM in Linux

2010-11-05 Thread Carlos Daniel Ruvalcaba Valenzuela
This is more of a Linux question, but here is some advice: All files under /dev are more or less raw representations of the devices, meaning that /dev/cdrom or /dev/sr0 files represent the CDROM devices, however this is for raw access to the device data, now really for normal use, the sistem may "

Re: [Tutor] Reading Excel Files

2010-06-22 Thread Carlos Daniel Ruvalcaba Valenzuela
er to convert the format, lets see how they take that. Regards, Carlos Ruvalcaba On Tue, Jun 22, 2010 at 10:44 PM, Lang Hurst wrote: > Carlos Daniel Ruvalcaba Valenzuela wrote: >> >> Hello list, >> >> I was wondering if anyone has worked with excel 2007 files (importing &

[Tutor] Reading Excel Files

2010-06-22 Thread Carlos Daniel Ruvalcaba Valenzuela
Hello list, I was wondering if anyone has worked with excel 2007 files (importing data from), I have done so for old format (xls) via a number of modules like xlrd and the old pyexcelerator, however none of those packages currently support new 2007 format, although xlrd may have support for it lat

[Tutor] Code documentation

2009-03-03 Thread Carlos Daniel Ruvalcaba Valenzuela
Hello list, I have been coding in python a short while and I have been wondering which approach should I take on documentation (API docs) for a python library I have been working on, there is currently code docstrings, docstrings with some markup (epydoc, etc), or external programs such as Sphinx

Re: [Tutor] mod python

2008-04-22 Thread Carlos Daniel Ruvalcaba Valenzuela
Hello, I think this is a problem with mod_python and Apache configuration, you should checkout mod_python configuration for Apache+Windows. Most likely your problem is the mod_python library file, use this instead (more appropiate for windows): "LoadModule python_module modules/mod_python.dll" I

Re: [Tutor] performance

2007-09-16 Thread Carlos Daniel Ruvalcaba Valenzuela
g modules for python (profile, hotshot, etc). Forwarded to Tutor list, I forgot it sorry! Regards, Carlos Daniel Ruvalcaba Valenzuela On 9/16/07, Jeff Peery <[EMAIL PROTECTED]> wrote: > Hello, > I've got a quick question regarding performance of lists. I am taking > measuremen

Re: [Tutor] Plz help me from this

2007-09-04 Thread Carlos Daniel Ruvalcaba Valenzuela
Yes is very possible to do this with python. Checkout the os.system and os.popen functions to run external commands (chmod, chown). Reading the list of users and groups should be easy, just open the file and read line by line and parse, you can do it as simple as splitting the line on colon chara

Re: [Tutor] gotoxy

2007-08-01 Thread Carlos Daniel Ruvalcaba Valenzuela
You should have a look at the curses module, basically gotoxy is a borland think, in linux and other unix systems there is the curses library for working with text screens. Module documentation: http://docs.python.org/lib/module-curses.html Some tutorials: http://www.amk.ca/python/howto/curses/ h

Re: [Tutor] Running another program from Python

2007-07-20 Thread Carlos Daniel Ruvalcaba Valenzuela
There is also os.system which should work in a similar way as Matlab system. You pass a string with the command and arguments. The downside of system is that it opens an entire shell and environment for the program being run, you only have the return value from the application. Other options can b

Re: [Tutor] wxPython GUI builders?

2007-06-13 Thread Carlos Daniel Ruvalcaba Valenzuela
wxGlade is a good GUI builder, very much like Glade, however it may o may not integrate with your coding style but you should definitively give it a try. PythonCard is a nice concept I personally do something similar but with XML, parse and build the GUI from it, then tweak the layout manually, wi

Re: [Tutor] Does Python have any callback function?

2007-01-28 Thread Carlos Daniel Ruvalcaba Valenzuela
That depends very much on how you are running both scripts in parallel, if you are using Threads or process. If using threads you can share a variable or object between the scripts read it on A to check for updates and lock and update on B (using semaphores for examples), there is an Event object

Re: [Tutor] Game server login encryption

2006-12-24 Thread Carlos Daniel Ruvalcaba Valenzuela
hashing with md5, most sites or systems authenticates against the hash, never use the clear password, a hash is better and can be faster. http://docs.python.org/lib/module-md5.html Regards, Carlos Daniel Ruvalcaba Valenzuela On 12/24/06, Adam Bark <[EMAIL PROTECTED]> wrote: > I&#x

Re: [Tutor] GUI with Designer

2006-11-03 Thread Carlos Daniel Ruvalcaba Valenzuela
wxPython is good for cross-platform stuff and has a few gui designers (Boa Constructor and others comes to mind), I don't know much about PyQT state in this, but PyGtk + Glade (Gui Designer) is a very good combo. Is about choise, I suggest you to do some simple tests with everything until you find

Re: [Tutor] Two Newbile Questions: porting drawmap.c, & Python as a lifetime language

2006-07-04 Thread Carlos Daniel Ruvalcaba Valenzuela
peed it up. Good Luck! Regards Carlos Daniel Ruvalcaba Valenzuela On 7/4/06, Kent Johnson <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > 2. Seeing Python hailed as a good language for learning programming, > > how do you > > rate it as a lifetime language?

[Tutor] File compression

2006-06-27 Thread Carlos Daniel Ruvalcaba Valenzuela
I think this is something that can be easily madded with some shell scripting, i suppose you are using Linux or a Unix derivate. In this case tar + bzip2 is your friend, altough for the volume of files i sugest looking at something like rsync or unison and coupling it with cron for automating the

Re: [Tutor] what does the warning indicate?

2006-06-23 Thread Carlos Daniel Ruvalcaba Valenzuela
By the way, when do you get this warning? while starting the python interpreter (python.exe)?, it's IDLE which gives you that warning? or could it be some code? if it is code then send it to the list, i'm sure will be able to help you more that way :) Regards, Carlos Daniel Ruvalcaba _

Re: [Tutor] what does the warning indicate?

2006-06-22 Thread Carlos Daniel Ruvalcaba Valenzuela
Most probably you are using Python on Windows, on Unix-like system there is a "home" for each user where the user files reside, normally HOME on windows must point to something like c:\Documents and Settings\Username, are you using Python on Windows 98? Otherwise it may be a problem with the envir

Re: [Tutor] PyGTK on cygwin

2006-06-08 Thread Carlos Daniel Ruvalcaba Valenzuela
There is a PyGTK package for win32, don't know if it uses cygwin or mingw but works pretty well on windows, it only needs the gtk runtime. http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ Altough I might been misunderstanding your question ;) On 6/8/06, Christopher Spears <[EMAIL PROTECTED]> wrote

Re: [Tutor] Trouble with os.path.isfile

2006-06-02 Thread Carlos Daniel Ruvalcaba Valenzuela
From: Carlos Daniel Ruvalcaba Valenzuela <[EMAIL PROTECTED]> Date: Jun 2, 2006 11:10 PM Subject: Re: [Tutor] Trouble with os.path.isfile To: "Carroll, Barry" <[EMAIL PROTECTED]> Here is the problem IMO: I did some modifications to your code (very minimal on ifs) and it w

Re: [Tutor] implementing config files

2006-06-01 Thread Carlos Daniel Ruvalcaba Valenzuela
ction.username) All nodes are objects, converting them to strings gets you the content, you can also access the atributes as normal object attributes. This code can be useful for what you want, take a look. Regards Carlos Daniel Ruvalcaba Valenzuela On 6/1/06, Tracy R Reed <[EMAIL PROTECTED]>

Re: [Tutor] python simulations - saving state

2006-05-16 Thread Carlos Daniel Ruvalcaba Valenzuela
Depends, you can pickle the list, but all objects need to be pickleable, maybe you can put up with this requeriment by changing your events to be pickleable?, but i don't know what data you store in a event or what kind of data is it. Regards On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrot

[Tutor] Spanish Tutorials

2006-05-13 Thread Carlos Daniel Ruvalcaba Valenzuela
Hello! At my university we are creating a Wiki with information about the careers and articles, one of the most important section is the Systems Engineering, which sports a Python section :) Spanish Python Tutorials at: http://wikitec.itnogales.edu.mx/index.php/Python Saludos! _