On Wed, Mar 9, 2011 at 2:01 PM, Victor Subervi wrote:
> Maya 2012: Transform At the Source
Yow. You're designing a Maya 2012 website to help some travel company
bilk gullible people out of thousands of dollars? I would be ashamed
to have anything to do with this.
--
http://mail.python.org/mail
Steven D'Aprano writes:
> I've never seen this second form in actual code. Does anyone use it,
> and if so, what use-cases do you have?
Since APIs that signal end-of-iteration by returning a sentinel have
fallen out of favor in Python (with good reason), this form is rare, but
still it's sometim
On Mar 11, 8:35 am, Grigory Javadyan
wrote:
> > Moreover I'm often able to keep in mind 2 (or more) opposite ideas or
> > opinions of mine.
>
> """
> To know and not to know, to be conscious of complete truthfulness
> while telling carefully constructed lies, to hold simultaneously two
> opinions
The iter() built-in takes two different forms, the familiar
iter(iterable) we all know and love, and an alternative form:
iter(callable, sentinel)
E.g.:
>>> T = -1
>>> def func():
... global T
... T += 1
... return T
...
>>> it = iter(func, 3)
>>> next(it)
0
>>> next(it)
1
>>> next(
> Moreover I'm often able to keep in mind 2 (or more) opposite ideas or
> opinions of mine.
>
"""
To know and not to know, to be conscious of complete truthfulness
while telling carefully constructed lies, to hold simultaneously two
opinions which cancelled out, knowing them to be contradictory an
On Thu, Mar 10, 2011 at 6:05 PM, alex23 wrote:
> On Mar 11, 11:58 am, n00m wrote:
> > http://docs.python.org/py3k/whatsnew/3.0.html
> >
> > What's the fuss abt it? Imo all is ***OK*** with 3k (in the parts I
> > understand).
> > I even liked print as a function **more** than print as a stmt
> >
On Mar 11, 7:45 am, Terry Reedy wrote:
> On 3/10/2011 8:58 PM, n00m wrote:
>
> >http://docs.python.org/py3k/whatsnew/3.0.html
>
> > What's the fuss abt it? Imo all is ***OK*** with 3k (in the parts I
> > understand).
> > I even liked print as a function **more** than print as a stmt
>
> > Now I th
You're probably best off with Pyjamas. Then you get something that runs on
the web and on the desktop, from the same code - similar to GWT, but for
Python. The desktop version runs overtop of CPython, the web version is
AJAX and is automatically translated from a very 2.x-ish dialect of Python
to
On 3/10/2011 8:58 PM, n00m wrote:
http://docs.python.org/py3k/whatsnew/3.0.html
What's the fuss abt it? Imo all is ***OK*** with 3k (in the parts I
understand).
I even liked print as a function **more** than print as a stmt
Now I think that Py3k is better than all prev pythons and cobras.
I a
On Friday 11 March 2011 14:13:52 Paul Rubin wrote:
> Robert writes:
> > Is there a push to one toolkit or the other?
>
> Tkinter or a simple web app with cgihttpserver. I haven't
> ever had occasion to write a fancy desktop app and I think
> of them as a mostly-obsolete medium, though I guess th
Robert writes:
> Is there a push to one toolkit or the other?
Tkinter or a simple web app with cgihttpserver. I haven't ever had
occasion to write a fancy desktop app and I think of them as a
mostly-obsolete medium, though I guess there are still some useful ones.
I have some interest in progra
On Mar 11, 4:05 am, alex23 wrote:
> On Mar 11, 11:58 am, n00m wrote:
>
> >http://docs.python.org/py3k/whatsnew/3.0.html
>
> > What's the fuss abt it? Imo all is ***OK*** with 3k (in the parts I
> > understand).
> > I even liked print as a function **more** than print as a stmt
>
> > Now I think t
Is there a push to one toolkit or the other?
TKInter from what I understand comes with Python already. There is also
PYGui and WXPython; it really depends on what you want and what you like
the best.
--
http://mail.python.org/mailman/listinfo/python-list
Is there a push to one toolkit or the other?
--
Robert
--
http://mail.python.org/mailman/listinfo/python-list
On 11/03/2011 02:05, alex23 wrote:
On Mar 11, 11:58 am, n00m wrote:
http://docs.python.org/py3k/whatsnew/3.0.html
What's the fuss abt it? Imo all is ***OK*** with 3k (in the parts I
understand).
I even liked print as a function **more** than print as a stmt
Now I think that Py3k is better tha
On Thu, 10 Mar 2011 23:55:51 +0100, Alexander Kapps wrote:
>>> I think he wants to attach to another process's stdin/stdout and
>>> read/write from/to them.
>>> I don't know if this is possible but it would be a great addition for
>>> psutil.
>>
>> It's not even a meaningful concept, let alone pos
On Mar 11, 11:58 am, n00m wrote:
> http://docs.python.org/py3k/whatsnew/3.0.html
>
> What's the fuss abt it? Imo all is ***OK*** with 3k (in the parts I
> understand).
> I even liked print as a function **more** than print as a stmt
>
> Now I think that Py3k is better than all prev pythons and cob
Benjamin Kaplan wrote:
> Typically, people developing web applications use a framework such as
> Django or TurboGears (or web.py or CherryPy or any of a dozen others)
> rather than just having the CGI scripts print stuff out.
You're fighting an uphill battle with that suggestion, it's been made
m
On 11/03/2011 01:13, yoro wrote:
Hi,
I am having an issue with passing values from one function to another
- I am trying to fill a list in one function using the values
contained in other functions as seen below:
infinity = 100
invalid_node = -1
startNode = 0
#Values to assign to each node
http://docs.python.org/py3k/whatsnew/3.0.html
What's the fuss abt it? Imo all is ***OK*** with 3k (in the parts I
understand).
I even liked print as a function **more** than print as a stmt
Now I think that Py3k is better than all prev pythons and cobras.
--
http://mail.python.org/mailman/listi
On Mar 11, 11:13 am, yoro wrote:
> Hi,
>
> I am having an issue with passing values from one function to another
> - I am trying to fill a list in one function using the values
> contained in other functions as seen below:
>
> infinity = 100
> invalid_node = -1
> startNode = 0
>
> #Values to a
On 11/03/2011 00:58, Justin Ezequiel wrote:
Greetings,
We have an old barcode program (MSDOS and source code unavailable.)
I've figured out how to populate the fields (by hacking into one of
the program's resource files.)
However, we still need to hit the following function keys in sequence.
F5,
On Thu, Mar 10, 2011 at 8:50 PM, Benjamin Kaplan
wrote:
> > print "Content-Type: text/html"
> > print
> > print '''
> > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> >
> >
> >
> > and this has worked in the past, so I'm surprised it doesn't work here.
> > Don't understan
Hi,
I am having an issue with passing values from one function to another
- I am trying to fill a list in one function using the values
contained in other functions as seen below:
infinity = 100
invalid_node = -1
startNode = 0
#Values to assign to each node
class Node:
distFromSource =
Greetings,
We have an old barcode program (MSDOS and source code unavailable.)
I've figured out how to populate the fields (by hacking into one of
the program's resource files.)
However, we still need to hit the following function keys in sequence.
F5, F2, F7
Is there a way to pipe said keys into
- Original Message -
From: "Dino Viehland"
To: "Patty" ; ; "roland garros"
;
Sent: Thursday, March 10, 2011 3:01 PM
Subject: RE: Python Tools for Visual Studio from Microsoft - Free & Open
Source
Patty wrote:
Thanks so much for this reference - and the detailed further explanat
On Thu, 10 Mar 2011 16:27:17 -0800, Chris Rebert wrote:
> 3. %-formatting is "obsolete and may go away in future versions of
> Python." (See
> http://docs.python.org/py3k/library/stdtypes.html#old-string-formatting-
operations
> )
There is an awful lot of opposition to that. If it ever happens,
On Thu, Mar 10, 2011 at 6:48 PM, Victor Subervi wrote:
> On Wed, Mar 9, 2011 at 5:33 PM, Ian wrote:
>>
>> On 09/03/2011 21:01, Victor Subervi wrote:
>>>
>>> The problem is that it prints "Content-Type: text/html" to the screen
>>
>> If you can see what is intended to be a header, then it follows
On Thu, Mar 10, 2011 at 4:15 PM, Steven D'Aprano
wrote:
> On Thu, 10 Mar 2011 17:40:40 -0500, Terry Reedy wrote:
>> On 3/10/2011 11:23 AM, Gerald Britton wrote:
>>> Today I noticed that an expression like this:
>>>
>>> "one:%(one)s two:%(two)s" % {"one": "is the loneliest number", "two":
>>> "can
On Thu, 10 Mar 2011 17:40:40 -0500, Terry Reedy wrote:
> On 3/10/2011 11:23 AM, Gerald Britton wrote:
>> Today I noticed that an expression like this:
>>
>> "one:%(one)s two:%(two)s" % {"one": "is the loneliest number", "two":
>> "can be as bad as one"}
>>
>> could be evaluated at compile time, bu
Just let you know: I'm on her (Emma's) side.
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Mar 11, 2011 at 9:30 AM, Grant Edwards wrote:
> No it doesn't. Try writing something other than "foobar".
You've demonstrated a case where this doesn't work :)
cheers
James
--
-- James Mills
--
-- "Problems are solved by method"
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Mar 9, 2011 at 5:33 PM, Ian wrote:
> On 09/03/2011 21:01, Victor Subervi wrote:
>
>> The problem is that it prints "Content-Type: text/html" to the screen
>>
> If you can see what is intended to be a header, then it follows that you
> are not sending the header correctly.
>
> Sorry - can'
On 2011-03-10, James Mills wrote:
> On Fri, Mar 11, 2011 at 8:55 AM, Alexander Kapps wrote:
>> On 10.03.2011 23:25, Nobody wrote:
>> Unless I misunderstand something, it is possible (at least on Linux):
>>
>> Two terminal windows:
>>
>> 1:
>> alex@frittenbude:~$ grep foobar
>>
>> 2:
>> alex@fritt
On 2011-03-10, Alexander Kapps wrote:
> On 10.03.2011 23:25, Nobody wrote:
>> On Thu, 10 Mar 2011 20:22:11 +0100, Giampaolo Rodol?? wrote:
>>
>>> I think he wants to attach to another process's stdin/stdout and
>>> read/write from/to them. I don't know if this is possible but it
>>> would be a gre
On 3/10/2011 5:51 PM, Patty wrote:
Thanks so much for this reference - and the detailed further
explanation! I have a Windows 7 system and recently installed Visual
Studio 2010 for the SQL Server, Visual C/C++ and Visual Basic. I would
love to have this Python tool installed under Visual Studio
On Fri, Mar 11, 2011 at 8:55 AM, Alexander Kapps wrote:
> On 10.03.2011 23:25, Nobody wrote:
> Unless I misunderstand something, it is possible (at least on Linux):
>
> Two terminal windows:
>
> 1:
> alex@frittenbude:~$ grep foobar
>
> 2:
> alex@frittenbude:~$ ps ax|grep 'grep foobar'
> 13075 pts/
Patty wrote:
> Thanks so much for this reference - and the detailed further explanation! I
> have a Windows 7 system and recently installed Visual Studio 2010 for the
> SQL Server, Visual C/C++ and Visual Basic. I would love to have this Python
> tool installed under Visual Studio but a few que
On 10.03.2011 23:25, Nobody wrote:
On Thu, 10 Mar 2011 20:22:11 +0100, Giampaolo Rodolà wrote:
I think he wants to attach to another process's stdin/stdout and
read/write from/to them.
I don't know if this is possible but it would be a great addition for psutil.
It's not even a meaningful con
- Original Message -
From:
To: "roland garros" ;
Sent: Thursday, March 10, 2011 2:03 AM
Subject: Re: Python Tools for Visual Studio from Microsoft - Free & Open
Source
Roland,
http://pytools.codeplex.com
Looks very impressive! Thank you for sharing this work.
For others foll
On 3/10/2011 11:23 AM, Gerald Britton wrote:
Today I noticed that an expression like this:
"one:%(one)s two:%(two)s" % {"one": "is the loneliest number", "two":
"can be as bad as one"}
could be evaluated at compile time, but is not:
In fact, it could be evaluated at writing time ;-).
This wou
On Thu, 10 Mar 2011 20:22:11 +0100, Giampaolo Rodolà wrote:
> I think he wants to attach to another process's stdin/stdout and
> read/write from/to them.
> I don't know if this is possible but it would be a great addition for psutil.
It's not even a meaningful concept, let alone possible.
--
ht
There is a problem, and it's a Python 3.2 problem. All the solutions
presented here work perfectly well in Python 2.7.1, and they all fail
at exactly the same point in Python 3.2 - it's the line that tries to
seek from the end. e.g.
f.seek(offset, os.SEEK_END)
I'll register this as a Python bug. T
On Thu, Mar 10, 2011 at 12:54 AM, roland garros
wrote:
>
> FYI...
>
> http://pytools.codeplex.com
>
> Enjoy!
> --
> http://mail.python.org/mailman/listinfo/python-list
>
There goes the neighborhood...:P
--
http://mail.python.org/mailman/listinfo/python-list
On 10.03.2011 21:28, Richard Holmes wrote:
I am trying to use the mouse wheel to scroll a list box, but I'm not
getting the event. When I bind "" to the listbox I get the
event and I'm able to scroll using yview_scroll. I've tried binding
"MouseWheel" and"", and I've also tried"" and
"" even thou
On 10/03/2011 20:28, Richard Holmes wrote:
I am trying to use the mouse wheel to scroll a list box, but I'm not
getting the event. When I bind "" to the listbox I get the
event and I'm able to scroll using yview_scroll. I've tried binding
"MouseWheel" and"", and I've also tried"" and
"" even thou
On Thu, 10 Mar 2011 20:31:11 +, Grant Edwards wrote:
> You tricked me by saying only DEC VAX/VMS programmers would know what it
> was. In fact, many, many Unix programmers knew about curses (and still
> do) and very few VMS programmers ever did. C wasn't very widely used
> under VMS, and VMS
On 03/10/2011 03:35 PM, Corey Richardson wrote:
> Middle button is Button-3 IIRC, and I think it'd be MouseUp and
> MouseDown. I'm really not sure though.
It's Button-2 rather.
--
Corey Richardson
--
http://mail.python.org/mailman/listinfo/python-list
On 03/10/2011 03:28 PM, Richard Holmes wrote:
> I am trying to use the mouse wheel to scroll a list box, but I'm not
> getting the event. When I bind "" to the listbox I get the
> event and I'm able to scroll using yview_scroll. I've tried binding
> "MouseWheel" and "", and I've also tried "" and
>
On 2011-03-10, GrayShark wrote:
> On Thu, 10 Mar 2011 18:02:41 +, Grant Edwards wrote:
>
>> On 2011-03-10, Adam Tauno Williams wrote:
>>> On Thu, 2011-03-10 at 00:38 -0600, GrayShark wrote:
Once, many, many, years ago, I programmed some type of 'graphical'
interface on a VT200 termi
I am trying to use the mouse wheel to scroll a list box, but I'm not
getting the event. When I bind "" to the listbox I get the
event and I'm able to scroll using yview_scroll. I've tried binding
"MouseWheel" and "", and I've also tried "" and
"" even though I'm using Windows (XP, if that makes a
d
On 2011-03-10, Charles Turner wrote:
> On Thu, 10 Mar 2011 00:38:11 -0600, GrayShark
> declaimed the following in gmane.comp.python.general:
>
>> Once, many, many, years ago, I programmed some type of 'graphical'
>> interface on a VT200 terminal
>
> A wild guess: Prestel? Bildschirmtext? Telidon?
On Thu, 10 Mar 2011 18:02:41 +, Grant Edwards wrote:
> On 2011-03-10, Adam Tauno Williams wrote:
>> On Thu, 2011-03-10 at 00:38 -0600, GrayShark wrote:
>>> Once, many, many, years ago, I programmed some type of 'graphical'
>>> interface on a VT200 terminal (only DEC VAX/VMS programmers are go
On Mar 10, 11:30 am, Steve wrote:
> On Mar 10, 11:00 am, MRAB wrote:
>
>
>
>
>
>
>
>
>
> > On 10/03/2011 15:39, Steve wrote:
>
> > > I'm a frequent user of matplotlib on my Windows XP machine. I
> > > recently attempted to install a program that modified my Tcl
> > > installation, and I now get
I think he wants to attach to another process's stdin/stdout and
read/write from/to them.
I don't know if this is possible but it would be a great addition for psutil.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
2011/3/10 Miki Tebeka :
>> Is there any wa
On Mar 9, 1:28 pm, Danny Shevitz wrote:
> > Have a look at the SIMPL toolkit.
>
> http://www.icanprogram.com/06py/lesson1/lesson1.html
>
>
>
> > This should be able to do exactly what you want.
>
> > bob
>
> Does this work on Mac OS X?
>
> thanks,
> Danny
I'm not aware of any ports of the SIMPL
On Thu, 10 Mar 2011 00:38:11 -0600, GrayShark
declaimed the following in gmane.comp.python.general:
Once, many, many, years ago, I programmed some type of 'graphical'
interface on a VT200 terminal
A wild guess: Prestel? Bildschirmtext? Telidon? Teletex? NAPLPS?
--
http://mail.python.org/mail
On 2011-03-10, Adam Tauno Williams wrote:
> On Thu, 2011-03-10 at 00:38 -0600, GrayShark wrote:
>> Once, many, many, years ago, I programmed some type of 'graphical'
>> interface on a VT200 terminal (only DEC VAX/VMS programmers are going to
>> know what this is). Question. What was the library
On Mar 9, 10:47 pm, Sunjay Varma wrote:
> For some reason, sub-classing and overwriting a built-in type does not
> change the behavior of the literal. Logically speaking, overwriting a
> name, such as str, should delete the basic str type, and replace it
> with the new class or object put in its p
On Mar 10, 11:00 am, MRAB wrote:
> On 10/03/2011 15:39, Steve wrote:
>
>
>
>
>
>
>
>
>
> > I'm a frequent user of matplotlib on my Windows XP machine. I
> > recently attempted to install a program that modified my Tcl
> > installation, and I now get an error message when I attempt to plot
> > any
Today I noticed that an expression like this:
"one:%(one)s two:%(two)s" % {"one": "is the loneliest number", "two":
"can be as bad as one"}
could be evaluated at compile time, but is not:
>>> dis(compile(
... '"one:%(one)s two:%(two)s" % {"one": "is the loneliest number",
"two": "can be as bad a
On 10/03/2011 15:39, Steve wrote:
I'm a frequent user of matplotlib on my Windows XP machine. I
recently attempted to install a program that modified my Tcl
installation, and I now get an error message when I attempt to plot
anything in matplotlib. Here is the error message:
---
Traceback (most
Yes, Curses, how could I forget that. Thanks
Steven
On Thu, 10 Mar 2011 05:34:35 -0500, Adam Tauno Williams wrote:
> On Thu, 2011-03-10 at 00:38 -0600, GrayShark wrote:
>> Once, many, many, years ago, I programmed some type of 'graphical'
>> interface on a VT200 terminal (only DEC VAX/VMS progr
I'm a frequent user of matplotlib on my Windows XP machine. I
recently attempted to install a program that modified my Tcl
installation, and I now get an error message when I attempt to plot
anything in matplotlib. Here is the error message:
---
Traceback (most recent call last):
File "", line
On Mar 10, 12:47 am, Sunjay Varma wrote:
> For some reason, sub-classing and overwriting a built-in type does not
> change the behavior of the literal. Logically speaking, overwriting a
> name, such as str, should delete the basic str type, and replace it
> with the new class or object put in its
On Mar 10, 10:47 am, Sunjay Varma wrote:
> For some reason, sub-classing and overwriting a built-in type does not
> change the behavior of the literal.
Have you looked through this?
http://www.python.org/download/releases/2.2/descrintro/#subclassing
[Dunno exactly how current it is -- This was a
On 10/03/2011 09:48, Vincent wrote:
Can nobody explain this? Please. how can a sleep() continue in a
__bootstrap() ?
Regards,
Vincent
On 4 feb, 13:39, Vincent van Beveren
wrote:
Hi everyone,
I'm currently working on a multithreaded GUI system in Python 2.6. In this
system I use conditions to
On Thu, 2011-03-10 at 00:38 -0600, GrayShark wrote:
> Once, many, many, years ago, I programmed some type of 'graphical'
> interface on a VT200 terminal (only DEC VAX/VMS programmers are going to
> know what this is). Question. What was the library I linked against?
> Yes, you remember, painting
Roland,
> http://pytools.codeplex.com
Looks very impressive! Thank you for sharing this work.
For others following this thread
- this add-in to Visual Studio works with CPython 2.5 - 3.2 and is not
dependent on .NET or IronPython
- this project also brings HPC (high performance computing) and
Can nobody explain this? Please. how can a sleep() continue in a
__bootstrap() ?
Regards,
Vincent
On 4 feb, 13:39, Vincent van Beveren
wrote:
> Hi everyone,
>
> I'm currently working on a multithreaded GUI system in Python 2.6. In this
> system I use conditions to coordinate synchronization. Ho
As you said, I am not writting a linux shell. Our requirements
need this kind of commands.
Certernly, the convert_table can sovle the command problem.
But it cannot complete correctly when using "TAB". It will complete
"show_info".
My first email expains my problem: I can implement commands with
On 03/10/2011 01:38 AM, yuan zheng wrote:
Thanks for your help.
thanks,
yuanzheng.
2011/3/8 Dave Angel
On 01/-10/-28163 02:59 PM, yuan zheng wrote:
Hello, everyone:
I encouter a question when implementing a commmand line(shell).
I have implemented some commands, such as "start", "sto
72 matches
Mail list logo