Re: [Tutor] [OT] Re: Need help in learning Python

2018-08-13 Thread Carlos Monge
Ok, this may have been a fatal error on my part but I decided to start fresh and uninstalled my old version of Python. Now when I try to reinstall I get these error messages.. Setup failed one or more issues caused the setup to fail. Please fix the issues and then retry setup. For more informati

Re: [Tutor] Need help in learning Python

2018-08-12 Thread Carlos Monge
Thank you all. I will start in small steps. First Pygame and Ubuntu. I will add any errors I get. On Sun, Aug 12, 2018 at 11:51 AM, Mats Wichmann wrote: > > > Start with checking that pip is there (or installing it if not) > > Then do PyGae > > Then do Matplotlib > > For this, please note that t

[Tutor] Need help in learning Python

2018-08-11 Thread Carlos Monge
I bought two books to help me learn Python. "Python Crash Course" and "Python for Informatics". I have done all of the basic lessons in "Python Crash Course", but it has two additional sections to help instill what I have learned To do those sections I need to install Pygame and make sure I ha

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
n in their desktop. The problem with this approach is that it results in a huge bundle, updates are a pain too. Any ideas or experience with this (not precisely this combo but the packaging in general)? Regards, Carlos Ruvalcaba PD: I'm looking for the actual state of things right now as I'm su

Re: [Tutor] Reading the CDROM in Linux

2010-11-05 Thread Carlos Daniel Ruvalcaba Valenzuela
e root directory entirely (your hard disk). You may want to use os.popen or one of the many process modules to call 'df', then parse each line by spliting the spaces or tabs, then the rest is more or less what you are doing right now. Regards, Carlos Ruvalcaba On Fri, Nov 5, 2010 at 5:

[Tutor] Pastebin.com fork based completely on Python (Django)

2010-09-07 Thread Carlos Guerrero
I did a "pastebin.com" fork in Django (python web framework) if anyone interested on join using it or improving it, can find the code at: http://gitorious.org/aprendiendo-django/aprendiendo-django Also see it working at http://notas.canaima.softwarelibre.gob.ve/ Best Regards -- Atte

Re: [Tutor] web-based python?

2010-08-02 Thread Carlos Guerrero
mming is a lot more involved than > desktop programming. I think it would be really a fun challenge to put > together a great soup-to-nuts tutorial on this (but I am far from the one > to do it!), since it incorporates so many elements. I wish you luck on > the Py3 tutorial and and web app tutorial work when you have the chance. > > Thanks, > Che > > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Atte: Carlos A. Guerrero M. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

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
later. Has anyone had to deal with something like this recently?, I'm thinking as last resort just work with the underlying XML files of the format, but it would be nice to have an already working module. Regards, Carlos Ruvalcaba ___ Tutor mai

[Tutor] (no subject)

2009-11-16 Thread Carlos Flores
Dear Python, I am trying to learn Python to experience my computer programming knowledge. I am working through the online textbook How to Think Like A Computer Scientist. I have made it through chapters 1-5 and completed the exercises at the end. Now I am on chapter 6 and I am having a lot of tro

Re: [Tutor] Best Python Editor

2009-06-14 Thread Carlos Zuniga
On Sat, Jun 13, 2009 at 7:57 PM, Wayne wrote: > On Sat, Jun 13, 2009 at 7:40 PM, Mike Hoy wrote: >> >> Try out Vim. It may take you a week to get used to it. Best thing I ever >> did was finally get started on Vim. Once I got used to it I was very happy. >> Google around for Vim tutorials. There i

[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] optparse example

2008-09-22 Thread Carlos Hanson
_option("-q", ... The arguments are everything left over. In this case, they are not used, but they are required. The following runs without issue: $ python parser.py junk $ python parser.py -v junk reading None... The bottom line is the example is just an example, not something you

[Tutor] List elements as indices to another list

2008-08-03 Thread Carlos Laviola
)-1, -1, -1) >>> i [0, 1, 2] >>> j [2, 1, 0] Theoretically, I could then just iterate over range(len(M)) and grab M[i[N]j[N]], but that's not legal. What would be the right way of doing this? Thanks in advance, Carlos ___ T

