Re: match braces?

2009-09-03 Thread Joshua Judson Rosen
Grant Edwards writes: > > On 2009-09-03, Ben Finney wrote: > > Tim Chase writes: > > > > > > Any editor worth its salt will offer indentation-based folding (I know > > > vim does, and I would be astonished if emacs didn't. > > > > Emacs calls that ???hide/show???, and the ???hs-minor-mode??? can

Non-deterministic computing (was: What python can NOT do?)

2009-08-30 Thread Joshua Judson Rosen
Steven D'Aprano writes: > > On Sat, 29 Aug 2009 05:37:34 +0200, Tomasz Rola wrote: > > > My private list of things that when implemented in Python would be > > ugly to the point of calling it difficult: > > > > 1. AMB operator - my very favourite. In one sentence, either language > > allows one

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Joshua Judson Rosen
Carl Banks writes: > > On Aug 28, 2:42 pm, Terry Reedy wrote: > > > Carl Banks wrote: > > > I don't think it needs a syntax for that, but I'm not so sure a method > > > to modify a value in place with a single key lookup wouldn't > > > occasioanally be useful. > > > > Augmented assignment does th

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Joshua Judson Rosen
Robert Kern writes: > > On 2009-08-28 16:42 PM, Terry Reedy wrote: > > Carl Banks wrote: > > > > > I don't think it needs a syntax for that, but I'm not so sure a > > > method to modify a value in place with a single key lookup > > > wouldn't occasioanally be useful. > > > > Augmented assignment d

Re: Seeking old post on developers who like IDEs vs developers who like simple languages

2009-05-19 Thread Joshua Judson Rosen
Ulrich Eckhardt writes: > > That said, an IDE that provides auto-completion (e.g. that gives you a list > of available class members) is a good thing in Java, because you don't have > to browse the documentation as often. While I find at least some types of autocompletion to be laudable features

Re: Hash of None varies per-machine

2009-04-03 Thread Joshua Judson Rosen
Paul Rubin writes: > > ben.tay...@email.com writes: > > 1. Is it correct that if you hash two things that are not equal they > > might give you the same hash value? > > Yes, hashes are 32 bit numbers and there are far more than 2**32 > possible Python values (think o

Re: Python AppStore / Marketplace

2009-03-26 Thread Joshua Judson Rosen
Marcel Luethi writes: > > Now I'm standing here, having this great idea for a brand new rocking > app... > But where do I start? I want it to be multi-platform (Linux, Mac OS X, > Windows). It should be easy to install and upgrade. It should be self- > contained, independent of an already installe

Re: datetime.time and midnight

2009-02-22 Thread Joshua Judson Rosen
Ethan Furman writes: > > [...]partly because midnight is in fact a time of day, and not a lack of > a time of day, I do indeed expect it to be True. While it's not a lack of `time of day', it /is/ a lack of /elapsed/ time in the day ;) Just as if you were using a plain integer or float to count

choosing a default text-encoding in Python programs (was: To unicode or not to unicode)

2009-02-22 Thread Joshua Judson Rosen
Denis Kasak writes: > > > > Python "assumes" ASCII and if the decodes/encoded text doesn't > > > fit that encoding it refuses to guess. > > > > Which is reasonable given that Python is programming language where it's > > better to have more conservative assumption about encodings so errors > > can

Re: datetime.time and midnight

2009-02-22 Thread Joshua Judson Rosen
"D'Arcy J.M. Cain" writes: > > On Sun, 22 Feb 2009 05:20:31 -0200 > "Gabriel Genellina" wrote: > > En Sat, 21 Feb 2009 21:55:23 -0200, MRAB > > escribió: > > > I think it's because midnight is to the time of day what zero is to > > > integers, or an empty string is to strings, or an empty cont

Re: To unicode or not to unicode

2009-02-21 Thread Joshua Judson Rosen
Ross Ridge writes: > > > It's all about declaring your charset. In Python as well as in your > > newsreader. If you don't declare your charset it's ASCII for you - in > > Python as well as in your newsreader. > > Except in practice unlike Python, many newsreaders don't assume ASCII. > The origi

Re: multiprocessing module and os.close(sys.stdin.fileno())

2009-02-21 Thread Joshua Judson Rosen
Graham Dumpleton writes: > > On Feb 21, 4:20 pm, Joshua Judson Rosen wrote: > > Jesse Noller writes: > > > > > On Tue, Feb 17, 2009 at 10:34 PM, Graham Dumpleton > > > wrote: > > > > Why is the multiprocessing module, ie., multiproc

Re: `high overhead of multiple Python processes' (was: Will multithreading make python less popular?)

2009-02-21 Thread Joshua Judson Rosen
Paul Rubin writes: > > Right, that's basically the issue here: the cost of using multiple > Python processes is unnecessarily high. If that cost were lower then > we could more easily use multiple cores to make oru apps faster. What cost is that? At least on unix sy

Re: multiprocessing module and os.close(sys.stdin.fileno())

2009-02-20 Thread Joshua Judson Rosen
Jesse Noller writes: > > On Tue, Feb 17, 2009 at 10:34 PM, Graham Dumpleton > wrote: > > Why is the multiprocessing module, ie., multiprocessing/process.py, in > > _bootstrap() doing: > > > > os.close(sys.stdin.fileno()) > > > > rather than: > > > > sys.stdin.close() > > > > Technically it is f