[EMAIL PROTECTED] wrote:
> im plugging away at the problems at
> http://www.mathschallenge.net/index.php?section=project
> im trying to use them as a motivator to get into advanced topics in
> python.
> one thing that Structure And Interpretation Of Computer Programs
> teaches is that memoisation i
Robert Kern wrote:
> John Machin wrote:
> > John Salerno wrote:
> >> John Machin wrote:
> >>
> >>> Your confusion is quite understandable. I started looking at sqlite
> >>> when the announcement that it would be included in Python 2.5 came out.
> >>> Puzzlement reigned. I ended up with the followi
Georg Brandl wrote:
> Paul Rubin wrote:
> > Sybren Stuvel <[EMAIL PROTECTED]> writes:
> >> Because of "there should only be one way to do it, and that way should
> >> be obvious". There are already the str.join and unicode.join methods,
> >
> > Those are obvious???
>
> Why would you try to sum up
Dennis Lee Bieber wrote:
>
> The only reason, then, to download the stand-alone SQLite package
> (not the python package) would be to obtain the command line query/admin
> tool.
Pre-compiles binaries of the tool are available for Linux and Windows.
http://www.sqlite.org/download.html
Anyone?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
How to read/write value over different classes (in different files)
Something like global values?
Thanks
Rafał
--
http://mail.python.org/mailman/listinfo/python-list
thanks, i was not just being lazy. i wanted to play with decorators and
tell people on the forums how cool python is :)
cheers for getting back to me, i could have done that myself i think,
bar the error checking. do you have any links on good practice in
python (i do think i am very lazy re: error
does not seem to work for standalone functions, this is a method
decorator only then?
Traceback (most recent call last):
File "prob14memoize.py", line 94, in ?
length = col(i,1)
File "prob14memoize.py", line 49, in __call__
object = self.cache[args] = self.fn(self.instance, *args)
Attr
am i correct in thinking that psyco will just not accelerate, rather
than break code it cannot deal with? that has been a pretty standard
import on all my programs
tom
Ziga Seilnacht wrote:
> [EMAIL PROTECTED] wrote:
> > im plugging away at the problems at
> > http://www.mathschallenge.net/index
Hi there,
I can write:
s = 'some string'
then print s[1] will be the string 'o'
and a while later I can write:
s = 'other some string'
then print s[1] will be the string 't'
and then:
s = [1,2,3,4]
then print s[1] will be the number 2
and still later:
s = {1:'boo',2:'foo',3:'shoo'}
when pri
>> Oh well, I'll just keep trying different ones.
If you demand power and cross-platform compatibility, I think you
already know your choices are Xemacs or Vim 7.0. They are both modal
and therefore difficult to learn, at first, but later you enjoy the
pleasures of interface Zen:
http://tinyurl.
I suppose that lesson should not suprise me, programming is a subtle
art that i need spend some time mastering
thanks to all that have replied
tom
Fredrik Lundh wrote:
> Gabriel Genellina wrote:
>
> > This implementation uses cPickle to generate a key from the supplied
> > function arguments,
Hi,everyone:
Have you any ideas?
Say whatever you know about this.
thanks.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Thanks for the script. Are there any online python intrepreters?
>
> I'd like to play around with the script. I don't have access to my home
> PC.
You probably will have to wait till you get to yours. There were some
AJAXian ones but I doubt that you will find a free (a
many_years_after wrote:
> Hi,everyone:
>
> Have you any ideas?
>
> Say whatever you know about this.
>
>
> thanks.
Hi,
You mean unicode I assume:
http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/pytho
John Salerno wrote:
> Ok, I know it's been asked a million times, but I have a more specific
> question so hopefully this won't be just the same old post. I've tried a
> few different editors, and I really like UltraEdit, but it's
> Windows-only and I'm working more on Linux nowadays.
>
> Here ar
At Friday 18/8/2006 11:45, Rob Cowie wrote:
Pydoc seems to be capable of writing documentation for all modules
within a package by simply pointing it to the package on the command
line...
pydoc -w
Certainly, the method writedocs() appears to descend into a directory
and create docs for each i
http://scribes.sourceforge.net/
Flash Demo: http://scribes.sourceforge.net/snippets.htm
GIF Demo: http://www.minds.may.ie/~dez/images/blog/scribes.html
Scribes is simple, slim, sleek and fast. It has no learning curve and
conveys a no nonsense approach to text editing. You won't need to edit
con
Hendrik van Rooyen wrote:
> Hi there,
>
> I can write:
>
> s = 'some string'
> then print s[1] will be the string 'o'
>
> and a while later I can write:
>
> s = 'other some string'
> then print s[1] will be the string 't'
>
> and then:
>
> s = [1,2,3,4]
> then print s[1] will be the number 2
>
> a
At Saturday 19/8/2006 07:58, [EMAIL PROTECTED] wrote:
am i correct in thinking that psyco will just not accelerate, rather
than break code it cannot deal with? that has been a pretty standard
import on all my programs
Don't optimize what doesn't deserve optimization... That's a pretty
standar
many_years_after wrote:
> Hi,everyone:
>
> Have you any ideas?
>
> Say whatever you know about this.
>
Perhaps you had better explain what you mean by "ascii code of Chinese
characters". Chinese characters ("hanzi") can be represented in many
ways on a computer, in Unicode as well as man
At Saturday 19/8/2006 07:56, [EMAIL PROTECTED] wrote:
does not seem to work for standalone functions, this is a method
decorator only then?
Traceback (most recent call last):
File "prob14memoize.py", line 94, in ?
length = col(i,1)
File "prob14memoize.py", line 49, in __call__
objec
Hendrik van Rooyen wrote:
[snip]
> What do you guys think?
The subject said it all. You should find some other way of entertaining
yourself on the weekends :-)
--
http://mail.python.org/mailman/listinfo/python-list
At Saturday 19/8/2006 07:49, Hendrik van Rooyen wrote:
Now how about introducing an index that works over time,
such that s{0} (the default so as to not break any existing code)
implies the current object bound to the name s,
with s{1} being the previous one, and so on...
Doing that *always* f
In message <[EMAIL PROTECTED]>, Adriano
Monteiro wrote:
> "Failed to open input file "/home/adriano/umit/test/targets" for reading
> QUITTING!"
Which is not the same as saying:
"Failed to open input file /home/adriano/umit/test/targets for reading
QUITTING!"
Spot the difference?
> command
John Salerno <[EMAIL PROTECTED]> writes:
> What is really confusing is that I did a search for 'sqlite' in my
> Ubuntu repositories and it came up with entries like this:
>
> python2.4-pysqlite1.1 python interface to SQLite 3
> python2.4-pysqlite2 python interface to SQLite 3
> python2.4-pys
hello
can i write a eof to a file descriptor without closing it?
like:
fd.write(EOF)
or something
grts,
ruben
--
http://mail.python.org/mailman/listinfo/python-list
I'am searching a cheap ZPP Hoster.
Some informations?
Greetings
Escorial2000
--
http://mail.python.org/mailman/listinfo/python-list
MrBlueSky wrote:
> Hi,
> I've got a Python application that (as well as lots of other stuff!)
> has to translate time_t values into strings in the TZ of the users
> choice. Looking at the Python Library Reference, I can see no platform
> independent way of setting the TZ that time.localtime() ret
In <[EMAIL PROTECTED]>, cage wrote:
> can i write a eof to a file descriptor without closing it?
> like:
> fd.write(EOF)
> or something
What do you expect this to to? Writing a byte to the file and you don't
know which value this byte has?
Ciao,
Marc 'BlackJack' Rintsch
--
http:/
Did you try gedit?
It has an options, which you need, I think.
Regards.
--
http://mail.python.org/mailman/listinfo/python-list
why is the button sunken when called through a bind method, and not
with the command attribute?
Thank you!
## Cut'nPaste example
from Tkinter import *
import tkMessageBox
class Vue(object):
def __init__(self):
self.root=Tk()
self.root.title("test button visual state")
In article <[EMAIL PROTECTED]>,
"Collin Winter" <[EMAIL PROTECTED]> wrote:
> While working on a test suite for unittest these past few weeks, I've
> run across some behaviours that, while not obviously wrong, don't
> strike me as quite right, either. Submitted for your consideration:
>
> 1) Test
Philippe Martin wrote:
> many_years_after wrote:
>
>> Hi,everyone:
>>
>> Have you any ideas?
>>
>> Say whatever you know about this.
>>
>>
>> thanks.
> Hi,
>
> You mean unicode I assume:
> http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml
>
> Regards,
>
> Philipp
"John Machin" <[EMAIL PROTECTED]> wrote:
|
| Hendrik van Rooyen wrote:
| [snip]
| > What do you guys think?
|
| The subject said it all. You should find some other way of entertaining
| yourself on the weekends :-)
This is the right answer...
*grin* - well - at least you *were* warned... -
On Fri, Aug 18, 2006 at 02:21:40PM -0700, Bryan wrote:
>
> i've written a program that uses python c api code that lives in a
> shared library that is loaded by a custom apache module (mod_xxx). this
> python c api code all works correctly under our test server and under
> apache but only if mo
hi:
what I want to do is just to make numbers as people input some Chinese
character(hanzi,i mean).The same character will create the same
number.So I think ascii code can do this very well.
John Machin wrote:
> many_years_after wrote:
> > Hi,everyone:
> >
> > Have you any ideas?
> >
> >
Tim Chase wrote:
> >>> [name for name in dir() if id(eval(name)) == id(banana)]
> ['banana', 'spatula']
>
Please, if you are going to do something like this, then please at least
use the 'is' operator. Using id(expr1)==id(expr2) is just plain stupid: it
will actually work in this case, but as
On 2006-08-19, cage <[EMAIL PROTECTED]> wrote:
> can i write a eof to a file descriptor without closing it?
No. Not on Windows, OS-X, or Unix. There is no such thing as
"an eof".
On CP/M Ctrl-Z is used as EOF for text files.
--
Grant Edwards
[EMAIL PROTECTED]
--
http://mail.python.org/mail
I'll be out of the office until approximately August 20th. If you have any
questions, please email [EMAIL PROTECTED]
-- David Wahler
--
http://mail.python.org/mailman/listinfo/python-list
I'll be out of the office until approximately August 20th. If you have any
questions, please email [EMAIL PROTECTED]
-- David Wahler
--
http://mail.python.org/mailman/listinfo/python-list
Hi group,
This is an article I wrote for Packt Publishing -
http://www.packtpub.com :
Using xtopdf, a PDF creation toolkit -
http://www.packtpub.com/article/Using_xtopdf
It shows how to use xtopdf - http://sourceforge.net/projects/xtopdf -
to create PDF from plain text, DBF, CSV, TDV and XLS dat
Marc 'BlackJack' Rintsch schreef:
> In <[EMAIL PROTECTED]>, cage wrote:
>
>> can i write a eof to a file descriptor without closing it?
>> like:
>> fd.write(EOF)
>> or something
>
> What do you expect this to to? Writing a byte to the file and you don't
> know which value this byte has?
>
In <[EMAIL PROTECTED]>,
many_years_after wrote:
> what I want to do is just to make numbers as people input some Chinese
> character(hanzi,i mean).The same character will create the same
> number.So I think ascii code can do this very well.
No it can't. ASCII doesn't contain Chinese characters.
>> can i write a eof to a file descriptor without closing it?
>
> No. Not on Windows, OS-X, or Unix. There is no such thing as
> "an eof".
>
> On CP/M Ctrl-Z is used as EOF for text files.
Common Dos/Window convention also uses ctrl+Z (0x1a) for EOF.
c:\> copy con test.txt
hel
<[EMAIL PROTECTED]> wrote:
To:
| why is the button sunken when called through a bind method, and not
| with the command attribute?
| Thank you!
|
|
| ## Cut'nPaste example
| from Tkinter import *
| import tkMessageBox
|
| class Vue(object):
| def __init__(self):
| self.root=Tk()
|
Jack Diederich wrote:
> On Fri, Aug 18, 2006 at 02:21:40PM -0700, Bryan wrote:
>> i've written a program that uses python c api code that lives in a
>> shared library that is loaded by a custom apache module (mod_xxx). this
>> python c api code all works correctly under our test server and under
cage wrote:
> I want to use a program that has a 'pipe' mode, in which you can use
> stdin to send commands to the program. I found out that, when in pipe
> mode and you are using the keyboard as input source you can do Ctrl-D to
> 'signal' the program that you have finished typing your command.
cage schrieb:
> Marc 'BlackJack' Rintsch schreef:
>> In <[EMAIL PROTECTED]>, cage wrote:
>>
>>> can i write a eof to a file descriptor without closing it?
>>> like:
>>> fd.write(EOF)
>>> or something
>>
>> What do you expect this to to? Writing a byte to the file and you don't
>> know which va
Writing the binary value for ^D into the stream will not do anything.
That value signals the shell to close the stream, as such it only has
significance when you're typing something into the shell.
To the OP: writing an EOF to a stream without closing it makes no
sense. EOF means just that--end of
The clnum package adds rational numbers and arbitrary precision floating
point numbers in real and complex form to Python. Also provides
arbitrary precision floating point replacements for the functions in the
math and cmath standard library modules.
Home page: http://calcrpnpy.sourceforge.net/cln
Actually, nevermind. It appears that receiving an EOF from a stream
tells it when to stop 'reading', not necessarily that the stream is
closed. What a weird behavior.
--
http://mail.python.org/mailman/listinfo/python-list
dear all,
i have a python com server like this:
import win32com.server.register
class HelloWorld:
_reg_clsid_ = "{B0EB5AAB-0465-4D54-9CF9-04ADF7F73E4E}"
_reg_desc_ = 'Python test com server'
_reg_progid_= "Leojay.ComServer"
_public_methods_= ['Add', 'M
The ratfun module provides classes for defining polynomial and rational
function (ratio of two polynomials) objects. These objects can be used
in arithmetic expressions and evaluated at a particular point.
Home page: http://calcrpnpy.sourceforge.net/ratfun.html
Note: If you are using rpncalc-1.2
The rpncalc package adds an interactive Reverse Polish Notation (RPN)
interpreter to Python. This interpreter allows the use of Python as
an RPN calculator. You can easily switch between the RPN interpreter
and the standard Python interpreter.
Home page: http://calcrpnpy.sourceforge.net/
Chang
* many_years_after (2006-08-19 12:18 +0100)
> Hi,everyone:
>
> Have you any ideas?
>
> Say whatever you know about this.
contradictio in adiecto
--
http://mail.python.org/mailman/listinfo/python-list
* John Salerno (2006-08-19 02:20 +0100)
> Ok, I know it's been asked a million times, but I have a more specific
> question so hopefully this won't be just the same old post. I've tried a
> few different editors, and I really like UltraEdit, but it's
> Windows-only and I'm working more on Linux
On Sat, Aug 19, 2006 at 09:08:21AM -0700, Bryan wrote:
> Jack Diederich wrote:
> > On Fri, Aug 18, 2006 at 02:21:40PM -0700, Bryan wrote:
> >> i've written a program that uses python c api code that lives in a
> >> shared library that is loaded by a custom apache module (mod_xxx). this
> >> pyth
cage wrote:
> hello
>
> can i write a eof to a file descriptor without closing it?
> like:
> fd.write(EOF)
> or something
>
> grts,
> ruben
No but there is an EOF to the file anyway, even if it is open.
I recall under MS-DOS, you could create a file of size N without writing to
it (some INT21
On 2006-08-19 12:42:31, Marc 'BlackJack' Rintsch wrote:
> many_years_after wrote:
>
>> what I want to do is just to make numbers as people input some Chinese
>> character(hanzi,i mean).The same character will create the same
>> number.So I think ascii code can do this very well.
>
> No it can't.
"Rafał Janas" <[EMAIL PROTECTED]> writes:
> Hi,
>
> How to read/write value over different classes (in different files)
> Something like global values?
You need to be more specific about what exactly you're trying
to accomplish. Some code whould be great.
Maybe import statement is what you're lo
Mark E. Fenner wrote:
> Paul McGuire wrote:
>
> > "Mark E. Fenner" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >> Hello all,
> >>
> >
> >>
> >> Here's my class of the objects being copied:
> >>
> >> class Rule(list):
> >> def __init__(self, lhs=None, rhs=None, nClasses=0,
Is there anyway to catch the following type of bug in Python code:
message = 'This is a message'
# some code
# some more code
if some_obscure_condition:
nessage = 'Some obscure condition occured.'
# yet more code
# still more code
print message
In the above example, message should be set to '
Hi,
Exactly I want to set global value (like session - who is log in)
I writing simple program with more than one class - every window has different
class in different file.
Example:
2 files (main and wind). Main is main window and wind is child window.
I want to send value from main to child from
"asincero" <[EMAIL PROTECTED]> writes:
> In the above example, message should be set to 'Some obscure condition
> occured.' if some_obscure_condition is True. But due to a lack of
> sleep, and possibly even being drunk, the programmer has mistyped
> message. These types of bugs would easily be c
asincero wrote:
> Is there anyway to catch the following type of bug in Python code:
>
> message = 'This is a message'
> if some_obscure_condition:
>nessage = 'Some obscure condition occured.'
> print message
>
>
> In the above example, message should be set to 'Some obscure condition
> occured
Hey!
I am trying to embedd python into a C programe of mine. But when I try
to compile the C code, gcc gives errors like "undefined reference to
`Py_Finalize'" and the same kind for all the other functions. I have
incuded "Python.h".
Any idea what might be wrong?
Thanks.
--
http://mail.python.
Does anyone know how to install a patch on Winodws? For example, I want
to install the patch 'ocmalloc-free-arenas.diff' in Python 2.3.
thanks...
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
Is there any module for searching google groups, something like
PyGoogle ?
Thank you in advance,
Efi
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
it is possible to stop all threads (application) from thread of
application:
App
|-MainThread
|-WebServer
|-CmdListener # From this I want to stop App
The sys.exit isn't working...
Amadeusz Jasak (Poland)
--
http://mail.python.org/mailman/listinfo/python-list
OK, I am not ashamed to admit that I am ashamed as I didn't search the
group for my problem before posting it yet again. The solution was
right there.
I have link in my libpython2.4.so while compiling.
$gcc -I/usr/include/python2.4/ -lpython2.4 -o foo foo.c
Shuaib wrote:
> Hey!
>
> I am trying
djoefish wrote:
> Does anyone know how to install a patch on Winodws? For example, I want
> to install the patch 'ocmalloc-free-arenas.diff' in Python 2.3.
You can get patch (and quite a lot besides) for win32 from
the UnxUtils project:
http://sourceforge.net/projects/unxutils
TJG
--
http://ma
Are there any differences between this module and the one already
present in numpy?
http://www.scipy.org/doc/numpy_api_docs/numpy.lib.polynomial.html
Cheers,
Bas
--
http://mail.python.org/mailman/listinfo/python-list
Tim Golden wrote:
> djoefish wrote:
> > Does anyone know how to install a patch on Winodws? For example, I want
> > to install the patch 'ocmalloc-free-arenas.diff' in Python 2.3.
>
> You can get patch (and quite a lot besides) for win32 from
> the UnxUtils project:
>
> http://sourceforge.net/proj
"djoefish" <[EMAIL PROTECTED]> writes:
> Tim Golden wrote:
>> djoefish wrote:
>> > Does anyone know how to install a patch on Winodws? For example, I want
>> > to install the patch 'ocmalloc-free-arenas.diff' in Python 2.3.
>>
>> You can get patch (and quite a lot besides) for win32 from
>> the Un
Hi all,
First post to the list, so first off, I'm new to Python and everything
surrounding it so if you can please ignore my ignorance.
I setup a cherryPY server so that I could use sabnzbd but once, I have
installed/configured what I was told by the tutorials and everything else.
I run ubuntu x8
Hi!
I am trying to embed python into a C programe of mine. When the
execution reaches the following line
pModule = PyImport_Import(pName);
It causes a Segmentation Fault Error. pModule is of type PyObject *, so
is pName.
What could be the possible reasons for the error?
Thanks for your time.
Jorge Godoy wrote:
> "djoefish" <[EMAIL PROTECTED]> writes:
>
> > Tim Golden wrote:
> >> djoefish wrote:
> >> > Does anyone know how to install a patch on Winodws? For example, I want
> >> > to install the patch 'ocmalloc-free-arenas.diff' in Python 2.3.
> >>
> >> You can get patch (and quite a lo
Gerhard Fiedler wrote:
> Well, ASCII can represent the Unicode numerically -- if that is what the OP
> wants.
No. ASCII characters range is 0..127 while Unicode characters range is
at least 0..65535.
> For example, "U+81EC" (all ASCII) is one possible -- not very
> readable though -- representat
many_years_after wrote:
> John Machin wrote:
> > many_years_after wrote:
> > > Hi,everyone:
> > >
> > > Have you any ideas?
> > >
> > > Say whatever you know about this.
> > >
> >
> > Perhaps you had better explain what you mean by "ascii code of Chinese
> > characters". Chinese charact
On 2006-08-19 16:54:36, Peter Maas wrote:
> Gerhard Fiedler wrote:
>> Well, ASCII can represent the Unicode numerically -- if that is what the OP
>> wants.
>
> No. ASCII characters range is 0..127 while Unicode characters range is
> at least 0..65535.
Actually, Unicode goes beyond 65535. But rig
Gabriel Genellina wrote:
> At Friday 18/8/2006 11:45, Rob Cowie wrote:
>
> >Pydoc seems to be capable of writing documentation for all modules
> >within a package by simply pointing it to the package on the command
> >line...
> >
> >pydoc -w
> >
> >Certainly, the method writedocs() appears to des
many_years_after wrote:
> hi:
>
> what I want to do is just to make numbers as people input some Chinese
> character(hanzi,i mean).The same character will create the same
> number.So I think ascii code can do this very well.
>
Possibly you have "create" upside-down. Could you possibly be talking
I am running Python 2.3 on Linux.
I am trying to write a program to simulate a hardware mixer to play
theatrical sound cues. I need to be able to play multiple sound
channels at once, controlling volume by channel as well as globally. I
also need to be able to pan a channel through left and r
Thanks for the reply. Unfortunately, a simple "+offset" type solution
isn't really accurate enough for the kind of scenario I'm looking at.
I'm often dealing with different timezones with DST changeovers on
different dates or even different times of day! So I need
industrial-strength timezone han
Bas wrote:
> Are there any differences between this module and the one already
> present in numpy?
>
> http://www.scipy.org/doc/numpy_api_docs/numpy.lib.polynomial.html
>
> Cheers,
> Bas
>
Yes, there are quite a few. This module uses a multi-precision library
(clnum) to make the calculations m
Hi there...
I'm still pretty new to turbogears. but i have gotten pretty familiar
with it
i'm just trying to clear something up, i'm having a difficult time
using \ when declaring a string expression
such as tempname="\"..it says that the line is single qouted.
i want this because using python
Joel Rosdahl wrote:
> John Salerno <[EMAIL PROTECTED]> writes:
>
>> What is really confusing is that I did a search for 'sqlite' in my
>> Ubuntu repositories and it came up with entries like this:
>>
>> python2.4-pysqlite1.1 python interface to SQLite 3
>> python2.4-pysqlite2 python interfac
Sybren Stuvel wrote:
> John Salerno enlightened us with:
>> I'd really like to learn vim, but I spent days just trying to figure
>> out how to get the syntax highlighting and indentation working,
>> where these settings are and how to edit them
>
> Stop being a man and just ask for directions :)
milosz wrote:
> Did you try gedit?
> It has an options, which you need, I think.
> Regards.
>
Yes, I tried it and it's alright, but it doesn't support smart
indentation or much customizing of syntax highlighting (i.e. you can
change the color of functions, but you can't define what a 'function'
Try using: tempname = "\\"
Jim
OriginalBrownster wrote:
> Hi there...
>
> I'm still pretty new to turbogears. but i have gotten pretty familiar
> with it
>
> i'm just trying to clear something up, i'm having a difficult time
> using \ when declaring a string expression
>
> such as tempname="\"..i
asincero wrote:
> Is there anyway to catch the following type of bug in Python code:
>
> message = 'This is a message'
> # some code
> # some more code
> if some_obscure_condition:
>nessage = 'Some obscure condition occured.'
> # yet more code
> # still more code
> print message
>
>
> In the ab
Bill Pursell wrote:
> Georg Brandl wrote:
>> Paul Rubin wrote:
>> > Sybren Stuvel <[EMAIL PROTECTED]> writes:
>> >> Because of "there should only be one way to do it, and that way should
>> >> be obvious". There are already the str.join and unicode.join methods,
>> >
>> > Those are obvious???
>>
>>
Leo Jay wrote:
> dear all,
> i have a python com server like this:
>
> import win32com.server.register
>
> class HelloWorld:
> _reg_clsid_ = "{B0EB5AAB-0465-4D54-9CF9-04ADF7F73E4E}"
> _reg_desc_ = 'Python test com server'
> _reg_progid_= "Leojay.ComServer"
>
Collin Winter wrote:
> While working on a test suite for unittest these past few weeks, I've
> run across some behaviours that, while not obviously wrong, don't
> strike me as quite right, either. Submitted for your consideration:
>
> 1) TestCase.tearDown() is only run if TestCase.setUp() succeede
Hi Thomas,try the CP mailinglist: http://www.cherrypy.org/wiki/CherryPyMailingLists , they can probably answer your question.cheers,Dimitri
On 8/19/06, Thomas McLean <[EMAIL PROTECTED]> wrote:
Hi all,First post to the list, so first off, I'm new to Python and everythingsurrounding it so if you can
djoefish wrote:
> Jorge Godoy wrote:
> > "djoefish" <[EMAIL PROTECTED]> writes:
> >
> > > Tim Golden wrote:
> > >> djoefish wrote:
> > >> > Does anyone know how to install a patch on Winodws? For example, I want
> > >> > to install the patch 'ocmalloc-free-arenas.diff' in Python 2.3.
> > >>
> > >>
that stores tempname as "\\"
..
Jim wrote:
> Try using: tempname = "\\"
> Jim
>
>
> OriginalBrownster wrote:
> > Hi there...
> >
> > I'm still pretty new to turbogears. but i have gotten pretty familiar
> > with it
> >
> > i'm just trying to clear something up, i'm having a difficult time
> > us
unexpected wrote:
> If have a list from 1 to 100, what's the easiest, most elegant way to
> print them out, so that there are only n elements per line.
I've run into this problem a few times, and although many solutions
have been presented specifically for printing I would like to present a
more g
I have something like the following (using Python 2.5 syntax):
class adapt(object):
def __init__(self):
self.iterator = self.generator()
self.n = 0
def generator(self):
while True:
while True:
if (yield 1):
if (yield 1
1 - 100 of 127 matches
Mail list logo