Xah Lee wrote:
> ...
> if you want software engineering books, i suggest try some books that
> are based on statistical survey, as opposed to some dignitary's
> “opinion” or current fashion & trends that comes with a jargon. These
> type of books are a dime a dozen, ever
syntax that represent a tree purely [was X#]
On Jan 21, 3:13 am, Pascal Costanza wrote:
> LOL: http://www.xsharp.org/samples/
Today, i was nosing about some blogs, which made me come to:
http://blog.fogus.me/2009/02/06/yegge-clojure-arc-and-lolita-or-days-of-future-past
in which he wrote: «Now
On Feb 12, 7:28 am, Xah Lee wrote:
> lisp machine keyboards.
>
> • Knite keyboard. I think this is one of the
> earlist.http://world.std.com/~jdostale/kbd/Knight.html
>
> • Symbolics earlier style keyboard (PN 364000), by Peter
> Painehttp://www.asl.dsl.pipex.com/sy
herald: Python surpasses Perl in popularity!
According to
“TIOBE Programming Community Index for November 2008” at
http://www.tiobe.com/content/paperinfo/tpci/index.html
it seems that Python has surpassed Perl in popularity this month!
Good for Python!
From my own personal experience in the pro
comp.lang.lisp,comp.lang.functional,comp.lang.perl.misc,comp.lang.python,comp.lang.java.programmer
2008-11-25
Recently, Steve Yegge implemented Javascript in Emacs lisp, and
compared the 2 languages.
http://steve-yegge.blogspot.com/
http://code.google.com/p/ejacs/
One of his point is about emac
On Nov 26, 5:45 am, Joshua Cranmer <[EMAIL PROTECTED]> wrote:
> > i cannot fathom what could possibly be difficult of
> > introducing or implementing a namespace mechanism into a language.
>
> Namespaces go to the very core of a language, name resolution.
> Retroactively adding such a feature is ex
nked. You'll
get a survey of today's languages, what they are, what they do, their
nature, their field, and where the landscape of languages might be
tomorrow.
plain text version follows.
---
Back to Computing and Its People.
Proliferation of Computing Language
Xah Lee wrote:
> > i cannot fathom what could possibly be difficult of
> > introducing or implementing a namespace mechanism into a language. I
> > do not understand, why so many languages that lacks so much needed
> > namespace for so long? If it is a social probl
On Nov 26, 8:42 am, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> XahLeewrote:
> >> The IT community has enough trouble getting a few ISPs to upgrade their
> >> DNS software. How are you going to get millions of general users to
> >> upgrade?
>
> > alright, that's speaks for Javascript.
>
> > But how
Xah Lee wrote:
> i cannot fathom what could possibly be difficult of
> introducing or implementing a namespace mechanism into a language.
Joshua Cranmer wrote:
>> Namespaces go to the very core of a language, name resolution.
>> Retroactively adding such a feature is extremely
dumb and blind can
all still lead a happy and fruitful life.
There is no crisis!
Xah
∑ http://xahlee.org/
☄
On Nov 26, 1:32 pm, Kaz Kylheku <[EMAIL PROTECTED]> wrote:
> On 2008-11-26, Xah Lee <[EMAIL PROTECTED]> wrote:
>
>
>
> > comp.lang.lisp,comp.lang.functional,comp.la
On Nov 26, 4:57 pm, Kaz Kylheku <[EMAIL PROTECTED]> wrote:
> On 2008-11-26, Xah Lee <[EMAIL PROTECTED]> wrote:
>
> > Can you see, how you latched your personal beef about anti software
> > crisis philosophy into this no namespace thread?
>
> I did no such thi
Great to see quality post from real expert once in a while. Thanks!
Xah
∑ http://xahlee.org/
☄
On Nov 29, 9:03 am, Stephane CHAZELAS <[EMAIL PROTECTED]>
wrote:
> There's a common confusion in this in the nature of /bin/sh.
> There's no standard (neither POSIX nor Unix) that specifies that
> /b
Wolfram Research's Mathematica Version 7 has just been released.
See:
http://www.wolfram.com/products/mathematica/index.html
Among it's marketing material, it has a section on how mathematica
compares to competitors.
http://www.wolfram.com/products/mathematica/analysis/
And on this page, there
On Nov 30, 7:30 pm, Xah Lee <[EMAIL PROTECTED]> wrote:
> Wolfram Research's Mathematica Version 7 has just been released.
>
> See: http://www.wolfram.com/products/mathematica/index.html
>
> Among it's marketing material, it has a section on how mathematica
2008-12-01
On Dec 1, 4:06 pm, Jon Harrop <[EMAIL PROTECTED]> wrote:
> Xah Lee wrote:
> > And on this page, there are sections where Mathematica is compared to
> > programing langs, such as C, C++, Java, and research langs Lisp,
> > ML, ..., and scripting langs Python,
On Dec 2, 12:21 pm, Lew <[EMAIL PROTECTED]> wrote:
> Xah Lee wrote:
> > LOL Jon. r u trying to get me to do otimization for you free?
>
> These are professional software development forums, not some script-
> kiddie cellphone-based chat room. "r" is spel
On Dec 2, 5:13 pm, Jon Harrop <[EMAIL PROTECTED]> wrote:
> XahLeewrote:
> > On Dec 1, 4:06 pm, Jon Harrop <[EMAIL PROTECTED]> wrote:
> >> Mathematica is a whopping 700,000 times slower!
>
> > LOL Jon. r u trying to get me to do otimization for you free?
>
> > how about pay me $5 thru paypal? I'm pr
On Dec 3, 8:24 am, Jon Harrop <[EMAIL PROTECTED]> wrote:
> My example demonstrates several of Mathematica's fundamental limitations.
enough babble Jon.
Come flying $5 to my paypal account, and i'll give you real code,
amongest the programing tech geekers here for all to see.
I'll show, what kind
your judgement), or it turns out
Mathematica 6 is necessary, or any problem that might occure, i offer
money back guarantee.
Xah
∑ http://xahlee.org/
☄
On Dec 3, 2:12 pm, "Thomas M. Hermann" <[EMAIL PROTECTED]> wrote:
> On Dec 3, 3:15 pm, Xah Lee <[EMAIL PROTECT
On Dec 3, 4:22 pm, "Thomas M. Hermann" <[EMAIL PROTECTED]> wrote:
> On Dec 3, 5:26 pm, Xah Lee <[EMAIL PROTECTED]> wrote:
>
>
>
> > Agreed. My paypal address is “xah @@@ xahlee.org”. (replace the triple
> > @ to single one.) Once you paid thru paypa
alright, here's my improved code, pasted near the bottom.
let me say a few things about Jon's code.
If we rate that piece of mathematica code on the level of: Beginner
Mathematica programer, Intermediate, Advanced, where Beginner is
someone who just learned tried to program Mathematica no more t
On Dec 4, 6:09 pm, [EMAIL PROTECTED] wrote:
> For the interested, with MMA 6, on a Pentium 4 3.8Ghz:
>
> The code that Jon posted:
>
> Timing[Export["image-jon.pgm", [EMAIL PROTECTED]@Main[2, 100, 4]]]
> {80.565, "image-jon.pgm"}
>
> The code that Xah posted:
>
> Timing[Export["image-xah.pgm", [EMA
For those interested in this Mathematica problem, i've now cleaned up
the essay with additional comments here:
• A Mathematica Optimization Problem
http://xahlee.org/UnixResource_dir/writ/Mathematica_optimization.html
The result and speed up of my code can be verified by anyone who has
Mathema
On Dec 7, 8:51 pm, [EMAIL PROTECTED] wrote:
> The following code works under 2.6
>
> def foo():
> a = 1
> <.tab..>b = 1
>
> but results in a TabError in Python 3k
>
> File "x.py", line 3
> b = 3
> ^
> TabError: inconsistent use of tabs and spaces in indentation
>
> T
On Dec 8, 5:10 am, Jon Harrop <[EMAIL PROTECTED]> wrote:
> Xah Lee wrote:
> > For those interested in this Mathematica problem, i've now cleaned up
> > the essay with additional comments here:
>
> > • A Mathematica Optimization Problem
> >
2008-12-08
Xah Lee wrote:
> > Also, in this discussion, thanks to Thomas M Hermann's $20 offered to
> > me for my challenge to you, that i have taken the time to show working
> > code that demonstrate many problems in your code.
A moron, wrote:
> You failed the cha
Dear George Neuner,
Xah Lee wrote:
> >The phenomenon of creating code that are inefficient is proportional
> >to the highlevelness or power of the lang. In general, the higher
> >level of the lang, the less possible it is actually to produce a code
> >that is as efficie
On Dec 8, 4:56 pm, Jon Harrop <[EMAIL PROTECTED]> wrote:
> Xah Lee wrote:
> > A moron, wrote:
> > > You failed the challenge that you were given.
>
> > you didn't give me a challenge.
>
> Thomas gave you the challenge:
>
> "What I want in
On Dec 8, 4:56 pm, Jon Harrop <[EMAIL PROTECTED]> wrote:
> Xah Lee wrote:
> > A moron, wrote:
> > > You failed the challenge that you were given.
>
> > you didn't give me a challenge.
>
> Thomas gave you the challenge:
>
> "What I want in
On Dec 8, 5:25 pm, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Lest anyone doubt that problem size is important for comparing program
> run times, consider ...
just in case there's any doubt:
Simply change these lines in Jon's program:
Main[9, 512, 4] to Main[9, 512, 4.]
and it will run faster.
A
On Dec 8, 4:07 am, Jon Harrop <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Well, its past 'tonight' and 6 hours to go till past 'tomorrow'.
> > Where the hell is it Zah Zah?
>
> Note that this program takes several days to compute in Mathematica (even
> though it takes under four secon
Jon Harrop moron wrote:
> Only for trivial input and not for the challenge you were given.
what challenge?
> That code is evaluated once to build the scene. There is no point in
> optimizing it.
The point is optimizing your incompetence.
> That performance issue only affects trivial problems an
in programing elisp in emacs, i can press “Ctrl+h f” to lookup the doc
for the function under cursor.
is there such facility when coding in perl, python, php?
(i'm interested in particular python. In perl, i can work around with
“perldoc -f functionName”, and in php it's php.net/functionName. Bot
Xah Lee wrote:
> > Let's say for example, we want to write a function that takes a vector
> > (of linear algebra), and return a vector in the same direction but
> > with length 1. In linear algebar terminology, the new vector is called
> > the “normalized” vector of
Xah Lee wrote:
> > For those of you who don't know linear algebra but knows coding, this
> > means, we want a function whose input is a list of 3 elements say
> > {x,y,z}, and output is also a list of 3 elements, say {a,b,c}, with
> > the condition that
> >
&g
On Dec 10, 2:47 pm, John W Kennedy <[EMAIL PROTECTED]> wrote:
> Xah Lee wrote:
> > In lisp, python, perl, etc, you'll have 10 or so lines. In C or Java,
> > you'll have 50 or hundreds lines.
>
> C:
>
> #include
> #include
>
> void normal(i
On Dec 11, 12:32 am, Gerard flanagan <[EMAIL PROTECTED]> wrote:
> Xah Lee wrote:
> > On Dec 10, 2:47 pm, John W Kennedy <[EMAIL PROTECTED]> wrote:
> >> Xah Lee wrote:
> >>> In lisp, python, perl, etc, you'll have 10 or so lines. In C
Xah Lee wrote:
• A Example of Mathematica's Expressiveness
http://xahlee.org/UnixResource_dir/writ/Mathematica_expressiveness.html
On Dec 11, 3:53 am, "William James" wrote:
> function normal( ary )
> { var div = Math.sqrt(
> ary.map(function(x) x*x).reduce(functio
On Dec 10, 2:47 pm, John W Kennedy wrote:
> Xah Lee wrote:
> > In lisp, python, perl, etc, you'll have 10 or so lines. In C or Java,
> > you'll have 50 or hundreds lines.
>
> C:
>
> #include
> #include
>
> void normal(int dim, float* x, f
On Dec 11, 6:50 am, the.brown.dragon.b...@gmail.com wrote:
;; Chicken Scheme. By the.brown.dragon...@gmail.com
(require 'srfi-1)
(define (normalize vec)
(map (cute / <> (sqrt (reduce + 0 (map (cute expt <> 2) vec
vec))
Is it possible to make it work in scsh? (i'm running scsh 0.6.4, and
don'
Hello, all!
I'm new to python. In Linux C programming, writing data to file and socket
share the same system call "write". But it seems that only data of string
type can be used for "write" and "send". So how to write binary data to file
and socket?
--
Sun Li
Department of Physics
Nanjing Univers
> >On Dec 10, 2:47 pm, John W Kennedy wrote:
> >> C:
>
> >> #include
> >> #include
>
> >> void normal(int dim, float* x, float* a) {
> >> float sum = 0.0f;
> >> int i;
> >> float divisor;
> >> for (i = 0; i < dim; ++i) sum += x[i] * x[i];
> >> divisor = sqrt(sum);
> >> fo
My application is trying to start twistd in a cross-platform way.
Unfortunately, it works fine on my linux system, but I do not
have windows, and I am trying to debug this remotely on a
system I never use :o(
Anyhow, here is the error I am getting:
cmd = '%s -y %s -l %s' % (conf.twistd, conf.t
>> cmd = '%s -y %s -l %s' % (conf.twistd, conf.tztac, conf.twistdlog)
>> status, output = commands.getstatusoutput(cmd)
> The commands module is Unix only. See its documentation :
> http://docs.python.org/library/commands.html
Ah. Doh!
I was going back and forth between all of the different wa
/html_correctness.html
plain text version follows.
---
HTML Correctness and Validators
Xah Lee, 2008-12-28
Some notes about html correctness and html validator.
Condition Of Website Correctness
My website “xahlee.org” has close to 4000 html files. All are valid
html files. “Valid” here
> Anyhow, I've replaced it with this:
>
>
> from subprocess import Popen, PIPE, STDOUT
> p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE,
> stderr=STDOUT, close_fds=True)
> output, unused = p.communicate()
> status = p.returncode
>
>
> Does that look more
Just spent 3 hours looking into Ruby today. Here's my short impression
for those interested.
* Why Not Ruby?
http://xahlee.org/UnixResource_dir/writ/why_not_Ruby.html
plain text version follows:
--
Why Not Ruby?
Xah Lee, 2008-12-31
Spent about 3
TZMud is a Python MUD server.
http://tzmud.googlecode.com/
A MUD is a text-based virtual environment
accessed via telnet, or with a specialised
MUD client.
TZMud development is still in early stages,
focusing on API and server stability.
TZMud uses several high-quality Python
libraries to facil
TZMud is a Python MUD server.
http://tzmud.googlecode.com/
A MUD is a text-based virtual environment
accessed via telnet, or with a specialised
MUD client.
TZMud development is still in early stages,
focusing on API and server stability.
TZMud uses several high-quality Python
libraries to fa
On Nov 20, 1:18 pm, Johannes Bauer <[EMAIL PROTECTED]> wrote:
> Hello group,
>
> I'm porting some code of mine to Python 3. One class has the __cmp__
> operator overloaded, but comparison doesn't seem to work anymore with that:
>
> Traceback (most recent call last):
> File "./parse", line 25, in
On Feb 23, 4:56 am, Roedy Green
wrote:
> On 19 Feb 2009 18:56:42 GMT, Albert van der Horst
> wrote, quoted or indirectly quoted someone
> who said :
>
> >Note here, that eXtreme
> >>Programing is one of the snake oil,
>
> Extreme programming is a variant on Deming's idea of constant
> incremental
On Feb 25, 3:34 am, nick_keighley_nos...@hotmail.com wrote:
> the nasty cons then only appears in a single function which
> you can hide in a library
I think the following answers that.
Q: If you don't like cons, lisp has arrays and hashmaps, too.
A: Suppose there's a lang called gisp. In gisp,
On Feb 25, 10:18 am, Xah Lee wrote:
> On Feb 25, 3:34 am, nick_keighley_nos...@hotmail.com wrote:
>
> > the nasty cons then only appears in a single function which
> > you can hide in a library
>
> I think the following answers that.
>
> Q: If you don't like
On Feb 26, 12:57 am, Miles Bader wrote:
> There is ample room for people to discuss this evolution, but approaches
> that start with "first, toss out the existing user interface" aren't gonna
> fly.
Who said to toss out existing user interface, you?
Are you saying that i start my suggestion wit
On Feb 26, 1:59 am, Tassilo Horn wrote:
> Xah Lee writes:
>
> Hi Xah,
>
> > is the suggestion of using modern standard shortcut set of X C V for
> > Cut, Copy, Paste, of which Linux uses, means it is turning emacs to a
> > fancy Notepad clone?
>
> The func
Of interest:
• Why Can't You Be Normal?
http://xahlee.org/Netiquette_dir/why_cant_you_be_normal.html
• Ban Xah Lee
http://xahlee.org/Netiquette_dir/ban_Xah_Lee.html
I consider this post relevant because i've been perennially gossiped
about in comp.lang.* groups today and in the pa
Favorite Lisp
Xah Lee, 2009-03-04
Javier wrote: “What open source implementation of Lisp do you prefer
and why?”
My fav is Emacs Lisp.
Because it is practical. More or less the most widely used lisp today.
Considered as a tool, it has probably some 10 times more users than
either Common Lisp or
Christian wrote:
On Mar 9, 1:22 pm, Christian wrote:
> XahLeeschrieb:> Of interest:
>
> > ⢠Why Can't You Be Normal?
> > http://xahlee.org/Netiquette_dir/why_cant_you_be_normal.html
>
> IMHO the point that you never reply to responds is what makes it
> problematic.
> I have seen 10 or more t
01&dq=xah+lee#PPA401,M1
Hilarious! (^o^)
He says: “... Barely considering du, he is easily to be neglected”.
What the hell does that mean!!? :)
Xah
∑ http://xahlee.org/
☄
--
http://mail.python.org/mailman/listinfo/python-list
I suppose you could wrap your value type in a class and reimplement the
builtin __cmp__ method to make it behave reversely or if it's a builtin
numeric value type you could even push the negative into the heap in the
first place?
2009/3/29 Apollo
>
> as we all known, in the standard module 'heapq
Hi,
You could try the python wrapper for OpenCV,
here is the link: http://code.google.com/p/ctypes-opencv/
Regards
Miles
--
http://mail.python.org/mailman/listinfo/python-list
Of interest:
• Why Must Software Be Rewritten For Multi-Core Processors?
http://xahlee.org/UnixResource_dir/writ/multi-core_software.html
plain text version follows.
--
Why Must Software Be Rewritten For Multi-Core Processors?
Xah Lee, 2009-06
On Jun 3, 11:50 pm, Xah Lee wrote:
> Of interest:
> • The Complexity And Tedium of Software Engineering
> http://xahlee.org/UnixResource_dir/writ/programer_frustration.html
Addendum:
The point in these short examples is not about software bugs or
problems. It illustrates, how seemingl
I offer the python community complete rewrite of the Python doc. The
resulting doc would be one of the best technical writing among Open
Source community's documentations. (a fair verification can be
obtained by polling professional writers and editor community, e.g.
staff writers of Time Mag or ot
dave wrote:
Hi Guys,
I've written a Markov analysis program and would like to get your
comments on the code As it stands now the final input comes out as a
tuple, then list, then tuple. Something like ('the', 'water') ['us']
('we', 'took')..etc...
I'm still learning so I don't know any ad
cm_gui wrote:
Python is slow.Almost all of the web applications written in
Python are slow. Zope/Plone is slow, sloow, so very slooow. Even
Google Apps is not faster. Neither is Youtube.
Facebook and Wikipedia (Mediawiki), written in PHP, are so much faster
than Python.
Okay, they probab
Mensanator wrote:
On May 22, 11:32 am, "Dutton, Sam" <[EMAIL PROTECTED]> wrote:
I've noticed that the value of math.pi -- just entering it at the interactive
prompt -- is returned as 3.1415926535897931, whereas (as every pi-obsessive
knows) the value is 3.1415926535897932... (Note the 2 at the
Dan Upton wrote:
On Thu, May 22, 2008 at 2:53 PM, Mensanator <[EMAIL PROTECTED]> wrote:
On May 22, 11:32 am, "Dutton, Sam" <[EMAIL PROTECTED]> wrote:
I've noticed that the value of math.pi -- just entering it at the interactive
prompt -- is returned as 3.1415926535897931, whereas (as every pi-
George Maggessy wrote:
Hi Gurus,
I'm a Java developer and I'm trying to shift my mindset to start
programming python. So, my first exercise is to build a website.
However I'm always falling back into MVC pattern. I know it's a
standard, but the implementation language affects the use of design
p
Tim Roberts wrote:
Monica Leko <[EMAIL PROTECTED]> wrote:
I have a specific format and I need binary representation. Does
Python have some built-in function which will, for instance, represent
number 15 in exactly 10 bits?
For the record, I'd like to point out that even C cannot do this. You
Jimmy wrote:
Hi to all
python now has grown to a versatile language that can
accomplish tasks for many different purposes. However,
AFAIK, little is known about its ability of kernel coding.
So I am wondering if python can do some kernel coding that
used to be the private garden of C/C++. For e
shabda raaj wrote:
I want to strip punctuation from text.
So I am trying,
p = re.compile('[a-zA-Z0-9]+')
p.sub('', 'I love tomatoes!! hell yeah! ... Why?')
' !! ! ... ?'
Which gave me all the chars which I want to replace.
So Next I tried by negating the regex,
p = re.compile('^[a-zA-Z0
notbob wrote:
I'm not posting this just to initiate some religious flame war, though it's
the perfect subject to do so. No, I actaully want some serious advice about
these two languages and since I think usenet is the best arena to find it,
here ya' go.
So, here's my delimna: I want to start a
Jimmy wrote:
On May 23, 3:05 pm, Andrew Lee <[EMAIL PROTECTED]> wrote:
Jimmy wrote:
Hi to all
python now has grown to a versatile language that can
accomplish tasks for many different purposes. However,
AFAIK, little is known about its ability of kernel coding.
So I am wondering if pyth
Diez B. Roggisch wrote:
Jimmy schrieb:
On May 23, 3:05 pm, Andrew Lee <[EMAIL PROTECTED]> wrote:
Jimmy wrote:
Hi to all
python now has grown to a versatile language that can
accomplish tasks for many different purposes. However,
AFAIK, little is known about its ability of kernel coding
Diez B. Roggisch wrote:
Andrew Lee schrieb:
Diez B. Roggisch wrote:
Jimmy schrieb:
On May 23, 3:05 pm, Andrew Lee <[EMAIL PROTECTED]> wrote:
Jimmy wrote:
Hi to all
python now has grown to a versatile language that can
accomplish tasks for many different purposes. However,
AFAIK, lit
On May 29, 9:26 am, たか <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I am developing the console which has the embedded Python interactive
> interpreter. So, I want to judge whether current command is complete
> or not. Below is good example to solve this problem.
> //
> //http://effbot.org/pyfaq/
Serge:
in your code i believe that you did one read of your whole input file, and then
you emitted that to the dc with textout. textout's use is actually
(x,y,string).
hence one line got printed (actually the whole file got printed but
truncated)
you will have to detect all the end of lines
I need a window's handle to be passed to external c++.
Thanks in advance
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 11, 12:58 pm, hardemr <[EMAIL PROTECTED]> wrote:
> Hello Everyone,
>
> I want to serialize and deserialize the objects into Memory not into
> file. How can i do that?
pickle.dumps and pickle.loads.
--Inyeol
--
http://mail.python.org/mailman/listinfo/python-list
Please take close look at the details of the two snapshots.
I need explanation and correcting this problem.
begin 666 after.png
MB5!.1PT*&@[EMAIL PROTECTED];0```#-" ,```#GL'7)`7-21T(`KLX<
MZ01G04U!``"[EMAIL PROTECTED]>B8``("[EMAIL PROTECTED]@``'4P
M``#J8 [EMAIL PROTECTED]/ ```P!03%1%
Thank you , Mike.
"Mike Driscoll" <[EMAIL PROTECTED]>
??:[EMAIL PROTECTED]
On Jul 2, 8:40 pm, "Leo Lee" <[EMAIL PROTECTED]> wrote:
> I need a window's handle to be passed to external c++.
> Thanks in advance
Are you talking about a wxPython wx.Win
"optimize": 2,
"ascii": 1,
"bundle_files": 1}},
zipfile = None,
windows = [test_wx],
)
"Leo Lee" <[EMAIL PROTECTED]> дÈëÏûÏ¢ÐÂÎÅ:[EMAIL PROTECTED]
> Please take close look at the details of the two snapshots.
> I need explanation and correcting this problem.
>
>
--
http://mail.python.org/mailman/listinfo/python-list
Serge:
in your code i believe that you did one read of your whole input file, and then
you emitted that to the dc with textout. textout's use is actually
(x,y,string).
hence one line got printed (actually the whole file got printed but
truncated)
you will have to detect all the end of lines
aybe there is already a tutorial available for performing this task?
Is this task straight forward?
Look forward to 'a' response!
B.Regards,
Lee
Feel free to request more information if you feel it is necessary.
--
http://mail.python.org/mailman/listinfo/python-list
Thankyou kindly for all the details you have provided. IT is nice to
know that there is a community to help.
I will let you know how I get on!
Many Thanks,
Lee
--
http://mail.python.org/mailman/listinfo/python-list
Anyone in Melbourne, Australia keen for the first sprint? I'm not sure
if I'll be available, but if I can it'd be great to work with some
others. Failing that, it's red bull and pizza in my lounge room :)
I've been working on some neat code for an AST optimizer. If I'm free
that weekend, I'll p
[EMAIL PROTECTED] wrote:
>> Yuck! No way!! If you *want* to make your code that hard to read, I'm
>> sure you can find lots of ways to do so, even in Python, but don't
>> expect Python to change to help you toward such a dubious goal.
>>
>
> Well, my actual code doesn't look like that. Trust me,
Anybody in Melbourne keen for this? Not sure if I'll be able to make it
myself, but I'd be interested to know if there's anybody in the area
keen to do the sprint.
Cheers,
T
Tarek Ziadé wrote:
> On Wed, Apr 16, 2008 at 8:40 PM, Michael Foord
> <[EMAIL PROTECTED]> wrote:
>
>> Trent Nelson wro
[EMAIL PROTECTED] wrote:
> Greetings!
>
> I've just started learning python, so this is probably one of those
> obvious questions newbies ask.
>
> Is there any way in python to check if a text file is blank?
>
> What I've tried to do so far is:
>
> f = file("friends.txt", "w")
>
David wrote:
>> import os
>> print os.lstat("friends.txt")[6]
>>
>
> I prefer os.lstat("friends.txt").st_size
MUCH easier to remember
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
barbaros wrote:
Hello everybody,
I am building a code for surface meshes (triangulations for instance).
I need to implement Body objects (bodies can be points, segments,
triangles and so on), then a Mesh will be a collection of bodies,
together with their neighbourhood relations.
I also need Ori
Thomas Philips wrote:
I have just started using MatPlotLib, and use it to generate graphs
from Python simulations. It often happens that the graph is generated
and a Visual C++ Runtime Library error then pops up: Runtime Error!
Program C:\Pythin25\Pythonw.exe This application has requested the
may help me resolve this
myself.
I appreciate any useful feedback in helping me resolve this "hurdle".
Please feel free to ask more questions if you require more
information.
Best Regards,
Lee Walczak
--
http://mail.python.org/mailman/listinfo/python-list
ssible to guide help tell me the right approach here. Of course I
can submit my code to help ( if this is useful ) but the problem I
think clear to see from these summary details.
Please take it easy on me, I am a HW engineer by trade and am slowly
(but surely) gaining more knowledge & experien
iscuss
>
>
Thanks for the details fredrik, will try here.
Lee
--
http://mail.python.org/mailman/listinfo/python-list
I actually post a topic relating to my problem here:
(http://groups.google.co.uk/group/comp.lang.python/browse_thread/
thread/a073d532c4481bfe?hl=en# )
But I thought it could be useful to place an example of my problem
here aswell. This a small piece of testcode that creates a TableList.
When the
TZMud is a Python MUD server.
http://tzmud.googlecode.com/
A MUD is a text-based virtual environment
accessed via telnet, or with a specialized
MUD client.
TZMud development is still in early stages,
focusing on API and server stability.
TZMud uses several high-quality Python
libraries to facil
Bart van Deenen wrote:
Hi all.
I've stumbled onto a python behavior that I don't understand at all.
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
# function
def X(l=[]):
l.append(1)
print l
# first call of X
X()
[1]
#second call of X
X()
[1, 1]
Where does the list parameter 'l'
801 - 900 of 1830 matches
Mail list logo