Re: [Tutor] String Replacement Question

2008-05-21 Thread Carlos Hanson
gt;> >> Does this help? > > Another approach is to use dictionaries for string > replacement. > >>>> subst = {'some': 'thing'} >>>> print "%(some)s%(some)s%(some)s" % subst > thingthingthing > As an alternate to r

Re: [Tutor] syntax question

2008-05-21 Thread Carlos Hanson
t if [theme in VALID_THEMES] becomes an index to the tuple: --> (VALID_THEMES[0], theme1)[1] 'moon' --> (VALID_THEMES[0], theme1)[0] 'sun' But we got [True] and [False]: --> True == 1 True --> False == 0 True So in words, the code returns the

Re: [Tutor] mod python

2008-04-22 Thread Carlos Daniel Ruvalcaba Valenzuela
n.dll" I suggest you to consult the Apache configuration documentation on Windows. Regards, Carlos On Tue, Apr 22, 2008 at 4:18 PM, SwartMumba snake <[EMAIL PROTECTED]> wrote: > Hello Python Mailing List > > I am trying to set up mod python 3.3.1. I have python 2.5.1, apache 2

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
/ http://www.ibm.com/developerworks/linux/library/l-python6.html Checkout window objects, there is functions for all that you want to do (move cursor, print, read, etc). Good Luck! Carlos Ruvalcaba Valenzuela On 8/1/07, Robert William Hanks <[EMAIL PROTECTED]> wrote: > > hi folks,

Re: [Tutor] Running another program from Python

2007-07-20 Thread Carlos Daniel Ruvalcaba Valenzuela
, this may not be what you want. Spawn will create a subprocess, you can wait for it to finish or let it run free knowing its process id to check it latter, it is roughly similar to fork. Good luck! Regards, Carlos Daniel Ruvalcaba On 7/20/07, Chris Smith <[EMAIL PROTECTED]> wrote: > Howdy,

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

[Tutor] Get max quantity

2007-06-13 Thread Carlos
Hello, If I have a dictionary like: inventory = {'apples': 430, 'bananas': 312, 'oranges': 525, 'pears': 217} How can I get the item with the largest quantity? I tried: max(inventory) but got: 'pears' What I would like to get is

[Tutor] Is this a good idea?

2007-06-05 Thread Carlos
for i in range(objcts): instance = 'myInst%i' %(i) objecList.append(instance) for i in range(objcts): i = objct(objecList[i], i) print i.name print i.val myC = collection(10) Regards, Carlos ___

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

[Tutor] Thanks

2007-01-23 Thread Carlos
thinking in mentioning those of you who helped me, but really fear to miss someone, so thanks to all of you who contributed. Thank you very much. This doesnt means that you will get rid of me, I want to get into OO now. :) Cheers, Carlos ___ Tutor

Re: [Tutor] Clustering?

2007-01-16 Thread Carlos
[96, 46, [12, 13], 23, [34, 32]] I would like to give it a try because I have the impression that it can be helpful too. My problem now is the lambda function, I was wondering if someone could be so kind as to give me an example that could work in my list with nested tuples. Thanks again! Ca

[Tutor] Clustering?

2007-01-16 Thread Carlos
region. Is this possible? and if yes, how canI do it? I ask this because as you know my python skills are not that great :) Thanks in advance for your help, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Problems with a Class

2007-01-13 Thread Carlos
Hello Again, Looks like Im getting there now. I did this inside the GA module: def update(self): return self.entities now Im putting it in my code: def my_fitness(entity): x = ga.update() print 'X', x fitness = 0.0 for i in entity: if i == 1:

Re: [Tutor] Tutor Digest, Vol 35, Issue 38

