ANNOUNCING
eGenix.com pyOpenSSL Distribution
Version 0.13.4.1.0.1.9
An easy-to-install and easy-to-use distribution
of the pyOpenSSL Python interface
On 10/08/2014 7:08 PM, Chris “Kwpolska” Warrick wrote:
2) the phone isn't necessarily visible on a pc as a drive at all.
For example the Samsung gs4.
This is actually true for ALL android devices, starting with Android 3.0.
This isn't true for my Samsung gs2 running Android 4.1.2.
--
On Aug 14, 2014 8:11 AM, alex23 wuwe...@gmail.com wrote:
On 10/08/2014 7:08 PM, Chris “Kwpolska” Warrick wrote:
2) the phone isn't necessarily visible on a pc as a drive at all.
For example the Samsung gs4.
This is actually true for ALL android devices, starting with Android 3.0.
This
On Aug 14, 2014 4:30 AM, luofeiyu elearn2...@gmail.com wrote:
I have installed bluestacks(an android phone emulator) on my pc,and SL4A
on it.Now i can run python thish way :
1.edit an file ending with .py, save it in
/sdcard/sl4a/scripts/yourname.py.
2.open sl4a ,and click the file to make it
On Aug 13, 2014 9:34 PM, Terry Reedy tjre...@udel.edu wrote:
Have you verified that Idle *does* (not just *should*) run on RPi? (That
would mean having tcl/tk running, with whatever *it* requires on linux.) I
am working on Idle and the idea of people (especially hobbyists, students,
and other
in the manual https://docs.python.org/3.4/library/time.html
%z Time zone offset indicating a positive or negative time difference
from UTC/GMT of the form +HHMM or -HHMM, where H represents decimal hour
digits and M represents decimal minute digits [-23:59, +23:59].
%Z Time zone name
in 726715 20140813 103037 Chris Angelico ros...@gmail.com wrote:
On Wed, Aug 13, 2014 at 9:57 AM, Frank Scafidi fpscaf...@gmail.com wrote:
I just acquired a Raspberry Pi and want to program in Python. I was a PL/1
programmer back in the 60's 70's and Python is similar. I am struggling
with
On 14Aug2014 08:25, Chris =?utf-8?B?4oCcS3dwb2xza2HigJ0=?= Warrick
kwpol...@gmail.com wrote:
On Aug 14, 2014 4:30 AM, luofeiyu elearn2...@gmail.com wrote:
I have installed bluestacks(an android phone emulator) on my pc,and SL4A on
it.Now i can run python thish way :
1.edit an file ending
python3.4
On 8/14/2014 10:12 AM, Tim Chase wrote:
On 2014-08-14 10:01, luofeiyu wrote:
help(int.__init__)
Help on wrapper_descriptor:
__init__(self, /, *args, **kwargs)
Initialize self. See help(type(self)) for accurate signature.
what is the / mean in __init__(self, /, *args,
Please don't top-post your response. Instead, interleave your response
and remove irrelevant quoted material. Use the Interleaved style
URL:https://en.wikipedia.org/wiki/Posting_style#Interleaved_style.
luofeiyu elearn2...@gmail.com writes:
in the manual
i want to run python on my android phone ,to install python on
bluestacks is to emulate it .
On 8/14/2014 2:56 PM, Cameron Simpson wrote:
On 14Aug2014 08:25, Chris =?utf-8?B?4oCcS3dwb2xza2HigJ0=?= Warrick
kwpol...@gmail.com wrote:
On Aug 14, 2014 4:30 AM, luofeiyu elearn2...@gmail.com wrote:
import sys
sys.version
'3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit
(AMD64)]'
import time
time.tzname
('China Standard Time', 'China Daylight Time')
On 8/14/2014 3:25 PM, Cameron Simpson wrote:
On 14Aug2014 14:52, luofeiyu elearn2...@gmail.com wrote:
in the
On 14Aug2014 15:30, luofeiyu elearn2...@gmail.com wrote:
import sys
sys.version
'3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit
(AMD64)]'
First, please post in an interleaved style so that we can see your responses
underneath the text to which they relate. Thanks.
On Thu, 14 Aug 2014 08:25:00 +0200, Chris “Kwpolska” Warrick wrote:
Why are you using an Android emulator to run Python, a PC-first
software?! Just install the Windows version from http://python.org/ and
use that.
If the OP's ultimate aim is to run Python under Android, running it under
an
On 14Aug2014 14:52, luofeiyu elearn2...@gmail.com wrote:
in the manual https://docs.python.org/3.4/library/time.html
┌──┬──┬─┐
│ │Time zone offset indicating a positive or negative time difference│ │
│%z│from UTC/GMT of
I want to write a function to make operation as a argument in the function.
|def fun(op,x,y):
return(x op y)|
it is my target for the funciton:
if op =+ fun(op,3,9) =12
if op =* fun(op,3,9) =27
How to write it?
--
https://mail.python.org/mailman/listinfo/python-list
On Aug 14, 2014 9:23 AM, luofeiyu elearn2...@gmail.com wrote:
i want to run python on my android phone ,to install python on bluestacks
is to emulate it .
In this case, you can install QPython, which supports the SL4A modules and
has a console. Or, you can install an app to access sh, like
On 14/08/2014 02:46, luofeiyu wrote:
s=Aug
how can i change it into 8 with some python time module?
If all else fails, read the instructions, so start here
https://docs.python.org/3/library/datetime.html#module-datetime
--
My fellow Pythonistas, ask not what our language can do for you,
On 14/08/2014 03:08, Ben Finney wrote:
luofeiyu elearn2...@gmail.com writes:
help(int.__init__)
Help on wrapper_descriptor:
__init__(self, /, *args, **kwargs)
Initialize self. See help(type(self)) for accurate signature.
what is the / mean in __init__(self, /, *args, **kwargs) ?
I
On 14/08/2014 08:32, luofeiyu wrote:
I want to write a function to make operation as a argument in the function.
|def fun(op,x,y):
return(x op y)|
it is my target for the funciton:
if op =+ fun(op,3,9) =12
if op =* fun(op,3,9) =27
How to write it?
With a text editor after you've
i have a script running a few commands on a network device. i can't seem to
figure out how to log both the input and output of what the pexpect script
initiates and responds to.
child = pexpect.spawn ('telnet '+ ip)
child.expect ('.*:*')
child.sendline (user)
child.expect ('.*:*')
ANNOUNCING
eGenix.com pyOpenSSL Distribution
Version 0.13.4.1.0.1.9
An easy-to-install and easy-to-use distribution
of the pyOpenSSL Python interface
On Thu, Aug 14, 2014 at 6:59 PM, sj.constant...@gmail.com wrote:
i have a script running a few commands on a network device. i can't seem to
figure out how to log both the input and output of what the pexpect script
initiates and responds to.
child = pexpect.spawn ('telnet '+ ip)
If
Question about 'yield from'.
I understand that::
yield from xs
is syntax suger of::
for x in xs:
yield x
And::
val = yield from xs
is same as::
for x in xs:
ret = yield x
val = ret
Is it true? Do I understand correctly?
quote from
On Thu, Aug 14, 2014 at 7:35 PM, Makoto Kuwata kwa...@gmail.com wrote:
I understand that::
yield from xs
is syntax suger of::
for x in xs:
yield x
Not just. It's like that for simple cases, but there are edge cases
that are much more complicated to do manually, and are
On Thu, Aug 14, 2014 at 6:38 PM, Chris Angelico ros...@gmail.com wrote:
On Thu, Aug 14, 2014 at 7:35 PM, Makoto Kuwata kwa...@gmail.com wrote:
I understand that::
yield from xs
is syntax suger of::
for x in xs:
yield x
Not just. It's like that for simple cases,
Makoto Kuwata kwa...@gmail.com:
val = yield from xs
is same as::
for x in xs:
ret = yield x
val = ret
Is it true? Do I understand correctly?
The return value is not one of the yielded values. Instead, it's the
value returned by the generator/coroutine.
Marko
--
On Thu, Aug 14, 2014 at 7:59 PM, Makoto Kuwata kwa...@gmail.com wrote:
I understand that 'val = yield from xs' is completely different from::
for x in xs:
ret = yield x
val = x
Return value is propagated by StopIteration, like:
it = iter(xs)
try:
while 1:
Makoto Kuwata kwa...@gmail.com:
Thank you. It seems too complicated...
I recommend you stop trying to associate the old yield with the new
yield.
Asyncio coroutines abuse yield from for a specific effect. The
classic purpose of yield was to spoonfeed a sequence of return values
to the caller.
Il giorno mercoledì 13 agosto 2014 19:13:16 UTC+2, thequie...@gmail.com ha
scritto:
What is the difference between traits and roles?
People keep using the same names to mean different concepts. For me traits are
the things described here:
On Wed, 13 Aug 2014 07:39:20 -0400, Eric S. Johansson wrote:
On 8/12/2014 9:46 PM, Chris Angelico wrote:
On Wed, Aug 13, 2014 at 11:36 AM, Wesley nisp...@gmail.com wrote:
If my questions make you guys not so happy, I am sorry and please just
ignore.
I just wanna a general suggestion here in
On Thu, Aug 14, 2014 at 12:02 AM, Steven D'Aprano st...@pearwood.info wrote:
Does anyone here use function annotations? If so, what do you use them
for?
I've used them a little when converting Python to Cython, though I
readily admit that I have no idea if what Cython accepts as a type
On Wed, 13 Aug 2014 15:31:37 -0400, Terry Reedy wrote:
On 8/13/2014 7:55 AM, alister wrote:
I am not in the same league as many of the posters here when it comes
to Python but fortunately i do have two Raspberry Pi's :-)
Great! We really someone with hands-on experience.
I Hope the
Hello,
This very simple program runs well on windows 7
# -*- utf8 -*-
print('Réussi')
But, when I start the vrey same file on Linux (ubuntu 14), I got:
Traceback (most recent call last):
File /partages/bureau/PB/Dev/Python3/test.py, line 2, in module
print('R\xe9ussi')
On Thu, Aug 14, 2014 at 7:02 PM, Chris Angelico ros...@gmail.com wrote:
On Thu, Aug 14, 2014 at 7:59 PM, Makoto Kuwata kwa...@gmail.com wrote:
I understand that 'val = yield from xs' is completely different from::
for x in xs:
ret = yield x
val = x
Return value is
In article mailman.12994.1408021090.18130.python-l...@python.org,
Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
On Thu, 14 Aug 2014 17:47:00 +1000, Cameron Simpson c...@zip.com.au
declaimed the following:
Your Android phone will be running some flavour of Linux I believe. Someone
who
Dennis Lee Bieber wlfr...@ix.netcom.com writes:
Android /is/ the flavor G
Though Google has probably done some things to it that make it
not-Linux.
Android is definitely Linux, since that is the kernel Android runs.
Remember that Linux is not an operating system; it is one part,
Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a écrit :
Hello,
This very simple program runs well on windows 7
# -*- utf8 -*-
print('Réussi')
But, when I start the vrey same file on Linux (ubuntu 14), I got:
Traceback (most recent call last):
File
Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a écrit :
Hello,
This very simple program runs well on windows 7
# -*- utf8 -*-
print('Réussi')
But, when I start the vrey same file on Linux (ubuntu 14), I got:
Traceback (most recent call last):
File
Makoto Kuwata wrote:
Question about 'yield from'.
I understand that::
yield from xs
is syntax suger of::
for x in xs:
yield x
Not quite syntactic sugar. For simple cases, it does exactly the same thing.
For more complicated cases, no.
Suppose you have a generator:
Hello YBM,
I tried your suggestions, without improvement.
Further, see my answer to Vincent Vande Vyre
Thanks anyway.
--
https://mail.python.org/mailman/listinfo/python-list
Le jeudi 14 août 2014 15:22:52 UTC+2, Vincent Vande Vyvre a écrit :
Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a �crit :
Hello,
This very simple program runs well on windows 7
# -*- utf8 -*-
print('R�ussi')
But, when I start the vrey same file on Linux
I finished it ,but how to make it into more pythonic way such as
min (dates, key = converter)
here is my code
times=['Sat, 09 Aug 2014 07:36:46 -0700',
'Fri, 8 Aug 2014 22:25:40 -0400',
'Sat, 9 Aug 2014 12:46:43 +1000',
'Sat, 9 Aug 2014 12:50:52 +1000',
'Sat, 9 Aug 2014 02:51:01 + (UTC)',
On 14/08/2014 15:04, marc.vanhoomis...@gmail.com wrote:
Hello YBM,
I tried your suggestions, without improvement.
Further, see my answer to Vincent Vande Vyre
Thanks anyway.
I'm pleased to see that you have answers. In return would you please
quote the context. Could you also access this
marc.vanhoomis...@gmail.com writes:
What should i do to let the same program run on both OS, without changes?
You'd want to set the locale on your Ubuntu box to a UTF8 locale. On
the command line you'd run sudo dpkg-reconfigure locales and proceed
from there, but I guess there might be gooey
Le 14/08/2014 15:31, YBM a écrit :
Le 14/08/2014 14:35, marc.vanhoomis...@gmail.com a écrit :
Hello,
This very simple program runs well on windows 7
# -*- utf8 -*-
print('Réussi')
But, when I start the vrey same file on Linux (ubuntu 14), I got:
Traceback (most recent call last):
File
Le 14/08/2014 16:04, marc.vanhoomis...@gmail.com a écrit :
Hello YBM,
I tried your suggestions, without improvement.
Further, see my answer to Vincent Vande Vyre
Thanks anyway.
This is indeed very surprising. Are you sure that you
have *exactly* this line at the first or second (not
later !)
On 14/08/2014 15:10, luofeiyu wrote:
How many times do you have to be asked not to top post before the
message sinks in?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
Dear Programmers, I want to access a html file on my C drive, in the
Python 27 prompt, all the examples I come across seem to require for
access for the html file be on a server, rather than on the same
computer's C drive. I want to do this as a prerequisite to writing
webscraping code,
YBM wrote:
Le 14/08/2014 16:04, marc.vanhoomis...@gmail.com a écrit :
Hello YBM,
I tried your suggestions, without improvement.
Further, see my answer to Vincent Vande Vyre
Thanks anyway.
This is indeed very surprising. Are you sure that you
have *exactly* this line at the first or
Hello all,
I want to contour a scatter plot but I don't know how.
Can anyone help me out?
Cheers,
Jamie
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 14 Aug 2014 08:09:11 -0700, Simon Evans wrote:
Dear Programmers, I want to access a html file on my C drive, in the
Python 27 prompt, all the examples I come across seem to require for
access for the html file be on a server, rather than on the same
computer's C drive. I want
marc.vanhoomis...@gmail.com wrote:
Le jeudi 14 août 2014 15:22:52 UTC+2, Vincent Vande Vyvre a écrit :
Are you really using Python 3 ?
$ python3 test.py
Actually, when I try using a terminal, it works:
$ python3 test.py
Réussi
But when I issue the same command using webmin (v. 1.700
On Thu, Aug 14, 2014 at 9:33 AM, alister
alister.nospam.w...@ntlworld.com wrote:
On Thu, 14 Aug 2014 08:09:11 -0700, Simon Evans wrote:
Dear Programmers, I want to access a html file on my C drive, in the
Python 27 prompt, all the examples I come across seem to require for
access for the
On Thu, Aug 14, 2014 at 9:21 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
YBM wrote:
Le 14/08/2014 16:04, marc.vanhoomis...@gmail.com a écrit :
Hello YBM,
I tried your suggestions, without improvement.
Further, see my answer to Vincent Vande Vyre
Thanks anyway.
This is
I need one for use with Flask, as I don't really have time to implement my
own.
Initially this will be for the Two-Legged case but I may well have to support
the Three-Legged version later on. Open ID Connect may also be an option
eventually.
The basic idea is to provide an
Jamie Mitchell wrote:
Hello all,
I want to contour a scatter plot but I don't know how.
Can anyone help me out?
Certainly. Which way did you come in?
:-)
Sorry, I couldn't resist.
It took me literally 20 seconds to find this by googling for matplotlib
contour plot, and it only took
luofeiyu elearn2...@gmail.com:
y=time.strptime(time_part,%a, %d %b %Y %H:%M:%S)
As I said, whether that works depends on your locale -- according to the
reference documentation.
In practice, I couldn't get that to fail in my tests. I would be on my
guard, though. That might mean I
On Thu, Aug 14, 2014 at 8:10 AM, luofeiyu elearn2...@gmail.com wrote:
I finished it ,but how to make it into more pythonic way such as
min (dates, key = converter)
The converter will be your changeToUnix function, but you'll need to
rework it to convert a single, rather than the whole list.
From http://bugs.python.org/issue22198
-0.5 // float('inf')
-1.0
What should it be?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Aug 14, 2014 at 11:31 AM, Mark Lawrence breamore...@yahoo.co.uk wrote:
From http://bugs.python.org/issue22198
-0.5 // float('inf')
-1.0
Looks like the result is the same for any negative dividend.
What should it be?
It's surprising, but I think it's correct. A negative
On 14 August 2014 18:51 Richard Prosser ebizby...@gmail.com wrote:
I need one for use with Flask, as I don't really have time to implement
my own.
You should not implement things on your own if there are existing and same
implementations.
Initially this will be for the Two-Legged case but I
On Wed, 13 Aug 2014 14:16:02 -0600, Ian Kelly ian.g.ke...@gmail.com wrote:
. . . and as computers get more powerful the intersection
of {problems machines can't solve} and {problems humans can reliably
solve} grows ever smaller.
Which of the following eight sentences are sarcastic in tone?
On Thu, Aug 14, 2014 at 12:37 PM, Peter Pearson
ppearson@nowhere.invalid wrote:
On Wed, 13 Aug 2014 14:16:02 -0600, Ian Kelly ian.g.ke...@gmail.com wrote:
. . . and as computers get more powerful the intersection
of {problems machines can't solve} and {problems humans can reliably
solve}
Hello, I created this tool to help me develop on formatting text using regular
expressions.
Any questions, I am available.
Thank you.
Tool - https://github.com/rfunix/PyMatch
--
https://mail.python.org/mailman/listinfo/python-list
On 8/14/2014 2:37 PM, Peter Pearson wrote:
On Wed, 13 Aug 2014 14:16:02 -0600, Ian Kelly ian.g.ke...@gmail.com wrote:
. . . and as computers get more powerful the intersection
of {problems machines can't solve} and {problems humans can reliably
solve} grows ever smaller.
Which of the
On Fri, Aug 15, 2014 at 4:37 AM, Peter Pearson ppearson@nowhere.invalid wrote:
Which of the following eight sentences are sarcastic in tone?
You have a sarcasm sign?
http://www.thinkgeek.com/product/e58f/
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Aug 15, 2014 at 5:50 AM, rafinha.u...@gmail.com wrote:
Hello, I created this tool to help me develop on formatting text using
regular expressions.
Any questions, I am available.
Thank you.
Tool - https://github.com/rfunix/PyMatch
How is this better than GNU sed?
ChrisA
--
On Wed, 13 Aug 2014 07:39:20 -0400, Eric S. Johansson wrote:
you are clear but also missing a really good reason to break captchas.
handicapped accessibility. Captchas are a huge barrier to access and in
many cases push disabled users away from using a service with captchas.
That's as may
On Tue, 12 Aug 2014 18:36:21 -0700, Wesley wrote:
I just wanna a general suggestion here in the beginning.
OK, the general suggestion is that you take your spambot software, print
it out on spiky metal sheets and ram it up your rectum.
Why I need to write such program is just having such
I am glad to hear that it is no necessary to create a complicated my
function to change the time string.
But in my computer the timezone offset do not work for me.
I am in win7+python34.
import sys
sys.version
'3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit
(AMD64)]'
On Thu, 14 Aug 2014 09:46:20 +0800, luofeiyu wrote:
s=Aug
how can i change it into 8 with some python time module?
You don't need a time module for this, just use a dictionary:
months = { Jan : 1, . , Dec: 12 }
num = months[s]
print num
Fill in the rest of the months dictionary
On Thu, Aug 14, 2014 at 5:22 PM, luofeiyu elearn2...@gmail.com wrote:
I am glad to hear that it is no necessary to create a complicated my
function to change the time string.
But in my computer the timezone offset do not work for me.
I am in win7+python34.
import sys
sys.version
'3.4.0
On Thu, Aug 14, 2014 at 5:49 PM, Chris Angelico ros...@gmail.com wrote:
Tool - https://github.com/rfunix/PyMatch
How is this better than GNU sed?
I didn't look closely at the program, but I have an idea how I might use it.
Back in the dawn of Internet time (before Y2K, Django, V8, etc) I
On 15/08/2014 00:22, luofeiyu wrote:
I really don't understand why people here are spoon feeding you when you
still insist on top posting. Ever heard the term manners? Oh what a
stupid comment, obviously not.
*plonk*
--
My fellow Pythonistas, ask not what our language can do for you, ask
On Thu, Aug 14, 2014 at 5:44 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
I really don't understand why people here are spoon feeding you when you
still insist on top posting. Ever heard the term manners? Oh what a
stupid comment, obviously not.
*plonk*
Getting people to stop
when i search what top-post mean:
*top-post*: n., v.
[common] To put the newly-added portion of an email or Usenet response
before the quoted part, as opposed to the more logical sequence of
quoted portion first with original following.
*bottom-post*: v.In a news or mail reply, to put the
In the python doc , https://docs.python.org/3.4/library/datetime.html
A timedelta
https://docs.python.org/3.4/library/datetime.html#datetime.timedelta
object represents a duration, the difference between two dates or times.
/class /datetime.timedelta(/days=0/, /seconds=0/, /microseconds=0/,
On 15Aug2014 09:47, luofeiyu elearn2...@gmail.com wrote:
when i search what top-post mean:
top-post: n., v. [common] To put the newly-added portion of an email or
Usenet response before the quoted part, as opposed to the more logical
sequence of quoted portion first with original
Denis McMahon denismfmcma...@gmail.com writes:
On Tue, 12 Aug 2014 18:36:21 -0700, Wesley wrote:
[…]
We tried polite, it didn't work, now I'm trying robustness and
profanity.
The thread has been inactive for days, so it seems politeness *did* in
fact work.
Escalating to violent
In mailman.13017.1408067250.18130.python-l...@python.org luofeiyu
elearn2...@gmail.com writes:
the best way is to excerpt only the relevent portions of the parent
message ,not top-post nor bottom-post , right?
The followup text appears underneath the quoted parent message, thus
bottom-post.
luofeiyu elearn2...@gmail.com writes:
the best way is to excerpt only the relevent portions of the parent
message ,not top-post nor bottom-post , right?
Correct; you should also interleave your responses in the context of the
relevant quoted material. See at the link I provided for this style
luofeiyu elearn2...@gmail.com writes:
import datetime
t1='Sat, 09 Aug 2014 07:36:46 -0700'
t2='Sat, 09 Aug 2014 07:36:46 +0700'
datetime.datetime.strptime(t1,%a, %d %b %Y %H:%M:%S %z)
datetime.datetime(2014, 8, 9, 7, 36, 46,
tzinfo=datetime.timezone(datetime.timed
elta(-1, 61200)))
On Thu, Aug 14, 2014 at 8:24 PM, luofeiyu elearn2...@gmail.com wrote:
import datetime
t1='Sat, 09 Aug 2014 07:36:46 -0700'
t2='Sat, 09 Aug 2014 07:36:46 +0700'
datetime.datetime.strptime(t1,%a, %d %b %Y %H:%M:%S %z)
datetime.datetime(2014, 8, 9, 7, 36, 46,
On Thu, Aug 14, 2014 at 9:37 PM, Ian Kelly ian.g.ke...@gmail.com wrote:
On Thu, Aug 14, 2014 at 8:24 PM, luofeiyu elearn2...@gmail.com wrote:
t1 is GMT time 2014 00:36:46
t2 is GMT time 2014 14:36:46
You have it backwards. t1 is a later time than t2.
datetime.datetime.strptime do
On Fri, 15 Aug 2014 10:24:47 +0800, luofeiyu wrote:
import datetime
t1='Sat, 09 Aug 2014 07:36:46 -0700'
t2='Sat, 09 Aug 2014 07:36:46 +0700'
datetime.datetime.strptime(t1,%a, %d %b %Y %H:%M:%S %z)
Are you sure? When I try this I get:
ValueError: 'z' is a bad directive in format '%a, %d %b
On Fri, Aug 15, 2014 at 1:51 PM, Denis McMahon denismfmcma...@gmail.com wrote:
On Fri, 15 Aug 2014 10:24:47 +0800, luofeiyu wrote:
import datetime
t1='Sat, 09 Aug 2014 07:36:46 -0700'
t2='Sat, 09 Aug 2014 07:36:46 +0700'
datetime.datetime.strptime(t1,%a, %d %b %Y %H:%M:%S %z)
Are you sure?
On Thu, Aug 14, 2014 at 9:51 PM, Denis McMahon denismfmcma...@gmail.com
wrote:
On Fri, 15 Aug 2014 10:24:47 +0800, luofeiyu wrote:
import datetime
t1='Sat, 09 Aug 2014 07:36:46 -0700'
t2='Sat, 09 Aug 2014 07:36:46 +0700'
datetime.datetime.strptime(t1,%a, %d %b %Y %H:%M:%S %z)
Are you
John Gordon gor...@panix.com writes:
In mailman.13017.1408067250.18130.python-l...@python.org luofeiyu
elearn2...@gmail.com writes:
the best way is to excerpt only the relevent portions of the parent
message ,not top-post nor bottom-post , right?
The followup text appears underneath
Terry J. Reedy added the comment:
# 3 on my list of patches to review and apply
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22065
___
___
Serhiy Storchaka added the comment:
See also issue20689. socket.__all__ is incomplete too.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22191
___
New submission from Serhiy Storchaka:
Proposed patch adds private function _PySys_GetSizeOf(). It is needed for
correct implementing of __sizeof__() methods: issue15490, issue15513,
issue15381 (BytesIO.__sizeof__ is broken in 3.5). See discussion about it in
issue15490. I extracted this patch
Serhiy Storchaka added the comment:
Here is a patch which optimizes readline() and readlines() methods of BytesIO
and the __next__() method of BytesIO iterator.
--
Added file: http://bugs.python.org/file36369/bytesio_faster_readline.patch
___
Python
Jon Poler added the comment:
Serhiy, should I submit these fixes as separate patches? E.g. one patch for the
warnings module, and another for the socket module?
More generally, should the items included in __all__ be derived from the items
described in the documentation? For instance, only
New submission from Antoine Pitrou:
Currently cdecimal exports no C API that I know of, and it makes sure the
libmpdec symbols are kept private in the .so file. It would be nice for
external C code (or, in general, non-Python code) to be able to access cdecimal
objects, and make operations on
Antoine Pitrou added the comment:
I suppose this takes advantage of the libc's optimized memchr(). Any benchmarks?
(patch looks fine, by the way)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15381
Brett Cannon added the comment:
Yes, please use separate patches attached to the appropriate bug. As for what
should go into __all__, it's what is documented as the API of the module. As
for tests, it doesn't hurt. =)
--
___
Python tracker
R. David Murray added the comment:
Added some review comments.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21795
___
___
Python-bugs-list
Martin v. Löwis added the comment:
LGTM
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22193
___
___
New submission from Antoine Pitrou:
Often an application (or e.g. a library's test suite), in its early
development, will start making print() calls, and later will want to switch to
the logging module. However the logging module doesn't offer any facility for
this: you can't print() to a
1 - 100 of 150 matches
Mail list logo