On Tue, 30 Sep 2008 23:40:22 +, Steven D'Aprano wrote:
> On Tue, 30 Sep 2008 14:34:31 +, Marc 'BlackJack' Rintsch wrote:
>
>> There is no array. The data type is called "list" in Python, so
>> `result` is a nested list. And in Python it quite unusual to build
>> lists by creating them w
I have a problem with a ssh connection in python
I get the error
'NoneType' object has no attribute 'exec_command'
I am thinking that maybe the ssh connection is timeing out.
Since I have no control over the configuration of the ssh server(which
is AIX 5.23), is there anything I can do in pytho
clp:
Thanx to a recent thread I am able to have a print string
with a variable number of formatters -- what I now lack for
the creation of an elegant print statement is a tuple --
following is the code, the last line of which does not work:
#!/usr/bin/python
import xml.sax
import eaddyhandler
p
On Tue, 30 Sep 2008 20:48:12 -0700, Anh Khuong wrote:
> I am using pexpect and I want to send output of pexpet to both stdout
> and log file concurrently. Anybody know a solution for it please let me
> know.
One way is to create a file-like object that forked the output to stdout
and the logfil
2008/10/1 sc <[EMAIL PROTECTED]>:
> If there were a builtin function that took a list and
> returned a tuple, I'd be there, but if there is such a
> thing I need someone to point me at it. I can't help
> thinking I am missing some obvious construct, and I'll
> be advised to go reread the tutorial,
sc wrote:
clp:
Thanx to a recent thread I am able to have a print string
with a variable number of formatters -- what I now lack for
the creation of an elegant print statement is a tuple --
following is the code, the last line of which does not work:
#!/usr/bin/python
import xml.sax
import e
Are there any python event driven frameworks other than twisted?
--
http://mail.python.org/mailman/listinfo/python-list
Are there any python micro-frameworks (like ruby's Camping)?
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 01 Oct 2008 00:30:59 -0700, loial wrote:
> I have a problem with a ssh connection in python
>
> I get the error
>
> 'NoneType' object has no attribute 'exec_command'
>
> I am thinking that maybe the ssh connection is timeing out.
>
> Since I have no control over the configuration of th
On 30 Sep, 21:58, Michael Torrie <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I have implemented a simple Python XMLRPC server and need to call it
> > from a C/C++ client. What is the simplest way to do this? I need to
> > pass numerical arrays from C/C++ to Python.
>
> Which do you ne
On Wed, Oct 1, 2008 at 1:05 AM, <[EMAIL PROTECTED]> wrote:
> On 30 Sep, 21:58, Michael Torrie <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>> > I have implemented a simple Python XMLRPC server and need to call it
>> > from a C/C++ client. What is the simplest way to do this? I need to
>>
On Wed, 01 Oct 2008 01:01:41 -0700, Phillip B Oldham wrote:
> Are there any python event driven frameworks other than twisted?
Most GUI package use event-driven model (e.g. Tkinter).
--
http://mail.python.org/mailman/listinfo/python-list
Gary M. Josack wrote:
> sc wrote:
>> clp:
>>
>> Thanx to a recent thread I am able to have a print string
>> with a variable number of formatters -- what I now lack for
>> the creation of an elegant print statement is a tuple --
>> following is the code, the last line of which does not work:
>>
>>
Did you try WebPy?
http://webpy.org/ Hum, the website seems to be down today
Sam
--
http://mail.python.org/mailman/listinfo/python-list
Мы рады предложить Вашему вниманию товары для здоровья самые
качественные и эффективные товары ведущих производителей мира: пояса,
бандажи, корсеты, корректоры осанки, изделия для похудения и лечения
целлюлита, массажеры и миостимуляторы, аппараты физиотерапии и
медтехнику, наборы для ухода за рука
On Oct 1, 9:25 am, Lie Ryan <[EMAIL PROTECTED]> wrote:
> Most GUI package use event-driven model (e.g. Tkinter).
I've noticed that. I'm thinking more for a web environment (instead of
MVC) or as a HTTP server. I know Twisted has TwistedWeb, but I'm
looking for alternatives.
--
http://mail.python.o
Интернет магазин товаров для красоты и здоровья ShopBody Мировые
бренды. Профессиональная консультация. Моментальная доставка. Товары
почтой. Широкий ассортимент. Интернет-магазин для похудения и борьбы с
целлюлитом Shopbody
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 1, 9:53 am, Sam <[EMAIL PROTECTED]> wrote:
> Did you try WebPy?http://webpy.org/Hum, the website seems to be down today
Not yet - I'm hoping the python community can suggest some examples of
micro/small frameworks (which just supply the basics; no forms/
templating/ORM/etc) so I can compare
Hi,
I m using Tkinter and Tix. I'm using Tkinter mainly for all the widgets
except for the TixComboBox for which I use Tix.
My event loop starts like this:
myRoot = Tix.Tk()
myRoot.title("Test Automation")#
myAppGUIObject = myAppGUI(myRoot, logger) #myAPPGUI is the class for
creating GUI
myRoo
On Tue, 30 Sep 2008 19:44:40 -0500, Grant Edwards wrote:
> On 2008-09-30, Steven D'Aprano <[EMAIL PROTECTED]>
> wrote:
>> On Tue, 30 Sep 2008 10:57:19 -0500, Grant Edwards wrote:
>>
> How would the python equivalent go ?
>>>
>>> You would drag yourself out of the 1960s, install numpy, and the
En Wed, 01 Oct 2008 04:51:33 -0300, sc <[EMAIL PROTECTED]> escribió:
Thanx to a recent thread I am able to have a print string
with a variable number of formatters -- what I now lack for
the creation of an elegant print statement is a tuple --
following is the code, the last line of which does n
In message <[EMAIL PROTECTED]>, Stef
Mientki wrote:
> Lawrence D'Oliveiro wrote:
>
>> In message <[EMAIL PROTECTED]>, Stef
>> Mientki wrote:
>>
>>> I'm really amazed by the speed of Python !!
>>> It can only be beaten by findstr, which is only available on windows.
>>
>> Did you try find -exec gre
In message
<[EMAIL PROTECTED]>, HCB
wrote:
> The book "Code Complete" recommends that you put only one class in a
> source file ...
That would only apply to languages like C with no namespace control.
--
http://mail.python.org/mailman/listinfo/python-list
In message
<[EMAIL PROTECTED]>,
Aaron "Castironpi" Brady wrote:
> Do you ever want to scream from the rooftops, "'append' operates by
> side-effect!"?
No. It's an effect, not a side-effect.
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 30, 8:07 pm, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Documenting the problem properly would mean changing the set
> documentation to change at least the definitions of union (|), issubset
> (<=), issuperset (>=), and symmetric_difference (^) from their current
> math set based definitions t
On Oct 1, 10:58 am, Phillip B Oldham <[EMAIL PROTECTED]> wrote:
> On Oct 1, 9:53 am, Sam <[EMAIL PROTECTED]> wrote:
>
> > Did you try WebPy?http://webpy.org/Hum, the website seems to be down today
>
> Not yet - I'm hoping the python community can suggest some examples of
> micro/small frameworks (w
On Oct 1, 10:29 am, Michele Simionato <[EMAIL PROTECTED]>
wrote:
> How about wsgiref in the standard library? It is as small as you can
> get without resorting to CGI.
Interesting... I'll be sure to check that out also.
Someone also mentioned Paste/WebOb, so now I have 3 to test.
Any others?
--
On Wed, 01 Oct 2008 06:58:11 +, Marc 'BlackJack' Rintsch wrote:
>> I would weaken that claim a tad... I'd say it is "usual" to write
>> something like this:
>>
>> alist = []
>> for x in some_values:
>> alist.append(something_from_x)
>>
>>
>> but it is not uncommon (at least not in my c
On Wed, 01 Oct 2008 22:14:49 +1300, Lawrence D'Oliveiro wrote:
> In message
> <[EMAIL PROTECTED]>,
> Aaron "Castironpi" Brady wrote:
>
>> Do you ever want to scream from the rooftops, "'append' operates by
>> side-effect!"?
>
> No. It's an effect, not a side-effect.
"Side-effect" has the techni
Lawrence D'Oliveiro a écrit :
In message
<[EMAIL PROTECTED]>, HCB
wrote:
The book "Code Complete" recommends that you put only one class in a
source file ...
That would only apply to languages like C with no namespace control.
classes in C ?-)
OTHO, 'one class per file' is a standard idiom
Eric wrote:
I've been wanting to learn Python for a while now but I can't decide
on whether to wait for Python 3's final release and learn it or just
go ahead and learn 2.x. Would it be hard to make the transition being
a noob?
I suggest you stick to Python 2.5 or 2.6 for now. It's going to tak
> Not to sound negative, but what's with the 0.0.x version numbers ?
> Maybe it's just me, but seeing a zero major/minor version give me the
> impression of experimental/pre-alpha project, which (from my very
> limited knowledge) doesn't do justice to shedskin's current state.
I know of too many
hi all
I have one normal text file. I need to parse the file, that too
in an associative way .
suppose that below is the normal textfile
name='adf'
id =1
value=344
So when I give 'name' as an input, the output must be 'adf'
so please help me out with this.
regards,
devi.
--
http://
Hi,
Im using Tix on widows XP and I've tried many ways to suppress the root
window. But so far I'm unable to do it.
Please suggest how can I suppress the root window.
My code is as follows:
import Tix
myRoot = Tix.Tk()
myRoot.withdraw()
myRoot.deiconify()
myRoot.title("Test Automation")
#C
On Wed, 01 Oct 2008 09:35:03 +, Steven D'Aprano wrote:
> On Wed, 01 Oct 2008 06:58:11 +, Marc 'BlackJack' Rintsch wrote:
>
>>> I would weaken that claim a tad... I'd say it is "usual" to write
>>> something like this:
>>>
>>> alist = []
>>> for x in some_values:
>>> alist.append(some
On Wed, 01 Oct 2008 11:33:59 +0100, dudeja.rajat wrote:
> Hi,
>
> Im using Tix on widows XP and I've tried many ways to suppress the root
> window. But so far I'm unable to do it.
>
>
> Please suggest how can I suppress the root window.
>
> My code is as follows:
>
> import Tix
> myRoot = Tix
On Wed, 01 Oct 2008 01:02:24 -0700, Phillip B Oldham wrote:
> Are there any python micro-frameworks (like ruby's Camping)?
Maybe `CherryPy`!? It's the heart of other frameworks that add
templating, ORM and the like to it.
Another consideration might be `Werkzeug`.
Ciao,
Marc 'BlackJac
I didn't see this mentioned in the thread yet: the double-lambda is
unnecessary (and a hack). What you should do when you need early
binding is... early binding. ;)
Namely:
f = [lambda n=n: n for n in range(10)]
print f[0]()
print f[1]()
Note the "n=n", this prints 0 and 1 instead of 9/9.
--
htt
On Wed, 01 Oct 2008 08:07:43 +, Lie Ryan wrote:
a = [1, 3, 4, 2]
a = a.sort()
print a
> [None, None, None, None]
*That* would be really odd. The last line should be just a singel `None`
and not a list. :-)
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mai
On Wed, 01 Oct 2008 10:47:28 +, Marc 'BlackJack' Rintsch wrote:
> On Wed, 01 Oct 2008 08:07:43 +, Lie Ryan wrote:
>
> a = [1, 3, 4, 2]
> a = a.sort()
> print a
>> [None, None, None, None]
>
> *That* would be really odd. The last line should be just a singel
> `None` and not
Our solution consists of:
* our own base python distribution, decoupled from the OS one (for
various reasons, one being version independency)
* distutils / setuptools / virtualenv is included in that python
installation, no other eggs installed in site-packages
* virtualenv + Paver to manage bui
On 1 Okt, 12:43, jhermann <[EMAIL PROTECTED]> wrote:
>
> f = [lambda n=n: n for n in range(10)]
> print f[0]()
> print f[1]()
>
> Note the "n=n", this prints 0 and 1 instead of 9/9.
Yes, Terry mentioned this in his response to my first message. Not
with lambdas, however, but he did state that he d
Hello python gurus.
I got quite unusual problem and all my searches to find the answer on my
own were not successful.
Here is the scenario:
I have the python program, let's call it script1.py, this program needs to
execute another python script, let's call it script2.py.
In script1.py I
On Wed, Oct 1, 2008 at 11:44 AM, Lie Ryan <[EMAIL PROTECTED]> wrote:
> On Wed, 01 Oct 2008 11:33:59 +0100, dudeja.rajat wrote:
>
> > Hi,
> >
> > Im using Tix on widows XP and I've tried many ways to suppress the root
> > window. But so far I'm unable to do it.
> >
> >
> > Please suggest how can I
On Oct 1, 3:42 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Wed, 01 Oct 2008 01:02:24 -0700, Phillip B Oldham wrote:
> > Are there any python micro-frameworks (like ruby's Camping)?
>
> Maybe `CherryPy`!? It's the heart of other frameworks that add
> templating, ORM and the like to
Hello:
I have a text file that looks like:
0 23
1 342
3 31
and I want to read the file and print it out like:
0 1 3
23 342 31
How can I do this?
Thnak you in advance,
Ionut
--
http://mail.python.org/mailman/listinfo/python-list
Thank you Almar
It worked :), I now have to format it nicely
Ionut
- Original Message
From: Almar Klein <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, October 1, 2008 2:57:00 PM
Subject: Re: change line with columns when print
Hi,
probably not the best solution, bu
devi thapa wrote:
hi all
I have one normal text file. I need to parse the file, that
too in an associative way .
suppose that below is the normal textfile
name='adf'
id =1
value=344
there are many approaches to config files. But
in your special example, it looks like a simplif
On Wed, 1 Oct 2008 04:43:34 -0700 (PDT)
sandric ionut <[EMAIL PROTECTED]> wrote:
>
>
> Hello:
> I have a text file that looks like:
> 0 23
> 1 342
> 3 31
> and I want to read the file and print it out like:
> 0 1 3
> 23 342 31
>
> How can I do this?
Probably tons of ways. Here's one with no in
Hi,
probably not the best solution, but this should work:
L1 = []
L2 = []
for i in file:
tmp = i.split(" ")
L1.append(tmp[0])
L2.append(tmp[1])
for i in L1:
print i,
print # new line
for i in L2:
print i,
print # new line
Almar
2008/10/1 sandric ionut <[EMAIL PROTECTED]>
Even better,
Thank you all
Ionut
- Original Message
From: D'Arcy J.M. Cain <[EMAIL PROTECTED]>
To: sandric ionut <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Wednesday, October 1, 2008 3:13:55 PM
Subject: Re: change line with columns when print
On Wed, 1 Oct 2008 04:43:34 -07
The period for submitting tutorial proposals for Pycon 2009 (US) is open and
will continue through Friday, October 31th. This year features two
"pre-conference" days devoted to tutorials on Wednesday March 25 & Thursday
March 26 in Chicago. This allows for more classes than ever.
Tutorials are 3-h
Lie Ryan wrote:
On Wed, 01 Oct 2008 11:33:59 +0100, dudeja.rajat wrote:
Please suggest how can I suppress the root window
The root window is the main window, not the DOS box. I think in windows,
you should use pythonw.exe or something to open the python script so not
to open a dos box.
A
Just did a new install of Tcl/tk from activestate.com and IDLE still
not working...
-Tom
On Sep 30, 1:15 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Just installed Python 2.5.2 on a PowerPC G4 running OSX 10.3.9 and
> > when clicking on the IDLE icon in the MacP
HI all,
i have some problem with the code belove, i have a list of servers in
a textfile (elencopc.txt) i would to retrieve informations via WMI
( cicle for ), but i don't understand if the code is correct:
import win32com.client
import string
import sys
listserver = open('c:\\elencopc.txt','r
On Oct 1, 4:03 pm, [EMAIL PROTECTED] wrote:
> HI all,
> i have some problem with the code belove, i have a list of servers in
> a textfile (elencopc.txt) i would to retrieve informations via WMI
> ( cicle for ), but i don't understand if the code is correct:
>
> import win32com.client
> import
[EMAIL PROTECTED] wrote:
Just did a new install of Tcl/tk from activestate.com and IDLE still
not working...
-Tom
Did you install Tcl/Tk 8.5? It won't work with the build of Python from
python.org (it looks for 8.4).
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
--
http://mail.p
Il giorno mar, 16/09/2008 alle 08.31 +0200, Mailing List SVR ha scritto:
> Il giorno lun, 15/09/2008 alle 20.26 +0200, Marco Bizzarri ha scritto:
> > On Mon, Sep 15, 2008 at 8:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> > > Mailing List SVR wrote:
> > >> I have to implement a soap web service
Forgive my newbieness - I want to refer to some variables and indirectly
alter them. Not sure if this is as easy in Python as it is in C.
Say I have three vars: oats, corn, barley
I add them to a list: myList[{oats}, {peas}, {barley}]
Then I want to past that list around and alter one of tho
Hi there.
For most use cases I think about, the iterator protocol is more than enough.
However, on a few cases, I've needed some ugly hacks.
Ex 1:
a = iter([1,2,3,4,5]) # assume you got the iterator from a function and
b = iter([1,2,3]) # these two are just examples.
then,
zip(a,b)
has
Hi,
I wrote small python only script for tcptraceroute some time ago.
This works without a subprocess:
http://www.thomas-guettler.de/scripts/tcptraceroute.py.txt
Gabriel Genellina schrieb:
En Tue, 30 Sep 2008 03:53:21 -0300, cindy jones <[EMAIL PROTECTED]>
escribió:
Hello.. I'm trying to do
Travis Vaught wrote:
Greetings,
The Texas Python Regional Unconference is coming up this weekend
(October 4-5) and I wanted to send out some more details of the
meeting. The web page for the meeting is here:
http://www.scipy.org/TXUncon2008
The meeting is _absolutely free_, so please add y
Ross wrote:
> >>> myList[1]= myList[1]+1
The problem is this makes myList[1] point to a new integer, and not the one
that peas points to.
Python 2.5.1 (r251:54863, Jul 10 2008, 17:25:56)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "help", "copyright", "credits" or "license" for more
Phillip B Oldham schrieb:
On Oct 1, 9:25 am, Lie Ryan <[EMAIL PROTECTED]> wrote:
Most GUI package use event-driven model (e.g. Tkinter).
I've noticed that. I'm thinking more for a web environment (instead of
MVC) or as a HTTP server. I know Twisted has TwistedWeb, but I'm
looking for alternati
On 2008-10-01, Ross <[EMAIL PROTECTED]> wrote:
> Forgive my newbieness - I want to refer to some variables and
> indirectly alter them. Not sure if this is as easy in Python
> as it is in C.
Python doesn't have variables. It has names bound to objects.
When you do an assignment, that binds (or
On Wed, Oct 1, 2008 at 7:53 AM, Ross <[EMAIL PROTECTED]> wrote:
> Forgive my newbieness - I want to refer to some variables and indirectly
> alter them. Not sure if this is as easy in Python as it is in C.
>
> Say I have three vars: oats, corn, barley
>
> I add them to a list: myList[{oats}, {pea
>Make sure you are using the Lucida Console font for the cmd.exe window and
>type the commands:
>
>chcp 1251
>python -c "print ''.join(unichr(i) for i in range(0x410,0x431))"
>
>Output:
>
>?
>
Wowa! I was not aware of that chcp command! Thanks! How could I do that
On Oct 1, 1:13 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote:
> On Wed, 1 Oct 2008 04:43:34 -0700 (PDT)
>
> sandric ionut <[EMAIL PROTECTED]> wrote:
>
> > Hello:
> > I have a text file that looks like:
> > 0 23
> > 1 342
> > 3 31
> > and I want to read the file and print it out like:
> > 0 1 3
>
Hi,
I would like to declare a global variable, which is seen to a
particular function. If I do as the following it works:
x = 1
def test():
global x
print x
return 1
However, it does not helps since my function is in a separate file. In
other words I have a main program which has the follo
Chris Rebert a écrit :
On Wed, Oct 1, 2008 at 7:53 AM, Ross <[EMAIL PROTECTED]> wrote:
Forgive my newbieness - I want to refer to some variables and indirectly
alter them. Not sure if this is as easy in Python as it is in C.
Say I have three vars: oats, corn, barley
I add them to a list: myL
On Oct 1, 4:12 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> Please explain what you want to do.
I'm primarily looking for alternatives to MVC frameworks for web
development, particularly SAAS. I've looked around, and some
whitepapers suggest that event-based frameworks often perform better
tha
Kurda Yon a écrit :
Hi,
I would like to declare a global variable, which is seen to a
particular function.
First point : there's no real 'global' scope in Python. 'global' really
means 'module-level'.
Second point : globals are Bad(tm) anyway.
If I do as the following it works:
x = 1
def
Phillip B Oldham a écrit :
On Oct 1, 4:12 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote:
Please explain what you want to do.
I'm primarily looking for alternatives to MVC frameworks for web
development, particularly SAAS. I've looked around, and some
whitepapers suggest that event-based framew
On Wed, 01 Oct 2008 10:53:08 -0400, Ross wrote:
> Forgive my newbieness - I want to refer to some variables and indirectly
> alter them. Not sure if this is as easy in Python as it is in C.
>
> Say I have three vars: oats, corn, barley
>
> I add them to a list: myList[{oats}, {peas}, {barley}
Hi:
I have the following situation:
nameAll = []
for i in range(1,10,1):
n = "name" + str([i])
nameAll += n
print nameAll
I get:
['n', 'a', 'm', 'e', '[', '1', ']', 'n', 'a', 'm', 'e', '[', '2', ']', 'n',
'a', 'm', 'e', '[', '3', ']', 'n', 'a', 'm', 'e', '[', '4', ']
On Oct 1, 2008, at 12:41 PM, sandric ionut wrote:
Hi:
I have the following situation:
nameAll = []
for i in range(1,10,1):
n = "name" + str([i])
nameAll += n
print nameAll
I get:
['n', 'a', 'm', 'e', '[', '1', ']', 'n', 'a', 'm', 'e', '[', '2',
']', 'n', 'a', 'm
On Oct 1, 2008, at 12:41 PM, sandric ionut wrote:
Hi:
I have the following situation:
nameAll = []
for i in range(1,10,1):
n = "name" + str([i])
nameAll += n
print nameAll
I get:
['n', 'a', 'm', 'e', '[', '1', ']', 'n', 'a', 'm', 'e', '[', '2',
']', 'n', 'a', 'm', 'e'
On Wed, 01 Oct 2008 07:19:44 -0700, yqyq22 wrote:
> My problem is how to translate this vbs in python:
>
> Dim fso
> Dim strComputer
> Set fso = CreateObject("Scripting.FileSystemObject") Set ElencoPC =
> fso.OpenTextFile("elencoPC.txt" , 1, False) Do Until
> ElencoPC.AtEndOfStream
> strComputer =
[EMAIL PROTECTED] wrote:
HI all,
i have some problem with the code belove, i have a list of servers in
a textfile (elencopc.txt) i would to retrieve informations via WMI
( cicle for ), but i don't understand if the code is correct:
Try this, using http://timgolden.me.uk/python/wmi.html :
On Wed, 1 Oct 2008 09:41:57 -0700 (PDT)
sandric ionut <[EMAIL PROTECTED]> wrote:
> Hi:
>
> I have the following situation:
> nameAll = []
> for i in range(1,10,1):
> n = "name" + str([i])
> nameAll += n
> print nameAll
>
> I get:
>
> ['n', 'a', 'm', 'e', '[', '1', ']'
Hi everyone,
After having used Python on Linux for some time, I now have to do
Python coding on Windows. I am big fan of the interactive Python shell
to test, eg, regexps.
Is there an interactive Python shell on Windows that supports:
- easy copy-pasting to/from an editor? (as opposed to the cum
Thank you:
but I would like to have them not like:
['name1', 'name2', 'name3', 'name4', 'name5', 'name6', 'name7',
'name8', 'name9']
but like
name1 name2 name3 name4 name5 name6 name7 name8 name9
Is it possible?
Ionut
- Original Message
From: Tommy Grav <[EMAIL PROTECTED]>
To:
[EMAIL PROTECTED] wrote:
Is there an interactive Python shell on Windows that supports:
- easy copy-pasting to/from an editor? (as opposed to the cumbersome
"mark", "copy" and then "paste" sequence that any terminal on Windows
seems forced to adopt)
- readline-like command history (up/down for
[EMAIL PROTECTED] wrote:
> Hi everyone,
>
> After having used Python on Linux for some time, I now have to do
> Python coding on Windows. I am big fan of the interactive Python shell
> to test, eg, regexps.
>
> Is there an interactive Python shell on Windows that supports:
>
> - easy copy-pasting t
On Wed, 1 Oct 2008 10:03:50 -0700 (PDT)
sandric ionut <[EMAIL PROTECTED]> wrote:
> Thank you:
>
> but I would like to have them not like:
> ['name1', 'name2', 'name3', 'name4', 'name5', 'name6', 'name7',
> 'name8', 'name9']
>
> but like
> name1 name2 name3 name4 name5 name6 name7 name8 name9
Luis Zarrabeitia wrote:
> For most use cases I think about, the iterator protocol is more than
> enough. However, on a few cases, I've needed some ugly hacks.
>
> Ex 1:
>
> a = iter([1,2,3,4,5]) # assume you got the iterator from a function and
> b = iter([1,2,3]) # these two are just exampl
On Wed, 01 Oct 2008 10:46:33 -0400, Luis Zarrabeitia wrote:
> Hi there.
>
> For most use cases I think about, the iterator protocol is more than
> enough. However, on a few cases, I've needed some ugly hacks.
>
> Ex 1:
>
> a = iter([1,2,3,4,5]) # assume you got the iterator from a function and
On Wed, 01 Oct 2008 11:11:29 +, Igor Kaplan wrote:
> Hello python gurus.
>
> I got quite unusual problem and all my searches to find the answer on
> my
> own were not successful.
> Here is the scenario:
> I have the python program, let's call it script1.py, this program
> needs to
>
Hello again,
I wanted to give your solution a try, but got stuck.
The file that I want to replace the "standard input" with is a pseudo file
object with a custom read method. I have a hard time finding out how
to have a file descriptor (or fileno) associated with it.
I tried inheriting from the "f
On Wed, 01 Oct 2008 14:09:09 +0200, Tino Wildenhain wrote:
> devi thapa wrote:
>> hi all
>>
>>I have one normal text file. I need to parse the file, that
>> too in an associative way .
>> suppose that below is the normal textfile
>>
>> name='adf'
>> id =1
>> value=344
>>
>>
> the
ANNOUNCING
eGenix.com mxODBC Connect
Database Interface for Python
Version 0.9.2 (beta)
Our new client-server product for connecting Python applications
On Wed, 01 Oct 2008 18:09:20 +0200, Bruno Desthuilliers wrote:
> Phillip B Oldham a écrit :
>> On Oct 1, 4:12 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote:
>>> Please explain what you want to do.
>>
>> I'm primarily looking for alternatives to MVC frameworks for web
>> development, particularly
On Sep 30, 5:49 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Tue, 30 Sep 2008 19:44:51 -0300, Daniel <[EMAIL PROTECTED]>
> escribió:
>
>
>
> > On Sep 30, 4:17 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> > wrote:
> >> En Tue, 30 Sep 2008 18:38:19 -0300, Daniel <[EMAIL PROTECTED]>
>
On Wed, 01 Oct 2008 08:17:15 -0700, Siegfried Heintze wrote:
(snip)
> The code was a little confusing because those two apostrophes look like
> a double quote!
Tips: use mono-spaced font. There is no ambiguity.
(snip)
> I think part of the problem is that Lucida Console is not as capable as
You could take a look at this interesting looking server that popped up
on the mailing list a while back:
http://code.google.com/p/yield/
On Wed, 2008-10-01 at 01:01 -0700, Phillip B Oldham wrote:
> Are there any python event driven frameworks other than twisted?
> --
> http://mail.python.org/mai
Il Wed, 1 Oct 2008 09:53:48 -0700 (PDT), [EMAIL PROTECTED] ha scritto:
> Is there an interactive Python shell on Windows that supports:
>
> - easy copy-pasting to/from an editor? (as opposed to the cumbersome
> "mark", "copy" and then "paste" sequence that any terminal on Windows
> seems forced t
On Oct 1, 5:43 am, jhermann <[EMAIL PROTECTED]> wrote:
> I didn't see this mentioned in the thread yet: the double-lambda is
> unnecessary (and a hack). What you should do when you need early
> binding is... early binding. ;)
>
> Namely:
>
> f = [lambda n=n: n for n in range(10)]
> print f[0]()
> p
On Wed, 01 Oct 2008 09:41:57 -0700, sandric ionut wrote:
> Hi:
>
> I have the following situation:
> nameAll = []
Here you defined nameAll as a list
> for i in range(1,10,1):
That range is superfluous, you could write this instead[1]:
for i in range(10):
> n = "name" + str([i])
On Sep 30, 7:39 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> Steven D'Aprano wrote:
> > On Mon, 29 Sep 2008 21:03:07 -0700, namekuseijin wrote:
>
> >>> Why isn't len implemented as a str.len and list.len method instead of a
> >>> len(list) function?
> >> Because postfix notation sucks. The natura
On Oct 1, 10:46 am, Luis Zarrabeitia <[EMAIL PROTECTED]> wrote:
> Hi there.
>
> For most use cases I think about, the iterator protocol is more than enough.
> However, on a few cases, I've needed some ugly hacks.
>
> Ex 1:
>
> a = iter([1,2,3,4,5]) # assume you got the iterator from a function and
1 - 100 of 166 matches
Mail list logo