2007-01-13 Thread Carlos
python_ai/ If you can help me please do it, this is critical for my project :( Thanks for helping Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Problems with a Class

2007-01-12 Thread Carlos
Hi, Just in case that the info that I provided is not enough, I posted the code in a python forum, hope that somebody can take a look. http://python-forum.org/py/viewtopic.php?p=11063#11063 Regards, Carlos ___ Tutor maillist - Tutor@python.org http

[Tutor] Problems with a Class

2007-01-12 Thread Carlos
you can see there is a for loop and I need the info every time that it gets updated by the loop. Hopefully I'm making myself clear and the info is enough. Thanks for your help in advance Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Image Question, List of Image Colors

2007-01-11 Thread Carlos
Hello, Well seems like Danny was right, the backslashes were the problem! This really got an 11 in my frustration meter. Thanks for your help Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Image Question, List of Image Colors

2007-01-11 Thread Carlos
solve problems but this is... well. I searched the web for help, but nothing. This is how I am doing it from PIL import Image import sys sys.path.append('D:\MASTER THESIS\Branch_01\Thesis B_01\images\tmp') im = Image.open("Wind_Test_01") Thanks and sorry for bothering you with

[Tutor] Image Question, List of Image Colors

2007-01-11 Thread Carlos
help, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Encoding and Decoding

2007-01-02 Thread Carlos
Kent, Will give this a try. Thanks for your help, Carlos Kent Johnson wrote: > OK, off the top of my head (not tested) here are some things to get > you started. > > You could write a function that would retrieve a coordinate value > given an index number, for example: >

Re: [Tutor] Encoding and Decoding

2007-01-02 Thread Carlos
Hi Kent, I have yet to get into OO, and the GA that I'm using was done in this way, so I can't mess with it that much. So for now yes, the list has to be a flat element containing all this info. I have been reading about OO lately and a element class seems to be a good idea, I'm working on it

[Tutor] Encoding and Decoding

2007-01-02 Thread Carlos
s a little messy but this is because List [0] = Tens X position List [1] = Units X position List [2] = Decimals X position List [3] = If < than 5 the number is negative, else is positive Then if the result is List = [6, 1, 2, 3] the X position equals -612.3. This is the same for the Y position. If there are 10 elements the list is going to be 80 integers long and if there are 100 elements, well you get a very long list... With this in mind my question would be, how can I keep track of this information? I mean how can I assign this List positions to each element? This is needed because this is going to be a long list and the GA needs to evaluate the position of each element with respect to the position of the other elements. So it needs to know that certain numbers are related to certain element and it needs to have access to the size, level, name and parent information... I hope that this is clear enough. Thanks in advance, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Why a global?

2006-12-28 Thread Carlos
Chris, Sheesh, that solved it, guess that I got to learn OO next. Unles it is not related... :-[ Thanks a lot! Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Why a global?

2006-12-27 Thread Carlos
solve this problem? Regards, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

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] Lists on the fly?

2006-12-23 Thread Carlos
# Append Element to corresponding Level for Element in Elements: Lev_List['Level_%i' % (Element['Level'])].append(Element['Name']) print Lev_List And this is the result: Lev_List = { 'Level_1': ['Access', 'Circulation_01', 'Int_Circ_01', 'Int_Circ_02'], 'Level_2': ['Circulation_02', 'Int_Circ_03', 'Int_Circ_04'], 'Level_3': ['Circulation_03', 'Int_Circ_05', 'Int_Circ_06'] } It works fine, as far as I can tell. I mean, no matter how many 'Levels' it will allways get them right (levels so far are only integers). Probably the first loop is a little redundant, but performance is not one of my concerns now, but in the future the project will not be composed by a handful of spaces, probably by hundreds or more. Regards, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Lists on the fly?

2006-12-22 Thread Carlos
Kent, Thanks a lot, that solves it... again Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Lists on the fly?

2006-12-22 Thread Carlos
Is this possible? Thanks in advance, And Merry Christmas, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tutor Digest, Vol 34, Issue 42

2006-12-21 Thread Carlos
ck it here <http://en.wikipedia.org/wiki/Master%27s_degree#MArch_I..2C_MArch_II.>. Just to clarify :-) Cheers Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Project Review

2006-12-21 Thread Carlos
Kent, Yes it is a little longer than that, let me see how can I make it more compact and will get back to the list with a URL. Thanks!!! Carlos Kent Johnson wrote: > Carlos wrote: >> Hello, >> >> I have been working in a script for my master thesis project (M Arch) >

[Tutor] Project Review

2006-12-21 Thread Carlos
sible for someone to take a look and spot my errors, but I really can't think of a better way. Best regards, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How many times X is in a list?

2006-12-20 Thread Carlos
Thanks Kent, That solves it pretty well. Carlos Kent Johnson wrote: > Yes, count() is looking for exact matches. You can make a new list > with just the circulation names and take the length of that; something > like this: > len([name for name in built_Objects if nam

[Tutor] How many times X is in a list?

2006-12-20 Thread Carlos
name, etc The thing is that there can only be a "Circulation" by story, so I am thinking in adding each created object to a built_Objects list and appending the created object to the list, like: for element in elements: create element append element['Name'] to built_O

[Tutor] Sun Location System

2006-11-29 Thread Carlos
lem? Thanks for your help, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Angles

2006-11-29 Thread Carlos
Thanks Terry and Roel, I got it working now, the problem was a sign situation. I fixed it this way: from math import * def Az(Lat, Dec, H_Ang): lat_R = radians(Lat) decl_R = radians(Dec) hour_R = radians(H_Ang) x_azm = sin(hour_R) * cos(decl_R)

[Tutor] Angles

2006-11-28 Thread Carlos
ls/vrsolar/frameset.html Thanks in advance for your help, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] First realscript + Game of Life

2006-11-09 Thread Carlos
Hi, > What? > I think you're talking to someone else here, cause I have no idea what > you mean. > Copy binary numbers from memory? > You mean from any arbitrary memory location you want? > That sounds a lot like C++ pointers to me. That was based on this: > Hi Ca

Re: [Tutor] First realscript + Game of Life

2006-11-09 Thread Carlos
ore it is posted on the list and because in this way is easier to keep track of the info that is useful for me. The question is: is this a personal option from the person who replys? I would like to have all my answers this way, is it possible? Thanks a lot for your help. Happy coding, Carlos

Re: [Tutor] First real script

2006-11-08 Thread Carlos
n < 8: bin[0:0] = [0] b_len = len(bin) print bin tobinary(30) Is this a good way to proceed? Alan, about going 3D, I agree a normal 2D list will do, but I'm really afraid of the list wrapping, this time squared (or is it cubed?). I'm going to nee

Re: [Tutor] First real script

2006-11-07 Thread Carlos
port scipy a1 = scipy.zeros((4,5)) print a1 [[ 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0.]] Thats it for now. Thanks again, Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] First real script

2006-11-06 Thread Carlos
the following error: c = A_List[i+1] IndexError: list index out of range I have the impression that this can be done in a less clunky way. Again thanks for your comments. : ) Best Regards, Carlos. ___ Tutor maillist - Tutor@python.org http://mail.python.

