Re: Async serial communication/threads sharing data

2009-03-24 Thread John Nagle
Jean-Paul Calderone wrote: On Mon, 23 Mar 2009 05:30:04 -0500, Nick Craig-Wood wrote: Jean-Paul Calderone wrote: [snip] After bringing in all the heavy machinery of Twisted, you're still polling at 10Hz. That's disappointing. John Nag

Re: Async serial communication/threads sharing data

2009-03-25 Thread John Nagle
Jean-Paul Calderone wrote: On Tue, 24 Mar 2009 22:20:49 -0700, John Nagle wrote: Jean-Paul Calderone wrote: On Mon, 23 Mar 2009 05:30:04 -0500, Nick Craig-Wood wrote: Jean-Paul Calderone wrote: [snip] After bringing in all the heavy machinery of Twisted, you're still polling at

Re: Light (general) Inter-Process Mutex/Wait/Notify Synchronization?

2009-04-28 Thread John Nagle
ead. The basic primitives are MsgSend, MsgReceive, and MsgReply, which do about what you'd expect and do it very fast. Linux lacks this. If you're using CPython, don't worry about socket overhead. CPython is so slow you'll never notice it. John Nagl

Re: Third Party Modules

2009-04-28 Thread John Nagle
7;m not going to put Python software out for public use again. I don't have the time to deal with this crap. John Nagle Animats -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread-killing, round 666 (was Re: Lisp mentality vs. Python mentality)

2009-04-28 Thread John Nagle
mill NOW". Python doesn't do jobs like that. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Is there any way this queue read can possibly block?

2009-04-30 Thread John Nagle
am of mine is having a problem.) John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there any way this queue read can possibly block?

2009-05-02 Thread John Nagle
That wasn't the problem. An incoherent bug report from a user was the problem. John Nagle Carl Banks wrote: On Apr 30, 11:48 am, John Nagle wrote: def draininput(self) : # consume any queued input try: while True :

Annoying feedparser issues

2009-05-15 Thread John Nagle
y thing that works reliably is comparing the story text. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Is using range() in for loops really Pythonic?

2008-05-13 Thread John Nagle
". CPython really is naive. That sort of thing should be a compile-time optimization. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

BeautifulSoup/sgmllib crash

2008-05-13 Thread John Nagle
acter u'\xae' in position 46: ordinal not in range(128) And we're downhill from there. Probably worth fixing, since it's one of the few real-world HTML bugs that totally blows up BeautifulSoup. John Nagle SiteTruth -- http://mail.python.org/mailman/listinfo/python-list

Another BeautifulSoup crash on bad HTML

2008-05-14 Thread John Nagle
her item in our ongoing saga of "What happens when you parse real-world HTML". A try-block in handle_charref would be appropriate. John Nagle SiteTruth -- http://mail.python.org/mailman/listinfo/python-list

Re: Write bits in file

2008-05-18 Thread John Nagle
e to compress the file down further. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: New to Python, Discussion Groups.

2008-05-18 Thread John Nagle
roblems of dealing with devices which may be turned off and on or which may not send when wanted. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I know when all threads are done?

2008-05-21 Thread John Nagle
"join". John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Using MySQLdb to select into the local file

2008-05-22 Thread John Nagle
;/tmp/result.txt') # do it === Note that this is ASCII-oriented; if you Unicode, you need extra params to "connect". Also, the CSV module doesn't do Unicode well as yet. Make sure the "outcsv" object goes out of scope before you try to read the file, so the file gets flushed and closed. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Database Query Contains Old Data

2008-05-23 Thread John Nagle
ay, is per database handle, so if you have multiple database handles, each needs to handle its own COMMIT needs. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: webspider getting stuck

2008-05-25 Thread John Nagle
t behavior when faced with a site that wants authentication is to to ask for a user name and password on standard input. This is seldom what you want. So subclass and overrride. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting a set of lambda functions

2008-05-25 Thread John Nagle
) for func in func_strings] What are you actually trying to do, anyway? What's the application? You probably don't want to use "eval" that way. If you want function objects out, use "compile". John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: maximum recursion depth?

2008-05-27 Thread John Nagle
I've actually hit it parsing big HTML files with BeautifulSoup. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

robotparser behavior on 403 (Forbidden) robot.txt files

2008-06-02 Thread John Nagle
r "robots.txt" file set up that way. There's no real "robots.txt" standard, unfortunately. So it's not definitively a bug. John Nagle SiteTruth -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuous Timer

