OSCON 2015 CfP DEADLINE Feb 2

2015-01-28 Thread Aahz
influence over the entire business world and how you can make it work for you. * Foundations - A strong foundation in computational thinking, problem solving, and programming best practices makes for a successful programmer. See the CfP page for more details. -- Aahz

OSCON 2013 registration is open (7/22-26)

2013-04-02 Thread Aahz
OSCON (O'Reilly Open Source Conference) will be held in Portland, OR July 22-26. This year we're celebrating the fifteenth anniversary! Registration is now open: http://www.oscon.com/oscon2013 http://www.oscon.com/oscon2013/public/schedule/grid Hope to see you there! -- Aahz

Final reminder: OSCON Call for Proposals (deadline 2/4)

2013-01-31 Thread Aahz
Hope to see you there! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in reams of trivial code that bores the reader

OSCON Call for Proposals (deadline 2/4)

2013-01-19 Thread Aahz
Hope to see you there! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in reams of trivial code that bores the reader

Re: debugging in eclipse

2012-11-15 Thread Aahz
is running is to add assert 0. ``1/0`` is shorter. ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ LL YR VWL R BLNG T S -- www.nancybuttons.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Detect file is locked - windows

2012-11-15 Thread Aahz
want to use CreateFileW()... ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ LL YR VWL R BLNG T S -- www.nancybuttons.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python garbage collector/memory manager behaving strangely

2012-11-14 Thread Aahz
as evidenced by the mistake Dave made! Segregated namespaces are wonderful (per Zen), but let's not pollute multiple namespaces with same name, either. It may not be literally shadowing the built-in, but it definitely mentally shadows the built-in. -- Aahz (a...@pythoncraft.com

DNS from Python (was Re: Subprocess puzzle and two questions)

2012-11-14 Thread Aahz
('@',1)[1] server = str(dns.resolver.query(domain, 'MX')[0].exchange) You'll need to play around a bit to find out what that does, but it should point you in the right direction. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ LL YR VWL R BLNG T S

Re: Is there a simpler way to modify all arguments in a function before using the arguments?

2012-11-10 Thread Aahz
change the parameters for foo, you don't need to change the arg pre-processing. Also allows code reuse, probably any program needing this kind of processing once will need it again. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Normal is what cuts off your

Re: Single leading dash in member variable names?

2012-11-10 Thread Aahz
that start with a single leading underscore. Obviously, this has little effect for most Python programs because you DON'T USE ``import *``. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Normal is what cuts off your sixth finger and your tail... --Siobhan -- http

Re: how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py

2012-11-09 Thread Aahz
-patching modules even with a context manager. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Normal is what cuts off your sixth finger and your tail... --Siobhan -- http://mail.python.org/mailman/listinfo/python-list

Re: Numpy combine channels

2012-11-09 Thread Aahz
is playing a booming bass while the other side is playing a rest note -- should the mono combination be half as loud as as the bass? -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Normal is what cuts off your sixth finger and your tail... --Siobhan -- http

Re: __unicode__() works, unicode() blows up. (Never mind!)

2012-11-04 Thread Aahz
unicode(self.username) This never got noticed before because normally, self.username already is a unicode string, so it just works. You apparently need more coffee when programming after waking up! (Or even worse, staying up all night.) -- Aahz (a...@pythoncraft.com) * http

Re: is implemented with id ?

2012-11-03 Thread Aahz
. If the object is mutable, then changing a will also change b. If a and b aren't mutable, then it doesn't really matter whether they share a physical address. That last sentence is not quite true. intern() is used to ensure that strings share a physical address to save memory. -- Aahz

Re: is implemented with id ?

2012-11-03 Thread Aahz
-for-char until there's a difference. Without looking at the code, I'm pretty sure there's a hash check first. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Normal is what cuts off your sixth finger and your tail... --Siobhan -- http://mail.python.org/mailman

Re: is implemented with id ?

2012-11-03 Thread Aahz
collected. That's old news, fixed in 2.5 or 2.6 IIRC -- interned strings now get collected by refcounting like everything else. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Normal is what cuts off your sixth finger and your tail... --Siobhan -- http

Re: is implemented with id ?

2012-11-03 Thread Aahz
In article 50959154$0$6880$e4fe5...@news2.news.xs4all.nl, Hans Mulder han...@xs4all.nl wrote: On 3/11/12 20:41:28, Aahz wrote: In article 50475822$0$6867$e4fe5...@news2.news.xs4all.nl, Hans Mulder han...@xs4all.nl wrote: On 5/09/12 15:19:47, Franck Ditter wrote: - I should have said that I

Re: Haskell - Python

2012-11-03 Thread Aahz
. If you want more Pythonic, follow PEP8 in your formatting. ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Normal is what cuts off your sixth finger and your tail... --Siobhan -- http://mail.python.org/mailman/listinfo/python-list

Re: Proper place for everything

2012-11-03 Thread Aahz
to convince the Python community to change feature X, we are constrained by backwards-compatibility issues, policies, and design decisions. Frequently there are (mis-)features that we simply have to live with, for good or ill. You forgot the fourth point. -- Aahz (a...@pythoncraft.com

FINAL REMINDER: OSCON Call for Proposals (deadline 1/12)

2012-01-09 Thread Aahz
Hope to see you there! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Do not taunt happy fun for loops. Do not change lists you are looping over. --Remco Gerlich -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software

REMINDER: OSCON Call for Proposals (deadline 1/12)

2012-01-02 Thread Aahz
/oscon2012 http://www.oscon.com/oscon2012/public/cfp/197 Hope to see you there! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Do not taunt happy fun for loops. Do not change lists you are looping over. --Remco Gerlich -- http://mail.python.org/mailman/listinfo/python

OSCON Call for Proposals (deadline 1/12)

2011-12-17 Thread Aahz
Hope to see you there! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Do not taunt happy fun for loops. Do not change lists you are looping over. --Remco Gerlich -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software

Re: Feature suggestion -- return if true

2011-04-18 Thread Aahz
this more readable: if x not in cache: Without testing, I'm not sure, but I believe it's more efficient, too (creates fewer bytecodes). -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ At Resolver we've found it useful to short-circuit any doubt and just

Re: Questions about GIL and web services from a n00b

2011-04-16 Thread Aahz
. For example, one would think that pickle.loads() releases the GIL, but it doesn't; you need to use pickle.load() (and cStringIO if you want to do it in memory). -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ At Resolver we've found it useful to short-circuit any

Re: Forcing absolute package imports in 2.7?

2011-04-13 Thread Aahz
of breaking too many programs? from __future__ import absolute_import -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ At Resolver we've found it useful to short-circuit any doubt and just refer to comments in code as 'lies'. :-) --Michael Foord paraphrases

Re: threading.Semaphore (quite long)

2011-04-12 Thread Aahz
in a separate thread being informed about a keyboard exception by the main thread? Outside of signals, there should not be a problem with that. I don't have time to look further, I just noticed that nobody responded. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com

Re: Dump interpreter history?

2011-04-12 Thread Aahz
In article mailman.222.1302543313.9059.python-l...@python.org, Terry Reedy tjre...@udel.edu wrote: On 4/11/2011 11:54 AM, Aahz wrote: In articlemailman.1266.1301087057.1189.python-l...@python.org, Ken D'Ambrosiok...@jots.org wrote: Hey, all. A co-worker asked me a question, and I've got

Re: Dump interpreter history?

2011-04-11 Thread Aahz
already tried to get what you want, and now you just need to gussy it up in an editor. I've never used it myself, but IIRC ipython does what you want very nicely. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ At Resolver we've found it useful to short-circuit any

Re: python on iPad (PyPad)

2011-04-09 Thread Aahz
environment. It's available in iTunes at http://itunes.apple.com/us/app/pypad/id428928902?mt=8# There's nothing wrong with advertising this, I suggest that you also announce it on c.l.py.announce -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ At Resolver we've found

Re: Guido rethinking removal of cmp from sort method

2011-04-08 Thread Aahz
? Actually, my take is that removing __cmp__ was a mistake. (I already argued about it back in python-dev before it happened, and I see little point rehashing it. My reason is strictly efficiency grounds: when comparisons are expensive -- such as Decimal object -- __cmp__ is faster.) -- Aahz

Re: Guido rethinking removal of cmp from sort method

2011-04-08 Thread Aahz
In article 4d9f32a2$1...@dnews.tpgi.com.au, Lie Ryan lie.1...@gmail.com wrote: On 04/09/11 01:08, Aahz wrote: Actually, my take is that removing __cmp__ was a mistake. (I already argued about it back in python-dev before it happened, and I see little point rehashing it. My reason

Re: reimport module every n seconds

2011-03-17 Thread Aahz
enough faster to warrnat this kludge). I'm with Aahz. =A0Don't do that. I don't know what you're doing, but I suspect an even better solution would be to have your program run a reconfigure thread which listens on a UDP socket and reads a JSON object from it. =A0Or, at the very least= , which

Re: PostgreSQL vs MySQL

2011-03-17 Thread Aahz
In article 87bp1a3g59@benfinney.id.au, Ben Finney ben+pyt...@benfinney.id.au wrote: a...@pythoncraft.com (Aahz) writes: (I always recommend people to use PostgreSQL, though; which is superior in almost every way, especially the C client library and the wire protocol.) Can you point

PostgreSQL vs MySQL (was Re: How to handle sockets - easily?)

2011-03-16 Thread Aahz
PostgreSQL, though; which is superior in almost every way, especially the C client library and the wire protocol.) Can you point at a reference for the latter? I have been trying to convince my company that PG is better than MySQL. -- Aahz (a...@pythoncraft.com) * http

Re: Plumber, an alternative to mixin-based subclassing

2011-02-28 Thread Aahz
[posted e-mailed] In article mailman.1666.1296864671.6505.python-l...@python.org, Florian Friesdorf f...@chaoflow.net wrote: An alternative to mixin-based subclassing: http://pypi.python.org/pypi/plumber You'll probably get more interest if you provide a summary. -- Aahz

Re: Idea for removing the GIL...

2011-02-28 Thread Aahz
be acceptable, then, is if they got rid of the reference counting altogether, and that was considered too drastic a change. ...especially given CPython's goal of easy integration with C libraries. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Programming language design

Re: reimport module every n seconds

2011-02-17 Thread Aahz
import data As the data often changes, I would like to reimport it every n (e.g. 10) seconds. Don't do that. ;-) I suggest using exec instead. However, I would be surprised if import worked faster than, say, JSON (more precisely, I doubt that it's enough faster to warrnat this kludge). -- Aahz

