[issue42077] Some absolute domain name not work in urllib

2020-10-18 Thread Zheng SHAO
Change by Zheng SHAO : -- title: Some Absolute domain name not work in urllib -> Some absolute domain name not work in urllib ___ Python tracker <https://bugs.python.org/issu

[issue42077] Some Absolute domain name not work in urllib

2020-10-18 Thread Zheng SHAO
New submission from Zheng SHAO : ``` import ssl import urllib.request url_string = "https://kubernetes.default.svc.cluster.local./api/; ctx = ssl._create_unverified_context() with urllib.request.urlopen(url_string, context=ctx) as f: f.read() ``` In running this sample code wil

Re: Python on a MacBook Pro (not my machine)

2013-10-26 Thread Shao Hong
with it, so why not make use of it. But my personal choice will be Sublime and pyCharm or even vim. Shao Hong shaohon...@gmail.com Respect needs to be earned, but honour is an attitude of the heart. Not everyone will earn your respect, but everyone deserves to be shown honour. - Anonymous On Sun, Oct

cunfused why gevent block redis' socket request?

2012-12-28 Thread Tony Shao
GOAL:spawn a few greenlet worker deal with the data pop from redis (pop from redis and then put into queue) RUNNING ENV: ubuntu 12.04 PYTHON VER: 2.7 GEVENT VER: 1.0 RC2 REDIS VER:2.6.5 REDIS-PY VER:2.7.1 from gevent import monkey; monkey.patch_all() import gevent from gevent.pool import Group

have opensource crawler written by python?

2009-11-02 Thread Junjun Shao
hi, Is there a crawler written by python? anybody can give me more information? thanks a lot! -- http://mail.python.org/mailman/listinfo/python-list

.pyc keeps running and never stops

2008-11-07 Thread Shao
Dear All, I am using Python 2.5 and used py_compile to produce a .pyc file. The script runs well. However, the .pyc keeps running and never stops. Advices will be deeply appreciated. Regards. David -- http://mail.python.org/mailman/listinfo/python-list

Looking for a nitty-gritty Python Ajax middleware script to fire off a number of processors

2008-11-07 Thread Shao
and Windows Server. Regards. Shao -- http://mail.python.org/mailman/listinfo/python-list

Interesting timing issue I noticed

2008-04-16 Thread Jonathan Shao
*Gabriel Genellina* gagsl-py2 at yahoo.com.ar python-list%40python.org?Subject=Interesting%20timing%20issue%20I%20noticedIn-Reply-To= *Wed Apr 16 08:44:10 CEST 2008* Another thing would be to rearrange the loops so the outer one executes less times; if you know that borderXsizeX and borderYsizeY

Re: Interesting timing issue I noticed

2008-04-15 Thread Jonathan Shao
I've written up a stripped down version of the code. I apologize for the bad coding; I am in a bit of a hurry. import random import sys import time sizeX = 320 sizeY = 240 borderX = 20 borderY = 20 # generates a zero matrix def generate_zero(): matrix = [[0 for y in range(sizeY)] for x in

Interesting timing issue I noticed

2008-04-14 Thread Jonathan Shao
The project I'm working on is motion detection, involving a bit of image processing. No worries: no image processing background needed. Suffice to say that I initially wrote a script that goes through every pixel of a 320x240 picture (turned into an array using PIL) and performs some

Question on threads

2008-04-11 Thread Jonathan Shao
Hi all, I'm a beginner to Python, so please bear with me. Is there a way of guarenteeing that all created threads in a program are finished before the main program exits? I know that using join() can guarentee this, but from the test scripts I've run, it seems like join() also forces each

Re: Question on threads

2008-04-11 Thread Jonathan Shao
On Fri, Apr 11, 2008 at 3:29 PM, Steve Holden [EMAIL PROTECTED] wrote: Jonathan Shao wrote: Hi all, I'm a beginner to Python, so please bear with me. Is there a way of guarenteeing that all created threads in a program are finished before the main program exits? I know that using join