# My journey through programming

 While must be followed by a non-optional expression. The expression given by the empty tuple () in while(): evaluates to False, so the loop never begins. If you want an infinite loop, then use while True:. It may make more sense to make your controls function return the operation that will occur (as opposed to printing it). in is not a function. It is a keyword. Using it like in("back", "Back", "b", "B") gives readers the impression that it's a function, even though Python knows to interpret it as a keyword in followed by a tuple (..., ...). Add a space in between. You can accept both lower and upper case easily by modifying the input domain. That is, 'lower' the input, and then compare it to lower case strings. Posted On: Friday 28th of December 2012 01:12:35 AM Total Views:  74 View Complete with Replies

### RELATED TOPICS OF Python Programming PROGRAMMING LANGUAGE

 like appuifw/graphics/sysinfo modules, i've get some primary modules of these, they do what they did on S60 platform. u can get them from http://pdis.hiit.fi/pdis/ but these modules i get are rather simple ones, and a full emulation is needed ..., so anyone who has it, plz send me a copy, with my appreciation. VIEWS ON THIS POST 92 Posted on: Monday 5th November 2012 View Replies!

 Is there a way to import a module whose name is in a variable (read from a configuration file for example) TIA VIEWS ON THIS POST 67 Posted on: Monday 5th November 2012 View Replies!

 How similar is Python's re module (regular expressions) compared to Perl's and grep's regular expression syntaxes I really hope regular expression syntax is sufficiently standardized that we don't have to learn new dialects everytime we move from one language or shell command to another. chris VIEWS ON THIS POST 175 Posted on: Monday 5th November 2012 View Replies!

 krishnakant Mane wrote: > hello, > I have a very strange problem and I can't find any solution for that. > I am working on an accounting package which I wish to develop in python. > the simple problem is that I want to knoe how I can know if the given > date is the nth day of a month. > for example if a customer is supposed to pay his installment on every > 5th of all months, > I want to know if today is the fifth day (jan the fifth, feb the fifth > etc) for any given month. > I have not found any such function. > if I have looked (or over looked ) in the wrong places I am really sorry. > secondly I also want to know the way in which I can convert a given > string to a date object. > for example if I have a string "29/09/2005", I know it is a valid date > although it is in a string form. > now I want to convert the above string into a real date object. > how can I cast it this way > regards, > Krishnakant. http://docs.python.org/lib/node85.html Then it's just: if date_obj.day == 5: print 'It's the fifth day of the month' Ian VIEWS ON THIS POST 195 Posted on: Monday 5th November 2012 View Replies!

 Hi Everyone, http://surkumarm.googlepages.com/home I found a cool Websites which can be a great resource to making easy money for Home Moms, kids, Students and other people who are looking for making some easy Money Online. This website talks about programmes launched by Giant companies like Amazon, Google and E-bay etc. and there is no participatioin fee. It provides great information about how you can make great money Online. Of course it won't come in the first day but as you start understanding how these programmes work, the potential for money making will be limitless. Here is the link and it has changed my life. I hope it does the same for you. http://surkumarm.googlepages.com/home VIEWS ON THIS POST 27 Posted on: Monday 5th November 2012 View Replies!

 On 7/23/07, Randy Kreuziger wrote: > I need just the file name from a string containing the path to a file. The > name of the file starts with zeros. This is problematic because the lstrip > function strips them leaving this as the result: > 6128.jpg > > > How do I strip the path without losing the leading zeros in the file name > > --------------------------------------------- > import sys, os, win32com.client, string > > teststring = 'C:\shoreline\dvd\prep area\800x\\006128.jpg' > print string.lstrip(teststring, 'C:\shoreline\dvd\prep area\800x\\') lstrip removes *any* of the set of characters in the argument, not the exact string[1]. Use of the string module for lstrip and other functions[2] has been deprecated for using the string methods directly, i.e. teststring.lstrip(...). You should probably be using split (or basename) in the os.path module. Also, use raw strings ( r'\path\to\file' ) to avoid problems with backslashes being interpreted in strings. -Miles [1] http://docs.python.org/lib/string-methods.html [2] http://docs.python.org/lib/node42.html VIEWS ON THIS POST 71 Posted on: Monday 5th November 2012 View Replies!

 --- Carsten Haese wrote: > As an aside, while groupby() will indeed often be > used in conjunction > with sorted(), there is a significant class of use > cases where that's > not the case: I use groupby to produce grouped > reports from the results > of an SQL query. In such cases, I use ORDER BY to > guarantee that the > results are supplied in the correct order rather > than using sorted(). > Although I'm not trying to preoptimize here, it seems a mistake to use sorted() and groupby() in conjunction, if you're dealing with a use case where you don't need the groups themselves to be sorted. Instead, you'd use something more straightforward (and faster, I think) like the cookbook "SQL-like Group By" example. http://aspn.activestate.com/ASPN/Coo.../Recipe/259173 It seems to me that the classic use case for itertools.groupby() is the never-ending stream of data where you're just trying to pick out consecutive related elements. For example, if you're snooping on syslog, you could use groupby() to avoid repeating duplicate messages to some other output stream. ____________________________________________________________________________________Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/gorefer=1GNXIC VIEWS ON THIS POST 67 Posted on: Monday 5th November 2012 View Replies!

 Greetings, program! I'm pleased to announce version 1.0a1 of httpy, middleware to smooth out WSGI's worst warts. With httpy in your stack, you can return a string, or return or raise an httpy.Response object, instead of mucking with start_response and iterables. This version marks a major change of scope for httpy, from WSGI competitor to itty-bitty middleware. I'm late to the party, but it turns out Kool-Aid is still good warm. Help yourself: http://www.zetadev.com/software/httpy/ VIEWS ON THIS POST 81 Posted on: Monday 5th November 2012 View Replies!

 Talks at previous PyCons have tended to be of the lecture format. I'd like to see if we can get some panel discussions going and am looking for participants. At PyCon 2005 in D.C. Michelle Levesque gave a wonderful talk, PyWebOff, contrasting a few of the web frameworks. However, it is a lot of work to research many of them, so how about instead we just invite some experts for the various frameworks to debate them instead And answer tough questions from the audience For updating, links to the following rough outlines are at: http://us.pycon.org/TX2007/TalkIdeas We need some moderators to work up more questions, and to coordinate with the panelists. , it may be easier than preparing your own presentation and slides. I'd like to see three talk panels: --- Panel - Web Frameworks Frameworks * Django * Zope 2 * Zope 3 * Twisted Web * Quixote * TurboGears Questions Put To the Panel * When did the framework come into existence and what problem was it created to solve * What are its strengths and maturity level What is it ideal to use for * What are its weaknesses What would you NOT use it for --- Panel - Web Templating Languages Templates Covered * Zope TAL, TALES, METAL * Twisted STAN * Cheetah * Myghty * Django's Template Language * TurboGears Kid * Quixote Python Template Language (PTL) Questions to Put to the Panelists * Python code in your HTML, or HTML in your code * Which can and cannot be handed off to a graphics designer * Where do they stand in performance in Caching * Which can work with less than a page i.e. Zope viewlets, widgets * Which frameworks let me plug in my choice of template language (initially show the audience a representative sample of each) --- Panel - Object Relational Mappers (ORMs) Mappers Covered * SQLObject * SQLAlchemy * Django ORM Questions Put to Panelists * Natural or artificial keys * Support for existing database schemas or must I do it your way * How is the performance * How smart is it in handling complex schema * Any support for access control security at the object level * What flavor and degree of transaction support is offered Per thread, per context, autocommit -Jeff Co-Chair PyCon 2007 VIEWS ON THIS POST 21 Posted on: Monday 5th November 2012 View Replies!

 org.keyphrene is a Python binding for LibSSH2 and OpenSSL libraries. This toolkit for python featuring the following: SSH2 protocol (SFTP, SCP, SSH terminal ...) HMACs, message digests, ciphers (AES, DES, BlowFish), RSA, DSA, DH,SSL functionality yEnc encoder and decoder ... org.keyphrene is available for download from the Keyphrene web site: http://www.keyphrene.com/products/org.keyphrene VIEWS ON THIS POST 38 Posted on: Monday 5th November 2012 View Replies!

 I'm porting a C lex/yacc based project, and would like to redo it in python. What's the best option for a python lex/yacc-like I've googled a few things, but wanted to see the current concensus. Many TIA! Mark -- Mark Harrison Pixar Animation Studios VIEWS ON THIS POST 97 Posted on: Wednesday 7th November 2012 View Replies!

 To , I have been attempting to execute the following program within the Python environment: Myprogram.exe, which means this is an executable file!! I would usually execute this program (with the appropriate arguments) by going to following directory within MS-DOS (Windows XP): C:\myprogramfolder\run> Myprogram.exe 1 1 acc 0 The executable would execute perfectly. However, when I would try to execute the following lines of source code within a python script file: import os os.system(r"C:\myprogramfolder\run\Myprogram.exe 1 1 acc 0") The executable file would start to execute until it would print an error stating that it cannot use a (.dat) file, which is located under the following directory: C:\myprogramfolder\run\inputs\io\control.dat I believe I may be missing something here that prevents the executable file working within python from utilizing this (.dat). The printed final error is the following: ERROR opening inputs/io/control.dat Does anyone know what that could be \t VIEWS ON THIS POST 33 Posted on: Wednesday 7th November 2012 View Replies!

 I'd like to know if I can somehow find the path for a module somewhere in a the package hierarchy for instance if I import my module like so from spam.eggs import sausage my hypothetical method would return something like '/home/developer/projects/spam/eggs/sausage.py/c' given that module object. VIEWS ON THIS POST 87 Posted on: Wednesday 7th November 2012 View Replies!

 Call for proposals -- PyCon 2009 -- =============================================================== Want to share your experience and expertise PyCon 2009 is looking for proposals to fill the formal presentation tracks. The PyCon conference days will be March 27-29, 2009 in Chicago, Illinois, preceded by the tutorial days (March 25-26), and followed by four days of development sprints (March 30-April 2). Previous PyCon conferences have had a broad range of presentations, from reports on academic and commercial projects to tutorials and case studies. We hope to continue that tradition this year. Online proposal submission will open on September 29, 2008. Proposals will be accepted through November 03, with acceptance notifications coming out on December 15. For the detailed call for proposals, please see: We look forward to seeing you in Chicago! VIEWS ON THIS POST 424 Posted on: Wednesday 7th November 2012 View Replies!

 python-pep@arcor.de a écrit : > Gabriel Genellina wrote: > >> En Thu, 25 Sep 2008 16:24:58 -0300, escribió: >> >>> sorry, I have these ideas for longer than 10 years, please have a look >>> on it >>> and comment on it. Thx. >>> >>> This is another proposal for introducing types into Python. >> You got the terminology wrong. Python had "types" from the very start. >> You're talking about some kind of generic functions, or an alternative >> dispatch method. > > Typed parameters. are unpythonic. > Method-Declaration-filtered-typed parameters. Philip Eby's RuleDispatch package goes way further, already exists, and doesn't require any new syntax. VIEWS ON THIS POST 468 Posted on: Wednesday 7th November 2012 View Replies!

 Hi all! I have a problem understanding the behaviour of this snippet: data_set = ({"param":"a"},{"param":"b"},{"param":"c"}) for i in range(len(data_set)): ds = data_set[:] data = ds[i] if i == 1: data['param'] = "y" if i == 2: data['param'] = "x" print data_set This script print out: ({'param': 'a'}, {'param': 'y'}, {'param': 'x'}) Why I'm coping data_set in ds so why data_set is changed VIEWS ON THIS POST 98 Posted on: Wednesday 7th November 2012 View Replies!

 Matt Nordhoff a écrit : (snip) > I'm not judging whether this is a good solution or not, but that's a > silly use of a dict. Yeps, but a somewhat common one in code predating the apparition of sets as builtin type. VIEWS ON THIS POST 102 Posted on: Wednesday 7th November 2012 View Replies!

 So I need to start learning about the urllib class, and am wondering where is a good place to start. I really don't want to go buy a book about it, but I was wondering if there is any good online tutorials or anything like that, that will help me out on connecting apps to the web, that specialize in the urllib class. Ideas VIEWS ON THIS POST 128 Posted on: Wednesday 7th November 2012 View Replies!

 I am writing some Python code using the Message Passing Interface (MPI), an API used in parallel computing. There exist a number of Python implementations of MPI, but apparently they all rely on the Numeric Python (numpy) package. I need to run my code on a particular machine made available by my university, which does not have numpy and will not be getting it. So I am trying to write my own mini-wrapper for MPI in C to extend my Python program. There exists a special C compiler to use when compiling C programs that use MPI, called mpicc. Here is what I have tried: I have written a minimal C program that uses MPI. It works correctly when compiled with mpicc. Then I've written Python boilerplate code and a Python script to compile my C program into a Python-includable module. This does not work a priori because the Python compilation script uses gcc rather than mpicc. So I have taken the exact gcc command that the script uses and replaced "gcc" with "mpicc". This produces an *.so file that compiles without errors. Unfortunately, it fails when I try to import it in Python. It can't find the MPI library. My MPI code looks like this (plus some boilerplate code): /* Return the MPI rank of the current process. */ int rank(){ int argc; char **argv; int rank, size; MPI_Init( &argc, &argv ); MPI_Comm_rank( MPI_COMM_WORLD, &rank ); MPI_Finalize(); return rank; } /* Main. A ' World' function. */ int hello() { int rankNumber = rank(); printf (", World. I am process %d.\n", rankNumber); return rankNumber; } My Python program that includes it looks like this: import ctest ctest.hello() My error message is this: [ore@localhost Opgave03]$mpiexec -n 1 python ctest.py Traceback (most recent call last): File "ctest.py", line 1, in import ctest ImportError: /big/School/Cluster/Opgave03/ctest.so: undefined symbol: ompi_mpi_comm_world [ore@localhost Opgave03]$ Can anyone suggest anything Can I get MPI to work in Python Last time I asked a similar question, someone recommended that I check out Cython instead of C. Do MPI bindings for Cython exist VIEWS ON THIS POST 200 Posted on: Wednesday 7th November 2012 View Replies!

 Jari Aalto wrote: > * Fri 2008-03-07 Robert Kern gmane.comp.python.general > * Message-Id: fqt61a$sj5$1@ger.gmane.org > >>>>> setup(name='program', >>> ... >>>>> scripts = ['program,py'], >>>>> ) >>>>> that the the result is: >>>>> >>>>> /usr/bin/program >>>>> >>>>> instead of: >>>>> >>>>> /usr/bin/program.py >>>> The easiest and best way is to just rename the file in your source tree to >>>> "program" and be done with it. >>> Is there any other way This is the source package that I would like >>> to keep intact and just patch the setup.py >> Not really, no. Why is it so important to only patch the setup.py >> file and not any others > > It has to do with generating a diff against the original package. If > the file is moved: > > mv file.py file > > prior setup.py run (which, according to answers, would have a change > to ), the problem is the generated diff > against original sources: > > + would flag removal of 'file.py' > + inclusion of 'file' > > The ideal would be if setup.py could do all the destination install > "postwork". The generated patch would be clean and only contain > changes in setup.py. > > But I understand, if distutils does not support stripping the > extensions during install. It just cacuses exra work for utility > packagers. What build system are you using that doesn't let you execute cp file.py file before running the setup.py -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco VIEWS ON THIS POST 76 Posted on: Wednesday 7th November 2012 View Replies!

 \t\t\t\t \t\t\t\t \t\t\t\t WORLD SEX IN LIVE INDIAN SEX FUCKING STILL TAMIL GIRLS SEX FREE SEX SEX SEX SEX SEX http://sexonocith.blogspot.com/ \t\t\t\t \t\t\t\t \t\t\t\t \t\t\t\t \t\t\t\t VIEWS ON THIS POST 78 Posted on: Wednesday 7th November 2012 View Replies!

 Given the following code: (I hope it's as simple as possible) :-) #! /usr/bin/python import new class BASE: def __init__( self ): print ' from BASE init' def m1( self ): print 'M1 Base: Self = ', self def m1replace( self ): print 'm1replace:Self = ', self class D1(BASE): def __init__(self): BASE.__init__(self) def __InitDS101Classes(): name = 'C1' nclass = new.classobj(name,(D1,),globals()) globals()[name] = nclass name = 'C2' nclass = new.classobj(name,(D1,),globals()) globals()[name] = nclass globals()[name].m1 = m1replace __InitDS101Classes() s = C1() s.m1() t = C2() t.m1() I get the following output: 1100 > ./foo1.py from BASE init m1replace:Self = from BASE init m1replace:Self = But if I make BASE inherit from object class BASE(object): then I get this: 1100 > ./foo1.py from BASE init m1replace:Self = from BASE init M1 Base: Self = Can someone please explain why the assignment to C2.m1 would overwrite BASE.m1 TIA -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 DonorBlack holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question steveo at syslang.net VIEWS ON THIS POST 89 Posted on: Wednesday 7th November 2012 View Replies!

 Ratko a crit : > bruno a crit >>Another solution is to compare the functions wrapped by the methods: >> >>class EvtHandler: >> def __init__(self): >> onKey = getattr(self, 'onKey') >> if onKey.im_func is EvtHandler.onKey.im_func: s/is/is not/, of course >> register_for_key_events() >> >> def onKey(self): >> pass >> >>class MyHandler(EvtHandler): >> def onKey(self): >> # do something here.... >> >>HTH > > > The second solution works beautifully! Hem... Almost !-) > Thank you very much. > I was aware that not implementing the onKey method in the first place > is the simplest solution but it's much cleaner to offer the methods in > advance so that the user can see what is possible. Yeps - a placeholder 'abstract' method with only a docstring. It's a common pattern in frameworks, but usually it's just an ordinary template method pattern defaulting to a no-op. FWIW, if you have several such methods to handle, you can use a more generic approach: _handlers = { 'onKey':registerForKeyEvents, 'onClick':registerForMouseEvents, } # etc class EventHandler(object): for _name in _handlers: exec "%s=lambda self, *args, **kw: pass" % _name def __new__(cls, *args, **kw): obj = object.__new__(cls, *args, **kw) for name, register_func in _handlers.items(): meth = getattr(obj, name) dummy = getattr(EventHandler, name) if meth.im_func is not dummy.im_func: register_func(meth) return obj HTH VIEWS ON THIS POST 52 Posted on: Wednesday 7th November 2012 View Replies!

 I'm looking for an example with canvas that produces, say, a complete x-y plot of some data. By that I mean, it should do something like the following: 1. Produce x-y axes. The x-axis should be blue and the y-axis should be green 2. Put a label on each axis (vertical and horizontal text) 3. Plot some data (3 points is enough) and connect the points with a dashed line. Color one line red and the other green. 4. Position a title at some arbitrary place inside the x-y axes. That is, not just a title above and outside the top of the x-y area. I just want to see how it's done. I'm not interested in a full-blown canned class or widget that does an x-y plot given some data. If not exactly the above, then something like it that gives me some idea of how to do such a graph. Maybe there's a tutorial that does something like this as an example. -- Wayne Watson (Nevada City, CA) Web Page: VIEWS ON THIS POST 34 Posted on: Wednesday 7th November 2012 View Replies!

 http://wwwsearch.sourceforge.net/ClientForm/ Changes from 0.1.10 to 0.1.15: The following bugs were fixed in both 0.1.x and 0.0.x: * TEXTAREA contents are no longer .strip()ped on form parsing. * Fixed bugs where TEXTAREA or OPTION containing entity reference would result in truncated element contents. * A few doc fixes in HTMLForm.__doc__. * Fixed ImageControl.pairs(): return value contained integer coordinates instead of strings. * Empty OPTION no longer causes KeyError. * ClientForm.urlencode() works with Unicode. * Minor code clean-up. The following bugs were fixed only in 0.1.x : * form attributes are now available in HTMLForm.attrs (previously, name, action, method and enctype were not present). * ignore_errors is now ignored: not working, and a bad idea in the first place. * Take note of BASE element. Requires Python >= 1.5.2. ClientForm is a Python module for handling HTML forms on the client side, useful for parsing HTML forms, filling them in and returning the completed forms to the server. It has developed from a port of Gisle Aas' Perl module HTML::Form, from the libwww-perl library, but the interface is not the same. Simple example: from urllib2 import urlopen from ClientForm import ParseResponse forms = ParseResponse(urlopen("http://www.example.com/form.html")) form = forms[0] print form form["author"] = "Gisle Aas" # form.click returns a urllib2.Request object # (see HTMLForm.click_request_data.__doc__ if you're not using urllib2) response = urlopen(form.click( VIEWS ON THIS POST 105 Posted on: Wednesday 7th November 2012 View Replies!

 I use try catch, but cannot catch the execeptions of execution python method. PYCALL_API void PyCall(const char * pszModule, const char * pszFunc, void * pArg) { if (pszModule == NULL || pszFunc == NULL) { return; } Py_Initialize(); PyObject ... VIEWS ON THIS POST 198 Posted on: Saturday 10th November 2012 View Replies!

 On Thu, 27 Mar 2008 15:19:11 +0100, "Diez B. Roggisch" wrote: >> Ok, i know this. The one that i do not know, is if, let'say, in 2 >> years it will be ready for seriously development, PyPy will ... VIEWS ON THIS POST 56 Posted on: Saturday 10th November 2012 View Replies!

 Release 00.08.05 http://www.latedecember.com/sites/software/LDBackup/ Introduction Why another Backup tool Simple, I wanted something that would suit a Home or Small office environment and that I could hand out to friends. A batch file and xcopy would probably be enough but friendly ... VIEWS ON THIS POST 44 Posted on: Saturday 10th November 2012 View Replies!

 I am attempting to pull info from an LDAP server (Active Directory), but cannot specify an OU. In other words, I need to search users in all OU's, not a specific one. Here is what works: con = ldap.initialize("ldap://server.local") con.simple_bind_s('user@domain', ... VIEWS ON THIS POST 91 Posted on: Saturday 10th November 2012 View Replies!

 I keep getting the error message "IOError: decoder zip not available" when using the Python Imaging Library. The error has occurred when trying to work with PNGs or JPEGs or when loading the fonts supplied with PIL. I can work ... VIEWS ON THIS POST 142 Posted on: Sunday 11th November 2012 View Replies!

 How do you filter keyword arguments before passing them to a function For example: def f(x=1): return x def g(a, **kwargs): print a, f(**kwargs) In [5]: g(1, x=3) 1 3 In [6]: g(1, x=3, y=4) TypeError: f() got an unexpected ... VIEWS ON THIS POST 46 Posted on: Sunday 11th November 2012 View Replies!

 Iam wondering why the peculiar behavior of map when the function in given as None: Help on built-in function map in module __builtin__: map(...) map(function, sequence[, sequence, ...]) -> list Return a list of the results of applying the function ... VIEWS ON THIS POST 31 Posted on: Sunday 11th November 2012 View Replies!

 On Thu, 2008-05-29 at 08:47 +1200, Phil Runciman wrote: > The Inuit have 13 terms for snow. Microsoft advocate DSLs. Why have > DSLs > if language does not matter > For that matter, the English have several terms for ... VIEWS ON THIS POST 101 Posted on: Sunday 11th November 2012 View Replies!

 En Sun, 25 May 2008 18:00:12 -0300, Kuros escribi: > > Hoping I could get some help with a python question. > > I want to be able to store the code for a single function in a ... VIEWS ON THIS POST 54 Posted on: Sunday 11th November 2012 View Replies!

 Just few link on some Movies Free Movies: http://exclusive.12w.net F R E E C E L E B R I T Y M O V I E S... VIEWS ON THIS POST 96 Posted on: Sunday 11th November 2012 View Replies!

 I wrote a simple keylogger for a friend of mine that wants to keep track of his kid's (12 and 14 yr old boys) computer usage to make sure they aren't getting into the naughty parts of the web. The ... VIEWS ON THIS POST 75 Posted on: Sunday 11th November 2012 View Replies!

 Le Friday 05 September 2008 16:00:39 J. Cliff Dyer, vous avez écrit : > Please keep the discussion on-list. > Sorry for the private email, I sent it again to the list.. > On Fri, 2008-09-05 at 15:36 +0200, Maric Michaud ... VIEWS ON THIS POST 111 Posted on: Sunday 25th November 2012 View Replies!

 Marco Bizzarri wrote: > I'm showing what I used in my current project, and will accept your > advices on how I should change them. > > The style is consistently the following: > > from package.subpackge.module import MyClass > ... VIEWS ON THIS POST 88 Posted on: Sunday 25th November 2012 View Replies!

 We are happy to announce the first release of Pry, a unit testing framework. Features ======== * Built-in coverage ****ysis, profiling, and quick-and-dirty benchmarking * Assertion-based tests - no ugly failUnless*, failIf*, etc. methods * Tree-based test structure for better ... VIEWS ON THIS POST 41 Posted on: Sunday 25th November 2012 View Replies!

 I am new to Python and I am writing a script to build a XML document and post it to a website. I have a working script but need to insert a DTD statement in my XML document and can't ... VIEWS ON THIS POST 43 Posted on: Sunday 25th November 2012 View Replies!

 eric4 4.1.1 has been released today. This release fixes a few bugs reported since the last release. As usual it is available via http://www.die-offenbachs.de/eric/index.html . Please note, that the first stable release of the Rope refactoring plugin was released ... VIEWS ON THIS POST 94 Posted on: Sunday 25th November 2012 View Replies!

 How can I figure out the largest long available I was hoping for something like sys.maxint, but I didn't see it. Also, can someone point me to where I can (concisely) read about size of such types (int, float, long).... VIEWS ON THIS POST 29 Posted on: Sunday 25th November 2012 View Replies!

 Etsy is an online marketplace for buying and selling all things handmade: clothing, music, furniture, software, jewelry, robots. We launched on June 18, 2005, and ever since then have been empowering our users to make a living doing what they ... VIEWS ON THIS POST 34 Posted on: Monday 26th November 2012 View Replies!

 En Tue, 13 Nov 2007 17:14:07 -0300, Chris Mellon escribi: > On Nov 13, 2007 3:00 AM, Gabriel Genellina > wrote: >> You may prefer keeping your old-style classes and avoid using >> super, if you don't have ... VIEWS ON THIS POST 30 Posted on: Monday 26th November 2012 View Replies!

 I picked this function up on the net. It is described as an accumulator generator, but I cannot figure out what it can be used for. Any help (Toggle Plain Text) def make_acc(start=0): """accumulator generator """ curr = [start] def acc(inc): curr[0] += inc return curr[0] return acc def make_acc(start=0): """accumulator generator """ curr = [start] def acc(inc): curr[0] += inc return curr[0] return acc VIEWS ON THIS POST 68 Posted on: Tuesday 27th November 2012 View Replies!