emacs, pdb, python3, ubuntu

2009-11-30 Thread K. Richard Pixley
Does anyone have this combination working? And if so, which version of ubuntu and what did you have to do to get it to work? --rich -- http://mail.python.org/mailman/listinfo/python-list

Re: Bored.

2009-11-30 Thread geremy condra
On Mon, Nov 30, 2009 at 5:14 PM, Necronymouse wrote: > Hello, I am learning python for about 2 years and I am bored. Not with > python but I have a little problem, when i want to write something I > realise that somebody had alredy written it! So i don´t want to make a > copy of something but i wa

Re: Bored.

2009-11-30 Thread Stef Mientki
Necronymouse wrote: Hello, I am learning python for about 2 years and I am bored. Not with python but I have a little problem, when i want to write something I realise that somebody had alredy written it! So i don´t want to make a copy of something but i wanna get better in python skills. Don´t y

Re: Language and collaboration

2009-11-30 Thread Terry Reedy
Ben Finney wrote: "Emanuele D'Arrigo" writes: Ultimately I certainly appreciate the ubiquity of English even though in the interest of fairness and efficiency I'd prefer the role of common language to be given to a constructed language, such as Ido. I prefer Lojban http://www.lojban.org/> as

Re: emacs, pdb, python3, ubuntu