Re: Which is the best book to learn python

2011-02-14 Thread Aahz
In article mailman.1150.1295890778.6505.python-l...@python.org, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Python is easy to learn, I'm not sure it's possible to write a bad book about it. Yes, it is. I can name two: Deitel: Python How to Program Perl to Python Migration -- Aahz

Re: Which non SQL Database ?

2011-02-11 Thread Aahz
requirements are fairly modest. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Programming language design is not a rational science. Most reasoning about it is at best rationalization of gut feelings, and at worst plain wrong. --GvR, python-ideas, 2009-03-01 -- http

Re: Multiple independently started python processes and sharing of a module

2011-02-06 Thread Aahz
. I.e. you keep around multiple open connections and assign them per request. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Programming language design is not a rational science. Most reasoning about it is at best rationalization of gut feelings, and at worst

LAST CHANCE: OSCON Call for Proposals (deadline 2/7)

2011-02-05 Thread Aahz
Hope to see you there! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ All problems in computer science can be solved by another level of indirection. --Butler Lampson -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python

REMINDER: OSCON Call for Proposals (deadline 2/7)

2011-02-02 Thread Aahz
Hope to see you there! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ All problems in computer science can be solved by another level of indirection. --Butler Lampson -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python

Re: how to read the last line of a huge file???