2008-06-03 Thread John Nagle
rect time, every time. But that was in C++. If you're trying to do hard real time in Python on Linux or Windows, don't expect reliable timing. Remember, Python isn't really preemptive, because of the global interpreter lock and the lack of thread priorities.

Re: Easy install / setuptools

2008-06-03 Thread John Nagle
;t. It tends to do the wrong thing, then leave things in a confused state. Too many things have to be set up right before "easy install" works easily. "python setup.py" is the de-facto standard. Yes, there's no really good, standard solution for Python install

Re: Needing python experts to help with a problem

2008-06-06 Thread John Nagle
tdict[mandict[manu]] = [] # make empty list outdict[mandict[manu]].append(mandict) # append entry to list You now have the desired result in a dictionary, which you can convert to a list if you like. If it's a production job, and the number of manufacturers is large, you're probably better off using a database like MySQL, or some mail merge program. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: expression IF (was: Why does python not have a mechanism for data hiding?)

2008-06-07 Thread John Nagle
like ordinary Python. So there's no real need for an expression IF operator. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing module (PEP 371)

2008-06-07 Thread John Nagle
ing instead. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib (54, 'Connection reset by peer') error

2008-06-21 Thread John Nagle
delay and try again; don't let it get bigger than, say, 256 seconds. When a download succeeds, halve the retry delay, but don't let it get smaller than 1 second. That will make your downloader self-tune to the throttling imposed by the server. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: My n00bie brain hurts after "Python setup.py install".

2008-06-22 Thread John Nagle
; files, so you can rename them, unpack them, and get at the good parts. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Apache2 + Python WITHOUT mod_pytho

2008-06-25 Thread John Nagle
round for your distribution. Note that if you use FCGI, don't put your FCGI scripts in a directory enabled for CGI. Apache has a bias towards CGI, which is built in, and will use CGI to run your FCGI scripts. Slowly. John Nagle -- http://mail.

Re: re.search much slower then grep on some regular expressions

2008-07-04 Thread John Nagle
) While doing a simple grep: grep '[^ "=]*/' input (input contains 156.000 a in one row) doesn't even take a second. Is this a bug in python? Thanks... Henning Thornblad You're recompiling the regular expression on each use. Use "re.compile"

Re: Problem with MySQLdb and mod_python

2008-07-17 Thread John Nagle
thon is usually troublesome. Python doesn't really have quite enough isolation to run multiple unrelated instances reliably. We use FCGI, which has the isolation of CGI but doesn't reload the application for every transaction. Also, it's easier to debug if CPython is crashing.

Re: Having trouble with some lists in BeautifulSoup

2008-07-18 Thread John Nagle
en extract the text content of the "a" tag. The BeautifulSoup manual will tell you how. If you want raw thesaurus data you can use freely, see "http://wordnet.princeton.edu";. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: DB Pool

2008-07-22 Thread John Nagle
database from multiple threads, until you have so many that the database server starts to run out of resources. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython VM internals - Wiki page

2008-07-22 Thread John Nagle
Martin v. Löwis, as http://wiki.python.org/moin/CPythonVmInternals That's interesting. It's dumber than I thought. All temporaries on the stack are "boxed" as PyObjects. That's simple and portable, but slow. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: interpreter vs. compiled

2008-07-25 Thread John Nagle
d over and over again at run time by dictionary lookup. This is simple, but there's a sizable speed penalty. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: block/lambda

2008-07-28 Thread John Nagle
ithin another def. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Reasoning behind 'self' parameter in classes?

2008-07-30 Thread John Nagle
nderstand the philosophy and design behind this. Think about the implications of a language without real declarations and it will come to you. John Nagle Animats -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I check nbr of cores of computer?

2008-07-30 Thread John Nagle
defn noob wrote: How can I check how many cores my computer has? Is it possible to do this in a Python-app? Why do you care? Python can't use more than one of them at a time anyway. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Native Code vs. Python code for modules

2008-07-30 Thread John Nagle
27;ll have to see if PyPy 1.1 works. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Swap memory in Python ? - three questions

2008-07-31 Thread John Nagle
? John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Limits of Metaprogramming

2008-08-04 Thread John Nagle
of Python objects) then providing a "compile" operation which cranks out a .py file with code to implement the state machine. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Dictionary to tree format (hopefully simple)

