luofeiyu writes:
> http://www.thefreedictionary.com/time+zone
>
> time zone Any of the 24 divisions of the Earth's surface used to
> determine the local time for any given locality.
Thanks, it's good to know there are dictionaries out there with
incorrect definitions. That one is terrible and un
On Mon, Aug 18, 2014 at 2:55 PM, luofeiyu wrote:
> http://www.thefreedictionary.com/time+zone
>
> time zone Any of the 24 divisions of the Earth's surface used to determine
> the local time for any given locality.
> Each zone is roughly 15° of longitude in width, with local variations for
> econom
http://www.thefreedictionary.com/time+zone
time zone Any of the 24 divisions of the Earth's surface used to
determine the local time for any given locality.
Each zone is roughly 15° of longitude in width, with local variations
for economic and political convenience.
Local time is one hour ahead
Sent from Blue Mail
On 18 Aug 2014 07:06, at 07:06, Jm Cho wrote:\n>Hello~ I'm
Korean, and I register this groups just now.
>Thesedays, I'm studying Python 3.x version. I like Python.
>i read a book, python for kids a playful introduction to programming,
>it is very easy but very effective
On 17Aug2014 22:04, Jm Cho wrote:
Hello~ I'm Korean, and I register this groups just now.
Thesedays, I'm studying Python 3.x version. I like Python.
i read a book, python for kids a playful introduction to programming,
it is very easy but very effective to me.
so, I hope my python ability is hi
On 17/08/2014 4:10 AM, lavanya addepalli wrote:
Actually it is a huge project and topological overlap is one part in that
inputfile:
0_node_1 0_node_2 w0
1_node_1 1_node_2 w1
2_node_1 2_node_2 w2
3_node_1 3_node_2 w3
4_node_1 4_node_2 w4
5_node_1 5_node_2 w5
2 nodes in pair and w is the
Jm Cho writes:
> Thesedays, I'm studying Python 3.x version. I like Python.
Great! Welcome to the forum.
(You should avoid coming here via Google Groups, since it is a very poor
application for participating in discussion forums
https://wiki.python.org/moin/GoogleGroupsPython>.
There is virtua
On 13/08/2014 7:28 AM, Roy Smith wrote:
Second, if you're going to be parsing web pages, trying to use regexes
is a losing game. You need something that knows how to parse HTML. The
canonical answer is lxml (http://lxml.de/), but Beautiful Soup
(http://www.crummy.com/software/BeautifulSoup/) is
Hello~ I'm Korean, and I register this groups just now.
Thesedays, I'm studying Python 3.x version. I like Python.
i read a book, python for kids a playful introduction to programming,
it is very easy but very effective to me.
so, I hope my python ability is higher...
What should I do??
ps. In f
In a post about CPython's GIL, Steven D'Aprano pointed to Armin
Ronacher's criticism of the internal type slots used for dunder methods.
> http://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-to-see/
I found the following interesting.
"
Since we have an __add__ method the interpreter will
luofeiyu writes:
> I knew there is a difference between localtime and timezone time.
> Localtime: The official time in a local region (adjusted for location
> around the Earth); established by law or custom.
> Timezone: Any of the 24 regions of the globe (loosely divided by
> longitude) throughou
On Mon, Aug 18, 2014 at 9:17 AM, Redge @ Versalytics.com
wrote:
> Definitely a relief. After delving into Python only a few short months ago,
> everything I was reading suggested 2.x.x. When I switched to another book to
> continue with my studies, some of the code wasn't working ... welcome to
> On Aug 17, 2014, at 8:37 AM, Mark Lawrence wrote:
>
> A blog from Nick Coghlan
> http://www.curiousefficiency.org/posts/2014/08/python-4000.html that should
> help put a few minds to rest.
>
> --
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for o
The land area of China is 60-degree longitude from west to east.
According to the demarcation of the world time zoning standard,
the land area of China lies between the eastern fifth to ninth time
zones, there are 5 time zones in china in fact.
Currently, all the places in China have adopted the
http://data-analytics.github.io/
Check this out an intresting charts using python scripts as welll,
--
*Regards*
*Sushanth*
*ph : 91-94445 83307*
--
https://mail.python.org/mailman/listinfo/python-list
Joseph L. Casale wrote:
>> I don't have to care about threading issues all the time and
>> can otherwise freely choose the right model of parallelism that suits my
>> current use case when the need arises (and threads are rarely the right
>> model). I'm sure that's not just me.
>
> The sound bite
On Mon, Aug 18, 2014 at 1:59 AM, Steven D'Aprano
wrote:
> But inside class methods we have a problem:
>
> class X:
> def method():
> a = b + c
>
> We can trivially decide on a rule that a must be a local, but how about b
> and c? Are they globals or attributes of the instance? Python d
On Mon, Aug 18, 2014 at 2:01 AM, Joseph L. Casale
wrote:
> If it weren't for these "useless" threads, you wouldn't have even been able
> to send that message, let alone do anything on a computer for that matter.
Not sure about that. I think it would be entirely possible to build a
computer that h
On Mon, Aug 18, 2014 at 1:26 AM, Stefan Behnel wrote:
> I actually wonder more whether Python programmers are really all that
> obsessive about CPython's GIL. Sure, there are always the Loud Guys who
> speak up when they feel like no-one's mentioned it for too long, but I'd
> expect the vast major
> I don't have to care about threading issues all the time and
> can otherwise freely choose the right model of parallelism that suits my
> current use case when the need arises (and threads are rarely the right
> model). I'm sure that's not just me.
The sound bite of a loyal Python coder:)
If it
Chris Angelico wrote:
> In a class definition, you have explicit state parameters on your
> functions - 'self':
>
> class C:
> def foo(self, arg):
> # blah blah
>
> At module level, there's equivalent state - the function "knows" what
> module it came from - but it's implicit:
>
> d
Steven D'Aprano schrieb am 17.08.2014 um 16:21:
> I wonder whether Ruby programmers are as obsessive about
> Ruby's GIL?
I actually wonder more whether Python programmers are really all that
obsessive about CPython's GIL. Sure, there are always the Loud Guys who
speak up when they feel like no-one
In a class definition, you have explicit state parameters on your
functions - 'self':
class C:
def foo(self, arg):
# blah blah
At module level, there's equivalent state - the function "knows" what
module it came from - but it's implicit:
def foo(arg):
# blah blah
print(foo.__glo
Johannes Bauer wrote:
> On 17.08.2014 16:21, Steven D'Aprano wrote:
>> Coincidentally after reading Armin Ronacher's criticism of the GIL in
>> Python:
>>
>> http://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-to-see/
>
> Sure that's the right one? The article you linked doesn't mention th
On Mon, Aug 18, 2014 at 12:21 AM, Steven D'Aprano
wrote:
> The day will come that even the cheapest, meanest entry-level PC will come
> standard with 8 cores and the GIL will just be an embarrassment, but today
> is not that day. I wonder whether Ruby programmers are as obsessive about
> Ruby's GI
On 17.08.2014 16:21, Steven D'Aprano wrote:
> Coincidentally after reading Armin Ronacher's criticism of the GIL in
> Python:
>
> http://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-to-see/
Sure that's the right one? The article you linked doesn't mention the GIL.
> I stumbled across this
Coincidentally after reading Armin Ronacher's criticism of the GIL in
Python:
http://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-to-see/
I stumbled across this "GIL detector" script:
http://yuvalg.com/blog/2011/08/09/the-gil-detector/
Running it on a couple of my systems, I get these fig
Dominique Ramaekers wrote:
> And if I check the encoding with the python script (uncommenting line
> #1), I still get ANSI_X3.4-1968
That should not matter as long as
print(os.environ.get("PYTHONIOENCODING"))
prints
UTF-8
If you do get the correct PYTHONIOENCODING you should be able to replac
Dominique Ramaekers wrote:
> As I suspected, if I check the used encoding in wsgi I get:
> ANSI_X3.4-1968
>
> I found you can define the coding of the script with a special comment:
> # -*- coding: utf-8 -*-
>
> Now I don't get an error but my special chars still doesn't display well.
> The scri
Dominique Ramaekers wrote:
> As I suspected, if I check the used encoding in wsgi I get:
> ANSI_X3.4-1968
That's another name for ASCII.
> I found you can define the coding of the script with a special comment:
> # -*- coding: utf-8 -*-
Be careful. That just tells Python what encoding the sour
A blog from Nick Coghlan
http://www.curiousefficiency.org/posts/2014/08/python-4000.html that
should help put a few minds to rest.
--
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/listinf
On 17/08/2014 13:02, Dominique Ramaekers wrote:
if style == TOP_POSTING:
*plonk*
--
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
As I suspected, if I check the used encoding in wsgi I get:
ANSI_X3.4-1968
I found you can define the coding of the script with a special comment:
# -*- coding: utf-8 -*-
Now I don't get an error but my special chars still doesn't display well.
The script:
# -*- coding: utf-8 -*-
import sys
de
Yes, even a restart not just reload. I Also put it in the section
as in the main apache2.conf
Op 17-08-14 om 13:04 schreef Peter Otten:
Dominique Ramaekers wrote:
Putting the lines in my apache config:
AddDefaultCharset UTF-8
SetEnv PYTHONIOENCODING utf-8
Cleared my brower-cache... No c
I have a COM server implemented in Python. I've created
the following object implementing IEnum to automatically
wrap the sequence elements in PyIDispatch objects:
from win32com.server.util import ListEnumerator
class Iterator(ListEnumerator):
def Next(self, count):
item
Dominique Ramaekers wrote:
> Putting the lines in my apache config:
> AddDefaultCharset UTF-8
> SetEnv PYTHONIOENCODING utf-8
>
> Cleared my brower-cache... No change.
Did you restart the apache?
--
https://mail.python.org/mailman/listinfo/python-list
Wow, everybody keeps on chewing on this problem. As a bonus, I've
reconfigured my server to do some testings.
http://cloudserver.ramaekers-stassart.be/test.html => is the file I want
to read. Going to this url displays the file...
http://cloudserver.ramaekers-stassart.be/cgi-python/encoding1 => i
Denis McMahon wrote:
> From your other message, the error appears to be a python error on
> reading the input file. For some reason python seems to be trying to
> interpret the file it is reading as ascii.
Oh!!! /facepalm
I think you've got it. I've been assuming the problem was on *writing* the
38 matches
Mail list logo