Hi there,
Anybody know how to fix this issue on a mac?
❯ /usr/local/bin/python
dyld: Library not loaded:
/usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python
Referenced from: /usr/local/bin/python
Reason: image not found
[1]32209 abort /usr/local/bi
Hi Folks,
>From experience, could someone point me to a library that can do a diff
between two separate text files...
*difflib* doesn't seem to cut it to this end....
*./noah*
neo - network engineering and operations
--
https://mail.python.org/mailman/listinfo/python-list
tallest mountain in Africa, the Kilimanjaro.
For more about Tanzania [1] http://www.tanzania.go.tz/home/pages/68
Cheers,
Noah
Community Moderator
https://twitter.com/PyconTanzania
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I am trying to migrate information and data between two systems using
their corresponding APIs. I am using python requests.
I place a get request and the response from the API is "{'id': 32,
'description': u'Firewall Outside', 'address': u'10.10.10.230/30'}"
I then take that information
og.python.org/2018/04/new-pypi-launched-legacy-
> pypi-shutting.html
>
> Laura Hampton
> laura at laura-hampton dot com
> --
> https://mail.python.org/mailman/listinfo/python-announce-list
>
> Support the Python Software Foundation:
> http://www.python.org/psf/donations/
>
--
*./noah*
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I am trying to install a python package with about 80 dependencies on a
server that is not connected to the internet and has no local proxy. I
can ssh to it via VPN.
I was able to find python bundle and download the tarballs for all the
main python package and all the tarballs for the s
thon user
community?
100% Yes
- Would you be willing to help us spread the word about Tech.io?
Yes yes yes...
Thanks a lot for checking,
Cheers!
Aude
Cheers,
Noah
-
Evolve or Extinct. Enable IPv6 now?
--
https://mail.python.org/mailman/listinfo/python-list
On 6 Oct 2016 04:56, "Michael Torrie" wrote:
>
> On 10/05/2016 11:46 AM, Noah wrote:
> > Hello folk,
> >
> > I would like to use a python script to ssh into a server using a
username
> > and password and perhaps ass port.
> >
> > Any ideas on
+1 at Steve
On 6 Oct 2016 19:17, "Steve D'Aprano" wrote:
> On Fri, 7 Oct 2016 02:30 am, alister wrote:
>
> > On Thu, 06 Oct 2016 08:22:05 -0700, desolate.soul.me wrote:
> >
> >> So I've just started up with python and an assignment was given to me by
> >> a company as an recruitment task.
>
On 5 Oct 2016 22:02, "Ethan Furman" wrote:
>
> On 10/05/2016 10:46 AM, Noah wrote:
>
>> I would like to use a python script to ssh into a server using a username
>> and password [...]
>
>
> I've written a module called scription to help with scripts;
Hi Rob
Thank you for your email.
I am guessing that is some module. Ok i will pip it and see how it goes.
Noah
On 5 Oct 2016 21:32, "Rob Gaddi" wrote:
> Noah wrote:
>
> > Hello folk,
> >
> > I would like to use a python script to ssh into a server usi
Hello folk,
I would like to use a python script to ssh into a server using a username
and password and perhaps ass port.
Any ideas on how to script that.
Thanks
Noah
--
https://mail.python.org/mailman/listinfo/python-list
Thank you and ok
--
Sent from Gmail Mobile
--
https://mail.python.org/mailman/listinfo/python-list
Thank you
--
Sent from Gmail Mobile
--
https://mail.python.org/mailman/listinfo/python-list
thank you
On Thu, May 26, 2016 at 2:00 AM, wrote:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subj
Hi,
I am using this example:
http://spartanideas.msu.edu/2014/06/20/an-introduction-to-parallel-programming-using-pythons-multiprocessing-module/
I am sending and receiving communication from the worker processes.
Two issues. the join is only getting to the process and waiting.
When I commen
to it?
What are some options that work well?
Cheers,
Noah
--
https://mail.python.org/mailman/listinfo/python-list
gt; It looks to me as if my result is coming from a cache node in Sydney;
> yours is coming from some other cache node, so it's not just one node
> that's down.
>
> Cc'ing in the www list in case someone there knows, and I'll create a
> github issue to ping the
Hi there List,
I am trying to get a value back to IP using the netaddr python module.
How do I get the value 'ip' back to IP format? how is it done?
snip
print IPNetwork(v4_peer_ip).value
ip = IPNetwork(v4_peer_ip).value + 1
print ip
--- snip ---
Cheers,
Noa
Hi list,
I am not clear how to fix this issue.
Traceback (most recent call last):
File "./command.py", line 81, in
connect(host, USER, PASSWORD)
File "./command.py", line 63, in connect
dump = etree.tostring(xml_cmd)
File "lxml.etree.pyx", line 3165, in lxml.etree.tostring
(src/l
Hi there,
The following code I am using to read in lines from a text file. The
indentation of the text is getting lost. How can I correct that?
for file in files:
with open (file, "r") as file:
lines = file.readlines()
for line in lines:
line = r
this well?
Cheers,
Noah
--
https://mail.python.org/mailman/listinfo/python-list
HI there,
I have some amateur python questions. Is there a beginners python mail
list?
Cheers,
Noah
--
https://mail.python.org/mailman/listinfo/python-list
Hello, I'm new to Python, have v3.0 32bit installed on Windows 7, installed
distribute, now trying to install pymysql and am getting the below error. Any
pointers on how to fix? thanks!! -Noah
[C:\Python32]pip install --upgrade distribute
Real name of requirement distribute is distr
On Wed, Feb 1, 2012 at 12:44 AM, Andres Soto wrote:
> Hi,
> I'm writing a function which receive a list which elements are strings or
> new lists (sublists) containing strings.
> How can I verify if sone element of the list (which is contained in a
> variable) is a list or a string?
> I found the
On Thu, Jan 19, 2012 at 10:47 AM, Steven D'Aprano
wrote:
> On Thu, 19 Jan 2012 20:43:23 +1100, Chris Angelico wrote:
>
>> On Thu, Jan 19, 2012 at 3:36 PM, Steven D'Aprano
>> wrote:
>>> With all the tools installed, it's a matter of a few minutes effort to
>>> build from scratch:
>
> [...]
>> Now,
On Sat, Jan 14, 2012 at 7:08 PM, Joshua Miller wrote:
> I've looked there and it didn't worki may've made all the nesscary
> changes manually anyways though i'm not sure...
What about it didn't work?
Have a read of this too -
http://wiki.python.org/moin/PortingPythonToPy3k and if you're still
On Sat, Jan 14, 2012 at 5:06 PM, Joshua Miller wrote:
> Ok i'm trying to convert https://github.com/rdeaton/spyral to python3
> but i'm at a loss on how to actually use 2to3. Can someone explain
> it's proper use to me so i can do the conversion? prefereably where i
> can take "C:\Python32\Lib\sit
On Sat, Jan 14, 2012 at 2:39 AM, Terry Reedy wrote:
> On 1/13/2012 3:42 PM, Noah Hall wrote:
>>
>> On Fri, Jan 13, 2012 at 8:07 PM, Tamer Higazi
>> wrote:
>>>
>>> dear people!
>>> I have just opened my MTU client, and figured out that thro
On Fri, Jan 13, 2012 at 8:07 PM, Tamer Higazi wrote:
> dear people!
> I have just opened my MTU client, and figured out that through my
> comment, i caused a complete NONSENSE discussion at all.
>
>
> 1. I am not a zealot or whatever. I code on Linux and port it on MAC and
> WINDOWS. I do write so
On Fri, Jan 13, 2012 at 7:54 AM, Stefan Behnel wrote:
> Noah Hall, 13.01.2012 08:29:
>> I'M SO COOL
>> USE MY HARDCORE GENTOO INSTALL THAT TOOK 36 HOURS AND SHAVED 2 SECONDS
>> OFF MY BOOTUP TIME
>
> Just an off-topic thing that your comment above reminded me of
On Fri, Jan 13, 2012 at 5:47 AM, alex23 wrote:
> On Jan 13, 3:02 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> Why is it that only Linux and Mac users are accused of being "zealots"?
>
> Incidentally, in the post I replied to, Tamer was talking about
> Windows 7, so there's that
On Wed, Dec 21, 2011 at 4:39 AM, Emeka wrote:
>
> Hello All,
> v = []
>
> def add_to_list(plist):
> u = plist.append(90)
> return u
>
> add_to_list(v) # This function call returns nothing
> Could someone explain why this function call will return nothing?
It's because add_to_list return
On Fri, Nov 25, 2011 at 5:08 AM, Matt Joiner wrote:
> I haven't heard of you before, but feel like I've missed out on something.
>
> Do you (or someone else) care to link to some of your more contentious work?
Ignore him, he's a troll with an unjustly inflated ego.
--
http://mail.python.org/mail
On Sat, Oct 15, 2011 at 12:44 AM, MrPink wrote:
>
> Is there a function in Python that can be used to test if the value in
> a string is an integer? I had to make one up for myself and it looks
> like this:
>
> def isInt(s):
> try:
> i = int(s)
> return True
> except ValueErro
On Wed, Oct 12, 2011 at 12:28 PM, Laurent wrote:
>
>> Include from __future__ import division on the top of your file
>>
> from __future__ import division
> 1/2
>>
>> 0.5
>>
>
> Wohaw. This means that this behavior is going to be default in a foreseeable
> future ?
Never in Python 2.x,
On Wed, Oct 12, 2011 at 11:14 AM, Laurent Claessens wrote:
> This is well known :
>
1/2
> 0
>
> This is because the division is an "integer division".
>
> My question is : how can I evaluate 1/2 to 0.5 ? Is there some non integer
Include from __future__ import division on the top of your fil
On Wed, Jun 29, 2011 at 9:34 PM, Andrew Berg wrote:
> I didn't get at least two messages from the "call a function every 10
> seconds thread", and possibly some other messages, and I access the
> group via the mailing list. I use the latest stable Thunderbird, if that
> matters. I've only noticed
On Tue, Jun 28, 2011 at 6:32 PM, Ellerbee, Edward wrote:
> Thank you!
>
> That works perfect, I'll have to look into string formatting more.
>
> My next issue to solve I've been researching is:
>
> How to condense a group of numbers to a wildcard list. For example:
>
> 252205
> 252206
> 252208
> 2
On Tue, Jun 28, 2011 at 5:05 PM, Ellerbee, Edward wrote:
> Hi all, newbie question here. I'm using python 2.7. I've built my first
> program to pull some info off the web, process it, and build dialpeers for a
> cisco router. I have 2 problems - the first is the formatting of printing
> the gather
On Mon, Jun 27, 2011 at 11:18 PM, Amaninder Singh wrote:
> Yes, I think I am using 3.0 version. So how much difference is in between
> these two?
> On Jun 26, 2011, at 11:18 PM, Noah Hall wrote:
>> On Mon, Jun 27, 2011 at 8:05 AM, Amaninder Singh
>> wrote:
>>> Hi,
On Mon, Jun 27, 2011 at 8:05 AM, Amaninder Singh wrote:
> Hi,
> I am fairly new to python, I am trying to write simple code and It is
> giving me syntax error. I am reading a book and following the
> directions as it says in the book but I am not sure why it is not
> working. Please guide me throu
On Sun, Jun 26, 2011 at 7:28 PM, Marc Aymerich wrote:
> Hi,
> I'm trying to define a function that has an optional parameter which
> should be an empty list whenever it isn't given. However, it takes as
> value the same value as the last time the function was executed. What
> is the reason of this
On Sun, Jun 26, 2011 at 4:28 PM, rzed wrote:
> steve+comp.lang.pyt...@pearwood.info wrote in
> news:4e074768$0$29982$c3e8da3$54964...@news.astraweb.com:
>
>> rzed wrote:
>>
>>> I've tried to install PySVG in a Python 3 setting, and I get a
>>> few errors on the build. Most are easy to fix, but thi
On Sun, Jun 26, 2011 at 2:04 PM, rzed wrote:
> I've tried to install PySVG in a Python 3 setting, and I get a few
> errors on the build. Most are easy to fix, but this one I can't
> explain or fix:
>
>
> Traceback (most recent call last):
> File "", line 1, in
> File "builders.py", line 12, in
ot, and use that along with filter on
your list of numbers. Several examples exist, it's quite a popular
question.
HTH.
Noah.
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jun 23, 2011 at 6:18 PM, Guillaume Martel-Genest
wrote:
> On Jun 23, 9:41 am, Gnarlodious wrote:
>> Is there a way to declare a project-wide variable and use that in all
>> downstream modules?
>>
> What about using an environment variable?
Yes, that's fine, but only if the data is suitab
On Thu, Jun 23, 2011 at 3:09 PM, Gnarlodious wrote:
> On Jun 23, 7:59 am, Noah Hall wrote:
>> >>>from a import x
>
> I'm doing that:
> import Module.Data as Data
Well, that's not quite the same. You're using Module.Data as Data - I
guess you'v
On Thu, Jun 23, 2011 at 2:41 PM, Gnarlodious wrote:
> Is there a way to declare a project-wide variable and use that in all
> downstream modules?
Well, the standard way you should do it is to use import to import a
certain variable - for example -
a.py -
x = 3
>>>from a import x
>>>x
3
--
ht
On Wed, Jun 22, 2011 at 7:54 PM, sidRo wrote:
> How to declare a constant in python 3?
There aren't true constants in Python, but instead we use a standard
defined by PEP 8, which states constants are in all caps, for example,
PI = 3.14, as opposed to pi = 3.14 which could change (according to
PE
On Wed, Jun 22, 2011 at 4:45 PM, Chetan Harjani
wrote:
> why tuples are immutable whereas list are mutable?
Because an immutable data type was needed, and a mutable type was also needed ;)
> why when we do x=y where y is a list and then change a element in x, y
> changes too( but the same is not
On Tue, Jun 21, 2011 at 7:05 PM, Billy Mays wrote:
> I have always found that iterating over the indices of a list/tuple is not
> very clean:
>
> for i in range(len(myList)):
> doStuff(i, myList[i])
> I know I could use enumerate:
>
> for i, v in enumerate(myList):
> doStuff(i, myList[i])
>
On Sun, Jun 19, 2011 at 2:41 PM, candide wrote:
> With Python 2.7 :
>
x="foo"
print '"'+x+'"'
> "foo"
> What is this curious syntax on line 2 ? Where is it documented ?
Just to make it clear to you what is happening -
>>> x = "foo"
>>> print ' " ' + x + ' " '
" foo "
>>>
Anyway, it'
On Tue, Mar 22, 2011 at 11:30 AM, Giovani wrote:
>> I don't know whether this site is useful or not.
>>
>> Assuming this site is serious:
>> If you are already subscribed you might be able to give some feedback.
>>
>> One can't even see the list of courses without regsitering.
>> This is very unpr
> class Message:
> def __init__(self,string1,string2,lenstr1,lenstr2):
> self.string1="MY"
> self.string2="NAME"
> self.lenstr1=lenstr1
> self.lenstr2=lenstr2
The variables string1 and string2 that you're passing here are in fact
useless. They don't do anything insid
On Sun, Mar 6, 2011 at 3:11 PM, Victor Subervi wrote:
> Ah. I thought I had to "return" something!
Well, based on what you asked, you would've, but based on the code,
all it was doing is printing "returnValue - value"
Of course, a better way of doing it would be to use formatting -
For example,
On Sun, Mar 6, 2011 at 2:45 PM, Victor Subervi wrote:
> Hi;
> How do I translate this PHP code?
>
> if($ok){
> echo "returnValue=1";
> }else{
> echo "returnValue=0";
> }
>From the code provided -
if ok:
print 'returnValue=1'
else:
print 'returnValue=0'
--
http://mail.python.org/
On Fri, Mar 4, 2011 at 12:47 PM, loopzhong001 wrote:
> Dear All,
> Would anyone tell me haow to start?
Well, to start on this mailing list - 1) Name the networking
framework/modules you want to use (if you have one, else say "can
someone suggest a networking framework/module?") 2) Say what y
On Fri, Feb 18, 2011 at 4:54 PM, Michael Torrie wrote:
> On 02/17/2011 04:10 PM, Werner wrote:
> Just for your information, your code is the equivalent of:
>
> while True:
> temp = range(2000)
>
> The for loop does absolutely nothing in your case. After the range is
> computed, the for loo
On Wed, Feb 2, 2011 at 9:25 PM, Emile van Sebille wrote:
> ActivePython 2.6.1.1 (ActiveState Software Inc.) based on
> Python 2.6.1 (r261:67515, Dec 5 2008, 13:58:38) [MSC v.1500 32 bit (Intel)]
> on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
import sys
On Wed, Feb 2, 2011 at 7:44 PM, rantingrick wrote:
>> On Feb 1, 11:23 am, rantingrick wrote:
>> > py> troll_group.append("Red John")
> py> flamer_group.append(troll_group.pop("Corey Richardson"))
Out of interest, what interpretor uses "py>"?
I've never seen any. Just sayin'.
--
http://mail.pyt
ll)
> Bryan ? (annoying troll)
> Corey Richarson
> Nicholas Devenish
> Alexander Kapps
> rusi ?
> Andre ?
> Geremy Condra (troll-wagoneer)
> Ethan Furman
> Noah Hall
> Adam Skutt
> Arndt Rodger Schnieder
> Mark Roseman (Tkinter's minion)
These people, includi
On Mon, Jan 24, 2011 at 5:57 PM, rantingrick wrote:
> Why don't you just tell him to shut the hell up Mark?
> accidentally quoting me too much. You guys are very disappointing to
> this community. Everyone here needs a voice. We must never engage in
> behaviors that would limit speech from our c
On Sun, Jan 23, 2011 at 5:31 PM, rantingrick wrote:
> So far only trolls (besides Terry, Octavian, D'Aprano) have replied.
> In my time here within the Python community i have only met one person
> who shares my in-depth knowledge of Tkinter. That person is Kevin
> Waltzer. So outside of Python-de
> """how can i use a return statement to write a function that returns the
> string "Testing Functions-lower case: "and the lowercase representation of
> its string parameter""" If I uncomment the above, nothing outputs to
> console:(
def lower_case(s):
return "Testing Functions-lower case: %
On Fri, Jan 7, 2011 at 3:32 AM, Edward A. Falk wrote:
> In article <
> cd9d1c80-b1d2-4d20-9896-a6fd77bd7...@j25g2000yqa.googlegroups.com>,
> Ian wrote:
> >
> >In Python 3, the '/' operator always performs true division.
>
> How can I get integer division?
>
> --
>-Ed Falk, f...@despams.
On Thu, Jan 6, 2011 at 10:49 PM, francesco
wrote:
> I'm pretty new in Python language. I have a problem with numbers: it
> seems python doesn't know any more how to count!
> I get only the down rounded integer
> 20/8 = 2
> 8/3=2
> I probably changed some option to round the numbers, but I don't
>
The most Pythonic ways of checking if a value is within a list is to use the
"in" keyword, for example, using your data -
5 in [2, 6, 5]
Which will return True, as 5 is in the list. You can then use this in the
following generic way -
if variable in list:
do_things
Where variable is the varible y
print stdout.read()
>>> client.close()
>>>
>>> #--Initialization-
>>> if __name__ == "__main__":
>>> options()
>>> storagessh()
>>
>> Again, as you were asked on the original post -- full tracebacks and
>> explain "what is not working".
>>
>> The use of global variables scares me -- why are those needed?
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
this works for me:
def storagessh():
paramiko.util.log_to_file(plog)
client = paramiko.SSHClient()
client.load_system_host_keys()
client.connect(hostname, sshport, suser)
stdin, stdout, stderr = client.exec_command('ps')
print stdout.read()
stdin, stdout, stderr = client.exec_command('help')
print stdout.read()
client.close()
1) you reassign stdin, stdout, stderr so with your code you will never
see the stdout of the first command ('show')
2) the 'show' command did not exist on my system, so no output. I
substituted 'ps' and added the print statement
also, using user 'root' for dev code is a Bad Thing.
--
Noah Dain
--
http://mail.python.org/mailman/listinfo/python-list
tml#4
rdiff-backup uses librsync, not rsync.
I'm not sure if rsync uses librsync, but one could speculate that
they share some code and perhaps some of the same problems.
But 2GB seems excessive unless you are dealing with millions of files.
A memory leak seems more likely.
--
Noah
--
http://mail
seen[id(olist)] = None
seen[id(seen)] = None
# _getr does the real work.
_getr(gcl, olist, seen)
return olist
--
Noah
--
http://mail.python.org/mailman/listinfo/python-list
So your tunnel command would have to be
something like this:
tunnel_command = '''bash -c "ssh -N -L ...foo... &"'''
ssh_tunnel = pexpect.spawn (tunnel_command % globals())
--
Noah
--
http://mail.python.org/mailman/listinfo/python-list
(I understand that usually you would bind these function so that they
are called as a callback.)
I don't mind defining the constants myself. I just want to make sure
that I'm not missing something already done for me. Does anyone happen
to have a complete list of Event.ty
On Apr 9, 1:57 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> As far as I know, there is no "os.process". Maybe you meant os.system
> or the subprocess module?
>
> Mike
Yeah, I was thinking "subprocess" module.
--
Noah
--
http://mail.python.org/mailman/listinfo/python-list
able to just get
by
with os.process.
--
Noah
--
http://mail.python.org/mailman/listinfo/python-list
seudotty (pty).
Pexpect takes care of this problem. See http://www.noah.org/wiki/Pexpect
for more info.
--
Noah
--
http://mail.python.org/mailman/listinfo/python-list
None
elements and instead just return (('j',10)), but this isn't a huge
deal.
This works and is clear, but it makes copies of items:
>>> ii = D.items()
>>> for i in range (0, len(ii), N):
... print ii[i:i+N]
...
[('a', 1), ('c', 3), ('b', 2)]
[('e', 5), ('d', 4), ('g', 7)]
[('f', 6), ('i', 9), ('h', 8)]
[('j', 10)]
--
Noah
--
http://mail.python.org/mailman/listinfo/python-list
package your python project and libs as a self-extracting compressed
executable:
http://www.noah.org/wiki/Python_zip_exe
--
Noah Spurrier
--
http://mail.python.org/mailman/listinfo/python-list
ocess.
Possibly you want to use the interact() method.
It is not clear from your message if you want to interact with
the child process as if it were your new shell. If you do,
then take a look at the interact() method.
#!/usr/bin/python
importpexpect
import os
passwd="user_B"
ly by writing to a Popen pipe.
A lot of people also use the pexpect python library to "drive" other
programs, especially if you need python to act differently depending
upon the output of the called programs.
Either way, this list's archives do have some good examples as to the
u
On Dec 19, 7:33 pm, Noah <[EMAIL PROTECTED]> wrote:
> /usr/lib/python2.5/trace.py --missing --count --summary tools/testall.py
>
> When I examine the *.cover files that are generated after a test run
> I do not see coverage information for the methods that were run
> in a
hen I examine the *.cover files that are generated after a test run
I do not see coverage information for the methods that were run
in a separate thread. How can I collect coverage information for
methods that only run in a separate thread (never in the main thread)?
Any tips?
--
Noah Spurrier
--
of them are found and adjusted appropriately.
.
Homepage: http://bicyclerepair.sourceforge.net/
--
Noah Dain
"The beatings will continue, until morale improves" - the Management
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 9, 1:41 pm, John Machin <[EMAIL PROTECTED]> wrote:
> A pattern that can validly be described as a "regular expression"
> cannot count and thus can't match balanced parentheses. Some "RE"
> engines provide a method of tagging a sub-pattern so that a match must
> include balanced () (or [] or
I have been trying to write a regular expression that identifies a
block of text enclosed by (potentially nested) parentheses. I've found
solutions using other regular expression engines (for example, my text
editor, BBEdit, which uses the PCRE library), but have not been able
to replicate it using
ct works under Cygwin on Windows, but not under the native
Windows Python.
Email me if you have questions about Pexpect and I'll try to help you.
Yours,
Noah
--
http://mail.python.org/mailman/listinfo/python-list
events={'(?i)password': 'server_password'})
That's all there is to it. The run() function will run the given scp
command.
When it see 'password' in the output it will send the server_password.
Yours,
Noah
Yours,
Noah
--
http://mail.python.org/mailman/listinfo/python-list
available right away then one character will be returned
immediately.
It will not wait for 30 seconds for another 99 characters to
come in.
This is a wrapper around os.read(). It uses select.select() to
implement the timeout. """
Yours,
Noah
--
http://mail.python.org/mailman/listinfo/python-list
Noah Rawlins wrote:
>
> >>> strList = []
> >>> strList.append('this is an example of a thing i would like to have')
> >>> strList.append('another example of something else i would like to
> have')
> >>> strList.appen
ll like to have')
>>> [word for word in strList[0].split() if word in reduce(lambda x, y:
x.intersection(y), [set(str.split()) for str in strList])]
['example', 'of', 'i', 'would', 'like', 'to', 'have']
but you still have issues with mutiple matches and how they are handled
etc...
noah
--
http://mail.python.org/mailman/listinfo/python-list
I do not think this thread is an embarrassment to the community. I
think it speaks volumes about people's commitment to free software.
While we can applaud such contributions it is no excuse to waiver on
one's ethics and principles.
Regardless of content, or even format, if the Python Papers are
On Nov 22, 12:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Thanks for the comments. PDF is, to some extent, a requirement. To
> preserve the entire journal as a single "entity" with a reasonably high
> production quality, there seems to be no way around it. I could not
> find a sufficie
Ben Finney wrote:
> Really? Where does Python guarantee that the left side *must* be
> evaluated before the right side of a comparison? (If the right side
> were to be evaluated first, the left might end up with a greater
> value.)
>
http://docs.python.org/ref/evalorder.html
--
http://mail.pytho
E_Match object at 0xb7dd5820>
>>> defPatt.match("#define foo_BarBaz").groups()
('foo_BarBaz',)
In general '\w' is the same as [A-Za-z0-9_]
There are other considerations too... I don't know if
#define abc (x)
But the main thing here is the use of
t;", line 1
> f(*[1,2], a=1)
> ^
> SyntaxError: invalid syntax
>
> Thanks,
> Rick
>
I don't know if it's because there's some potential ambiguity (that I'm
not seeing), but yeah, you just can't do that. This should work though...
>>> f(*[1, 2], **{'a':1})
noah
--
http://mail.python.org/mailman/listinfo/python-list
Jason wrote:
> Noah wrote:
> > Am I the only one that finds the super function to be confusing?
>
> Unfortunately, I don't see a way of avoiding this problem with super().
> Any such super command resolves in the mro order. Since the mro order
> invoked at a certain
ake this more clear, but
it doesn't (to me).
Is there a "just do this" answer for 90% of the use cases?
Yours,
Noah
--
http://mail.python.org/mailman/listinfo/python-list
the list because reverse() a
list method (not a tuple method) and because it operates
in-place (does not return a value). This kind of wrecks doing
it in a list comprehension. What I'd like to say is something like
this:
y = [t.reverse() for t in y]
Even if reverse worked on tuples, it
[EMAIL PROTECTED] wrote:
> Rob Williscroft wrote:
>
> > If this is more than idle curiosity I strongly suggest you post
> > a version of the python code you need to translate to C++.
>
> For the moment this is just healthy curiosity but i will still post the
> code i would like to see translated:
[EMAIL PROTECTED] wrote:
> I am no C++ expert but i guess there might be some in the Python and
> C++ newsgroups.
>
Provide compilable code that exibits your problem. The technique is
sound; you must be screwing up somehow.
#include
using namespace std;
template
class counted
{
static i
1 - 100 of 135 matches
Mail list logo