2008-08-06 Thread John Nagle
(d,child) for child in d[node]]) else : return([node]) getsubtree(d,min(d.keys())) # smallest node is assumed to be the root John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating Class Objects in Loop

2008-03-30 Thread John Nagle
e.split(",") # split into list at commas fields = map(lambda(s) : s.strip(), fields) # strip whitespace tcLst.append(TestCase(fields[0], fields[1:])) # pcap, then sids John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Summary of threading for experienced non-Python programmers?

2008-03-31 Thread John Nagle
d program to work around that. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Homework help

2008-04-01 Thread John Nagle
non- > negative number n and returns a list of numbers from 0 to n. For > example, upTo(3) should return the list [0, 1, 2, 3]. def howmany(n) : return(range(n+1)) That should get you started. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: developing web spider

2008-04-02 Thread John Nagle
lp a multithreaded compute-bound process. I'd recommend using Java or C# for new work in this area if you're doing this in volume. Otherwise, you'll need to buy many, many extra racks of servers. In practice, the big spiders are in C or C++. > http://www.immavista.com

Re: Rationale for read-only property of co_code

2008-04-02 Thread John Nagle
t;eval", plus the ability to compile and include new code at run time, so the useful facilities are already working. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange MySQL Problem...

2008-04-02 Thread John Nagle
addition, you're not committing the database update. You need to do connection.commit() after updating. In general, server side programs should have a try-block wrapped around most of the program, with some code to display or log errors in some useful way.

Re: collecting results in threading app

2008-04-04 Thread John Nagle
d.join() # wait for thread to finish totalcount += mythread.result # add to result print "Total size of all tables is:", totalcount John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there an official way to add methods to an instance?

2008-04-04 Thread John Nagle
programmers with about two years experience, trying too hard to prove that they're cool. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: collecting results in threading app

2008-04-04 Thread John Nagle
Gerardo Herzig wrote: > John Nagle wrote: > >> Gerardo Herzig wrote: > Thanks John, that certanly works. According to George's suggestion, i > will take a look to the Queue module. > One question about > > for mythread in mythreads:# for all

Re: Learning curve for new database program with Python?

2008-04-05 Thread John Nagle
phical client, and play with it a bit. Create a table, type in a few records, and try various SELECT statements. That will give you a sense of how SQL works. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Orphaned child processes

2008-04-07 Thread John Nagle
is there a way to make the child > processes terminate when the parent terminates? > > Thank you. Put a thread in the child which reads stdin, and make stdin connect to a pipe from the parent. When the parent terminates, the child will get a SIGPIPE error and raise an exception.

Re: A file iteration question/problem

2008-04-07 Thread John Nagle
> Don't do that; Python doesn't have tail recursion and you'll hit the stack limit. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: read large zip file

2008-04-07 Thread John Nagle
processline(line) This works even in Python 2.4. I use this routinely for processing big log files. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Google App Engine

2008-04-08 Thread John Nagle
into a single vendor solution, especially when they reserve the right to start charging. Their data store uses a subset of SQL, so it's probably possible to write a conversion layer allowing use of MySQL. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: I am worried about Python 3

2008-04-09 Thread John Nagle
een working on a revision of C++ since the 1990s, and that hasn't happened either. The general consensus is that Python 3.x isn't much of an improvement over the existing language. There's just not much demand for it. John Nagle -- http://mail.p

Re: PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

2008-04-10 Thread John Nagle
error message. That may be your first problem. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Python conventions

2008-04-10 Thread John Nagle
mix them. Which to use is ideological; mixing them is a bug. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on threads

2008-04-11 Thread John Nagle
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 guess I'm doing something wrong with join(). Didn't we answer this question just a few days ag

Re: Tremendous slowdown due to garbage collection

2008-04-12 Thread John Nagle
effectively takes O(N*N) time. Do your data structures need garbage collection? CPython is a reference counted system with garbage collection as a backup to catch cycles. Try using weak back-pointers in your data structures to avoid creating cycles. John Na

Re: How to Choose an Unlimited Web Hosting for free

2008-04-13 Thread John Nagle
ng. Which does not support Python. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to update a settings file?

2008-04-13 Thread John Nagle
w one, as an atomic operation: http://blogs.msdn.com/adioltean/archive/2005/12/28/507866.aspx If you really want to update files in place, use a database, like SQLite. If you find yourself rewriting big files for minor changes, switch to a database. For small files, just r

Re: Unicode chr(150) en dash