2011-01-29 Thread Aahz
It's a Bad Idea to mix direct file operations with the iterator API. Use f.read() instead of f.next(). -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ All problems in computer science can be solved by another level of indirection. --Butler Lampson -- http

Re: apscheduler error

2011-01-29 Thread Aahz
option set.) Why not write an exit handler that converts your thread to daemon? (Or something like that.) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ All problems in computer science can be solved by another level of indirection. --Butler Lampson -- http

Re: Creating custom Python objects from C code

2011-01-27 Thread Aahz
defined objects from C. I have this need to create custom objects from C and pass them as arguments to a function call. You should definitely investigate Cython, but if you really want to roll your own, look in the examples inside the Python source itself. -- Aahz (a...@pythoncraft.com

OSCON Call for Proposals (deadline 2/7)

2011-01-25 Thread Aahz
there! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ All problems in computer science can be solved by another level of indirection. --Butler Lampson -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation

Re: issubclass(dict, Mapping)

2011-01-18 Thread Aahz
of themselves. --zconcept -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ The volume of a pizza of thickness 'a' and radius 'z' is given by pi*z*z*a -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to parse a HUGE(1gb) xml file

2011-01-13 Thread Aahz
the Python implementation. Thanks! I updated our codebase this afternoon... -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ The volume of a pizza of thickness 'a' and radius 'z' is given by pi*z*z*a -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing string for verb noun

2011-01-12 Thread Aahz
verbs you! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of it as evolution in action. --Tony Rand -- http://mail.python.org/mailman/listinfo/python-list

Re: Integrating doctest with unittest

2011-01-09 Thread Aahz
doing.) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of it as evolution in action. --Tony Rand -- http://mail.python.org/mailman/listinfo/python-list

