Howdy all,
I am pleased to announce the release of version 1.5.6 of the
‘python-daemon’ library.
The current release is always available at
https://pypi.python.org/pypi/python-daemon/>.
The project's forums and VCS are hosted at Alioth
https://alioth.debian.org/projects/python-daemon/>.
Signif
On Wed, 10 Dec 2014 17:53:05 +1100, Chris Angelico wrote:
> On Wed, Dec 10, 2014 at 5:44 PM, Steven D'Aprano
> wrote:
>> It would be nice if product iterators behaved like xrange() objects and
>> could perform "in" tests without exhausting the iterator, but they
>> don't. That's sad.
>
> It'd be
On 12/10/2014 1:53 AM, Chris Angelico wrote:
On Wed, Dec 10, 2014 at 5:44 PM, Steven D'Aprano wrote:
It would be nice if product iterators behaved like xrange() objects and
could perform "in" tests without exhausting the iterator, but they don't.
That's sad.
It'd be very difficult to do that
On Tue, Dec 9, 2014 at 11:30 PM, Chris Angelico wrote:
> Are you sure it isn't? Your 'space' is an iterable cubic
> cross-product. Your first loop checks (0,0,0) which is the first
> element returned, and is thus fast... but it also *consumes* that
> first element. The next time you test it, the e
On Wed, Dec 10, 2014 at 5:44 PM, Steven D'Aprano wrote:
> It would be nice if product iterators behaved like xrange() objects and
> could perform "in" tests without exhausting the iterator, but they don't.
> That's sad.
It'd be very difficult to do that in the general sense. But it should
be poss
On 12/10/2014 07:28 AM, Dennis Lee Bieber wrote:
On Tue, 09 Dec 2014 14:24:51 +0100, manduk declaimed
the following:
"A web page"?
Did you mean a Web server?
ok I mean I would like to view the datas on a web page
Basically, you'll have to upload your data to a Web Server, then the
server wi
On Wed, 10 Dec 2014 13:20:25 +0800, Shiyao Ma wrote:
> When doing nested loop, the very first iteration of the innermost loop
> ends ultimately slow.
>
> Let's the code speak.
>
> The following code is quite contrived. Actually it's derived from my
> 3d-dct script. The actual difference is way m
On Wed, Dec 10, 2014 at 4:20 PM, Shiyao Ma wrote:
> from itertools import product
> space_len = 580
> space = product(xrange(space_len), xrange(space_len), xrange(space_len))
>
> sparse_cloud = product(xrange(1000), xrange(1000), xrange(1000))
> for i, j, k in sparse_cloud:
> ts = timeit.defau
One thing to note, the logic of using "in" is not of concern here.
This is a *contrived* example, the problem is the slowness of the first
iteration.
--
https://mail.python.org/mailman/listinfo/python-list
When doing nested loop, the very first iteration of the innermost loop ends
ultimately slow.
Let's the code speak.
The following code is quite contrived. Actually it's derived from my 3d-dct
script.
The actual difference is way more significant than this example.
In case of any evil of gmail,
On 05Dec2014 18:05, Ian Kelly wrote:
On Fri, Dec 5, 2014 at 3:43 AM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
It requires Javascript or else basic functionality fails.
In what way does basic functionality fail? I just tried loading the page
with Javascript disabled and i
On Wed, Dec 10, 2014 at 3:37 PM, Dennis Lee Bieber
wrote:
> Are you running in PASSIVE mode?
>
> Original (normal?) FTP uses the known numbered port as a control port,
> and gets a second port for the data itself (without looking up the RFC I
> can't state if said second port is op
On Wed, Dec 10, 2014 at 3:13 PM, Eric wrote:
> We are trying to open our firewall but it keeps failing. The docs state
> that the default port is 21 and we've opened port 21. I've ran tcpdump on
> the box while running the script. I see a destination port of 21, but there
> seems to be random d
We are trying to open our firewall but it keeps failing. The docs state
that the default port is 21 and we've opened port 21. I've ran tcpdump on
the box while running the script. I see a destination port of 21, but
there seems to be random destination ports such as 2320 which follow. If
we ope
"Christoph M. Becker" writes:
> It seems to me that text can't be useless. Either it is useful
> (because it conveys correct information) or it is harmful (because it
> keeps visitors from submitting an explicit bug report).
In the latter case, if the text is harmful, that doesn't disqualify it
In article <54878f8a$0$13010$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> I really think you guys are trying too hard to make this function seem more
> complicated than it is. If you find it so hard to understand a simple
> function with four short lines, one wonders how you wou
On Wednesday, December 10, 2014 4:38:18 AM UTC+5:30, rand...@fastmail.us wrote:
> On Tue, Dec 9, 2014, at 16:18, Duncan Booth wrote:
> > The default parameters are actually evaluated when the 'def' statement is
> > executed and the function object is created from the default arguments
> > and
> >
On Wed, Dec 10, 2014 at 11:43 AM, Christoph M. Becker
wrote:
>> So even if this is the one site on the entire internet where that's
>> true, I'd be inclined to drop that text, because it's pretty much
>> useless.
>
> It seems to me that text can't be useless. Either it is useful (because
> it con
Chris Angelico wrote:
> On Wed, Dec 10, 2014 at 11:16 AM, Steven D'Aprano
> wrote:
>> The flaw is that when you get a 404, it claims that the maintainers have
>> been notified, but they apparently don't do anything about it. They should
>> be fixing broken links without waiting for somebody to ra
On Wed, Dec 10, 2014 at 11:16 AM, Steven D'Aprano
wrote:
> The flaw is that when you get a 404, it claims that the maintainers have
> been notified, but they apparently don't do anything about it. They should
> be fixing broken links without waiting for somebody to raise an issue.
> Otherwise, wha
On 10/12/2014 00:10, Steven D'Aprano wrote:
Wait... is this like the Four Yorkshire Men sketch from Monty Python, only
instead of complaining about how hard you had it as children, you're all
trying to outdo each other about how difficult you find it to read this
function? If so, well done, you
On Wed, Dec 10, 2014 at 11:10 AM, Steven D'Aprano
wrote:
> On the other hand, *premature optimization*. In general, one shouldn't write
> more complex code so the compiler can optimize it, one should write simpler
> code and have a smarter compiler. If *we* are capable of recognising that
> iters
Chris Angelico wrote:
> On Wed, Dec 10, 2014 at 8:16 AM, Fetchinson .
> wrote:
>> As Ian pointed out in another message in this thread there is a link
>> on python.org that points to the above page. I did not know this. So
>> when I read that a link is broken, to me it sounded like, hey, there
>>
Fetchinson . wrote:
> So
> when I read that a link is broken, to me it sounded like, hey, there
> isn't any content at https://python.org/some/bla/bla/bla/random/stuff
> which made me ask why does the OP think there should be anything.
You should have the courtesy of assuming I'm not a total idi
Terry Reedy wrote:
> On 12/9/2014 12:03 AM, Terry Reedy wrote:
>>> Roy Smith wrote:
>>>
Chris Angelico wrote:
>>
> def myzip(*args):
> iters = map(iter, args)
> while iters:
> res = [next(i) for i in iters]
> yield tuple(res)
Ugh. Whe
On Tue, Dec 9, 2014, at 16:18, Duncan Booth wrote:
> The default parameters are actually evaluated when the 'def' statement is
> executed and the function object is created from the default arguments
> and
> the previously compiled code block.
Which means that if you execute the def statement [o
On Wed, Dec 10, 2014 at 8:16 AM, Fetchinson . wrote:
> As Ian pointed out in another message in this thread there is a link
> on python.org that points to the above page. I did not know this. So
> when I read that a link is broken, to me it sounded like, hey, there
> isn't any content at https://p
"Dave Angel" wrote:
> On 12/08/2014 05:10 PM, bSneddon wrote:
>> I ran into an issue setting variables from a GUI module that imports
>> a back
> end module. My approach was wrong obviously but what is the best way
> to set values in a back end module.
>>
>
> To answer the subject line, the de
On 12/9/14, Ethan Furman wrote:
> On 12/05/2014 03:30 AM, Fetchinson responded to
>> Steven D'Aprano's rant of:
>>>
>>> Many links are broken. When you click on the broken link, it says that
>>> it
>>> has been reported and will be fixed, but weeks later it remains broken,
>>> e.g.:
>>>
>>> https:
>> > Many links are broken. When you click on the broken link, it says that
> it
>> > has been reported and will be fixed, but weeks later it remains broken,
>> > e.g.:
>> >
>> > https://www.python.org/doc/essays/metaclasses/Eiffel.py
>>
>> What makes you think that this page is ought to return act
On Fri, Dec 5, 2014 at 4:30 AM, Fetchinson .
wrote:
> > Many links are broken. When you click on the broken link, it says that
it
> > has been reported and will be fixed, but weeks later it remains broken,
> > e.g.:
> >
> > https://www.python.org/doc/essays/metaclasses/Eiffel.py
>
> What makes you
On 12/05/2014 03:30 AM, Fetchinson responded to
> Steven D'Aprano's rant of:
>>
>> Many links are broken. When you click on the broken link, it says that it
>> has been reported and will be fixed, but weeks later it remains broken,
>> e.g.:
>>
>> https://www.python.org/doc/essays/metaclasses/Eiffe
On 12/9/2014 12:03 AM, Terry Reedy wrote:
Roy Smith wrote:
Chris Angelico wrote:
def myzip(*args):
iters = map(iter, args)
while iters:
res = [next(i) for i in iters]
yield tuple(res)
Ugh. When I see "while foo", my brain says, "OK, you're about to see a
loop w
On Wed, Dec 10, 2014 at 4:11 AM, Robert Clove wrote:
> I am facing a problem in python coding that is
>
> I have a client server program(programs a re in c code and client and server
> are its executable) on Linux machine.
> To run client i do this ./strace -c client and to run server i type this
Hi All,
I am facing a problem in python coding that is
I have a client server program(programs a re in c code and client and
server are its executable) on Linux machine.
To run client i do this ./strace -c client and to run server i type this
./strace -c server
When i give ctrl+c to client i see
On Mon, 8 Dec 2014 22:58:20 -0800 (PST), iMath wrote:
> my software on the local machine needs to send http request to a
> specific web server , is there any way to protect the http request url
> from being found by Packet analyzer software like Wireshark and
> fiddler. The sever is not mine, so I
To: bSneddon
Copy: python-list@python.org
On 2014-12-08 14:10, bSneddon wrote:
> I ran into an issue setting variables from a GUI module that
> imports a back end module. My approach was wrong obviously but
> what is the best way to set values in a back end module.
>
> #module name beTest.py
>
To: bSneddon
Copy: python-list@python.org (python-list@python.org)
On Tue, Dec 9, 2014 at 9:10 AM, bSneddon wrote:
> I ran into an issue setting variables from a GUI module that imports a back
end module. My approach was wrong obviously but what is the best way to set
values in a back end mo
To: pengsir
On Tue, 09 Dec 2014 00:14:15 -0800, pengsir wrote:
> localpath = 'c:'
> sftp.get(filepath, localpath)
> with open(localpath, 'wb') as fl:
> PermissionError: [Errno 13] Permission denied: 'c:'
It's trying to open "c:", which is a drive, as if it was a file.
You have to specify
To: Python Announce Mailing List
To: python-list@python.org (Python Mailing List)
Hello!
I'm pleased to announce version 1.7.0, the first stable release of branch
1.7 of SQLObject.
What's new in SQLObject
===
* Python 2.5 is no longer supported. The minimal supported vers
To: Albert-Jan Roskam
On Saturday, December 6, 2014 3:30:56 PM UTC-5, Albert-Jan Roskam wrote:
>
> On Fri, Dec 5, 2014 8:54 PM CET Mark Lawrence wrote:
>
> >For those who haven't heard thought this might be of interest
https://github.com/fijal/jitpy
>
> Interesting,
To: jtan
> On Mon, Dec 8, 2014 at 10:15 AM, Aahan Krish wrote:
> My understanding from talking to different people is that many do use
>
> tabs (instead of spaces) for indentation in their code.
>
>
>
> My question is to them (because I want to use tabs too) is: how do you
>
> maintain a li
To: Luuk
Copy: python-list@python.org
On 2014-12-08 19:11, Luuk wrote:
> On 8-12-2014 18:37, ishish wrote:
> >> with open(localpath, 'wb') as fl:
> >> PermissionError: [Errno 13] Permission denied: 'c:'
> >
> > I remember gloomily (haven't used windows since ages) that newer
> > Windows vers
Am 08.12.2014 19:11 schrieb Luuk:
> no, it's the ssh-server denying a log on from 'root'
You are repating yourself.
How could possibly
with open(localpath, 'wb') as fl:
PermissionError: [Errno 13] Permission denied: 'c:'
be a problem with the SSH server?
--- SoupGate-Win32 v1.05
* Origi
Am 09.12.2014 09:14 schrieb pengsir:
> My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server
> into my local window disk c: .
> localpath = 'c:'
[...]
> with open(localpath, 'wb') as fl:
> PermissionError: [Errno 13] Permission denied: 'c:'
That's completely clear: you ar
To: python-list
On 7 December 2014 at 14:31, Albert-Jan Roskam
wrote:
> On Sun, Dec 7, 2014 11:06 AM CET Stefan Behnel wrote:
>>
>>I think this is trying to position PyPy more in the same corner as other
>>JIT compilers for CPython, as opposed to keeping it a completely separate
>>thing which su
To: pengsir
On 2014-12-09 08:14, pengsir wrote:
>
>
> My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server
> into my local window disk c: .
>
> import paramiko
> host = "x.y.z.w"
> port = 22
> transport = paramiko.Transport((host, port))
> password = "mykey"
> username = "root"
To: sohcahto...@gmail.com
On 12/08/2014 03:20 PM, sohcahto...@gmail.com wrote:
>>
>
> On Sunday, December 7, 2014 6:26:01 PM UTC-8, jtan wrote:
>> One reason why you would want max length 79 is because of working with
terminals. Maybe ssh to you server and check how many spaces are consumed by
I'm working on an asyncio server project. I'd also like to have a cmd.Cmd
style command loop interface for spawning instances of the server. As far as
I've seen, running an asyncio server requires
...
loop.run_forever()
...
And cmd.Cmd.cmdloop() is a blocking loop, so I'm not able to call the
To: bSneddon
On 12/08/2014 05:10 PM, bSneddon wrote:
> I ran into an issue setting variables from a GUI module that imports a back
end module. My approach was wrong obviously but what is the best way to set
values in a back end module.
>
To answer the subject line, the default parameter(s) ar
To: hugocoolens
On Monday, December 8, 2014 9:44:50 AM UTC-8, hugocoolens wrote:
> I'd like to add the following to a python-program:
>
> when a module (take rtlsdr as an example) is not installed on the system I'd
like to ask the program something like:
>
> module rtlsdr is missing, shall I ins
I'd like to add the following to a python-program:
when a module (take rtlsdr as an example) is not installed on the system I'd
like to ask the program something like:
module rtlsdr is missing, shall I install it? y or n
if n -->sorry but then I can't run this program and quit program
if y -->ex
To: Luuk
Copy: python-list@python.org (python-list@python.org)
On Tue, Dec 9, 2014 at 5:11 AM, Luuk wrote:
> On 8-12-2014 18:37, ishish wrote:
>>>
>>> with open(localpath, 'wb') as fl:
>>> PermissionError: [Errno 13] Permission denied: 'c:'
>>
>>
>> I remember gloomily (haven't used windows
I ran into an issue setting variables from a GUI module that imports a back end
module. My approach was wrong obviously but what is the best way to set values
in a back end module.
#module name beTest.py
cfg = { 'def' : 'blue'}
def printDef(argT = cfg['def']):
print argT
#module nam
To: pengsir
On 9-12-2014 09:14, pengsir wrote:
>
>
> My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server
> into my local window disk c: .
>
> import paramiko
> host = "x.y.z.w"
> port = 22
> transport = paramiko.Transport((host, port))
> password = "mykey"
> username = "root"
>
To: ishish
On 8-12-2014 18:37, ishish wrote:
>> with open(localpath, 'wb') as fl:
>> PermissionError: [Errno 13] Permission denied: 'c:'
>
> I remember gloomily (haven't used windows since ages) that newer Windows
> versions don't like users to write directly to C:. Have you tried to
> save t
To: sohcahto...@gmail.com
sohcahto...@gmail.com writes:
> My terminals are 120 columns wide.
Mine are wider. So what?
> Are there still people that are limiting their terminals to 80
> columns?
I don't know. Terminal width is not the sole reason to keep code lines
within 80 columns.
--
\
To: Tim Chase
Copy: python-list@python.org (python-list@python.org)
On Tue, Dec 9, 2014 at 6:50 AM, Tim Chase
wrote:
> Just for the record, you can enable root logins but disallow password
> logins, so root has to be done with a public/private key-pair.
>
> That said, I do as you describe and
To: Jean-Michel Pichavant
On Monday, December 8, 2014 10:46:47 AM UTC-8, Jean-Michel Pichavant wrote:
> - Original Message -
> > From: sohcahto...@gmail.com
> > try:
> > import someModule
> > except ImportError:
> > print "Module is missing"
> > # handle it!
> >
> > Just make
To: alister
Copy: python-list@python.org
On 2014-12-08 18:46, alister wrote:
> on most systems that DO have a ssh server root logins are usually
> prohibited, either enable root logins (dangerous) or log in with a
> user that has permissions to do what you require. if you don't have
> access to
My vps ip is x.y.z.w ,i want to download /etc/passwd from linux server
into my local window disk c: .
import paramiko
host = "x.y.z.w"
port = 22
transport = paramiko.Transport((host, port))
password = "mykey"
username = "root"
transport.connect(username = username, password = password)
sftp = para
To: Denis McMahon
On 12/07/2014 06:52 PM, Denis McMahon wrote:
> On Sun, 07 Dec 2014 12:01:26 -0500, Dave Angel wrote:
>
>> On 12/07/2014 11:18 AM, Wacky wrote:
>
>>> I've a list of users
>
>> I haven't run this through the Python, so please forgive any typos.
>
>> users = [
>> mess = {
To: Luuk
On Mon, 08 Dec 2014 19:11:40 +0100, Luuk wrote:
> On 8-12-2014 18:37, ishish wrote:
>>> with open(localpath, 'wb') as fl:
>>> PermissionError: [Errno 13] Permission denied: 'c:'
>>
>> I remember gloomily (haven't used windows since ages) that newer
>> Windows versions don't like use
> with open(localpath, 'wb') as fl:
> PermissionError: [Errno 13] Permission denied: 'c:'
I remember gloomily (haven't used windows since ages) that newer
Windows versions don't like users to write directly to C:. Have you
tried to save the file to your Documents folder?
Regards,
Alba
--- So
To: sam pendleton
On 12/07/2014 11:50 AM, sam pendleton wrote:
> Thanks for getting back with me!
>
> On Sun, Dec 7, 2014 at 11:26 AM, Dave Angel wrote:
>> On 12/05/2014 11:50 PM, sam pendleton wrote:
>>>
>>> garage/
>>> |- __init__.py
>>> |- cars/
>>> |- __init__.py
>>>
>> Lest it seem like I am agreeing with these complaints, I'd like to say:
>> Either python goes this way or the way of Fortran and Cobol.
>
> You mean if Cobol had a shiny but disfunctional website we'd be using that
> instead of Python?
Why would he mean that?
If !A implies !B, it does *not* fo
On Wed, Dec 10, 2014 at 2:31 AM, Dave Angel wrote:
> If you wind up needing a proxy, you have to open an account with them, and
> make the arrangements. I've enabled a proxy for my machine when it was
> necessary, but have no idea how to program it; it also may vary depending
> on the proxy serv
On 12/09/2014 07:43 AM, iMath wrote:
在 2014年12月9日星期二UTC+8下午2时58分36秒,iMath写道:
my software on the local machine needs to send http request to a specific web
server , is there any way to protect the http request url from being found by
Packet analyzer software like Wireshark and fiddler. The seve
Rustom Mody writes:
> Pretty... but not exactly what I expect in an interactive console.
I have to agree although the console works for me. But shame on the site
maintainers though, the interactive console comes up with Python 3.3.6
instead of current 3.4.2 (and IPython 2.10, also not the latest
On Monday, December 8, 2014 3:52:53 AM UTC+5:30, Terry Reedy wrote:
> On 12/7/2014 10:28 AM, Ivan Evstegneev wrote:
> > Hi Shiyao,
> >
> > Now I see, that it was kind of dumb question...
> >
> > x = ([1, 2], [3, 4], [5, 6])
> > L = []
> [L.extend(i) for i in x]
> > [None, None, None]
>
- Original Message -
> From: "manduk"
> > "A web page"?
> > Did you mean a Web server?
> not only upload in a folder of a webserver...I wish to see in real
> time
> the datas in a public html page.
> I get the data from serial port and then I put them in a remote page.
> Which is the best
"A web page"?
Did you mean a Web server?
ok I mean I would like to view the datas on a web page
Basically, you'll have to upload your data to a Web Server, then the
server will serve your data.
Depending on how your server is setup, you'll have to use FTP, RSync,
HTTP GET or POST or PUT,...
Ben Finney wrote:
> Christoph Becker writes:
>
>> Ben Finney wrote:
>>
>>> It's best to remember that ‘lambda’ is syntactic sugar for creating
>>> a function; the things it creates are not special in any way, they
>>> are normal functions, not “lambdas”.
>>
>> Could you please elaborate why ‘lam
在 2014年12月9日星期二UTC+8下午2时58分36秒,iMath写道:
> my software on the local machine needs to send http request to a specific web
> server , is there any way to protect the http request url from being found by
> Packet analyzer software like Wireshark and fiddler. The sever is not mine,
> so I can do noth
On 12/09/2014 02:39 PM, manduk wrote:
I would like to get data from serial port and send it to a web page.
I think that getting data from serial port shopuld not be difficult in
python. I've found some interesting links about it.
How can I send after the datas directly to a web page?
"A web p
I would like to get data from serial port and send it to a web page.
I think that getting data from serial port shopuld not be difficult in
python. I've found some interesting links about it.
How can I send after the datas directly to a web page?
--
https://mail.python.org/mailman/listinfo/pytho
Am 09.12.2014 04:09 schrieb memilanuk:
so in the first example in my original post:
...
lambda: update_label2('A', 100)
would this work the same? It looks as though it'd be passing the same
two parameters to the same function...
lambda: 'A', 100: update_label2()
No. Even if it would be all
On behalf of the IronPython team, I'm very happy to announce the
release of IronPython 2.7.5[1]. Like all IronPython 2.7-series
releases, .NET 4 is required to install it. Installing this release
will replace any existing IronPython 2.7-series installation.
Assemblies for embedding are provided for
On Tuesday, December 9, 2014 2:37:59 PM UTC+5:30, Peter Otten wrote:
> Rustom Mody wrote:
>
> > On Friday, December 5, 2014 4:13:27 PM UTC+5:30, Steven D'Aprano wrote:
> >> But most of all, I despise the menus that pop up covering what I am
> >> trying to read the page just because I happened to m
Rustom Mody wrote:
> On Friday, December 5, 2014 4:13:27 PM UTC+5:30, Steven D'Aprano wrote:
>> But most of all, I despise the menus that pop up covering what I am
>> trying to read the page just because I happened to move the mouse over a
>> button. I loathe the practice of stuffing content into
On 12/09/2014 02:15 AM, memilanuk wrote:
On 12/08/2014 09:30 PM, Ben Finney wrote:
memilanuk writes:
...
lambda: update_label2('A', 100)
would this work the same?
(I don't know what you mean here by “the same”; the same as what?)
The above creates a new function, which expects no paramete
81 matches
Mail list logo