2008-04-16 Thread John Nagle
latin1" if you want. This might make sense if, for example, all your data is in French or German, which maps well to "latin1". Unless that's your situation, go with either all-ASCII or all-Unicode. It's less confusing. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Default parameter for a method

2008-04-16 Thread John Nagle
general, default values should be immutable constants only. There's been talk of fixing this (it's really a design bug in Python), but for now, it's still broken. (I just had horrible thoughts about the implications of binding a closure to a default argument. You don't wan

Re: Installing BeautifulSoup with easy_install (broken?)

2008-04-18 Thread John Nagle
error from BeautifulSoup installation > attempt: easy_install usually seems to make things harder. BeautifulSoup is one single .py file. That's all you need. Everything else is excess baggage. John Nagle

Re: Python 2.5 adoption

2008-04-18 Thread John Nagle
ent > of python users don't have 2.5? Desktop or server? If server, check what the major Linux distros, like Fedora Core, are shipping with. Check major shared hosting providers to see what they're offering to their customers as standard.

Re: MySQL hardcoding?

2008-04-21 Thread John Nagle
e" set to True. If you're going to run the MySQL connection in Unicode, you should use "utf8" talking to the database, and Unicode strings in Python. Otherwise, you have to understand very clearly exactly how both Python and MySQL handle character sets, and how this changes in Python 2.4, 2.5, and 3.x. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-23 Thread John Nagle
BeautifulSoup.py And yes, the site is up. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-23 Thread John Nagle
Tim Golden wrote: John Nagle wrote: Mike Driscoll wrote: Ken, On Tue, Apr 22, 2008 at 1:36 PM, Kenneth McDonald <[EMAIL PROTECTED]> wrote: Sadly. Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list I've attached the 2.4 version. I also have some Windows b

Re: Java or C++?

2008-04-23 Thread John Nagle
fighting to get out from under a mountain of mediocre libraries. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-25 Thread John Nagle
a list of links to packages elsewhere. There's no uniformity, no standard installation, no standard uninstallation, and no standard version control. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is None <= 0

2008-04-25 Thread John Nagle
f ambiguity, refuse the temptation to guess. Greg Good point. The problem is the typical one; Python did not originally have a Boolean type, and the retrofit resulted in weird semantics. C has the same issue. John Nagle -- http://mail.python.org/

Re: Tremendous slowdown due to garbage collection

2008-04-28 Thread John Nagle
modify BeautifulSoup to use weak pointers. All the pointers towards the root and towards previous parts of the document are "weak". As a result, reference counting alone is sufficient to manage the tree. We still keep GC enabled, but it doesn't find much to collect.

Re: is +=1 thread safe

2008-05-01 Thread John Nagle
ould break. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Preventing 'bad' filenames from raising errors in os.path

2008-05-03 Thread John Nagle
of a path name without checking with the underlying OS to see if the file exists. If, say, you're writing a GUI tool for setting up some configuration, you'd want to do input validation on fields without actually accessing the files. John Nagle -- http:

Re: threading - race condition?

2008-05-09 Thread John Nagle
emember, any assignment to them in a global context makes them a global. You should never get "None" from the queue unless you put a "None" on the queue. "get()" blocks until there's work to do. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib getting SSL certificate info

2008-08-17 Thread John Nagle
s. It doesn't validate the certificate chain. And those strings of attributes you can get are ambiguious; data fields may contain unescaped "/", which is the field separator. I went through this last year and had to use M2Crypto, which is something of a headache but more or less works. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Python does not get environment variable when using cron.

2008-08-17 Thread John Nagle
ad a shell, which in turn will load Python. Or, in Python, you can use "socket.gethostname()", which will get you the host name used for networking purposes. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie problem inserting into MySQL

2008-08-18 Thread John Nagle
ting a huge number of records, look into LOAD DATA. It's much faster. 4. Your code will make 1 entries, then exit. Is that what you want? 5. Creating a database of computed values is a useful exercise, but not all that useful.

Re: Changing the (codec) error handler for the stdout/stderr streams in Python 3.0

2008-09-02 Thread John Nagle
printed to stdout will be automatically converted from the interpreter's internal Unicode representation to this legacy character set. Python 5 is even stricter. Only ASCII (chars 0..127) can be sent to standard output by default. John Nagle --

Re: Use BeautifulSoup to delete certain tag while keeping its content

