On Sun, 30 Aug 2009 00:22:00 -0400, Chris Jones wrote:
> On Sat, Aug 29, 2009 at 11:07:17PM EDT, Neil Hodgson wrote:
>> Benjamin Peterson:
>
>> > Like Sanskrit or Snowman language?
>
>> Sanskrit is mostly written in Devanagari these days which is also
>> useful for selling things to people who s
> To reiterate, I am not advocating for any change. I
> simply want to understand if there is a good reason
> for limiting the use of unchr/ord on narrow builds to
> a subset of the unicode characters that Python otherwise
> supports. So far, it seems not and that unichr/ord
> is a poster child f
Chris Jones:
> Is the implication that the principal usefulness of such languages as
> Hindi and "other Indian languages" is us selling "things" to them..?
Unicode was developed by a group of US corporations: Xerox, Apple,
Sun, Microsoft, ... The main motivation was to avoid dealing with
mult
On Sat, 29 Aug 2009 22:14:55 -0700, John Nagle wrote:
> It may be a bit much that Unicode supports Cretan Linear B.
Thousands of historians who need to discuss Linear B would disagree.
Well, hundreds.
There are tens of thousands of characters available. If there's room for
chess pieces, dingb
On Sun, 30 Aug 2009 03:07:17 +, Neil Hodgson wrote:
>Not sure if you are referring to the ☃ snowman character or Arctic
> region languages like Canadian Aboriginal syllabic writing like ᐲᐦᒑᔨᕽ
> which were added to Unicode 8 years after the initial version. I'd guess
> that was added from p
exar...@twistedmatrix.com wrote:
For my part, I will agree with John. I feel like Python's big
shortcomings stem from the areas he mentioned. They're related to each
other as well - the lack of a standard hampers the development of a less
naive interpreter (either one based on CPython or ano
On 08/30/2009 04:16 AM, r wrote:
I was reading the thread here...
http://groups.google.com/group/comp.lang.python/browse_thread/thread/db90a9629b92aab0/b0385050b4c6c84e?hl=en&lnk=raot#b0385050b4c6c84e
...
...
It's called evolution people! Ever heard of science? So ditch the
useless Unicode and sa
r wrote:
natural languages and Unicode. Which IMO * Unicode* is simply a monkey
patch for this soup of multiple languages we have to deal with in
programming and communication.
A somewhat fair charactierization.
[snip]
everyone happy? A sort of Utopian free-language-love-fest-kinda-
thing?
r wrote:
I was reading the thread here...
http://groups.google.com/group/comp.lang.python/browse_thread/thread/db90a9629b92aab0/b0385050b4c6c84e?hl=en&lnk=raot#b0385050b4c6c84e
and it raised some fundamental philophosical questions
Rant ignored.
Actually, Python 3.x seems finally to ha
"casebash" wrote in message
news:7294bf8b-9819-4b6d-92b2-afc1c8042...@x6g2000prc.googlegroups.com...
> So much of it could be removed even by simple keyword filtering.
Assuming this is a serious question:
1. comp.lang.python has relatively little spam, compared to others.
2. The spam posters
"Martin v. Löwis" writes on Fri, 28 Aug 2009 10:12:34
+0200:
> > The PEP says:
> > * unichr(i) for 0 <= i < 2**16 (0x1) always returns a
> >length-one string.
> >
> > * unichr(i) for 2**16 <= i <= TOPCHAR will return a
> >length-one string on wide Python builds. On
On Aug 29, 3:20 am, Pherdnut wrote:
> I want to write cross-platform stuff. Any opinions on the best GUI
> module for that?
>
> I like a good juicy, but concise book for reading on my commute
> downtown. I was thinking of checking Python in a Nutshell. Good? Bad?
> Better?
>
> Is 3.0+ more object
qwe rty wrote:
> On Aug 29, 5:11 am, Nobody wrote:
>> On Fri, 28 Aug 2009 17:26:06 -0700, qwe rty wrote:
>>> if you don't know the answer please don't reply
>> If you don't understand the question, don't post it in the first place.
>
> don't be so angry ,not good for your health
You forgot your
On Aug 28, 6:37 pm, qwe rty wrote:
> i know that an interpreted language like python can't be used to make
> an operating system or system drivers.
>
> what else can NOT be done in python? what are the limitations of the
> language?
Now that you have some good answers, may I ask what what your re
On Aug 28, 6:19 pm, qwe rty wrote:
> i have been searching for am IDE for python that is similar to Visual
> Basic but had no luck.shall you help me please?
Boa Constructor. IDE/visual GUI-builder/sizer support, lots of
other goodies. Not actively maintained, though, and some issues
on Linux, i
On Sat, Aug 29, 2009 at 11:07:17PM EDT, Neil Hodgson wrote:
> Benjamin Peterson:
> > Like Sanskrit or Snowman language?
> Sanskrit is mostly written in Devanagari these days which is also
> useful for selling things to people who speak Hindi and other Indian
> languages.
Is the implication that
On Aug 29, 6:16 am, paul wrote:
> Deep_Feelings schrieb:> python got relatively fewer numbers of developers
> than other high
> > level languages like .NET , java .. etc why ?
>
> Besides the marketing argument, python never had a "hype".
>
> Both PHP and ruby(Rails to be precise) got widespread
r wrote:
> Of the many
> things that divide us such as race, color, religion, geography, blah,
> the most perplexing and devastating seems to be why have we not
> accepted a single global language for all to speak.
I agree 1000% and obviously we should make Klingon that global language. Or
possib
On Aug 29, 5:39 pm, Chris Colbert wrote:
> I'm having an issue with sys.path on Ubuntu. I want some of my home
> built packages to overshadow the system packages. Namely, I have built
> numpy 1.3.0 from source with atlas support, and I need it to
> overshadow the system numpy 1.2.1 which I had to
On 29Aug2009 17:27, Sergio Charpinel Jr. wrote:
| Hi,
| I have this statement cursor.execute("SELECT * from session_attribute WHERE
| sid=%s", ( user ))
| and I'm receiving this error :
|
| TypeError: not all arguments converted during string formatting
|
| What is wrong ?
This:
( user )
is
Benjamin Peterson:
> Like Sanskrit or Snowman language?
Sanskrit is mostly written in Devanagari these days which is also
useful for selling things to people who speak Hindi and other Indian
languages.
Not sure if you are referring to the ☃ snowman character or Arctic
region languages like
On Sat, 29 Aug 2009 20:09:12 +0100, Nobody wrote:
> On Sat, 29 Aug 2009 08:26:54 +, Steven D'Aprano wrote:
>
>> Python only needs to know when you convert the text to or from bytes. I
>> can do this:
>>
> s = "hello"
> t = "world"
> print(' '.join([s, t]))
>> hello world
>>
>> a
28-08-2009 o 20:38:30 xiaosong xia wrote:
I am trying to define a class with copy constructor as following:
class test:
def __init__(self, s=None):
self=s
x=[1,2]
y=test(x)
print y.__dict__
it gives
{}
The above code doesn't work.
And cannot, as Chris has already wr
On Aug 28, 7:05 pm, Tim Chase wrote:
> qwe rty wrote:
> > i know that an interpreted language like python can't be used to make
> > an operating system or system drivers.
>
> As long as you are willing to write the OS hooks in C, you can
> write the userspace device drivers in Python:
Writing you
Neil Hodgson gmail.com> writes:
\\
>
> Unicode was
> developed by corporations from the US left coast in order to sell their
> products in foreign markets at minimal cost.
Like Sanskrit or Snowman language?
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 29, 7:18 pm, casebash wrote:
> So much of it could be removed even by simple keyword filtering.
A more interesting question is what morons are responding to this spam
and enticing the spammers to proliferate their garbage? Do people
actually see a spam like "Phallus enlargement pills" and
On Aug 29, 7:20 pm, John Machin wrote:
> On Aug 30, 8:46 am, r wrote:
> The Chinese language is more widely spoken than English, is quite
> capable of expression in ASCII ("r tongzhi shi sha gua") and doesn't
> have those pesky it's/its problems.
Oh yes of course it is the most widely spoken amo
I'm having an issue with sys.path on Ubuntu. I want some of my home
built packages to overshadow the system packages. Namely, I have built
numpy 1.3.0 from source with atlas support, and I need it to
overshadow the system numpy 1.2.1 which I had to drag along as a
dependency for other stuff. I have
On Aug 29, 5:12 pm, casebash wrote:
> Hi all,
>
> I cannot determine if a class is an instance of a particular
> metaclass. Here is my best attempt
>
> >>> class tmp(type):
>
> ... pass
> ...>>> def c(metaclass=tmp):
>
> ... pass
> ...>>> isinstance(c, tmp)
> False
> >>> isinstance(c.__cla
r:
> Unicode (*puke*) seems nothing more than a brain fart of morons. And
> sadly it was created by CS majors who i assumed used logic and
> deductive reasoning but i must be wrong. Why should the larger world
> keep supporting such antiquated languages and character sets through
> Unicode? What p
On Aug 30, 8:46 am, r wrote:
>
> Take for instance the Chinese language with it's thousands of
> characters and BS, it's more of an art than a language. Why do we
> need such complicated languages in this day and time. Many languages
> have been perfected, (although not perfect) far beyond that o
On 08/29/2009 01:43 PM, Vlastimil Brom wrote:
> > 2009/8/29:
>> >> On 08/28/2009 02:12 AM, "Martin v. Löwis" wrote:
>> >>
>> >> So far, it seems not and that unichr/ord
>> >> is a poster child for "purity beats practicality".
>> >> --
>> >> http://mail.python.org/mailman/listinfo/python-list
>
Hi all,
I cannot determine if a class is an instance of a particular
metaclass. Here is my best attempt
>>> class tmp(type):
... pass
...
>>> def c(metaclass=tmp):
... pass
...
>>> isinstance(c, tmp)
False
>>> isinstance(c.__class__, tmp)
False
Can anyone explain why this fails?
Thanks
On 08/29/2009 12:06 PM, Steven D'Aprano wrote:
[...]
>> The reasons for the current behavior so far:
>>
>> 1.
>>> What you propose would break the property "unichr(i) always returns a
>>> string of length one, if it returns anything at all".
>>
>> Yes. And i don't see the problem with that.
On Sat, Aug 29, 2009 at 07:12:26PM EDT, Stephen Hansen wrote:
> >
> > Unicode (*puke*) seems nothing more than a brain fart of morons. And
> > sadly it was created by CS majors who i assumed used logic and
> > deductive reasoning but i must be wrong. Why should the larger world
> > keep supporting
On Aug 29, 11:16 pm, "Gabriel Genellina"
wrote:
> En Sat, 29 Aug 2009 17:14:14 -0300, gert escribió:
>
> > On Aug 29, 9:31 pm, Chris Rebert wrote:
> >> On Sat, Aug 29, 2009 at 5:40 AM, gert wrote:
> >> > On Aug 29, 6:43 am, "Gabriel Genellina"
> >> > wrote:
> >> >> En Fri, 28 Aug 2009 15:31:31
En Sat, 29 Aug 2009 04:34:48 -0300, zaur escribió:
On 29 авг, 08:37, "Gabriel Genellina" wrote:
En Fri, 28 Aug 2009 15:25:55 -0300, zaur escribió:
> On 28 авг, 16:07, Bruno Desthuilliers 42.desthuilli...@websiteburo.invalid> wrote:
>> zaur a écrit :
>> > Ok. Here is a use case: object initi
>
> Unicode (*puke*) seems nothing more than a brain fart of morons. And
> sadly it was created by CS majors who i assumed used logic and
> deductive reasoning but i must be wrong. Why should the larger world
> keep supporting such antiquated languages and character sets through
> Unicode? What pur
On 10:23 pm, a...@pythoncraft.com wrote:
In article <4a998465$0$1637$742ec...@news.sonic.net>,
John Nagle wrote:
Personally, I consider Python to be a good language held back by
too-close ties to a naive interpreter implementation and the lack
of a formal standard for the language.
Name
I was reading the thread here...
http://groups.google.com/group/comp.lang.python/browse_thread/thread/db90a9629b92aab0/b0385050b4c6c84e?hl=en&lnk=raot#b0385050b4c6c84e
and it raised some fundamental philophosical questions to me about
natural languages and Unicode. Which IMO * Unicode* is simply a
29.08.2009 17:26 пользователь Tim Chase
написал:
ivanko@gmail.com wrote:
29.08.2009 15:40 пользователь "Sergio Charpinel Jr."
sergiocharpi...@gmail.com> написал:
Thanks.
Do you know if both of them works for mysql too?
2009/8/29 ivanko@gmail.com>
29.08.2009 15:2
ivanko@gmail.com wrote:
29.08.2009 15:40 пользователь "Sergio Charpinel Jr."
написал:
Thanks.
Do you know if both of them works for mysql too?
2009/8/29 ivanko@gmail.com>
29.08.2009 15:27 пользователь "Sergio Charpinel Jr."
sergiocharpi...@gmail.com> написал:
Actually, this wo
In article <4a998465$0$1637$742ec...@news.sonic.net>,
John Nagle wrote:
>
>Personally, I consider Python to be a good language held back by
>too-close ties to a naive interpreter implementation and the lack
>of a formal standard for the language.
Name one language under active development th
29.08.2009 15:40 пользователь "Sergio Charpinel Jr."
написал:
Thanks.
Do you know if both of them works for mysql too?
2009/8/29 ivanko@gmail.com>
29.08.2009 15:27 пользователь "Sergio Charpinel Jr."
sergiocharpi...@gmail.com> написал:
Actually, this works for any string (it doesn'
Christian Heimes wrote:
> Paul Pogonyshev wrote:
> > Hi,
> >
> > Is weak reference callback called immediately after the referenced
> > object is deleted or at arbitrary point in time after that? I.e. is
> > it possible to see a dead reference before the callback is called?
> >
> > More formally
En Sat, 29 Aug 2009 17:14:14 -0300, gert escribió:
On Aug 29, 9:31 pm, Chris Rebert wrote:
On Sat, Aug 29, 2009 at 5:40 AM, gert wrote:
> On Aug 29, 6:43 am, "Gabriel Genellina"
> wrote:
>> En Fri, 28 Aug 2009 15:31:31 -0300, gert
escribió:
>> > I can't figure out how to enable the .py s
Paul Pogonyshev wrote:
> Hi,
>
> Is weak reference callback called immediately after the referenced
> object is deleted or at arbitrary point in time after that? I.e. is
> it possible to see a dead reference before the callback is called?
>
> More formally, will this ever raise?
>
> callbac
I have this statement cursor.execute("SELECT * from session_attribute WHERE
sid=%s", ( user ))
and I'm receiving this error :
TypeError: not all arguments converted during string formatting
Two possibilities occur to me:
1) the 2nd parameter to execute() usually needs to be a tuple (or
maybe
Hi,
Is weak reference callback called immediately after the referenced
object is deleted or at arbitrary point in time after that? I.e. is
it possible to see a dead reference before the callback is called?
More formally, will this ever raise?
callback_called = False
def note_deletion (r
29.08.2009 1:32 пользователь Vivian Wang написал:
On Aug 29, 6:19 am, qwe rty hkh00...@gmail.com> wrote:
> i have been searching for am IDE for python that is similar to Visual
> Basic but had no luck.shall you help me please?
You can try biform:
http://www.bilive.com/download/Se
On Aug 29, 8:08 am, Paul McGuire wrote:
> On Aug 29, 7:45 am, zaur wrote:
>
> > Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
> > [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> > Type "copyright", "credits" or "license()" for more information.>>> a=1
> > >>> x=[a]
> > >>> id(a)==id(
29.08.2009 2:21 пользователь Gabriel Genellina
написал:
En Sat, 29 Aug 2009 03:28:26 -0300, ivanko@gmail.com> escribió:
Hello to everyone! I am making a program that will be a GTK+ frontend to
ffmpeg. Naturally, one of the main functions is parsing ffmpeg's output.
It's pretty s
Hi,
I have this statement cursor.execute("SELECT * from session_attribute WHERE
sid=%s", ( user ))
and I'm receiving this error :
TypeError: not all arguments converted during string formatting
What is wrong ?
--
Sergio Roberto Charpinel Jr.
--
http://mail.python.org/mailman/listinfo/python-lis
On Aug 29, 9:31 pm, Chris Rebert wrote:
> On Sat, Aug 29, 2009 at 5:40 AM, gert wrote:
> > On Aug 29, 6:43 am, "Gabriel Genellina"
> > wrote:
> >> En Fri, 28 Aug 2009 15:31:31 -0300, gert escribió:
>
> >> > I can't figure out how to enable the .py shell and syntax highlighting
> >> > for .wsgi f
29.08.2009 2:20 пользователь Pherdnut написал:
I want to write cross-platform stuff. Any opinions on the best GUI
module for that?
There are many options for this. For example GTK+ (pygtk), tkinter, QT.
GTK+ is a little bit complicated, but you can use glade to make the GUIs.
Tkinter is b
qwe rty wrote:
i know that an interpreted language like python can't be used to make
an operating system or system drivers.
what else can NOT be done in python? what are the limitations of the
language?
Speed, basically. CPython is on the slow side. This is not
inherent in the language; i
2009/8/29 :
> On 08/28/2009 02:12 AM, "Martin v. Löwis" wrote:
>
> So far, it seems not and that unichr/ord
> is a poster child for "purity beats practicality".
> --
> http://mail.python.org/mailman/listinfo/python-list
>
As Mark Tolonen pointed out earlier in this thread, in Python 3 the
practic
In article ,
Anthra Norell wrote:
>Vlastimil Brom wrote:
>> 2009/8/28 hoffik :
>>>
>>> I'm quite new in Python and I have one question. I have a 2D matrix of
>>> values stored in list (3 columns, many rows). I wonder if I can select one
>>> column without having to go through the list with 'for'
On Sat, Aug 29, 2009 at 5:40 AM, gert wrote:
> On Aug 29, 6:43 am, "Gabriel Genellina"
> wrote:
>> En Fri, 28 Aug 2009 15:31:31 -0300, gert escribió:
>>
>> > I can't figure out how to enable the .py shell and syntax highlighting
>> > for .wsgi file extensions using IDLE for windows ?
>>
>> That's
On Fri, 28 Aug 2009 20:15:57 -0700, Warpcat wrote:
>> Your question is based upon the notion that "the screen" is a meaningful
>> concept. Once you move away from Windows (and systems which intentionally
>> try to be like Windows), that's no longer true.
>
> Good points. Always something I haven
On Sat, 29 Aug 2009 08:26:54 +, Steven D'Aprano wrote:
> Python only needs to know when you convert the text to or from bytes. I
> can do this:
>
s = "hello"
t = "world"
print(' '.join([s, t]))
> hello world
>
> and not need to care anything about encodings.
>
> So long as y
On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote:
> I thought that int as object will stay the same object after += but with
> another integer value. My intuition said me that int object which
> represent integer value should behave this way.
If it did, then you would have this behaviour:
>>> n =
Is IDLE (the editor that comes with Python) good? I'm just starting now, but
it looks ok.
2009/8/29
> 29.08.2009 4:14 пользователь "Thangappan.M"
> написал:
> > Dear all,
> >
> >
> >Please suggest some good IDE for python.I am working in linux
> platform.
> >
> > --
> > Regards,
> >
On Aug 29, 2009, at 3:54 AM, Sortie wrote:
I want to write a program that will use ode for the physics
simulation, whose python bindings are outdated. So I'm writing
the physics engine in C and want to write the drawing code in
Python. What will be the best way of making those two programs
work
Theoretically a microkernel could be used to do the stuff python directly
couldn't do and the rest could be done once an interpreter was loaded in
theory.
On Fri, Aug 28, 2009 at 4:37 PM, qwe rty wrote:
> i know that an interpreted language like python can't be used to make
> an operating system
On Sat, 29 Aug 2009, Steven D'Aprano wrote:
> On Sat, 29 Aug 2009 05:37:34 +0200, Tomasz Rola wrote:
>
> > My private list of
> > things that when implemented in Python would be ugly to the point of
> > calling it difficult:
> >
> > 1. AMB operator - my very favourite. In one sentence, either la
On 29 авг, 20:25, "Günther Dietrich" wrote:
> Paul McGuire wrote:
> >What exactly are you trying to do?
>
> I think, he wants to kind of dereference the list element. So that he
> can write
>
> >>> a += 1
>
> instead of
>
> >>> long_name_of_a_list_which_contains_data[mnemonic_pointer_name] += 1
>
On Sat, 29 Aug 2009 07:38:51 -0700, rurpy wrote:
> > Then, the next question is "why is it implemented that way", to which
> > the answer is "because the PEP says so".
>
> Not at all a satisfying answer unless one believes in PEPal
> infallibility. :-)
Not at all. You don't have to believe tha
29.08.2009 4:14 пользователь "Thangappan.M"
написал:
Dear all,
Please suggest some good IDE for python.I am working in linux platform.
--
Regards,
Thangappan.M
You can use Eclipse + PyDev or Emacs+PythonMode . Also there are Anjuta and
Code:Blocks, but they are designed mainly for C
Hey, maybe some of you are familiar with the tools "AutoIt"
(http://www.autoitscript.com/autoit3/) and "Autohotkey"
(http://www.autohotkey.com/) for Windows - I was wondering if you knew
about Python libraries which provide similiar functionality for Python
programs under Linux. That said, those l
r wrote:
On Aug 28, 8:43 pm, Anny Mous wrote:
It isn't irrational to have a healthy caution towards eval.
Ignorance is never an excuse for stupidity. No caution is needed if
you know how to properly use eval. You can't shoot yourself in the
foot without first pulling the trigger.
Apart from
On Aug 28, 8:43 pm, Anny Mous wrote:
> It isn't irrational to have a healthy caution towards eval.
Ignorance is never an excuse for stupidity. No caution is needed if
you know how to properly use eval. You can't shoot yourself in the
foot without first pulling the trigger.
> Apart from the secur
Paul McGuire wrote:
>What exactly are you trying to do?
I think, he wants to kind of dereference the list element. So that he
can write
>>> a += 1
instead of
>>> long_name_of_a_list_which_contains_data[mnemonic_pointer_name] += 1
Regards,
Günther
--
http://mail.python.org/mailman/listin
Hey, maybe some of you are familiar with the tools "AutoIt" () and
"Autohotkey" () for Windows - I was wondering if you knew about Python
libraries which provide similiar functionality for Python programs under
Linux. That said, those libraries would have to rely on X11 internally
to provide th
On Aug 29, 1:34 pm, Thorsten Kampe wrote:
> * vsoler (Sat, 29 Aug 2009 04:01:46 -0700 (PDT))
>
> > On Aug 29, 1:27 am, r wrote:
> > > Have you tried saving the files as MYScriptName.py? notice the py
> > > extension, very important ;)
>
> > That was it!!!
>
> > I see the colors again. Thank you.
zaur wrote:
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "copyright", "credits" or "license()" for more information.
a=1
x=[a]
id(a)==id(x[0])
True
a+=1
a
2
x[0]
1
I thought that += should
On Sat, 29 Aug 2009, Timothy N. Tsvetkov wrote:
> On Aug 29, 4:26 am, qwe rty wrote:
> > On Aug 29, 3:14 am, Tim Chase wrote:
> >
> > > >> what else can NOT be done in python? what are the limitations of the
> > > >> language?
> >
[...]
> > > I forgot about solving the Spam problem entirely. An
Sortie schrieb:
I want to write a program that will use ode for the physics
simulation, whose python bindings are outdated. So I'm writing
the physics engine in C and want to write the drawing code in
Python. What will be the best way of making those two programs
work together? THe physics eng
On Aug 29, 4:26 am, qwe rty wrote:
> On Aug 29, 3:14 am, Tim Chase wrote:
>
>
>
>
>
> > >> what else can NOT be done in python? what are the limitations of the
> > >> language?
>
> > > I understand there's a little trouble getting Python to prove
> > > that P=NP You'll also find that it only com
On Aug 27, 2:31 pm, Neuruss wrote:
> On 26 ago, 05:29, erikj wrote:
>
>
>
> > Hi,
>
> > You could have a look at Camelot, to see if it fits
> > your needs :http://www.conceptive.be/projects/camelot/
>
> > it was developed with cross platform business apps in
> > mind. when developing Camelot, we
On 08/28/2009 02:12 AM, "Martin v. Löwis" wrote:
[I reordered the quotes from your previous post to try
and get the responses in a more coherent order. No
intent to take anything out of context...]
>> Nothing else in the PEP seems remotely relevant.
[to providing justification for the behavior
On Aug 25, 8:49 am, Peter Otten <__pete...@web.de> wrote:
> JKPeck wrote:
> > On Aug 24, 10:43 pm, John Yeung wrote:
> >> On Aug 24, 5:00 pm, Peter Otten <__pete...@web.de> wrote:
>
> >> > If I understand you correctly the csv.writer already does
> >> > what you want:
>
> >> > >>> w.writerow([1,No
zaur wrote:
>Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
>[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
>Type "copyright", "credits" or "license()" for more information.
a=1
x=[a]
id(a)==id(x[0])
>True
a+=1
a
>2
x[0]
>1
>
>I thought that += should only
On Sun, Aug 23, 2009 at 09:07:53PM +0800, Steven Woody wrote:
>
> Hi,
> I am using cywin on XP.
>
Sorry for the late reply. I've been too busy with some personal
matters. It'd seem to me that you're better off taking this issue to
the Cygwin mailing lists, since it doesn't seem to be related t
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 29, 7:45 am, zaur wrote:
> Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> Type "copyright", "credits" or "license()" for more information.>>> a=1
> >>> x=[a]
> >>> id(a)==id(x[0])
> True
> >>> a+=1
> >>> a
> 2
> >>> x[0]
>
> 1
>
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "copyright", "credits" or "license()" for more information.
>>> a=1
>>> x=[a]
>>> id(a)==id(x[0])
True
>>> a+=1
>>> a
2
>>> x[0]
1
I thought that += should only change the value of the int
On Aug 29, 6:43 am, "Gabriel Genellina"
wrote:
> En Fri, 28 Aug 2009 15:31:31 -0300, gert escribió:
>
> > I can't figure out how to enable the .py shell and syntax highlighting
> > for .wsgi file extensions using IDLE for windows ?
>
> That's a Windows question, not a Python one. You have to asso
On 2009-08-28, Neil Hodgson wrote:
> Steven D'Aprano:
>
>> Obviously I can't speak for Ken Thompson's motivation in creating this
>> feature, but I'm pretty sure it wasn't to save typing or space on
>> punchcards.
>
>The original implementation of UNIX was on a PDP-7 which was an
> 18-bit ma
Hi,
I've got the following code in main.py file:
import gettext
import os
t = gettext.translation(__file__.split('.')[0], os.getcwd())
_ = t.lgettext
if __name__=='__main__':
print _("Hello")
then I call: xgettext main.py
and after that I call: msgfmt messages.po
wchich produces the f
* vsoler (Sat, 29 Aug 2009 04:01:46 -0700 (PDT))
> On Aug 29, 1:27 am, r wrote:
> > Have you tried saving the files as MYScriptName.py? notice the py
> > extension, very important ;)
>
> That was it!!!
>
> I see the colors again. Thank you.
I suggest you start using familiar technical terms. Li
Deep_Feelings schrieb:
python got relatively fewer numbers of developers than other high
level languages like .NET , java .. etc why ?
Besides the marketing argument, python never had a "hype".
Both PHP and ruby(Rails to be precise) got widespread because they could
at one point do "one" thi
On Aug 29, 1:27 am, r wrote:
> Have you tried saving the files as MYScriptName.py? notice the py
> extension, very important ;)
That was it!!!
I see the colors again. Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 28, 10:37 pm, Joshua Judson Rosen wrote:
> Carl Banks writes:
>
> > On Aug 28, 2:42 pm, Terry Reedy wrote:
>
> > > Carl Banks wrote:
> > > > I don't think it needs a syntax for that, but I'm not so sure a method
> > > > to modify a value in place with a single key lookup wouldn't
> > > >
Dear all,
Please suggest some good IDE for python.I am working in linux
platform.
--
Regards,
Thangappan.M
--
http://mail.python.org/mailman/listinfo/python-list
SEI is seeking a FT, YR Photovoltaic Technical Manager. If you are a
team player with a minimum of 4 years PV installation, curriculum and
education development, management experience, the ability to
multitask, strong verbal and written communication skills, and a sense
of humor, SEI invites you to
On Sat, 29 Aug 2009 09:34:43 +0200, Thorsten Kampe wrote:
> * Rami Chowdhury (Thu, 27 Aug 2009 09:44:41 -0700)
>> > Further, does anything, except a printing device need to know the
>> > encoding of a piece of "text"?
>
> Python needs to know if you are processing the text.
Python only needs to
On Saturday 29 August 2009 09:54:15 Sortie wrote:
> I want to write a program that will use ode for the physics
> simulation, whose python bindings are outdated. So I'm writing
> the physics engine in C and want to write the drawing code in
> Python. What will be the best way of making those two pr
On Sat, 29 Aug 2009 09:36:38 +0200, Hendrik van Rooyen wrote:
> On Friday 28 August 2009 21:00:31 Dr. Phillip M. Feldman wrote:
>> In [21]: x
>> Out[21]: [1, 2, 3, 5]
>>
>> In [22]: x>6
>> Out[22]: True
>>
>> Is this a bug?
>
> No, it is a feature, so that you can use sorted on this:
>
> [[1,2,3
I want to write a program that will use ode for the physics
simulation, whose python bindings are outdated. So I'm writing
the physics engine in C and want to write the drawing code in
Python. What will be the best way of making those two programs
work together? THe physics engine won't have to
1 - 100 of 108 matches
Mail list logo