[Tutor] First real script

2006-11-06 Thread Carlos
hod that I have chosen? And what about the if and else that are right after the two loops? they are there because if not when the loop gets to the last number an exception arises. Thanks a lot Carlos Here is the code: Note: Right now maya is not needed to run the code. #My first try at Cellula

Re: [Tutor] shebang problem

2006-11-04 Thread Carlos Hanson
test.py > > This is clearly executable by brian, and clearly being executed by > brian. The shebang line is correct (#!/usr/bin/python). > [...] Good call. I jumped on the answer without making sure I clearly read all the information provided. -- Carlos Hanson > > Carlos Han

Re: [Tutor] shebang problem

2006-11-04 Thread Carlos Hanson
is not executable, you would execute it as follows: $ python shebangtest.py As you found with `which python`, python is in /usr/bin, so executing the script is actually $ /usr/bin/python shebangtest.py Therefore, the shebang line needs to be as follows: #! /usr/bin/pyth

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

[Tutor] M Arch Thesis

2006-10-31 Thread Carlos
ation and get a result in the end, forgetting a little about the process itself. Dont think me lazy is just that I'm new to python and my time is limited. By the way, do you think that a GA solution is good for this project, maybe someone has a better idea. Than

Re: [Tutor] I need a time object from the future

2006-10-20 Thread Carlos Hanson
a second may be present if the system clock provides them. >>> t1 = time() >>> t2 = t1 + 120*24*60*60 >>> now = time() >>> now > t1 and now < t2 True >>> ctime(t1) 'Fri Oct 20 09:09:26 2006' >>> ctime(t2) 'Sat Feb 17 08:09:2

Re: [Tutor] How to read content in a tar file with tarfile module

2006-10-10 Thread Carlos Hanson
member.size, member.mtime, member.name) ... 420 chanson/chanson 0 1160505068 file.1 420 chanson/chanson 0 1160505071 file.2 420 chanson/chanson 0 1160505075 file.3 -- Carlos Hanson Web and System Administrator Tigard-Tualatin School District 503.431.4053 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] question about looping.

