On Wed, 09 Jan 2013 07:14:51 +1100, Chris Angelico wrote:
> Three types of lies.
Oh, surely more than that.
White lies.
Regular or garden variety lies.
Malicious lies.
Accidental or innocent lies.
FUD -- "fear, uncertainty, doubt".
Half-truths.
Lying by omission.
Exaggeration and underst
On Tue, Jan 8, 2013 at 9:09 PM, Guido van Rossum wrote:
> But don't you have to deal with that when doing synchronous I/O as
> well? It's a datagram protocol after all.
No: when dealing with blocking sockets, the OpenSSL library activates its
own retransmission timers, and the application never b
On Tue, Jan 8, 2013 at 8:39 PM, rbit wrote:
> Thank you. I will gladly port to Python 3 if there is interest from
> the community.
Python 3 is where it's at! :-)
> Regarding PEP 3156: asynchronous use of unreliable network protocols
> makes for an interesting use case. In particular, it forces
>
Thank you. I will gladly port to Python 3 if there is interest from
the community.
Regarding PEP 3156: asynchronous use of unreliable network protocols
makes for an interesting use case. In particular, it forces
applications to deal with packet loss under some circumstances. One
such situation occ
在 2013年1月8日星期二UTC+8上午8时44分20秒,iMath写道:
> It would be better to give me some examples .thanks in advance !
>
>
>
> P.S. which module or lib are needed ?
what I wanna perhaps like this:
when a right mouse button is pressed and we go down and right with a cursor. As
in letter 'L'. Our mouse gestu
在 2013年1月8日星期二UTC+8下午9时11分30秒,Dave Angel写道:
> On 01/08/2013 07:38 AM, Dennis Lee Bieber wrote:
>
> > On Mon, 7 Jan 2013 20:20:28 -0800 (PST), iMath
>
> > declaimed the following in gmane.comp.python.general:
>
> >
>
> >> How to get the selected text of the webpage in chrome through python ?
>
在 2013年1月8日星期二UTC+8下午9时19分51秒,Bruno Dupuis写道:
> On Mon, Jan 07, 2013 at 08:20:28PM -0800, iMath wrote:
>
> > How to get the selected text of the webpage in chrome through python ?
>
>
>
> What you need is a way to get selected text from wherever it comes. The
>
> way to do this depends on your
> Statistical analysis is a huge science. So is lying. And I'm not sure
> most people can pick one from the other.
Chris, your sentence causes me to think of Mr. Twain's sentence, or at
least the one he popularized:
http://www.twainquotes.com/Statistics.html.
--
http://mail.python.org/mailman/lis
> Statistical analysis is a huge science. So is lying. And I'm not sure
> most people can pick one from the other.
Chris, your sentence causes me to think of Mr. Twain's sentence, or at
least the one he popularized:
http://www.twainquotes.com/Statistics.html.
--
http://mail.python.org/mailman/lis
On Wed, Jan 9, 2013 at 11:19 AM, wrote:
>stn_count = len(stn_list_short)
>for rowcount in range (0, stn_count):
> for colcount in range (0, stn_count):
> print stn_list_long[rowcount] stn_list_long[colcount]
First off, you can iterate over the list directly:
for row in st
Peter Steele gmail.com> writes:
> I have been unable to get this to work. My current conf file looks like this:
Try with the following changes:
[logger_test]
level: DEBUG
handlers: test
propagate: 0
qualname: test
The qualname: test is what identifies the logger as the logger named 'test', and
On Tue 08 Jan 2013 07:19:59 PM EST, andydtay...@gmail.com wrote:
Hi!
I might be missing the obvious, or I may have found something more complicated
than the VBA I am used to. Could it be I need to use a maths library?
For a given list of k items I'd like to turn it into an k*k matrix of item
On Tue, 08 Jan 2013 04:07:08 -0500, Terry Reedy wrote:
>> But that is not fitting a line by eye, which is what I am talking
>> about.
>
> With the line constrained to go through 0,0 a line eyeballed with a
> clear ruler could easily be better than either regression line, as a
> human will tend t
Hi!
I might be missing the obvious, or I may have found something more complicated
than the VBA I am used to. Could it be I need to use a maths library?
For a given list of k items I'd like to turn it into an k*k matrix of item
pairs.
List_sample = ['a', 'b', 'c']
Output:
aa ab ac
ba bb bc
c
On 8 January 2013 19:16, darnold wrote:
> i don't think in iterators (yet), so this is a bit wordy.
> same basic idea, though: for each message (set of parameters), build a
> list of transactions consisting of matching send/receive times.
The advantage of an iterator based solution is that we can
On 08/01/2013 20:14, Chris Angelico wrote:
On Wed, Jan 9, 2013 at 2:55 AM, Robert Kern wrote:
On 08/01/2013 06:35, Chris Angelico wrote:
... it looks
quite significant to show a line going from the bottom of the graph to
the top, but sounds a lot less noteworthy when you see it as a
half-degre
On 8 January 2013 22:50, MRAB wrote:
> On 2013-01-08 21:22, Roy Smith wrote:
>>
>> How do you tell how many weeks apart two datetimes (t1 and t2) are?
>> The "obvious" solution would be:
>>
>> weeks = (t2 - t1) / timedelta(days=7)
>>
>> but that doesn't appear to be allowed. Is there some fundame
On 2013-01-08 21:22, Roy Smith wrote:
How do you tell how many weeks apart two datetimes (t1 and t2) are?
The "obvious" solution would be:
weeks = (t2 - t1) / timedelta(days=7)
but that doesn't appear to be allowed. Is there some fundamental
reason why timedelta division not supported?
Try t
On Tue, Jan 8, 2013 at 2:33 PM, Ian Kelly wrote:
> On Tue, Jan 8, 2013 at 2:22 PM, Roy Smith wrote:
>> How do you tell how many weeks apart two datetimes (t1 and t2) are?
>> The "obvious" solution would be:
>>
>> weeks = (t2 - t1) / timedelta(days=7)
>>
>> but that doesn't appear to be allowed.
On Tue, Jan 8, 2013 at 2:22 PM, Roy Smith wrote:
> How do you tell how many weeks apart two datetimes (t1 and t2) are?
> The "obvious" solution would be:
>
> weeks = (t2 - t1) / timedelta(days=7)
>
> but that doesn't appear to be allowed. Is there some fundamental
> reason why timedelta division
On Tue, Jan 8, 2013, at 04:22 PM, Roy Smith wrote:
> How do you tell how many weeks apart two datetimes (t1 and t2) are?
> The "obvious" solution would be:
>
> weeks = (t2 - t1) / timedelta(days=7)
>
> but that doesn't appear to be allowed. Is there some fundamental
> reason why timedelta divi
How do you tell how many weeks apart two datetimes (t1 and t2) are?
The "obvious" solution would be:
weeks = (t2 - t1) / timedelta(days=7)
but that doesn't appear to be allowed. Is there some fundamental
reason why timedelta division not supported?
--
http://mail.python.org/mailman/listinfo/pyt
-
Release of PyGreSQL version 4.1.1
-
A few problems showed up with the 4.1 release so we are releasing a
quick bugfix version.
It is available at: http://pygresql.org/files/PyGreSQL-4.1.1.tgz.
If you are running NetBSD, look in the
On Wed, Jan 9, 2013 at 2:55 AM, Robert Kern wrote:
> On 08/01/2013 06:35, Chris Angelico wrote:
>> ... it looks
>> quite significant to show a line going from the bottom of the graph to
>> the top, but sounds a lot less noteworthy when you see it as a
>> half-degree increase on about (I think?) 30
On Tue, Jan 8, 2013 at 12:16 PM, Neal Becker wrote:
> Did you intend to give anyone permission to use the code? I see only a
> copyright notice, but no permissions.
It also says "Licence: python, Copyright notice may not be altered."
Which suggests to me that the intent is that it be licensed u
On Tuesday 08 January 2013 14:09:55 Jeff Terrace did opine:
Message additions Copyright Tuesday 08 January 2013 by Gene Heskett
> Hi Gene,
>
> I'm the maintainer of pycollada. No such paywall exists, and a login is
> not required. I'm not sure how you came across that.
>
Google search.
> As Chr
i don't think in iterators (yet), so this is a bit wordy.
same basic idea, though: for each message (set of parameters), build a
list of transactions consisting of matching send/receive times.
mildly tested:
from datetime import datetime, timedelta
sendData = '''\
05:00:06 Message sent - Va
Did you intend to give anyone permission to use the code? I see only a
copyright notice, but no permissions.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Gene,
I'm the maintainer of pycollada. No such paywall exists, and a login is not
required. I'm not sure how you came across that.
As Chris said, it's a standard BSD license. I'd be happy to help with
packaging, so feel free to contact me.
Jeff
--
http://mail.python.org/mailman/listinfo/pyth
Thesaurus: A different way to call a dictionary.
Thesaurus is a new a dictionary subclass which allows calling keys as
if they are class attributes and will search through nested objects
recursively when __getitem__ is called.
You will notice that the code is disgusting simple. However I have fou
On Tuesday, January 8, 2013 10:07:08 AM UTC+1, Terry Reedy wrote:
> With the line constrained to go through 0,0, a line eyeballed with a
> clear ruler could easily be better than either regression line, as a
> human will tend to minimize the deviations *perpendicular to the line*,
> which is t
On Tuesday, January 8, 2013 2:06:09 AM UTC-8, Gisle Vanem wrote:
> "Steven D'Aprano" wrote:
>
> > py> from timeit import Timer
> > py> t1 = Timer("(a**b)*(c**d)", setup="a,b,c,d = 10, 25, 2, 50")
> > py> min(t1.repeat(repeat=5, number=10))
> > 0.5256571769714355
> >
> > So that's about 5 mic
Thomas Rachel wrote:
Am 07.01.2013 18:56 schrieb Gertjan Klein:
(Watch out for line wraps! I don't know how to stop Thunderbird from
inserting them.)
Do "insert as quotation" (in German Thunderbird: "Als Zitat einfügen"),
or Strg-Shift-O. Then it gets inserted with a ">" before and in blue.
On 08/01/2013 06:35, Chris Angelico wrote:
On Tue, Jan 8, 2013 at 1:06 PM, Steven D'Aprano
wrote:
given that weather patterns have been known to follow cycles at least
that long.
That is not a given. "Weather patterns" don't last for thirty years.
Perhaps you are talking about climate pattern
Well tell me how do you use this script in gedit, are you using it as a plugin
? are you putting this code somewhere ? I'll try to do the same on my side and
try to understand how it works.
From: Kurt Hansen
To: python-list@python.org
Sent: Monday, Januar
On 2013-01-08 05:00, Rodrick Brown wrote:
On Mon, Jan 7, 2013 at 11:19 PM, iMath mailto:redstone-c...@163.com>> wrote:
for example ,if I want to download this file ,how to implement the
download functionality by python ?
http://down.51voa.com/201208/se-ed-foreign-students-friends-16
This sounds exciting. Are you considering a Python 3 port? It might make a
nice demo of PEP 3156.
On Monday, January 7, 2013, rbit wrote:
> I would like to announce Datagram Transport Layer Security for
> Python. From the top of the project README:
>
> PyDTLS brings Datagram Transport Layer Secur
Am 07.01.2013 18:56 schrieb Gertjan Klein:
(Watch out for line wraps! I don't know how to stop Thunderbird from
inserting them.)
Do "insert as quotation" (in German Thunderbird: "Als Zitat einfügen"),
or Strg-Shift-O. Then it gets inserted with a ">" before and in blue.
Just remove the > an
Am 06.01.2013 15:30 schrieb Kurt Hansen:
Den 06/01/13 15.20, Chris Angelico wrote:
On Mon, Jan 7, 2013 at 1:03 AM, Kurt Hansen wrote:
I'm sorry to bother you, Chris, but applying the snippet with your
code in
Gedit still just deletes the marked, tab-separated text in the editor.
Ah, whoops.
On Monday, January 7, 2013 8:20:28 PM UTC-8, iMath wrote:
> How to get the selected text of the webpage in chrome through python ?
You can probably use selenium to do that.
--
http://mail.python.org/mailman/listinfo/python-list
On 8 January 2013 01:23, Steven D'Aprano
wrote:
> On Mon, 07 Jan 2013 22:32:54 +, Oscar Benjamin wrote:
>
> [...]
>> I also think it would
>> be highly foolish to go so far with refusing to eyeball data that you
>> would accept the output of some regression algorithm even when it
>> clearly lo
On Mon, Jan 07, 2013 at 08:20:28PM -0800, iMath wrote:
> How to get the selected text of the webpage in chrome through python ?
What you need is a way to get selected text from wherever it comes. The
way to do this depends on your graphical environment. If you use X, i'd make a
a quick and dirty c
On 01/08/2013 07:38 AM, Dennis Lee Bieber wrote:
> On Mon, 7 Jan 2013 20:20:28 -0800 (PST), iMath
> declaimed the following in gmane.comp.python.general:
>
>> How to get the selected text of the webpage in chrome through python ?
> Chrome is a browser, is it not... If you want to get the tex
socket.socket.send is a low-level method and basically just the
C/syscall method send(3) / send(2). It can send less bytes than you
requested.
socket.socket.sendall is a high-level Python-only method that sends the
entire buffer you pass or throws an exception. It does that by calling
send until e
'Aloha Friends!
Still quite new to python I'm trying to access a MySQL database. Being a
former perl programmer I recognize much of the semantics going on.
Create a database handle, compile a piece of SQL and put it into a cursor,
run the query and use the result. exactly the same flow as I am us
在 2013年1月8日星期二UTC+8下午12时20分28秒,iMath写道:
> How to get the selected text of the webpage in chrome through python ?
I need the code ,cuz I am only familiar with Python ,so it would be better to
give me the code written in Python .
You can also give me the code in other programming language ,thank
I am trying the following code--
from rpy import *
r.library("ltm")
dat= #some data frame or matrix
r.ltm(r('dat~z1'))
error coming is---
RPy_RException: Error in eval(expr, envir, enclos) : object 'dat' not found
Please tell me the right way to call ltm function using rpy library
--
http://ma
"Steven D'Aprano" wrote:
py> from timeit import Timer
py> t1 = Timer("(a**b)*(c**d)", setup="a,b,c,d = 10, 25, 2, 50")
py> min(t1.repeat(repeat=5, number=10))
0.5256571769714355
So that's about 5 microseconds on my (slow) computer.
That's pretty fast. So is there still a need for a GMP p
On 1/7/2013 8:23 PM, Steven D'Aprano wrote:
On Mon, 07 Jan 2013 22:32:54 +, Oscar Benjamin wrote:
An example: Earlier today I was looking at some experimental data. A
simple model of the process underlying the experiment suggests that two
variables x and y will vary in direct proportion to
On 1/7/2013 1:26 PM, Elli Lola wrote:
$ ./python -m test -v test_urlwithfrag
== CPython 3.3.0 (default, Jan 4 2013, 23:08:00) [GCC 4.6.3]
== Linux-3.2.0-35-generic-pae-i686-with-debian-wheezy-sid little-endian
== /home/me/Programme/Python/Python-3.3.0/build/test_python_30744
Testing with fl
On 1/7/2013 8:12 AM, Terry Reedy wrote:
On 1/7/2013 7:57 AM, Franck Ditter wrote:
<<< print('\U0001d11e')
Traceback (most recent call last):
File "", line 1, in
print('\U0001d11e')
UnicodeEncodeError: 'UCS-2' codec can't encode character '\U0001d11e'
in position 0: Non-BMP character no
On 1/7/2013 11:01 AM, Alain Ketterlin wrote:
I just came across Vigil, an extension to python for serious software
engineers,
I hope that last part comes from a sense of humor.
at https://github.com/munificent/vigil and thought everybody
in this group would be interested (sorry if it has bee
52 matches
Mail list logo