Re: match braces?

2009-09-03 Thread Joshua Judson Rosen
Grant Edwards inva...@invalid writes: On 2009-09-03, Ben Finney ben+pyt...@benfinney.id.au wrote: Tim Chase python.l...@tim.thechases.com 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

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

2009-08-30 Thread Joshua Judson Rosen
Steven D'Aprano st...@remove-this-cybersource.com.au 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,

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Joshua Judson Rosen
Robert Kern robert.k...@gmail.com 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

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Joshua Judson Rosen
Carl Banks pavlovevide...@gmail.com writes: On Aug 28, 2:42 pm, Terry Reedy tjre...@udel.edu 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.

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

2009-05-19 Thread Joshua Judson Rosen
Ulrich Eckhardt eckha...@satorlaser.com 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

Re: Hash of None varies per-machine

2009-04-03 Thread Joshua Judson Rosen
Paul Rubin http://phr...@nospam.invalid 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 of long

Re: Python AppStore / Marketplace

2009-03-26 Thread Joshua Judson Rosen
Marcel Luethi marcel.lue...@gmail.com 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

Re: datetime.time and midnight

2009-02-22 Thread Joshua Judson Rosen
D'Arcy J.M. Cain da...@druid.net writes: On Sun, 22 Feb 2009 05:20:31 -0200 Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 21 Feb 2009 21:55:23 -0200, MRAB goo...@mrabarnett.plus.com escribió: I think it's because midnight is to the time of day what zero is to integers, or

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

2009-02-22 Thread Joshua Judson Rosen
Denis Kasak denis.ka...@gmail.com 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

Re: datetime.time and midnight

2009-02-22 Thread Joshua Judson Rosen
Ethan Furman et...@stoneleaf.us 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

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

2009-02-21 Thread Joshua Judson Rosen
Paul Rubin http://phr...@nospam.invalid 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

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

2009-02-21 Thread Joshua Judson Rosen
Graham Dumpleton graham.dumple...@gmail.com writes: On Feb 21, 4:20 pm, Joshua Judson Rosen roz...@geekspace.com wrote: Jesse Noller jnol...@gmail.com writes: On Tue, Feb 17, 2009 at 10:34 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: Why is the multiprocessing module, ie

Re: To unicode or not to unicode

2009-02-21 Thread Joshua Judson Rosen
Ross Ridge rri...@csclub.uwaterloo.ca 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

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

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