2006-10-06 Thread Carlos Hanson
n file object: for i in routers: f = file(i, 'w') f.close() > Thanks for your time. > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -- Carlos Hanson Web Specialist Tigard-Tualatin School District 503.4

Re: [Tutor] CGKit

2006-10-05 Thread Carlos
nce anyone has some experience that can share I would be grateful. I know that this is a little off topic, in the future I will try to keep this more centered on python. Best Regards Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.o

Re: [Tutor] CGKit

2006-10-05 Thread Carlos
ct file is located). If everything went fine, the result will be in the bin subdirectory (the file will be called sourcepy.mll or sourcepy.so) from where you can copy it to any convenient place where Maya is able to find it." I hope that someone can tell me how to do this. Carlos ""

Re: [Tutor] CGKit

2006-10-03 Thread Carlos
Boost. I have been trying to install this things but still have no clue at how. Thanks for your help Carlos ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] CGKit

2006-10-03 Thread Carlos
is the mistake? By the way, has someone managed to install CGKit and can guide me in the process? I'm having a lot of trouble with it. This is the page, just in case http://cgkit.sourceforge.net Thanks Carlos ___ Tutor maillist - T

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
Carlos Daniel Ruvalcaba On 6/27/06, Magnus Wirström <[EMAIL PROTECTED]> wrote: > Hi Everyone > > I'm starting to python and i need to write a program that are able to > compress a high amount of files and directories into a single file that > is later going to be transfe

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

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! _

[Tutor] String question.

2006-04-12 Thread Carlos Benevides
All, I have a problem/question I'd like to pose to you guys on how best to accomplish the following. I have a string that will vary in size, what I would like to do is split into n size chunks. I am also not sure how best to represent the chunks. For example, say I have a len(s) = 200 chars

[Tutor] Quick question,

2006-04-07 Thread Carlos Benevides
Hi, Can someone tell me what the r before the expression means, as in "re.compile(r'(\.exe|\.zip|\.pif|\.scr|\.ps|\.pdf|\.ppt)$')"? I've seen regular expressions both ways, and I've seen them work with or without the r. Just wondering what it does, or if it makes a difference. Thanks. ___

Re: [Tutor] (no subject)

2005-09-14 Thread Carlos Eduardo Sotelo Pinto
co.uk/hp/alan.gauld > _______ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- Atentamente: ** ,= ,-_-. =. |Carlos E. Sotelo Pinto(KrLoS) | ((_/)o o(\_)) |GNU/Linu