First  |  Prev |  Next  |  Last
Pages: 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
Fwd: [ANN] Babel 0.9.3 released
----- Forwarded message from Christopher Lenz <cmlenz(a)gmx.de> ----- From: Christopher Lenz <cmlenz(a)gmx.de> To: python-babel(a)googlegroups.com Cc: cldr-users(a)unicode.org Subject: [ANN] Babel 0.9.3 released Date: Thu, 10 Jul 2008 11:26:23 +0200 X-Mailer: Apple Mail (2.926) Babel 0.9.3 - Jul 9, 2007 ===========... 10 Jul 2008 14:27
using Python's AST generator for other languages
Hello, I'm building a parser in Python, and while pondering on the design of my ASTs had the idea to see what Python uses. I quickly got to the compiler.ast module, and understood it's automatically generated. So I went to the source, ast.txt and tools/compiler/astgen.py, where I was this unexpected message: ... 11 Jul 2008 08:54
Idiomatic Python to convert list to dict
Hi all, Simple question really on a best practice. I want to avoid adding duplicates to a list. my_list = ['a', 'b', 'c', 'd', 'e'] dup_map = {} for item in my_list: dup_map[item] = True # ... sometime later for complex_dict in large_list: if complex_dict["char"] not in dup_map: my_lis... 10 Jul 2008 14:27
Local User Control
I don't know how feasible this is, but is it possible to have users log in to access a local database file in such a way that allows the program to know what user name and password they logged in with? This would involve separate user names and passwords for each user. Thanks for your time and help, Sam ... 10 Jul 2008 12:22
profiling question
Just to confirm, the profiling numbers (from cProfile) do include time spent inside my own C functions that I import as modules? ... 10 Jul 2008 11:20
Smal question
Hello group, I have some scripts sharing some common functions. So what I'd like to have is a modern include. Of course python does not have (with good reasons) no include statement. But I'm too lazy to create a module which has to be installed into the interpreter for some functions I need to share in a project.... 10 Jul 2008 18:35
Loading just in time
I am trying to create a utility module that only loads functions when they are first called rather than loading everything. I have a bunch of files in my utility directory with individual methods and for each I have lines like this in __init__.py: def calc_tax(*arg, **name): from calc_tax import calc_tax as... 11 Jul 2008 21:15
handling unexpected exceptions in pdb
Hi all, I'm in an interactive session in pdb, debugging my code using pdb.runcall. Somewhere, an exception is raised and lands uncaught on stdout. Is there any way of picking up this exception and at least read the full message, or even accessing its stack trace to determine where exactly within the one ... 10 Jul 2008 17:33
Changing self: if self is a tree how to set to a different self
I am playing with some trees. In one of the procedures I wrote for this I am trying to change self to a different tree. A tree here has four members (val/type/left/right). I found that self = SS does not work; I have to write self.val = SS.val and the same for the other members (as shown below). Is there a bett... 13 Jul 2008 07:56
socket-module: different behaviour on windows / unix when atimeout is set
On 2008-07-10, A.T.Hofkamp <hat(a)se-162.se.wtb.tue.nl> wrote: On 2008-07-09, Mirko Vogt <lists(a)nanl.de> wrote: Is that behaviour common or even documented? Found nothing. Second sentence in the socket module documentation: Note: Some behavior may be platform dependent, since calls are made to the oper... 11 Jul 2008 03:48
First  |  Prev |  Next  |  Last
Pages: 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342