2008-09-07 Thread John Nagle
Find the font tags with findAll, make a list, then go in and use "extract" and "replaceWith" appropriately. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Noob thread lock question

2009-12-02 Thread John Nagle
some restrictions on threading. Only one thread at a time can use each connection to the database. But you can create multiple connections to the same database at the same time from a single program, and run them concurrently. John Nagle -- http://mail.python.

Re: When will Python 3 be fully deployed

2009-12-10 Thread John Nagle
, take a look at it again. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Another MySQL Problem

2009-12-18 Thread John Nagle
r.execute(sql, values) ## let SQL do the substitution db.commit() ## commit transaction 1. The table names look different. 2. Did you commit the changes? That, too. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Please Help Publicize PyCon

2009-12-21 Thread John Nagle
see I have done). ... This guy wants people to spam for him to promote his $300 conference. Don't support spammers. Boycott PyCon. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Python 3.1.1 installer botches upgrade when installation is not on C drive.

2009-12-21 Thread John Nagle
installed the failed install, and reinstalled. On a new install, the installer prompts for the destination dir, and that works. Upgrade installs, though, are botched. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and FastCGI

2009-12-30 Thread John Nagle
quot;cgi" and tell Apache to use that for FCGI. FCGI is a good system; it's just that the documentation isn't very good.This code has been running a live web site for two years now. John Nagle #!/usr/local/bi

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-02 Thread John Nagle
enough traffic that you need a multi-threaded web server, it's probably time to move up. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: pyserial: Unexpected Local Echo

2010-01-15 Thread John Nagle
input, I'd look at the USB to serial device. I've used devices with the Silicon Laboratories CP2102 part, and they work fine. ("http://www.aetherltd.com/connectingusb.html";) Do you have something plugged into the serial port? If so, what? John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: BeautifulSoup

2010-01-15 Thread John Nagle
It's just somebody pirating movies. Ineptly. Ignore. John Nagle yamamoto wrote: Hi, I am new to Python. I'd like to extract "a" tag from a website by using "beautifulsoup" module. but it doesnt work! //sample.py from Beautif

Re: Is python not good enough?

2010-01-15 Thread John Nagle
d that. The language is fine, but the CPython implementation is obsolete. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Is python not good enough?

2010-01-16 Thread John Nagle
Nobody wrote: On Fri, 15 Jan 2010 12:34:17 -0800, John Nagle wrote: Actually, no. It's quite possible to make a Python implementation that runs fast. It's just that CPython, a naive interpreter, is too primitive to do it. I was really hoping that Google would put somebo

Re: Is python not good enough?

2010-01-16 Thread John Nagle
David Cournapeau wrote: On Sun, Jan 17, 2010 at 4:17 AM, John Nagle wrote: Nobody wrote: On Fri, 15 Jan 2010 12:34:17 -0800, John Nagle wrote: Actually, no. It's quite possible to make a Python implementation that runs fast. It's just that CPython, a naive interpreter, is too

Re: Problems with collision response

2010-01-17 Thread John Nagle
pproach to collision response probably won't handle multiple simultaneous collisions. 3. You're expecting others to debug your code. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: html code generation

2010-01-21 Thread John Nagle
t's an automatically updated static page. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Password Strength Checker Review Help needed

2010-01-27 Thread John Nagle
;s my classic "Obvious password detector": http://www.animats.com/source/obvious/obvious.c This prevents dictionary attacks using an English dictionary, but needs only a small bit table and does no I/O. John Nagle -- http://mail.python.org/mailman/

Re: myths about python 3

2010-01-27 Thread John Nagle
pported by MySQLdb, OpenSSL, feedparser, etc. Arguably, Python 3 has been rejected by the market. Instead, there's now Python 2.6, Python 2.7, and Python 2.8. Python 3 has turned into a debacle like Perl 6, now 10 years old. That's the reality, Python 3 fanboys.

Re: starting a thread in a nother thread

2010-01-27 Thread John Nagle
e search: "Results 1 - 10 of about 29,400 for psycopg2 crash". John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Library support for Python 3.x

2010-01-27 Thread John Nagle
ython. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Why doesn't "filterwarnings" suppress this message?

2010-01-28 Thread John Nagle
n warnings associated with the feedparser module, but not that one. How do I get rid of that one? And no, warnings.filterwarnings(action='ignore', category=DeprecationWarning, module='sgmllib') doesn't do it. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

<    3   4   5   6   7   8   9   10   11   12   >