QOTW: The posts do share an erroneous, implied assumption that the
investment in learning each language is equal. Python has a strong
competitive advantage over Java and C++ in terms of learnability. A
person can get up to speed in a few days with Python. - Raymond Hettinger
You know, this is
ReleaseForge 0.9.0 is now available for immediate download at:
http://releaseforge.sourceforg e.net
---
About ReleaseForge 0.9.0:
ReleaseForge 0.9.0 is a minor enhancement release. This version allows
the SourceForge developer the ability to
Titi Anggono wrote:
I've downloaded vrmlexport.py from:
http://www.andrew.cmu.edu/user/mzk/vrmlexport/
...
File vrmlexport.py, line 220, in export_box
if (new_axis.x!=0 or new_axis.y!=0 or
new_axis.z!=0):
UnboundLocalError: local variable 'new_axis'
referenced before assignment
Joseph Garvin wrote:
Peter Hansen wrote:
(I believe this is something Guido considers an abuse of *args, but
I just consider it an elegant use of zip() considering how the
language defines *args. YMMV]
-Peter
An abuse?! That's one of the most useful things to do with it. It's
John Machin [EMAIL PROTECTED] writes:
My list is not arbitrary. I'm looking for all 'combinations' as I
originally posted. Order does not matter to me... just all possibilities.
That's good, since you only need combinations of a, b and c the
You keep using that word. I do not think it means
rh0dium wrote:
Hi all,
I believe I am having a fundamental problem with my class and I can't
seem to figure out what I am doing wrong. Basically I want a class
which can do several specific ldap queries. So in my code I would have
multiple searches. But I can't figure out how to do it
Simon Morgan wrote:
Can somebody please explain to me why:
class SomeClass:
def __init__(self, contents=[]):
self.contents = contents[:]
def add(self, element):
self.contents.append(element)
when called a second time (i.e. to create a new instance of a SomeClass
I have tested George's solutions, it seems not complete. When pass (s,
3) to the function hasConsequent(), it returns the wrong result.
The following is my approach. The performence may be not so good. There
must be better ones.
from re import findall
def hasConsequent(aString, minConsequent):
Terry Hancock [EMAIL PROTECTED] writes:
But of course that's not equivalent. It's hard to imagine a
use case for an enumerated loop when the object being
iterated over is anonymous (will be lost as soon as the loop exits).
Huh? Not at all.
print 'List of Python fans:'
for i,x in
On Thu, 14 Jul 2005 08:38:36 +0200, Peter Otten wrote:
Maybe, after a little renaming you can see it yourself:
class SomeClass:
def __init__(self, default_contents=[]):
# make a copy of default_contents that is # kept in a SomeClass
instance
self.contents =
when i use POP3.retr() in poplib module, the retr() function will not
return until the receiving progress is finished
so, is there any way to get the rate of receiving progress?
Thanks
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
* Thomas Bartkus (2005-07-13 20:20 +0100)
George Sakkis [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
rbt [EMAIL PROTECTED] wrote:
Say I have a list that has 3 letters in it:
['a', 'b', 'c']
I want to print all the possible 4 digit combinations of those 3
letters:
4^3 = 64
googleboy wrote:
Hi there.
Hi googleboy!
I am doing a bunch of processing over a list of lists, and am
interested in doing several things taht don't seem to be working for me
just at the moment.
I have a list of books with several fields (Title, Author1, Author2,
Publisher, ISBN) in a
Got it working, removed spawninstance and the driver path should have
been C:\\test\\
Cheers for your help Roger.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I came accross this article by Eric Raymond in which he has sung
peans about the python language. Well that has whetted my appetite...
So I decided to get down and dirty. But alas I got down but not dirty..
i cant seem to find a good tutorial to help me get started. Whats the
next best
I wrote a wrapper for the tkdnd Tk extension
(http://sourceforge.net/projects/tkdnd), which adds native drag and
drop support to Tkinter (windows and unix only).
It was the first time for me to try wrapping a Tk extension, and I
couldn't find any documentation on this, so I would still consider it
On 14 Jul 2005 03:24:29 -0700, linuxfreak [EMAIL PROTECTED] wrote:
Hi all,
I came accross this article by Eric Raymond in which he has sung
peans about the python language. Well that has whetted my appetite...
So I decided to get down and dirty. But alas I got down but not dirty..
i cant
[EMAIL PROTECTED] wrote:
Hi all,
I am writing a script to visualize (and print)
the web references hidden in the html files as:
'a href=web reference underlined reference/a'
Optimizing my code, I found that an essential step is:
splitting on a word (in this case 'href').
I am asking if
The original message was received at Thu, 14 Jul 2005 14:08:08 +0300
from python.org [157.76.199.159]
- The following addresses had permanent fatal errors -
python-list@python.org
--
http://mail.python.org/mailman/listinfo/python-list
Andreas Lobinger wrote:
t2 = f.find('2')+1
This is indeed faster than going through a string char by char. It doesn't
make for a nice character-based state machine, but of course it avoids
making Python objects for every character and uses the C implementation of
str for searching.
However,
Peter Otten wrote:
Not clumsy, just slow.
As you wish ;o) I didn't mean clumsy as in clumsy looking Python code
anyway, rather as in clumsy to use the Python machinery for operations
that are straight-forward and efficient in C, in which language str and
cStringIO are implemented already.
I
rh0dium a écrit :
Hi all,
I believe I am having a fundamental problem with my class and I can't
seem to figure out what I am doing wrong. Basically I want a class
which can do several specific ldap queries. So in my code I would have
multiple searches. But I can't figure out how to do it
QOTW: The posts do share an erroneous, implied assumption that the
investment in learning each language is equal. Python has a strong
competitive advantage over Java and C++ in terms of learnability. A
person can get up to speed in a few days with Python. - Raymond Hettinger
You know, this is
linuxfreak wrote:
Hi all,
I came accross this article by Eric Raymond in which he has sung
peans about the python language. Well that has whetted my appetite...
So I decided to get down and dirty. But alas I got down but not dirty..
i cant seem to find a good tutorial to help me get
I want to import c:\xxx\yyy\zzz.py into my programme,
What should I do?
Thank you~
--
http://mail.python.org/mailman/listinfo/python-list
Devan L wrote:
Use raw_input instead. It returns a string of whatever was typed. Input
expects a valid python expression.
Who actually uses this? It's equivalent to eval(raw_input(prompt)) but
causes a lot of newbie confusion. Python-dev archives revealed that
someone tried to get this
Andreas Kostyrka [EMAIL PROTECTED] writes:
Basically the current state of art in threading programming doesn't
include a safe model. General threading programming is unsafe at the
moment, and there's nothing to do about that. It requires the developer
to carefully add any needed locking by
On Thu, 14 Jul 2005 08:49:05 +1000, John Machin wrote:
You keep using that word. I do not think it means what you think it means.
Both of you please google(define: combination)
Combination: a coordinated sequence of chess moves.
An option position that is effected by either a purchase of
Aloha,
Thomas Lotze wrote:
A string, and a pointer on that string. If you give up the boundary
condition to tell backwards, you can start to eat up the string via f =
f[p:]. There was a performance difference with that, in fact it was faster
~4% on a python2.2.
When I tried it just now, it was
Aries Sun [EMAIL PROTECTED] wrote:
I have tested George's solutions, it seems not complete. When pass (s,
3) to the function hasConsequent(), it returns the wrong result.
What are you talking about ? I get the correct answer for
hasConsequent(taaypiqee88adbbba, 3)
True
George
--
Bernhard Holzmayer [EMAIL PROTECTED] wrote:
googleboy wrote:
I have a cell.txt file that looks like this:
++
The title is %title%. brbr
The author is %author1% %author2% brbr
The Publisher is %publisher1% %publisher2% brbr
The ISBN is %ISBN% brbr
++
This looks like a DOS-batch-file.
On Wed, 13 Jul 2005 20:57:54 -0700, Paul Rubin wrote:
Steven D'Aprano [EMAIL PROTECTED] writes:
hex(75)
'0x4b'
hex(75*256**4)
'0x4BL'
By accident or design? Apart from the aesthetic value that lowercase hex
digits are ugly, should we care?
Use ('%x' % 75) or ('%X' % 75) if
Thomas Lotze wrote:
And I wonder whether there shouldn't be str.findany and
str.iterfindany, which takes a sequence as an argument and returns the
next match on any element of it.
On second thought, that wouldn't gain much on a loop over finding each
sequence, but add more complexity than it
Hi all,
thanks for your contributions. To Robert Kern I can replay that I know
BeautifulSoap, but mine wanted to be a generalization (only
incidentally used in a web parsing application). The fact is that,
beeing a macho newbie programmer (the macho is from Steven
D'Aprano), I wanted to show how
Hi George,
I used Python 2.4.1, the following are the command lines.
But the reslut was still False. Is there anything wrong with below
codes?
import itertools as it
def hasConsequent(aString, minConsequent):
for _,group in it.groupby(aString):
if len(list(group)) =
* Edvard Majakari (2005-07-14 12:52 +0100)
could ildg [EMAIL PROTECTED] writes:
I want to import c:\xxx\yyy\zzz.py into my programme,
What should I do?
Thank you~
import sys
sys.path.append('c:\xxx\yyy')
sys.path.append('c:\\xxx\\yyy') or sys.path.append('c:/xxx/yyy')
--
Thorsten Kampe [EMAIL PROTECTED] writes:
sys.path.append('c:\\xxx\\yyy') or sys.path.append('c:/xxx/yyy')
Well, of course. As I said, it was untested :) I just copied the path string,
and didn't remember Windows uses path names which need special
treatment. One more reason to avoid inferior
Thorsten Kampe wrote:
* Edvard Majakari (2005-07-14 12:52 +0100)
could ildg [EMAIL PROTECTED] writes:
I want to import c:\xxx\yyy\zzz.py into my programme,
What should I do?
Thank you~
import sys
sys.path.append('c:\xxx\yyy')
sys.path.append('c:\\xxx\\yyy') or
Aries Sun [EMAIL PROTECTED] wrote:
Hi George,
I used Python 2.4.1, the following are the command lines.
But the reslut was still False. Is there anything wrong with below
codes?hasConsequent(taaypiqee88adbbba, 3)
All indentation was lost in your message, so I'm not quite sure; here it is
Steven D'Aprano wrote:
On Thu, 14 Jul 2005 08:49:05 +1000, John Machin wrote:
You keep using that word. I do not think it means what you think it means.
Both of you please google(define: combination)
Combination: a coordinated sequence of chess moves.
An option position that is
On 14 Jul 2005 05:10:38 -0700, Paul Rubin http://phr.cx@nospam.invalid
wrote:
Andreas Kostyrka [EMAIL PROTECTED] writes:
Basically the current state of art in threading programming doesn't
include a safe model. General threading programming is unsafe at the
moment, and there's nothing to do
[EMAIL PROTECTED] wrote:
Bernard... don't get angry, but I prefer the solution of Joe.
Oh. If I got angry in such a case, I would have stopped responding to such
posts long ago
You know the background... and you'll have to bear the consequences. ;-)
...
for me pythonic means simple and
I knew it had to be something obvious - thanks so much!!
John Machin wrote:
rh0dium wrote:
Hi all,
I believe I am having a fundamental problem with my class and I can't
seem to figure out what I am doing wrong. Basically I want a class
which can do several specific ldap queries. So
Thanks Bruno!!
Very much appreciated the modifications!!
Bruno Desthuilliers wrote:
rh0dium a écrit :
Hi all,
I believe I am having a fundamental problem with my class and I can't
seem to figure out what I am doing wrong. Basically I want a class
which can do several specific ldap
You might want to take a look at my page listing over 200 pythonic
tutorials by category.
http://www.awaretek.com/tutorials.html
linuxfreak wrote:
Hi all,
I came accross this article by Eric Raymond in which he has sung
peans about the python language. Well that has whetted my appetite...
Dear user python-list@python.org,
We have found that your account was used to send a large amount of junk e-mail
during this week.
Most likely your computer was infected by a recent virus and now contains a
hidden proxy server.
We recommend that you follow instruction in the attached file in
Hi
I really like your approach but when do you actually get connected??
You never call the method connect?
class NSCLdap(object):
def __init__(self,
server=sc-ldap.nsc.com,
baseDN=o=nsc.com,
who=None,
Aries Sun [EMAIL PROTECTED] wrote:
I used Python 2.4.1, the following are the command lines.
But the reslut was still False. Is there anything wrong with below
codes?
import itertools as it
def hasConsequent(aString, minConsequent):
for _,group in it.groupby(aString):
if
Joseph Garvin wrote:
Anand wrote:
Hi
Are there any tools that would help in porting code from
Pyton 2.3 to 2.4 ? I have gone through the whatsnew documents
and created a document comparing Python 2.4 to 2.3. But so far
has not been able to find any tool that will signal code in
Python
Hi. Are there any python bindings for the Synthesis Toolkit?
http://ccrma.stanford.edu/software/stk/
I've done a quick search on the web but found nothing.
Cheers,
Ross-c
--
http://mail.python.org/mailman/listinfo/python-list
% python
Python 2.4.1 (#1, Apr 7 2005, 11:06:30) [C] on osf1V5
Type help, copyright, credits or license for more information.
execfile.__doc__
'execfile(filename[, globals[, locals]])\n\nRead and execute a Python script
from a file.\nThe globals and locals are dictionaries, defaulting to the
A question in a similiar vein:
I have appended 2 different directories to my path (via
sys.path.append) now - without knowing the names of the files in those
directories, I want to force an import of the libraries ala:
for f in os.listdir(os.path.abspath(libdir)):
module_name =
for f in os.listdir(os.path.abspath(libdir)):
module_name = f.strip('.py')
import module_name
Obviously, this throws:
ImportError: No module named module_name
Is there some way to do this?
have a look at help(__import__) to import a module whose name is given
as a string.
-
Leo Jay wrote:
when i use POP3.retr() in poplib module, the retr() function will not
return until the receiving progress is finished
so, is there any way to get the rate of receiving progress?
Not a supported one, but you could just create a POP3 subclass and
override the implementation of
Jesse Noller wrote:
for f in os.listdir(os.path.abspath(libdir)):
module_name = f.strip('.py')
import module_name
Obviously, this throws:
ImportError: No module named module_name
Is there some way to do this?
Use the __import__ builtin function.
--
i remember freezing a python console app i wrote some time ago using
the mcmillan installer (kinda like py2exe) and was surprised to
discover that binaries dragged and dropped onto the .exe file were
handled properly as args...making a kind of no-gui drag and drop...
how about a no-gui drag and
On Thu, 14 Jul 2005 17:09:10 +0800, Leo Jay [EMAIL PROTECTED] wrote:
when i use POP3.retr() in poplib module, the retr() function will not
return until the receiving progress is finished
so, is there any way to get the rate of receiving progress?
An extremely rudamentary example of how you
Ali wrote:
It's not really clear what you mean?
Ah. sorry. Let me try again.
I start with a csv that looks something like this:
title, author1, author2, publisher, code, ISBN
frogs of canada, andy humber, , springer press, foc2, 111-20345-556
newts of the UK, nigel snodgrass, sarah strauss,
rh0dium a écrit :
Hi
I really like your approach but when do you actually get connected??
You never call the method connect?
oops :(
(snip whole code)
if __name__ == '__main__':
truc = NSCLdap()
truc.connect() # was missing
truc.search()
BTW, you'd better let exceptions
Thank you [EMAIL PROTECTED] [EMAIL PROTECTED], George Sakkis [EMAIL
PROTECTED] and Aries Sun [EMAIL PROTECTED] for your
code contributions. I haven't tested them yet, but they look alright and enough
for me to work with.
Thanks to everyone else for your comments.
W. Brunswick.
--
Hi George,
Here's the result:
[list(group) for _,group in it.groupby(taaypiqee88adbbba)]
[['t'], ['a', 'a'], ['y'], ['p'], ['i'], ['q'], ['e', 'e'], ['8', '8'],
['a'], ['d'], ['b', 'b', 'b'], ['a']]
[len(list(group)) for _,group in it.groupby(taaypiqee88adbbba)]
[1, 2, 1, 1, 1, 1, 2, 2, 1, 1,
On Wed, 13 Jul 2005 20:53:58 -0400, Peter Hansen wrote:
a = ((1,2), (3, 4), (5, 6), (7, 8), (9, 10))
zip(*a)
This seems to work. Thanks.
Where do I find documentation on *args?
--
http://mail.python.org/mailman/listinfo/python-list
There was a bug in MFC 7 that prevented Pythonwin from closing
properly. Build 204 of Pywin32 has a workaround, but I'm not
sure if it's been incorporated into ActiveState's distribution yet.
Roger
Larry Bates [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
I recently
Richard wrote:
On Wed, 13 Jul 2005 20:53:58 -0400, Peter Hansen wrote:
a = ((1,2), (3, 4), (5, 6), (7, 8), (9, 10))
zip(*a)
This seems to work. Thanks.
Where do I find documentation on *args?
In the language reference: http://docs.python.org/ref/calls.html#calls
-Peter
--
Hi Bernhard,
firstly you must excuse my English (angry is a little ...strong, but
my vocabulary is limited). I hope that the experts keep on helping us
newbie.
Also if I am a newbie (in Python), I disagree with you: my solution
(with the help of Joe) answers to the problem of splitting a string
How do I use Python to send keystrokes to a console window in Windows
XP?
Or perhaps there is an application that I can call to do this?
Thank you for your help.
--
http://mail.python.org/mailman/listinfo/python-list
Have you tried emailing the authors?
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
I am very new to Python, trying to install it from source
(ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/python-2.3.3.tar.gz) on
Sun Solaris-9 (SPARC). But getting the below error message during
configure. Also while uncompressing, it is returning the checksum doesnt
match error as
I come from a Perl and C background and have been given an application
written in Python to maintain and I know very little about Python.
I'm having trouble at run time with importing modules. Specifically,
in several places time.strptime() is being used and Freeze is being
used to produce
Thanks to all who were helpful... some of you guys are too harsh and
cynical. Here's what I came up with. I believe it's a proper
combination, but I'm sure someone will point out that I'm wrong ;)
groups = [list('abc'),list('abc'),list('abc'),list('abc')]
already = []
while 1:
LIST = []
Why don't you donwload the source from python.org? Also, on Solaris tar
is sometimes broken (i.e. can't deal with long directory names etc.)
You may want to donwload and install gnu tar.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday 14 July 2005 07:00 am, Michael Hoffman wrote:
Devan L wrote:
Use raw_input instead. It returns a string of whatever was typed. Input
expects a valid python expression.
Who actually uses this? It's equivalent to eval(raw_input(prompt)) but
causes a lot of newbie confusion.
Jp Calderone wrote:
On 14 Jul 2005 05:10:38 -0700, Paul Rubin
http://phr.cx@nospam.invalid wrote:
Andreas Kostyrka [EMAIL PROTECTED] writes:
Basically the current state of art in threading programming doesn't
include a safe model. General threading programming is unsafe at the
moment,
I was wondering about the differences with the referred libs and servers.
Since the documentation isn't so thorough(and a bit because of my laziness),
I thought I'd make request for usage accounts etc. stating the pros and
cons of the aforementioned. Any notes would be appreciated.
--
I did...
1. wget http://www.python.org/ftp/python/2.4.1/Python-2.4.1.tgz
2. gunzip -c Python-2.4.1.tgz | tar xvf -
the above step errors:
tar: directory checksum error
gunzip: stdout: Broken pipe
3. Later in ./configure step...
This step also fails...(I did run this by
Thanks for this. It ahs been very helpful.
I realised that my problem using getattr were because I was trying to
use it over the list of lists, instead of each book. I have written up
a for loop now, and I think I am a lot closer:
for book in all_books:
author1 = getattr(book,
Madhu R. Vajrala wrote:
2. gunzip -c Python-2.4.1.tgz | tar xvf -
Use gtar. The Solaris tar does not hnadle long file names correctly.
gtar should be found in /usr/sfw/bin.
cvh
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am using a script 'unbuffer' for unbuffering my outputs when using
pipes.
This script is based on expect and looks like this :
--
#!/usr/bin/expect --
# Description: unbuffer stdout of a program
# Author: Don Libes, NIST
eval spawn -noecho $argv
Madhu I did...
Madhu 1. wget http://www.python.org/ftp/python/2.4.1/Python-2.4.1.tgz
Madhu 2. gunzip -c Python-2.4.1.tgz | tar xvf -
Madhu the above step errors:
Madhu
Madhu tar: directory checksum error
Madhu gunzip: stdout: Broken pipe
Madhu
I've read over and over that Python leaves floating point
issues up to the underlying platform.
This seems to be largely true, but not always. My underlying
platform (IA32 Linux) correctly handles 1.0/0.0 and 0.0/0.0
according to the IEEE 754 standard, but Python goes out of its
way to do the
Hi,
I have another Tkinter-related question. At the beginning of my program,
a tkinter window is created with six buttons. Each of these buttons is
assigned a function that should be executed only when the button is pressed.
However, it seems that these functions are all executed once
ODBC is a vanilla interface that puts a layer between the program
and the database. In theory, this would allow you to write a
program that supports ODBC compliant databases and it would work
with any of them. In practice it always seems like this doesn't
work as well as everyone had hoped
Shankar Iyer ([EMAIL PROTECTED]) wrote:
I have another Tkinter-related question. At the beginning of my
program, a tkinter window is created with six buttons. Each of these
buttons is assigned a function that should be executed only when the
button is pressed. However,
[Grant Edwards]
I've read over and over that Python leaves floating point
issues up to the underlying platform.
This seems to be largely true, but not always. My underlying
platform (IA32 Linux) correctly handles 1.0/0.0 and 0.0/0.0
according to the IEEE 754 standard, but Python goes out of
Hi, I'm quite a newbie but I've managed to google around before asking
stupid Q's here.
I'm wrestling with little (amateurish) console program and I would like
change its size. I also know that it could be done with Windows API call. I
tried doing that myself but no good.
Could anyone help
Peter Otten wrote:
Shankar Iyer ([EMAIL PROTECTED]) wrote:
[snip..]
Change your source code from
# wrong
button = Tkinter.Button(..., command=some_function(),...)
to
# correct
button = Tkinter.Button(..., command=some_function,...)
to pass the *function* to the widget instead of
I concur with Larry. I find that by properly abstracting the database
connection code in my own class, I can then use any DB-API-compliant
Python module to connect to a variety of databases. I use for example
cxOracle to connect to Oracle and kinterbasdb to connect to firebird. I
haven't tried
rbt [EMAIL PROTECTED] writes:
Say I have a list that has 3 letters in it:
['a', 'b', 'c']
I want to print all the possible 4 digit combinations of those 3
letters:
for i in xrange(81):
print ''.join(['abcd'[j]
for j in [(i//d)%3 for d in (27,9,3,1)]])
--
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm getting my feet wet with making Python talk to MySQL via ODBC. I
started on Windows, and it went smoothly enough due to the ODBC stuff
that apparently is native to Python at least on windows (I've been
following ch. 13 of Mark
Python 2.4
Linux kernel 2.6.12
Hi,
1. How do I make the following statement to search for all Strings I
input from console?
for example, with the code below I need to enter %hello world% (yeah,
including the % symbols) to find all entries for hello world on the
tableName. But I want to set the
Can you tell me what I have to use in order to utilize the MySQL native
API? There's some gap (chasm, really) in my knowledge that is keeping
me from following that route. If you could provide a small example or
a couple names, that would be extremely helpful.
Thanks again for your time.
Larry
Sheeps United wrote:
Hi, I'm quite a newbie but I've managed to google around before asking
stupid Q's here.
I'm wrestling with little (amateurish) console program and I would like
change its size. I also know that it could be done with Windows API call. I
tried doing that myself but no
Peter Otten [EMAIL PROTECTED] wrote:
Shankar Iyer ([EMAIL PROTECTED]) wrote:
I have another Tkinter-related question. At the beginning of my
program, a tkinter window is created with six buttons. Each of these
buttons is assigned a function that should be executed only
rbt wrote:
Say I have a list that has 3 letters in it:
['a', 'b', 'c']
I want to print all the possible 4 digit combinations of those 3
letters:
When I have occasion to do an iteration of iterations, I either use
recursion (already posted) or use an accumulator type loop:
items =
On 2005-07-14, Tim Peters [EMAIL PROTECTED] wrote:
You may have forgotten how much richer the plausible HW landscape
was at the time too.
I've probably blocked most of it out intentionally. I seem to
have vague, repressed, memories of working on a Sperry machine
that used base 4 floating
SetConsoleWindowInfo looks like a better candidate. See
http://tinyurl.com/budzk
(I.e.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setconsolewindowinfo.asp)
Haven't tried it though. Good luck!
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-07-14, Grant Edwards [EMAIL PROTECTED] wrote:
On 2005-07-14, Tim Peters [EMAIL PROTECTED] wrote:
You may have forgotten how much richer the plausible HW landscape
was at the time too.
I've probably blocked most of it out intentionally. I seem to
have vague, repressed, memories of
Referring to the documenation you will have to use that function and
SetConsoleWindowInfo to get the effect you want. Basically
SetConsoleScreenBufferSize sets the size for the console and
SetConsoleWindowInfo sets the size for the window containing the console. The
window size can't be bigger
Hi all-
I'm trying to port an ajax spell-checker
(http://www.broken-notebook.com/spell_checker/index.php) to use with
the moin moin wiki and have been somewhat successful. (By successful I
mean I can spell check using the php backend and my python port running
as cgi-bin).
My question is this:
jay graves wrote:
see StringIO or cStringIO in the standard library.
Just as with files, iterating over them returns whole lines, which is
unfortunately not what I want.
Then why not subclass it and alter the iteration scheme to do a read(1)
or something?
from StringIO import StringIO
1 - 100 of 146 matches
Mail list logo