comp.lang.python - 19 new messages in 16 topics - digest
comp.lang.python
http://groups.google.com/group/comp.lang.python?hl=en
comp.lang.python@googlegroups.com
Today's topics:
* Exception class documentation - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/580870bb266d390a?hl=en
* can pydoc display doc for local funcs? or other doc tools for own code - 1
messages, 1 author
http://groups.google.com/group/comp.lang.python/t/b931334811b7a033?hl=en
* how to make a SimpleXMLRPCServer abort at CTRL-C under windows - 1 messages,
1 author
http://groups.google.com/group/comp.lang.python/t/9243131b41d86463?hl=en
* Drawing a zig-zag Trail in Python? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/b8b3c5802a568680?hl=en
* Google AI Challenge at U of Waterloo - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.python/t/40f30c405afc24ab?hl=en
* Mouse wheel events? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/7309e922cbfd6fc8?hl=en
* WCK and PIL - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/c773d34da3ee45fd?hl=en
* merge stdin, stdout? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/75afdea13cc24143?hl=en
* Import question - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/6a0848393a65e38b?hl=en
* Dreaming of new generation IDE - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/e019614ea149e7bd?hl=en
* C:\Python25\Lib\IDLELIB\idle.pyw won't start - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/0dbc675fff5ecf07?hl=en
* Call for Paper The International Journal of Computer Science (IJCS) - 1
messages, 1 author
http://groups.google.com/group/comp.lang.python/t/55cb3f5b4cbe9dd5?hl=en
* CAR INSURANCE FRAUDS ARE VERY HIGHGLY GOING ON IN AMERICA: LOS ANGELES: Due
to bad economic conditions in america the people cheated the insurance company.
They hiding their cars in some place and they claim insurance from insur - 1
messages, 1 author
http://groups.google.com/group/comp.lang.python/t/341055acadb06093?hl=en
* Simple question about Queue.Queue and threads - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.python/t/032256dd608c9c02?hl=en
* Calendar GUI - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/ba90a26a4bc88351?hl=en
* New extreme fast laptop...........!!!!!!!!!!!!!.............!!!!!!!!!!!!!! -
1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/2a4e1c07d9f69319?hl=en
==============================================================================
TOPIC: Exception class documentation
http://groups.google.com/group/comp.lang.python/t/580870bb266d390a?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 4:27 pm
From: Charles Yeomans
On Feb 5, 2010, at 2:13 PM, Gerald Britton wrote:
> On Fri, Feb 5, 2010 at 12:55 PM, Charles Yeomans <charles@declaresub.com
> > wrote:
>> I am so far unable to find the information I want about the
>> Exception class.
>> Information like the signature of __init__ seems to be
>> unavailable. Any
>> suggestions where I might find such information?
>>
>
> Though not documented, some silly tests indicate that it will accept
> pretty much anything:
>
>>>> Exception(1,2,4,54)
> Exception(1, 2, 4, 54)
>>>> Exception(*range(10))
> Exception(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
>>>> Exception(*range(50))
> Exception(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
> 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
> 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49)
>>>> Exception('a','b','c','d','e')
> Exception('a', 'b', 'c', 'd', 'e')
>>>> Exception(Exception(1))
> Exception(Exception(1,),)
I had also tried such tests. If you pass a single argument msg, it is
assigned to the message property, and the args property is set to
(msg,). If you pass more than one argument, the tuple of arguments is
assigned to the args property, and nothing is assigned to the message
property. I was hoping to at least find source code that provides a
definitive answer.
Charles Yeomans
==============================================================================
TOPIC: can pydoc display doc for local funcs? or other doc tools for own code
http://groups.google.com/group/comp.lang.python/t/b931334811b7a033?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 4:31 pm
From: News123
Hi,
often I start "pydoc -g" in a projects working directory in order to
view the docstrings of my own project and in order to get a quick
overview of the code structure
In some cases I would like to see also to see private methods
(especially when trying to understand the internals of a collegues code
or even to browse throught the internals of my own code)
Therefore I wonder whether pydoc could be configured such, that it would
also display private methods (the ones with leading underscores)
If not:
What tools / methodologies would you recommend to quickly browse own /
collegues source code.
In many cases the function prototypes and the doc strings of public and
private methods would be sufficient for me.
thanks for any ideas
N
==============================================================================
TOPIC: how to make a SimpleXMLRPCServer abort at CTRL-C under windows
http://groups.google.com/group/comp.lang.python/t/9243131b41d86463?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 4:56 pm
From: "Gabriel Genellina"
En Fri, 05 Feb 2010 20:03:51 -0300, News123 <news123@free.fr> escribió:
> I'm using an XMLRPC server under Windows.
>
> What I wonder is how I could create a server, that can be killed with
> CTRL-C
>
> The server aborts easily with CTRL-BREAK but not with CTRL-C (under
> Windows)
>
> If I press CTRL-C it will only abort when the next RPC call occurs.
> It seems it is blocking in the select() call in the handle_request()
> function.
Python 2.6 and up behaves exactly as you want.
On previous versions you may use this:
class MyXMLRPCServer(SimpleXMLRPCServer.SimpleXMLRPCServer):
... your methods ...
if not hasattr(SimpleXMLRPCServer.SimpleXMLRPCServer, 'shutdown'):
# pre 2.6
quit = False
def serve_forever(self):
while not self.quit:
self.handle_request()
def shutdown(self):
self.quit = True
def server_bind(self):
self.socket.settimeout(1.0)
SimpleXMLRPCServer.SimpleXMLRPCServer.server_bind(self)
--
Gabriel Genellina
==============================================================================
TOPIC: Drawing a zig-zag Trail in Python?
http://groups.google.com/group/comp.lang.python/t/b8b3c5802a568680?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 6:49 pm
From: "W. eWatson"
On 2/5/2010 9:30 AM, Grant Edwards wrote:
> On 2010-02-05, W. eWatson<wolftracks@invalid.com> wrote:
>
>> I'd like to draw something like an animal track. Between each
>> point is a line. Perhaps the line would have an arrow showing
>> the direction of motion. There should be x-y coordinates
>> axises. PIL? MatPlotLib, ??
>
> I'd probably use gnuplot-py, but I'm probably biased since I've
> been using gnuplot since way before I learned Python.
>
It appears this is easier than I thought. MLB's plot will do it. I can
put arrows at the end of a line, and even use sleep to watch the path
slowly evolving.
==============================================================================
TOPIC: Google AI Challenge at U of Waterloo
http://groups.google.com/group/comp.lang.python/t/40f30c405afc24ab?hl=en
==============================================================================
== 1 of 3 ==
Date: Fri, Feb 5 2010 7:17 pm
From: Andrej Mitrovic
Sweet, something to keep my brain busy for the next couple of weeks.
== 2 of 3 ==
Date: Fri, Feb 5 2010 7:38 pm
From: John Nagle
Forthminder wrote:
...
Ignore. Well-known nut. See "http://www.nothingisreal.com/mentifex_faq.html"
John Nagle
== 3 of 3 ==
Date: Fri, Feb 5 2010 8:18 pm
From: "Man-wai Chang to The Door (24000bps)"
On 06-Feb-10 08:02, Forthminder wrote:
> Contest runs from 4 February to 26 February 2010.
> http://csclub.uwaterloo.ca/contest/problem_description.php
> Bonne Chance!
It's definitely *not* exactly a programming challenge, but algorithm
challenge.
A programming (only) challenge should only require the players to write
codes to implement an algorithm.
This one requires both algorithm design & programming.
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (x86_64 Ubuntu 9.10) Linux 2.6.32.7
^ ^ 12:16:01 up 6 days 20:22 2 users load average: 0.45 0.26 0.09
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa
==============================================================================
TOPIC: Mouse wheel events?
http://groups.google.com/group/comp.lang.python/t/7309e922cbfd6fc8?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 8:55 pm
From: Gary Herron
Craig Berry wrote:
> Is there any way to get mouse wheel events from glut in PyOpenGL?
>
>
Use Linux. (On Linux, Glut returns mouse wheel events as buttons 4 and
5), or use FreeGlut. On both Windows and Linux freeglut returns mouse
wheel events as buttons 4 and 5.
Gary Herron
==============================================================================
TOPIC: WCK and PIL
http://groups.google.com/group/comp.lang.python/t/c773d34da3ee45fd?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 9:05 pm
From: darnzen
I've written an app using the wck library (widget construction kit,
see http://www.effbot.org), in addition to the wckGraph module. What
I'd like to do, is take the output of one of my windows (happens to be
a graph), and save it as a *.png or *.gif. I was planning on using the
PIL for this. I'd like to use the code I have as is, without re-
writing all the graphic calls to use PIL methods.
WCK uses its own "pixmap" class for storing images in memory. I can't
find any documentation or class reference for pixmap and what I find
in the source is confusing.
Does anyone have any direct experience with these libraries that can
tell me that there's some super easy thing I'm missing? I'd love it if
the wck pixmap is compatible with PIL. I don't have the time to mess
with it unless I know its going to work.
==============================================================================
TOPIC: merge stdin, stdout?
http://groups.google.com/group/comp.lang.python/t/75afdea13cc24143?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 9:10 pm
From: "Gabriel Genellina"
En Fri, 05 Feb 2010 17:39:07 -0300, jonny lowe
<jonny.lowe.12345@gmail.com> escribió:
> On Feb 4, 8:20 pm, exar...@twistedmatrix.com wrote:
>> On 01:56 am, jonny.lowe.12...@gmail.com wrote:
>> >What I want is to have an easy way to merge input.txt and thestdout
>> >so that output.txt look like:
>>
>> >Enter a number: 42
>> >You entered 42.
>>
>> >Here, the first 42 is of course from input.txt.
>>
>> It sounds like you might be looking forscript(1)?
>
> $ script -c "./y < input.txt" output.txt
> Script started, file is output.txt
> gimme x:you entered hello
> Script done, file is output.txt
Try moving the redirection out of the command:
$ script -c ./y output.txt < input.txt
--
Gabriel Genellina
==============================================================================
TOPIC: Import question
http://groups.google.com/group/comp.lang.python/t/6a0848393a65e38b?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 9:19 pm
From: "Gabriel Genellina"
En Fri, 05 Feb 2010 13:21:47 -0300, Andrew Degtiariov
<andrew.degtiariov@gmail.com> escribió:
> Code of our project has split into several packages and we deploy the
> project using buildout.
> All worked fine until I need to dynamically inspect python modules.
Entirely by luck, I'd say :)
> ├───project.api.config
> │ ├───project
> │ │ └───api
> │ │ └───config
> │ │ └───settings
> │ └───project.api.config.egg-info
> ├───project.api.contacts
> │ ├───project
> │ │ └───api
> │ │ └───contacts
> │ │ ├───importer
> │ │ └───views
> │ └───project.api.contacts.egg-info
> Regular code like "import project.api.config" worked fine, but now I'm
> tryed
> __import__('project.api.config'):
>
> $ bin/python
>
>>>> import project.api.config
>>>> __import__('project.api.config')
> <module 'project from
> 'c:\users\ad\project\src\project.api.contacts\project\__init__.pyc'>
You can't use dots neither in module names nor package names as they're
identifiers [1]. It's like trying to use an attribute named 'foo.bar': you
can handle it with getattr/setattr, but normal attribute access won't work:
py> x.foo.bar = 1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: X instance has no attribute 'foo'
py> setattr(x, 'foo.bar', 1)
py> x.foo.bar
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: X instance has no attribute 'foo'
py> getattr(x, 'foo.bar')
1
[1] http://docs.python.org/reference/simple_stmts.html#the-import-statement
> What's wrong? We really need to split the code for several eggs and want
> that all of our package's names starts from 'project.api'
The only sane solution is to avoid using dots in package names. Sorry, but
having project.api.config, project.api.contacts as directory names is
simply crazy.
Looks like you actually wanted to use this layout:
project/
api/
config/
...
contacts/
...
core/
...
but made a wrong turn in the road...
--
Gabriel Genellina
==============================================================================
TOPIC: Dreaming of new generation IDE
http://groups.google.com/group/comp.lang.python/t/e019614ea149e7bd?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 9:19 pm
From: "Gabriel Genellina"
En Fri, 05 Feb 2010 19:22:39 -0300, bartc <bartc@freeuk.com> escribió:
> "Steve Holden" <steve@holdenweb.com> wrote in message
> news:mailman.1998.1265399766.28905.python-list@python.org...
>> Arnaud Delobelle wrote:
>>> Robert Kern <robert.kern@gmail.com> writes:
>>>
>>>> I prefer Guido's formulation (which, naturally, I can't find a direct
>>>> quote for right now): if you expect that a boolean argument is only
>>>> going to take *literal* True or False, then it should be split into
^^^^^^^^^^^^^^^^^^^^^^^
>>>> two functions.
>>>
>>> So rather than three boolean arguments, would you have eight functions?
>>>
>> If there's genuinely a need for that functionality, yes.
>
> So you want a function such as drawtext(s, bold=true, italic=false,
> underline=true) to be split into:
>
> drawtext(s)
> drawtextb(s)
> drawtexti(s)
> drawtextu(s)
> drawtextbi(s)
> drawtextbu(s)
> drawtextiu(s)
> drawtextbiu(s)
Note the *literal* part. If you (the programmer) is likely to know the
parameter value when writing the code, then the function is actually two
separate functions.
By example, foo.get_path(absolute=True) should be written as
foo.get_absolute_path() and foo.get_relative_path()
It gets worse when one parameter alters the type of the returned value, or
even the number of returned values. This is an actual example:
def build_image(self, zone=-1, return_sizes=False):
...
if return_size:
return img, sizes
else:
return img
image = foo.build_image(3)
but:
image, sizes = foo.build_image(3, True)
It should be split onto two separate functions; in this particular case,
computing 'sizes' required actually drawing the image, so the solution was
to make those 'sizes' attributes of the returned image.
--
Gabriel Genellina
==============================================================================
TOPIC: C:\Python25\Lib\IDLELIB\idle.pyw won't start
http://groups.google.com/group/comp.lang.python/t/0dbc675fff5ecf07?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 9:20 pm
From: "Gabriel Genellina"
En Fri, 05 Feb 2010 10:23:57 -0300, Anthra Norell
<anthra.norell@bluewin.ch> escribió:
>>> I upgraded from 2.4 to 2.5 and am unable to start an 2.5 idle
>>> window. The OS is Windows ME. The download of 2.5 finished with a
>>> warning saying that 2.5 was the highest version for Windows 9* Any
>>> tips?
I'd suggest a couple more tests.
Open the Python interpreter and execute:
py> from idlelib import idle
This *should* launch IDLE, or raise an error... If nothing happens, exit
the process and open another one, and execute:
py> import Tkinter
py> root = Tkinter.Tk()
py> root.mainloop()
An empty window should appear. If not, I'd say something is wrong with the
Tcl/Tk libraries.
> For the time being 2.4 works fine. I'd much prefer 2.5, though, because
> it includes the image library (PIL), whereas 2.4 cannot even use it.
PIL has an impressive compatibility record - it works with *any* Python
version from 1.5.2 up. You should be able to use PIL with 2.4 without
problems.
--
Gabriel Genellina
==============================================================================
TOPIC: Call for Paper The International Journal of Computer Science (IJCS)
http://groups.google.com/group/comp.lang.python/t/55cb3f5b4cbe9dd5?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 9:44 pm
From: editor ijcs
Call for Paper
The International Journal of Computer Science (IJCS) publishes
original papers on all subjects relevant to computer science,
communication network, and information systems. The highest priority
will be given to those contributions concerned with a discussion of
the background of a practical problem, the establishment of an
appropriate model, the determination of a solution, approximate or
exact, analytical or numerical, and a discussion of the relevance of
the results when applied to the real-life problem. Paper submissions
are invited in the area of computer science, in particular the
technological advances and research results in the fields of
theoretical, experimental, applied electronics, computer science,
communication network and Information technology.
Topics of interest include but are not limited to the following:
Computer Science
* Parallel Processing and Distributed Computing
* Foundations of High-performance Computing
* Graph Theory and Analysis of Algorithms
* Artificial Intelligences and Pattern/Image Recognitions
* Neural Networks and Biomedical Simulations
* Virtual Visions and Virtual Simulations
* Data Mining, Web Image Mining and Applications
* Data Base Management & Information Retrievals Adaptive Systems
* Bifurcation, Biocybernetics & Bioinformatics
* Blind Systems, Neural Networks &Control Systems
* Cryptosystems &Data Compression
* Evolutional Computation &Fuzzy Systems
* Image Processing and Image Recognition, Modeling & Optimization
* Speech Processing, Speech Synthesis & Speech Recognition
* Video Signal Processing, Watermarking & Wavelet Transform
* All topics related Computer Science
Communication Network
* Quantum Computing & Coding
* Error Controls Agent Computing & Multi-Agents Systems
* Defining Spectrum Rights and Open Spectrum Solutions
* Quality of Services and Communication Protocols
* Satellite and Optical Communication Systems
* 3G/4G Network Evolutions & CDMA/GSM Communication Protocols
* Mobile Computing, Transmission/Switching/Distribution
technologies
* Communication Theory & Signal Processing for Communications
* Wireless Communications, Wireless & Mobile Networking
* Optical Networks and Systems &Next-Generation Networking and
Internet
* Communication QoS &Reliability and Modeling
* Ad-hoc, Sensor & Mesh Networking
* Multimedia Services, Communication Software & Services
* Communication and Information System Security
* System control and network/service management
* Network and Internet protocols and standards
* Client-server, distributed & Web-based communication systems
* Broadband and multimedia systems & applications
* Trials of advanced systems and services
* Any topics related Communication Network
Information and Systems
* Cryptography and Foundation of Computer Security
* Authentication/Authorization Issues
* IDS/Firewall, Anti-Spam mail & Anti-virus issues
* Biometric authentication & algorithms
* Fingerprint /Hand/Biometrics Recognitions and Technologies
* IC-card Security, OTP & Key Management Issues
* E-commerce, Ubiquitous & RFID Applications
* Metadata, Meta Modeling, XML & Data Management
* Knowledge Management, Web Security & Privacy
* Cyber Threats, Web Services & Web Engineering
* Web Intelligence, Protocols & Standards
* Proxies and Servers
* Multimedia Applications
* Ontology and the Semantic Web
* B2B, B2C and C2C
* E-Business System Design and Development, E-Payment
* Portal Strategies, Social Networks and Information Systems
* Social and Legal Issues and Digital Ecology
* E-Governance, E-Learning and Virtual Classrooms
* E-Entertainment, E-Journalism
* Any topics related Information systems
Electronics
* Circuits & Devices
* Communication Networks & Systems
* Communications & Information Processing
* Digital Signal Processing & Electrical Engineering
Communications
* Electromagnetics & Microwaves
* Instrumentation
* Measurement & Testing
* Nanoscience & Nanotechnology
* Optics & Optoelectronic Effects
* Devices, Systems &Semiconductors
* Systems & Control Engineering
* Telecommunications
* Any topics related Electronics
International Journal of Computer Science (IJCS)
ISSN: 1884-9083
Website: https://sites.google.com/site/ijcsorg/
Manuscript submission to: ijcsorgeditor@gmail.com
All submitted papers will be judged based on their quality by the
technical committee and reviewers. Papers that describe research and
experimentation are encouraged. All paper submissions will be handled
electronically and detailed instructions on submission procedure are
available on IJCS web pages. Researchers and authors are invited to
participate in the peer-review process of IJCS papers if your research
interest matches with the themes of Call for Papers. For other
information, please contact IJCS Managing Editor.
==============================================================================
TOPIC: CAR INSURANCE FRAUDS ARE VERY HIGHGLY GOING ON IN AMERICA: LOS ANGELES:
Due to bad economic conditions in america the people cheated the insurance
company.They hiding their cars in some place and they claim insurance from
insur
http://groups.google.com/group/comp.lang.python/t/341055acadb06093?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 9:48 pm
From: karthiga madhan
CAR INSURANCE FRAUDS ARE VERY HIGHGLY GOING ON IN AMERICA:
LOS ANGELES:
Due to bad economic conditions in america the people
cheated the insurance company.They hiding their cars in some place and
they claim insurance from insurance providers telling that their car
was damaged or theft.This was the situation going on in america. The
people in middle class were effected due to the bad economical
reasons.
http://autoinsurance-2010.blogspot.com
==============================================================================
TOPIC: Simple question about Queue.Queue and threads
http://groups.google.com/group/comp.lang.python/t/032256dd608c9c02?hl=en
==============================================================================
== 1 of 2 ==
Date: Fri, Feb 5 2010 9:59 pm
From: "Gabriel Genellina"
En Fri, 05 Feb 2010 09:45:30 -0300, Frank Millman <frank@chagford.com>
escribió:
> Assume you have a server process running, a pool of worker threads to
> perform tasks, and a Queue.Queue() to pass the tasks to the workers.
>
> In order to shut down the server cleanly, you want to ensure that the
> workers have all finished their tasks. I like the technique of putting a
> None onto the queue, and have each worker check for None, put None back
> onto the queue, and terminate itself.
>
> The main program would look something like this -
>
> q.put(None)
> for worker in worker_threads:
> worker.join()
>
> At this point you can be sure that each thread has completed its tasks
> and terminated itself.
>
> However, the queue is not empty - it still has the final None in it.
Yes - but who cares? :)
> Is it advisable to finalise the cleanup like this? -
>
> while not q.empty():
> q.get()
> q.task_done()
> q.join()
>
> Or is this completely redundant?
I don't see what you gain by doing that.
On the other hand, you might check whether the queue contains exactly one
item and it is None, just to be sure that all queued work has been done.
(BTW, I'd use a different sentinel instead of None; perhaps this could not
happen in your current code, but it's easy to inadvertedly put a None in
the queue, stopping all workers prematurely.)
--
Gabriel Genellina
== 2 of 2 ==
Date: Fri, Feb 5 2010 10:30 pm
From: "Frank Millman"
On Feb 6, 7:59 am, "Gabriel Genellina" <gagsl-...@yahoo.com.ar> wrote:
> En Fri, 05 Feb 2010 09:45:30 -0300, Frank Millman <fr...@chagford.com>
> escribió:
>
[...]
> > However, the queue is not empty - it still has the final None in it.
>
> Yes - but who cares? :)
>
That was my point. I didn't think I needed to care, but I wanted to be sure
I was not missing something.
I will just discard all the final cleanup code.
>
> (BTW, I'd use a different sentinel instead of None; perhaps this could not
> happen in your current code, but it's easy to inadvertedly put a None in
> the queue, stopping all workers prematurely.)
>
Good advice.
Thanks, Gabriel
Frank
==============================================================================
TOPIC: Calendar GUI
http://groups.google.com/group/comp.lang.python/t/ba90a26a4bc88351?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 9:59 pm
From: Michael Torrie
Gabriel wrote:
> On Fri, Feb 5, 2010 at 9:08 PM, William Gaggioli <wgaggioli@gmail.com> wrote:
>> I'm working on setting up some software for a Peruvian non-profit to help
>> them organize their incoming volunteers. One of the features I'd like to add
>> is a calendar-like view of the different volunteers arrival dates and
>> staying time, with potentially some other info through some double-click
>> action. Rather than writing a calendar gui myself, is there some open-source
>> calendar program you guys could recommend that I could plug into? It has to
>> be run locally, as the internet isn't so reliable down here, but other than
>> that something simple and clean is ideal.
>
> I wrote a gtk gui for google calendar.
>
> Maybe you can adapt it to your needs.
>
> http://code.google.com/p/googlecalendar-gtk/
Would this work without an internet connection? The original poster
stated that internet isn't so reliable, hence the need for a local solution.
==============================================================================
TOPIC: New extreme fast laptop...........!!!!!!!!!!!!!.............!!!!!!!!!!!!
!!
http://groups.google.com/group/comp.lang.python/t/2a4e1c07d9f69319?hl=en
==============================================================================
== 1 of 1 ==
Date: Fri, Feb 5 2010 11:42 pm
From: manishankar c
I just wanted to give my opinion on Dell Inspiron 15 and let you know
that I was extremely pleased to get my new lap top!!!! What a pleasure
it has been!!!! It took a little while to get because I ended up
getting a design on my laptop. I like the pretty designs better than a
plain black top. I love love love my new laptop!!!! It was a New Year
present to my self this year and I couldn't be happier!!! It is
extremely fast!
The only thing I do not like about it is that the keyboard does not
have the numbers on the side, they only run along the top. I enter in
a lot of numbers in one day and it just takes a few extra minutes
doing it with them on the top. Also I forgot to have them install the
home and office thing on here so I have to run out and buy that but
everything else is just perfect.
Click the following link for more details :
==============================================================================
You received this message because you are subscribed to the Google Groups "comp.lang.python"
group.
To post to this group, visit http://groups.google.com/group/comp.lang.python?hl=en
To unsubscribe from this group, send email to comp.lang.python+unsubscribe@googlegroups.com
To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.python/subscribe?hl=en
To report abuse, send email explaining the problem to abuse@googlegroups.com
==============================================================================
Google Groups: http://groups.google.com/?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home