2009-11-30 Thread John Bokma
"K. Richard Pixley" wrote: > Does anyone have this combination working? > > And if so, which version of ubuntu and what did you have to do to get it > to work? I run Ubuntu 8.10 and use Emacs to code Python (mostly 2.5.x but I've done some small Python 3). What has Emacs to do with it? John

Re: Bored.

2009-11-30 Thread John Bokma
Stef Mientki wrote: > There's also a Python site, were projects are submitted that needs > something ( some even pay a little), > but I can't remember where it is :-( OP: A Python program to find it :D John -- http://mail.python.org/mailman/listinfo/python-list

Re: Bored.

2009-11-30 Thread Tomasz Rola
Necronymouse wrote: > Hello, I am learning python for about 2 years and I am bored. Not > with python but I have a little problem, when i want to write > something I realise that somebody had alredy written it! So i don´t > want to make a copy of something but i wanna get better in python > skills.

Re: Bored.

2009-11-30 Thread Stef Mientki
John Bokma wrote: Stef Mientki wrote: There's also a Python site, were projects are submitted that needs something ( some even pay a little), but I can't remember where it is :-( OP: A Python program to find it :D that was the mind mapper I mentioned :-) Stef John -- htt

Re: How to prevent re.split() from removing part of string

2009-11-30 Thread MRAB
Jeremy wrote: I am using re.split to... well, split a string into sections. I want to split when, following a new line, there are 4 or fewer spaces. The pattern I use is: sections = re.split('\n\s{,4}[^\s]', lineoftext) This splits appropriately but I lose the character matched by [^s

Re: Bored.

2009-11-30 Thread Ben Finney
geremy condra writes: > On Mon, Nov 30, 2009 at 5:14 PM, Necronymouse wrote: > > Hello, I am learning python for about 2 years and I am bored. Not > > with python but I have a little problem, when i want to write > > something I realise that somebody had alredy written it! That's great news: it

Re: [Edu-sig] teaching python using turtle module

2009-11-30 Thread Gregor Lingl
kirby urner schrieb: I'm glad turtle graphics intersected my thinking re extended precision decimals (Decimal type) on edu-sig just now. I've updated my tmods.py to contain a turtle rendering the plane-net of a T-mod: http://www.4dsolutions.net/ocn/python/tmod.py (runnable source) http://www.

Re: [Edu-sig] teaching python using turtle module

2009-11-30 Thread kirby urner
On Mon, Nov 30, 2009 at 4:31 PM, Gregor Lingl wrote: << fascinating code >> > > Hoping, you will find this a bit interesting, > best regards > > Gregor > Really enlightening, both mathematically and from a coding point of view. I hadn't used turtle.py enough yet to know about the built-in "con

Re: Bored.

2009-11-30 Thread Jorge Cardona
2009/11/30 Stef Mientki : > Necronymouse wrote: >> >> Hello, I am learning python for about 2 years and I am bored. Not with >> python but I have a little problem, when i want to write something I >> realise that somebody had alredy written it! So i don´t want to make a >> copy of something but i w

Re: Feature request: String-inferred names

2009-11-30 Thread The Music Guy
> Brad Harms FearsomeDragonfly at gmail.com > Mon Nov 30 05:04:37 CET 2009 > > That was a relatively simple example; classes as simple as the ones > generated by the It is more likely that the class generation could would > appear in a metaclass's class constructor or decorator function, and there

Re: Can't print Chinese to HTTP

2009-11-30 Thread Gnarlodious
> you probably need to change the encoding of sys.stdout >>> sys.stdout.encoding 'UTF-8' >> #!/usr/bin/python > do you know what python version, exactly, that gets called by this hashbang? Verified in HTTP: >>> print(sys.version) 3.1.1 Is is possible modules are getting loaded from my old Python?

Re: Creating a local variable scope.

2009-11-30 Thread r0g
markolopa wrote: > On Nov 30, 4:46 am, Dave Angel wrote: >> markolopa wrote: >> or >> whether you accidentally reused the same name without giving it a new >> value in the new loop. > > That is what I do regularly...8-> > Well really dude, you need to stop doing that. It's not a language p

Re: PyArg_ParseTupleAndKeywords in Python3.1

2009-11-30 Thread casevh
On Nov 30, 2:18 pm, Joachim Dahl wrote: > I think that "C" encoding is what I need, however I run into an odd > problem. > If I use the following C code > > static PyObject* foo(PyObject *self, PyObject *args, PyObject *kwrds) > { >   char a, b; >   char *kwlist[] = {"a", "b", NULL}; >   if (!PyAr

Re: Variables with cross-module usage

2009-11-30 Thread Lie Ryan
On 12/1/2009 7:51 AM, Terry Reedy wrote: In everyday life and natural languages, a single name can be used to refer to multiple objects just by context without referring any namespace. Namespace are contexts. They were (re)invented in programming just to make it easier to have single name could

Re: python logging filters

2009-11-30 Thread Grimsqueaker
My logging behaves as I expect now and I have a better understanding of how the module functions. Thank you for taking the time to explain those points to me. :) On Nov 30, 4:10 pm, Vinay Sajip wrote: > On Nov 30, 6:52 am, Grimsqueaker wrote: > > > > > So would I be correct in saying that Filter

Re: python logging filters

2009-11-30 Thread Grimsqueaker
My logging behaves as I expect now and I have a better understanding of how the module functions. Thank you for taking the time to explain those points to me. :) On Nov 30, 4:10 pm, Vinay Sajip wrote: > On Nov 30, 6:52 am, Grimsqueaker wrote: > > > > > So would I be correct in saying that Filter

Re: python logging filters

2009-11-30 Thread Grimsqueaker
My logging behaves as I expect now and I have a better understanding of how the module functions. Thank you for taking the time to explain those points to me. :) On Nov 30, 4:10 pm, Vinay Sajip wrote: > On Nov 30, 6:52 am, Grimsqueaker wrote: > > > > > So would I be correct in saying that Filter

Re: ANN: GMPY 1.11rc1 is available

2009-11-30 Thread Mensanator
On Nov 29, 9:04 pm, casevh wrote: > Everyone, > > I'm pleased to annouce that a new version of GMPY is available. > GMPY is a wrapper for the MPIR or GMP multiple-precision > arithmetic library. GMPY 1.11rc1 is available for download from: > > http://code.google.com/p/gmpy/ > > In addition to supp

Re: python and vc numbers

2009-11-30 Thread Gregory Ewing
Daniel Dalton wrote: I can't find a reliable way to determine the current console number with python or any bash tool. When I say console number, I mean the actual console number, not screen window or device it is sending to or whatever. You may be able to tell by looking at the DISPLAY environ

how to debug extended module?

2009-11-30 Thread junyoung
Hi, I am a newbie who want to implement a extend module to use native python language with my own shared library. to test wrapper library(extend module, name is 'test.so'), I created some test-cases. There are some errors what I couldn't figure our reasons. ex) SystemError: error return without

peppy

2009-11-30 Thread Johann Spies
After reading about peppy on Freshmeat I decided to try it out after installing it using easy_install. But: $ peppy Traceback (most recent call last): File "/usr/bin/peppy", line 5, in pkg_resources.run_script('peppy==0.13.2', 'peppy') File "/usr/lib/python2.5/site-packages/pkg_resources

Re: python and vc numbers

2009-11-30 Thread Nobody
On Mon, 30 Nov 2009 21:02:00 +1100, Daniel Dalton wrote: >> That did the trick, thanks, after I append >> [-2] > > Further testing under screen says otherwise -- it seems to give me the > tty number, not the virtual console number. Is there any way to figure > out what virtual console I'm am in

Re: a 100-line indentation-based preprocessor for HTML

2009-11-30 Thread Steve Howell
On Nov 28, 4:46 am, "Colin W." wrote: > On 27-Nov-09 22:04 PM, Steve Howell wrote: > > > > > Python has this really neat idea called indentation-based syntax, and > > there are folks that have caught on to this idea in the HTML > > community. > > > AFAIK the most popular indentation-based solution

Re: peppy

2009-11-30 Thread Nobody
On Tue, 01 Dec 2009 08:51:20 +0200, Johann Spies wrote: > After reading about peppy on Freshmeat I decided to try it out after > installing it using easy_install. But: > > $ peppy > File > "/usr/lib/python2.5/site-packages/peppy-0.13.2-py2.5.egg/peppy/lib/multikey.py", > line 120, in >

Re: Bored.

2009-11-30 Thread Bram Mertens
Ben Finney wrote: geremy condra writes: On Mon, Nov 30, 2009 at 5:14 PM, Necronymouse wrote: Hello, I am learning python for about 2 years and I am bored. Not with python but I have a little problem, when i want to write something I realise that somebody had alredy written it! That's great

<    1   2   3