Forum: Python 1 Hour Ago |
| Replies: 22 Views: 332 Since we're using python, we could allow users to plug in routines to be called like regular tasks (we could support Python and C language routines). We could also support task chaining; i.e, call... |
Forum: Python 4 Hours Ago |
| Replies: 22 Views: 332 |
Forum: Python 5 Hours Ago |
| Replies: 22 Views: 332 I suppose you can create the repo. |
Forum: Python 5 Hours Ago |
| Replies: 22 Views: 332 Okay. So should we target 2.6 with compatibility hacks for 2.5 or just go for 2.5? |
Forum: Python 5 Hours Ago |
| Replies: 22 Views: 332 I'm using Windows. Speaking of, what platforms are we targeting? Anything that Python would run on? |
Forum: Python 10 Hours Ago |
| Replies: 22 Views: 332 If you guys know how to use vcs, we can use Google Code. No need to spam the thread with so much code. |
Forum: Python 22 Hours Ago |
| Replies: 22 Views: 332 Hey I think I'm pretty good with Python, would love to be shown otherwise.
Sign me up (weekends only)! |
Forum: Python 7 Days Ago |
| Replies: 3 Views: 160 did you install the win32all package? |
Forum: Python 7 Days Ago |
| Replies: 3 Views: 269 lines = text.split("\n")
for i, l in enumerate(lines):
print "line %d: %s" %(i + 1, l) |
Forum: Python 7 Days Ago |
| Replies: 3 Views: 222 Could you give me an example? I think I have an idea what you mean, but I'm not sure. |
Forum: Python 8 Days Ago |
| Replies: 2 Views: 277 If you want your scripts to be portable you do. |
Forum: Python 21 Days Ago |
| Replies: 3 Views: 500 Here here!
That said, I would suggest you use if x in dict.keys() rather than if dict.has_key() since the latter is deprecated in later versions of python (it's never too early to start preparing... |
Forum: Python 21 Days Ago |
| Replies: 2 Views: 399 Great tutorial, I have some comments.
In python re, you can omit the ^ and $ from your regular expression and use re.match to match the string from start to finish against the expression, as long... |
Forum: Python 21 Days Ago |
| Replies: 3 Views: 223 When it comes to writing parsers, I tend not to write parsers at all and rely on parser generators like Wisent.
Anyway, care to show us the code of what you'll already doing? |
Forum: Python Oct 27th, 2009 |
| Replies: 2 Views: 184 Ooh. didn't notice you were already using the book that I recommended (Incidentally the one I learned Python with). Have you tried the official Python tutorial?
... |
Forum: Python Oct 25th, 2009 |
| Replies: 12 Views: 448 Whoa hey I did not even notice that! Yeah dude, to make methods in python Classes, set self as the first argument of every routine. To call a method from any method within the same class, do... |
Forum: Python Oct 25th, 2009 |
| Replies: 12 Views: 448 Well, it's bad OOP.
Not that I actually think that everything has to be OOP mind you (some small programs are just better off without it), but take for example your methods list. Why is your... |
Forum: Python Oct 24th, 2009 |
| Replies: 12 Views: 368 Sure, C++ is difficult for a beginner, but I recommend you go with it first *if* it is the only one being offered at your school. You will have the benefit of face to face support from your... |
Forum: Python Oct 18th, 2009 |
| Replies: 7 Views: 291 Convert them all to lower case before using ord: l = l.lower() |
Forum: Python Oct 18th, 2009 |
| Replies: 6 Views: 304 Not really sure what exactly you're trying to do... |
Forum: Python Oct 11th, 2009 |
| Replies: 7 Views: 308 locals_dict = locals()
for i in range(1, 10):
var_name = "POS" + str(i)
if i == POS:
locals_dict[var_name] = "->"
else:
locals_dict[var_name] = " "
discalimer:... |
Forum: Python Oct 8th, 2009 |
| Replies: 4 Views: 393 If you a using a GUI/event-driven framework, then yes, it's possible. If you are using console python, then no. |
Forum: Python Oct 6th, 2009 |
| Replies: 3 Views: 227 Huh? You've said what you've done, but not what you're trying to do... |
Forum: Python Sep 26th, 2009 |
| Replies: 4 Views: 409 Thanks for the suggestion. I've been able to use wisent for what I want. |
Forum: Python Sep 22nd, 2009 |
| Replies: 4 Views: 353 http://tronche.com/gui/x/xlib-tutorial/ |
Forum: Python Sep 22nd, 2009 |
| Replies: 7 Views: 614 |
Forum: Python Sep 22nd, 2009 |
| Replies: 4 Views: 353 You'd think that before trying to write a desktop environment, one would actually learn up a bit about xlib and how it works. I can answer your question, but I don't want to. Feels a bit like fanning... |
Forum: Python Sep 21st, 2009 |
| Replies: 4 Views: 409 I could use the intepreter to evaluate, but that's not what I want. I want to parse the expressions into data structures that I can easily inspect in code.
So... this question is still open. |
Forum: Python Sep 21st, 2009 |
| Replies: 4 Views: 409 Is there an open source (lgpl, bsd, mit) math parser/lexer library available out there? Has anybody ever written one by themselves (with support for variables, exponents, grouping) and have some... |
Forum: Python Sep 20th, 2009 |
| Replies: 13 Views: 623 I'd like to see you try to implement one of the existing encryption algos, much less to coming up with your own.
Thought so. |
Forum: Python Sep 20th, 2009 |
| Replies: 5 Views: 963 Where is the cTurtle website? Do they have a .tar.gz source distribution? If they do try downloading, untarring and running python setup.py install. Also, make sure that you are running the correct... |
Forum: Python Sep 12th, 2009 |
| Replies: 6 Views: 345 bytes, as they exist in Python 3.1 are conceptually new to Python (starting with version 3). This isn't to say that 8-bit strings didn't exist before in the form of regular text strings. Note the... |
Forum: Python Sep 12th, 2009 |
| Replies: 6 Views: 345 I happen to think this behavior is consistent (with indexing and slicing rules).
Here's why it makes sense:
bytes and str are not the same. They aren't even conceptually the same.
A bytes... |
Forum: Python Sep 11th, 2009 |
| Replies: 5 Views: 887 You actually think that is more exotic? Wow. |
Forum: Python Sep 11th, 2009 |
| Replies: 6 Views: 345 No. b'\x01\x02' Is a byte string in python. The expression bs[x] means that you want the byte at position x in the bytestring x, while bs[a:b] means that you want the part of the byte string from a... |
Forum: Python Sep 6th, 2009 |
| Replies: 3 Views: 709 Just a few of my no-gos/failed projects:
1. Implement an open hashing or encryption algorithm
2. Write an IM program that encrypts the messages that it sends. (HINT: each user has a public... |
Forum: Python Sep 6th, 2009 |
| Replies: 12 Views: 655 Sigh.
No, python doesn't have clear screen. |
Forum: Python Sep 6th, 2009 |
| Replies: 15 Views: 546 (emphasis mine)
No, they won't. You see, there's no good reason anybody would want to do that. I guarantee you that anybody wanting to do this has a totally different underlying problem to which... |
Forum: Python Sep 6th, 2009 |
| Replies: 12 Views: 655 Python.org supposedly loves spam anyway, so long as you include some eggs. |
Forum: Python Sep 6th, 2009 |
| Replies: 4 Views: 283 Look, not to be harsh or anything, but given you previous posts I think you would be better off reading a book or a wiki or even just a tutorial on Python OOP and maybe Python in general. Really. |