Re: surprised by import in python 2.6

2011-01-08 Thread Aahz
test import * and import test Just adding to this thread for Gooja: Don't use import * -- it makes debugging difficult because you can't tell where a name comes from. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of it as evolution in action. --Tony Rand

Re: Trying to decide between PHP and Python

2011-01-04 Thread Aahz
://norvig.com/python-lisp.html See also: http://norvig.com/python-iaq.html -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of it as evolution in action. --Tony Rand -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to decide between PHP and Python

2011-01-04 Thread Aahz
the parentheses. I haven't heard that version before. The one I heard was: Lots of Irritating Single Parentheses. Long Involved Stupid Parentheses. http://www.netfunny.com/rhf/jokes/90q2/lispcode.html -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think

Re: How to initialize each multithreading Pool worker with an individual value?

2010-12-30 Thread Aahz
port number when its __call__() method gets invoked. (There may be other ways to accomplish the same effect, but that's what springs to mind.) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of it as evolution in action. --Tony Rand -- http://mail.python.org

Re: Catching user switching and getting current active user from root on linux

2010-12-30 Thread Aahz
In article ff3a2b89-2586-43d2-ae5a-490384687...@32g2000yqz.googlegroups.com, mpnordland mpnordl...@gmail.com wrote: First, to pacify those who hate google groups: What is a good usenet client? trn3.6 ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think

Re: Comparison with False - something I don't understand

2010-12-03 Thread Aahz
In article mailman.187.1291397553.2649.python-l...@python.org, Harishankar v.harishan...@gmail.com wrote: On Thu, 02 Dec 2010 17:33:47 -0800, Aahz wrote: Please demonstrate that using ``if`` blocks for True/False is impler and cleaner than using ``try`` blocks to handle exceptions. It is my

Re: Get frame object of last called function

2010-12-02 Thread Aahz
In article fe48f5b8-36b4-433d-84f7-e7d749485...@j2g2000yqf.googlegroups.com, moerchendiser2k3 googler.1.webmas...@spamgourmet.com wrote: Hi, is there any chance to get the frame object of the previous called function? sys._current_frames(), sys._getframe() -- Aahz (a...@pythoncraft.com

Re: Comparison with False - something I don't understand

2010-12-02 Thread Aahz
for True/False is impler and cleaner than using ``try`` blocks to handle exceptions. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of it as evolution in action. --Tony Rand -- http://mail.python.org/mailman/listinfo/python-list

Re: playful coding problems for 10 year olds

2010-11-26 Thread Aahz
coding problems for her, stuff that she could code herself maybe after some initial help. What other interests does she have? Might Python play a role? http://micheinnz.livejournal.com/1080735.html (Agent Weasel ended up making a presentation at the NZ PyCon.) -- Aahz (a...@pythoncraft.com

Re: a regexp riddle: re.search(r'(?:(\w+), |and (\w+))+', 'whatever a, bbb, and c') =? ('a', 'bbb', 'c')

2010-11-26 Thread Aahz
apparently the author of Morelia, but I don't really understand it.) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of it as evolution in action. --Tony Rand -- http://mail.python.org/mailman/listinfo/python-list

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-25 Thread Aahz
this rather heavily, but I can't provide you with code. I suspect we weren't the only people, but I have no clue how to locate samples. Were you searching code.google.com or something else? -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Look, it's your affair if you want

Re: is list comprehension necessary?

2010-11-21 Thread Aahz
averted. The weird functional if syntax additions were a cave-in to the functional crowd, and may have been a mistake. Did you actually read the PEP explanation for *why* Guido decided to add conditional expressions? -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com

Where's the bug? (cPickle/thread edition) (was Re: How to optimize and monitor garbage collection?)

2010-11-20 Thread Aahz
that releases the GIL. Much easier than finding the problem in the first place...) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Look, it's your affair if you want to play with five people, but don't go calling it doubles. --John Cleese anticipates Usenet -- http

Re: Python has a really hidden encapsulation?

2010-11-18 Thread Aahz
... a = A() a.__dict__['x'] = 24 a.x 42 a.__dict__['x'] 24 This is documented, but I actually don't know the reason for it. Because otherwise you would be able to overwrite the property with a value. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Look, it's your affair if you

Re: Komodo 6, why Workspace Restore after every restart?

2010-11-16 Thread Aahz
: g20g2000prg.googlegroups.com; posting-host=115.64.196.128; posting-account=rYyWJQoAAACVJO77HvcyJfa3TnGYCqK_ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.12 (KHTML, like Gecko) Chrome/9.0.576.0 Safari/534.12,gzip(gfe) -- Aahz (a...@pythoncraft.com

Re: OO and game design questions

2010-11-15 Thread Aahz
() and getItem() methods for each list. It may be possible to use a single list for all types of object, in which case the object itself would be very small indeed. Maybe you want a rule-based approach: http://eblong.com/zarf/essays/rule-based-if/ -- Aahz (a...@pythoncraft.com

Re: how to identify currently running threads QTHreads

2010-11-14 Thread Aahz
() -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Look, it's your affair if you want to play with five people, but don't go calling it doubles. --John Cleese anticipates Usenet -- http://mail.python.org/mailman/listinfo/python-list

Re: how to handle network failures

2010-11-06 Thread Aahz
urllib2 so that you can set a timeout (Python 2.6+). -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ If you think it's expensive to hire a professional to do the job, wait until you hire an amateur. --Red Adair -- http://mail.python.org/mailman/listinfo/python-list

Re: What people are using to access this mailing list

2010-11-03 Thread Aahz
this isn't too O/T - I was just wondering how people read/send to this mailing list, eg. normal email client, gmane, some other software or online service? Usenet via my ISP, on comp.lang.python. Using what client (or web client)? Emacs, of course :-; Slrn, of course. trn3.6, of course. -- Aahz

Re: embedding python in macOS 10.6

2010-10-28 Thread Aahz
. If you still haven't figured it out, try pythonmac-sig. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ If you think it's expensive to hire a professional to do the job, wait until you hire an amateur. --Red Adair -- http://mail.python.org/mailman/listinfo/python

Re: Certificate validation with HTTPSConnection

2010-10-27 Thread Aahz
scare quotes around a person's name is insulting and not appropriate. That goes triple if you misspell their name. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ If you think it's expensive to hire a professional to do the job, wait until you hire an amateur

Re: minimal D: need software testers

2010-10-26 Thread Aahz
and give ideas. You should probably explain what minimal-D is, I'm certainly not going to look at something when I have no clue. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ If you think it's expensive to hire a professional to do the job, wait until you hire an amateur

Re: Introducing Kids to Programming: 2 or 3?

2010-10-26 Thread Aahz
or 3? As we will be translating the notes we'll probably stick with out choice for the next few years. One reason not otherwise mentioned is that overall Unicode support is better in Python 3, and given your international audience, that's a strong point in favor of Python 3. -- Aahz

Re: Classes in a class: how to access variables from one in another

2010-10-18 Thread Aahz
. Surely it's an argument against writing Foo in Python? Maybe, but there's no reason for posting that ten times! ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ If you think it's expensive to hire a professional to do the job, wait until you hire an amateur. --Red

Re: Design: Module interface vs. library interface

2010-10-10 Thread Aahz
, it should have been named `_FTPFile`. When your class isn't public, it doesn't matter much exactly how you expose it internally. (I essentially never use __all__ myself, but I don't write libraries for public consumption.) -- Aahz (a...@pythoncraft.com) * http

[issue10044] small int optimization

2010-10-07 Thread Aahz
Changes by Aahz a...@pythoncraft.com: -- nosy: -Aahz, aahz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10044 ___ ___ Python-bugs-list mailing

[issue9800] Fast path for small int-indexing of lists and tuples

2010-10-05 Thread Aahz
Aahz a...@pythoncraft.com added the comment: Wasn't me! And I've spent too little time on python-dev lately to remember stuff like this. :-( -- nosy: +Aahz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9800

Re: Help needed with Windows Service in Python

2010-09-23 Thread Aahz
In article mailman.376.1283440944.29448.python-l...@python.org, Ian Hobson i...@ianhobson.co.uk wrote: I am attempting to create a Windows Service in Python. BTW, you probably want to subscribe to http://mail.python.org/mailman/listinfo/python-win32 -- Aahz (a...@pythoncraft.com

Re: C++ - Python API

2010-09-19 Thread Aahz
? A while ago, Aahz posted something very similar on this very list. You should be able to find it in any of the archives without too much trouble. You almost certainly have me confused with someone else -- I wouldn't touch C++ with a ten-meter pole if I could possibly help it. (The last time I

Re: This Is International Don’t-Squawk-Like-A -Parrot Day

2010-09-19 Thread Aahz
! -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ The volume of a pizza of thickness 'a' and radius 'z' is given by pi*z*z*a -- http://mail.python.org/mailman/listinfo/python-list

Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Aahz
and provides zero help to anyone who might later want to look it up (and also no accessibility if tinyurl ever goes down). At the very least, include the original URL for reference. (Yes, I realize this is probably a joke given the smiley I excised, but too many people do just post tinyurl.) -- Aahz

Re: C++ - Python API

2010-09-19 Thread Aahz
In article mailman.882.1284906611.29448.python-l...@python.org, Thomas Jollans tho...@jollybox.de wrote: On Sunday 19 September 2010, it occurred to Aahz to exclaim: In article mailman.334.1283373081.29448.python-l...@python.org, Thomas Jollans tho...@jollybox.de wrote: On Wednesday 01

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-19 Thread Aahz
a broken URL, but I email plenty of people who can't and tinyurl friends are really helpful in that context. There's no reason you can't cater to that problem by using tinyurl *in* *addition* to the full regular URL. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com

Re: compile Py2.6 on SL

2010-09-17 Thread Aahz
. I suppose this is another argument against TLAs. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ The volume of a pizza of thickness 'a' and radius 'z' is given by pi*z*z*a -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for Python and Python/Django workplaces in Chicago

2010-09-13 Thread Aahz
Python in Chicago I could keep an eye on. Nobody else has responded, so I'll just refer you to the usual job boards, including http://www.python.org/community/jobs/ -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ [on old computer technologies and programmers] Fancy

Re: WMI in Python

2010-09-13 Thread Aahz
subscribe to the win32 mailing list: http://mail.python.org/mailman/listinfo/python-win32 Before you ask questions there, do a bit of searching first -- there are lots of examples. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ [on old computer technologies

Re: How Python works: What do you know about support for negative indices?

2010-09-12 Thread Aahz
that it's not a big deal. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ [on old computer technologies and programmers] Fancy tail fins on a brand new '59 Cadillac didn't mean throwing out a whole generation of mechanics who started with model As. --Andrew Dalke

Re: Anyone using python on Mint Linux ?

2010-09-12 Thread Aahz
In article ok2r86lfacmm53ah75843khja94kjpd...@4ax.com, Dave WB3DWE wrote: Just read that Mint is a fine version of Debian Linux. Any comments about python on this ? Why would there be? Either it works or it's broken, and given that it's Debian, I'd certainly bet that Python works. -- Aahz

Re: How Python works: What do you know about support for negative indices?

2010-09-11 Thread Aahz
comb-style formatting in Lynx at that URL. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ [on old computer technologies and programmers] Fancy tail fins on a brand new '59 Cadillac didn't mean throwing out a whole generation of mechanics who started with model

Re: palindrome iteration

2010-09-11 Thread Aahz
= re.compile(r'[a-z]') def is_palindrome(s): letters = pat.findall(s.lower()) return letters == reversed(letters) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ [on old computer technologies and programmers] Fancy tail fins on a brand new '59 Cadillac didn't mean

Re: How Python works: What do you know about support for negative indices?

2010-09-10 Thread Aahz
. I encourage anyone who has problems with reading various emails, newsgroup postings, forums and what not, to start using modern tools that work with the vast majority of other tools. Why? Raymond's post worked fine for me with trn3.6 -- Aahz (a...@pythoncraft.com) * http

Re: problem with simple multiprocessing script on OS X

2010-09-08 Thread Aahz
for reporting the solution. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ ...if I were on life-support, I'd rather have it run by a Gameboy than a Windows box. --Cliff Wells -- http://mail.python.org/mailman/listinfo/python-list

Re: Confused about nested scopes and when names get added to namespaces

2010-09-08 Thread Aahz
. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ [on old computer technologies and programmers] Fancy tail fins on a brand new '59 Cadillac didn't mean throwing out a whole generation of mechanics who started with model As. --Andrew Dalke -- http://mail.python.org

Re: cPickle segfault with nested dicts in threaded env

2010-09-08 Thread Aahz
, and I would be mildly surprised if they upgraded by now). -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ [on old computer technologies and programmers] Fancy tail fins on a brand new '59 Cadillac didn't mean throwing out a whole generation of mechanics who started

Re: Speed-up for loops

2010-09-07 Thread Aahz
a lot about the difficulties of implementing Python efficiently. (And the xrange=range trick works well thanks.) Actually, range() is a function. But the same point applies, squared -- you really can never know what kind of object is hiding behind a name in the general case. -- Aahz

Re: Speed-up for loops

2010-09-07 Thread Aahz
-- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ ...if I were on life-support, I'd rather have it run by a Gameboy than a Windows box. --Cliff Wells -- http://mail.python.org/mailman/listinfo/python-list

Re: Iterative vs. Recursive coding

2010-09-06 Thread Aahz
functions, FSM, linked lists, and so on. (I mostly think I do really understand polymorphism and hashtables.) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ ...if I were on life-support, I'd rather have it run by a Gameboy than a Windows box. --Cliff Wells -- http

Re: Iterative vs. Recursive coding

2010-09-06 Thread Aahz
the simplest way of walking a tree structure (such as a directory tree). Python would be an extraordinarily limited language if recursion were not available. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ ...if I were on life-support, I'd rather have it run

Re: Queue cleanup

2010-09-04 Thread Aahz
. Many people still use 32-bit Python -- an int is twelve bytes there. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ ...if I were on life-support, I'd rather have it run by a Gameboy than a Windows box. --Cliff Wells -- http://mail.python.org/mailman/listinfo/python

Re: String substitution VS proper mysql escaping

2010-09-04 Thread Aahz
defines tuples, with parentheses simply used for visual effect: 1, 2, 3 (1, 2, 3) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ ...if I were on life-support, I'd rather have it run by a Gameboy than a Windows box. --Cliff Wells -- http://mail.python.org/mailman

  1   2   3   4   5   6   7   8   9   10   >