Re: Does Python really follow its philosophy of Readability counts?

2009-01-18 Thread bearophileHUGS
Michele Simionato: I don't like that. Scala was designed with the idea of putting together the two worlds, by I think the result was to get the complications of both worlds. But some other people may like it, and it's a design experiment worth doing. Every programming paradigm has advantages,

Re: what's the point of rpython?

2009-01-18 Thread Brendan Miller
On Sat, Jan 17, 2009 at 7:57 PM, Paul Rubin http://phr.cx@nospam.invalid wrote: alex23 wuwe...@gmail.com writes: Here's an article by Guido talking about the last attempt to remove the GIL and the performance issues that arose: I'd welcome a set of patches into Py3k *only if* the performance

Re: reading file to list

2009-01-18 Thread William James
André Thieme wrote: Xah Lee schrieb: comp.lang.lisp,comp.lang.scheme,comp.lang.functional,comp.lang.pytho n,comp.lang.ruby Here's a interesting toy problem posted by Drew Krause to comp.lang.lisp: On Jan 16, 2:29 pm, Drew Krause wrote [paraphrased a

Re: *Advanced* Python book?

2009-01-18 Thread Simon Brunning
2009/1/17 Michele Simionato michele.simion...@gmail.com: Expert Python Programming by Tarek Ziadé is quite good and I wrote a review for it: http://www.artima.com/weblogs/viewpost.jsp?thread=240415 +1 for this. I'm 3/4 of the way through it, it's pretty good. Covers many on the important

Re: Can Python manipulate PE structure or bytes?

2009-01-18 Thread Gabriel Genellina
En Sun, 18 Jan 2009 20:18:13 -0200, seaworthyjer...@gmail.com escribió: I'm interested in Python and wanted to know if Python can manipulate PE structure and bytes. Also what are its limits? If you're talking about the Portable Executable file format, yes. Take a look at the struct module,

Re: Can Python manipulate PE structure or bytes?

2009-01-18 Thread Gabriel Genellina
En Sun, 18 Jan 2009 20:18:13 -0200, seaworthyjer...@gmail.com escribió: I'm interested in Python and wanted to know if Python can manipulate PE structure and bytes. Also what are its limits? If you're talking about the Portable Executable file format, yes. Take a look at the struct module,

Re: what's the point of rpython?

2009-01-18 Thread Paul Rubin
Brendan Miller catph...@catphive.net writes: That's interesting, I hadn't heard the reference counting mechanism was related to the GIL. Is it just that you need to lock the reference count before mutating it if there's no GIL? Yes. Someone tried inserting such a lock but it slowed down the

Re: calling an external program and capturing the output

2009-01-18 Thread Marek Kubica
On Sun, 18 Jan 2009 09:36:59 -0800 (PST) Xah Lee xah...@gmail.com wrote: See: • Making System Calls in Perl and Python http://xahlee.org/perl-python/system_calls.html You can safely drop the Raw-Strings as they are only needed on Windows when constuction paths and programs with hardcoded

Re: braces fixed '#{' and '#}'

2009-01-18 Thread Brendan Miller
Yes, I also recently noticed the bug in python's parser that doesn't let it handle squigly braces and the bug in the lexer that makes white space significant. I'm surprised the dev's haven't noticed this yet. On Sat, Jan 17, 2009 at 2:09 AM, v4vijayakumar vijayakumar.subbu...@gmail.com wrote: I

Overriding base class methods in the C API

2009-01-18 Thread Floris Bruynooghe
Hello I've been trying to figure out how to override methods of a class in the C API. For Python code you can just redefine the method in your subclass, but setting tp_methods on the type object does not seem to have any influcence. Anyone know of a trick I am missing? Cheers Floris --

Re: dynamic module import?

2009-01-18 Thread alex23
On Jan 19, 2:24 am, Duncan Booth duncan.bo...@invalid.invalid wrote: [a nice concise explanation on __import__ fromlist] Cheers, Duncan, that explained it perfectly. -- http://mail.python.org/mailman/listinfo/python-list

uninstall before upgrade?

2009-01-18 Thread waltbrad
I want to upgrade from 2.5 to 2.6. Do I need to uninstall 2.5 before I do that? If so, what's the best way to uninstall it? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: uninstall before upgrade?

2009-01-18 Thread The Music Guy
On Sun, 2009-01-18 at 10:06 -0800, waltbrad wrote: I want to upgrade from 2.5 to 2.6. Do I need to uninstall 2.5 before I do that? If so, what's the best way to uninstall it? Thanks. -- http://mail.python.org/mailman/listinfo/python-list I've heard of people having problems trying to

Re: changing URLs in webpages, python solutions?

2009-01-18 Thread Simon Forman
On Jan 18, 8:40 am, Stefan Behnel stefan...@behnel.de wrote: Simon Forman wrote: I want to take a webpage, find all URLs (links, img src, etc.) and rewrite them in-place, and I'd like to do it in python (pure python preferred.) lxml.html has functions specifically for this problem.

Re: what's the point of rpython?

2009-01-18 Thread skip
Paul That's interesting, got a reference? (no pun intended) http://letmegooglethatforyou.com/?q=lock+free+reference+counting wink -- Skip Montanaro - s...@pobox.com - http://smontanaro.dyndns.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: tp_base, ob_type, and tp_bases

2009-01-18 Thread Jeff McNeil
On Jan 18, 5:40 am, Carl Banks pavlovevide...@gmail.com wrote: On Jan 17, 8:12 am, Jeff McNeil j...@jmcneil.net wrote: On Jan 17, 11:09 am, Jeff McNeil j...@jmcneil.net wrote: On Jan 17, 10:50 am, Martin v. Löwis mar...@v.loewis.de wrote: So, the documentation states that ob_type

How to use *.py modules instead of *.pyc?

2009-01-18 Thread dsblizzard
How to use *.py modules instead of *.pyc or automatically recompile all modules each time I change *.py files? Thank you in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use *.py modules instead of *.pyc?

2009-01-18 Thread Chris Rebert
On Sun, Jan 18, 2009 at 5:13 PM, dsblizz...@gmail.com wrote: How to use *.py modules instead of *.pyc or automatically recompile all modules each time I change *.py files? IIRC, you shouldn't need to worry about this. Python checks the modification times on the .py and .pyc files and if the

Re: How to use *.py modules instead of *.pyc?

2009-01-18 Thread John Machin
On Jan 19, 12:13 pm, dsblizz...@gmail.com wrote: How to use *.py modules instead of *.pyc or automatically recompile all modules each time I change *.py files? You don't need to do anything special. If, when you import foo, foo.pyc is outdated by changes to the foo.py that is in the same

Re: How to use *.py modules instead of *.pyc?

2009-01-18 Thread Chris Rebert
On Sun, Jan 18, 2009 at 5:13 PM, dsblizz...@gmail.com wrote: How to use *.py modules instead of *.pyc or automatically recompile all modules each time I change *.py files? Thank you in advance. Also, just for the sake of completeness (since John and I have shown that your real problem lies

Re: what's the point of rpython?

2009-01-18 Thread Paul Rubin
s...@pobox.com writes: http://letmegooglethatforyou.com/?q=lock+free+reference+counting I found a paper by Detlefs et al describing a method which is a) patented b) can potentially lock out some threads from ever running, and c) relies on a hardware instruction (double compare and swap)

Re: reading file to list

2009-01-18 Thread André Thieme
William James schrieb: André Thieme wrote: You make a very strong case that Lisp is very feeble at processing data. I'm almost convinced. I somehow don’t believe you :-) Ruby isn't feeble, so data like this is fine: shall we begin? or lotus135? 1984 times! The 3 stooges:

Re: function argument dependent on another function argument?

2009-01-18 Thread Aaron Brady
On Jan 18, 12:42 pm, andrew cooke and...@acooke.org wrote:     sentinel = object()     ...     def foo(x, y=sentinel):       if y is sentinel:           y = self.a it just struck me you could also do:      def foo(self, x, *y_args)        y = y_args[0] if y_args self.a which more

Re: function argument dependent on another function argument?

2009-01-18 Thread Aaron Brady
On Jan 18, 12:02 pm, Rob Williscroft r...@freenet.co.uk wrote: Aaron Brady wrote innews:582ef883-0176-4984-9521-6c1894636...@a26g2000prf.googlegroups.com in comp.lang.python: On Jan 18, 10:44 am, Rob Williscroft r...@freenet.co.uk wrote: Aaron Brady wrote

Event Handling and Signal-Slot Mechanism

2009-01-18 Thread Steven Woody
Hi, Python has Signal-Slot mechanism, why he still need another mechanism Event Handling? And, in some cases, it seems only Event Handling mechanism is available, for example closeEvent(). For what case and for what reason, the python think Signal Slot is not enough and will not work? Thanks.

Re: Event Handling and Signal-Slot Mechanism

2009-01-18 Thread James Mills
On Mon, Jan 19, 2009 at 1:10 PM, Steven Woody narkewo...@gmail.com wrote: Python has Signal-Slot mechanism, why he still need another mechanism Event Handling? And, in some cases, it seems only Event Handling mechanism is available, for example closeEvent(). For what case and for what

Re: function argument dependent on another function argument?

2009-01-18 Thread Steven D'Aprano
On Sun, 18 Jan 2009 22:28:04 +, Steven D'Aprano wrote: Built-ins rarely accept None as a sentinel, slice() being a conspicuous exception. This is sometimes a nuisance when writing wrappers: def my_find(S, sub, start=None, end=None): Like string.find() only with pre-processing.

Re: Relax Syntax for Augmented Arithmetic?

2009-01-18 Thread Steven D'Aprano
On Sun, 18 Jan 2009 15:11:46 -0500, Terry Reedy wrote: andrew cooke wrote: Context - http://docs.python.org/3.0/reference/datamodel.html?highlight=data model#object.__iadd__ Just a suggestion I thought I'd throw out... There's a restriction in the language implementation on exactly what

Re: Python 3: exec arg 1

2009-01-18 Thread Steven D'Aprano
On Sun, 18 Jan 2009 11:06:10 -0600, Rob Williscroft wrote: You must have missed the subject line: Re: Python 3: exec arg 1 Doh! -- Steven -- http://mail.python.org/mailman/listinfo/python-list

RE: problem in implementing multiprocessing

2009-01-18 Thread gopal mishra
i know this is not an io - bound problem, i am creating heavy objects in the process and add these objects in to queue and get that object in my main program using queue. you can test the this sample code import time from multiprocessing import Process, Queue class Data(object): def

Re: problem in implementing multiprocessing

2009-01-18 Thread James Mills
On Mon, Jan 19, 2009 at 3:50 PM, gopal mishra gop...@infotechsw.com wrote: i know this is not an io - bound problem, i am creating heavy objects in the process and add these objects in to queue and get that object in my main program using queue. you can test the this sample code import time

Re: Event Handling and Signal-Slot Mechanism

2009-01-18 Thread Steven Woody
On Mon, Jan 19, 2009 at 11:29 AM, James Mills prolo...@shortcircuit.net.au wrote: On Mon, Jan 19, 2009 at 1:10 PM, Steven Woody narkewo...@gmail.com wrote: Python has Signal-Slot mechanism, why he still need another mechanism Event Handling? And, in some cases, it seems only Event Handling

[issue4973] calendar formatyearpage returns bytes, not str

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: This is the expected behavior; that's why the function takes an encoding argument. As it returns a complete XML document, it must be already encoded. Other methods return just document pieces, so str is fine. Probably should be

[issue3881] IDLE won't start in custom directory.

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I installed Python to C:\Program Files\Python\2.6\ and when I try to run idle from the start menu, it doesn't work. C:\Program Files\Python\2.6\Lib\idlelibpython idle.py Traceback (most recent call last): File idle.py, line 21,

[issue4979] random.uniform can return its upper limit

2009-01-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The distinction between and = is fairly meaningless when applied to a computed floating-point result. I think the docs should be fixed to replace the with =. In any case, the b = N a bit has the inequalities the wrong way around:

[issue4984] Inconsistent count of sequence types in Library stdtypes document

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r68716. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4984 ___

[issue4983] Spurious reference to byte sequences in Library stdtypes sequence documentation

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r68717. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4983 ___

[issue4976] Documentation of the set intersection and difference operators is inaccurate

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r68718. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4976 ___

[issue4975] 3.0 base64 doc examples lack bytes 'b' indicator

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r68719. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4975 ___

[issue4974] Redundant mention of lists and tuples at start of Sequence Types documentation

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r68720. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4974 ___

[issue4914] trunc(x) erroneously documented as built-in

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r68721. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4914 ___

[issue4979] random.uniform can return its upper limit

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Doc update -- keywords: +patch nosy: +gagenellina Added file: http://bugs.python.org/file12784/random.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4979

[issue4293] Thread Safe Py_AddPendingCall

2009-01-18 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: checked in r68722, let's hope this fixes things. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4293 ___

[issue3873] Unpickling is really slow

2009-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Making this a duplicate of #4565 (Rewrite the IO stack in C). If anyone disagrees, please reopen! -- resolution: - duplicate status: open - closed superseder: - Rewrite the IO stack in C ___ Python

[issue1675951] [gzip] Performance for small reads and fix seek problem

2009-01-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1675951 ___ ___ Python-bugs-list mailing

[issue4561] Optimize new io library

2009-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Marking this as a duplicate of #4565 Rewrite the IO stack in C. -- resolution: - duplicate status: open - closed superseder: - Rewrite the IO stack in C ___ Python tracker rep...@bugs.python.org

[issue4979] random.uniform can return its upper limit

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, applied in r68724. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4979

[issue4980] Documentation for y# does not mention PY_SSIZE_T_CLEAN

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Duplicate of #1729742. -- resolution: - duplicate status: open - closed superseder: - missing int-Py_ssize_t in documentation ___ Python tracker rep...@bugs.python.org

[issue1729742] Document effects of PY_SSIZE_T_CLEAN on argument parsing

2009-01-18 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl nosy: +georg.brandl priority: normal - high title: missing int-Py_ssize_t in documentation - Document effects of PY_SSIZE_T_CLEAN on argument parsing ___ Python tracker

[issue3873] Unpickling is really slow

2009-01-18 Thread Hagen Fürstenau
Hagen Fürstenau hfuerste...@gmx.net added the comment: With the io-c branch I see much better unpickling performance than before. But it still seems to be around 2 or 3 times slower than with cPickle in 2.6. Is this expected at this point of io-c development? Otherwise perhaps this issue should

[issue4986] Augmented Assignment / Operations Confusion in Documentation

2009-01-18 Thread andrew cooke
New submission from andrew cooke and...@acooke.org: There's a small confusion in terminology in the documentation related to methods that implement augmented assignment. The Expressions section of the language reference (Simple statements) refers to augmented assignment -

[issue4857] syntax: no unpacking in augassign

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r68725. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4857 ___

[issue4882] Behavior of backreferences to named groups in regular expressions unclear

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'm happy to review such a patch. -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4882 ___

[issue3873] Unpickling is really slow

2009-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hello, With the io-c branch I see much better unpickling performance than before. But it still seems to be around 2 or 3 times slower than with cPickle in 2.6. It's much closer here. With 2.7 (trunk) and cPickle: 0.439934968948

[issue3881] IDLE won't start in custom directory.

2009-01-18 Thread Jacob
Jacob jacobe...@gmail.com added the comment: I don't think thats the solution. C:\Program Files\Python\2.6\ and C:\Programas\Python\2.6\ are the same, as C:\Program Files\Python\2.6\ is a symbolic link to C:\Programas\Python\2.6\ to allow compatibility with different operation system languages.

[issue3873] Unpickling is really slow

2009-01-18 Thread Hagen Fürstenau
Changes by Hagen Fürstenau hfuerste...@gmx.net: Removed file: http://bugs.python.org/file11497/pickletst.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3873 ___

[issue3873] Unpickling is really slow

2009-01-18 Thread Hagen Fürstenau
Hagen Fürstenau hfuerste...@gmx.net added the comment: I uploaded a new pickletst.py which specifies protocol 2, otherwise we're comparing apples with oranges. With this I get: 0.211881160736 0.322369813919 for Python 2.6 and 0.158488035202 1.21621990204 on the io-c branch. Can you confirm

[issue3873] Unpickling is really slow

2009-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nice catch! I can confirm your figures with protocol=2 (and protocol=-1 as well). -- resolution: duplicate - status: closed - open superseder: Rewrite the IO stack in C - ___ Python tracker

[issue4923] time.strftime documentation needs update

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: %f and %z are not standardized by C89 and therefore not always available. They fall under the clause Additional directives may be supported on certain platforms, but only the ones listed here have a meaning standardized by ANSI C. which is noted

[issue4973] calendar formatyearpage returns bytes, not str

2009-01-18 Thread Michael Newman
Michael Newman michael.b.new...@gmail.com added the comment: It seems to be working consistently (see UTF-16 extreme example below), but I had expected it to act similarly to Python 2.6, which it does not. I suppose this is due to the distinction now made between strings and bytes in Python 3.0.

[issue4987] update distutils.README

2009-01-18 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: How about svn rm svn.python.org/projects/distutils/ to avoid confusion? -- nosy: +akitada ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4987

[issue4988] A link to What’s New in Python 2.0 on The Python Tutorial release 2.6

2009-01-18 Thread Akira Kitada
New submission from Akira Kitada akit...@gmail.com: It might be not a bug, but I think it's weird to see an ancient What's New link on the new Python tutorial page. http://docs.python.org/tutorial/ -- assignee: georg.brandl components: Documentation messages: 80109 nosy: akitada,

[issue3881] IDLE won't start in custom directory.

2009-01-18 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I don't think thats the solution. C:\Program Files\Python\2.6\ and C:\Programas\Python\2.6\ are the same, as C:\Program Files\Python\2.6\ is a symbolic link to C:\Programas\Python\2.6\ to allow compatibility with different operation

[issue4988] A link to What’s New in Python 2.0 on The Python Tutorial release 2.6

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, this isn't going to change; the last topic of the docs (and therefore the previous one to the tutorial) is the 2.0 whatsnew. -- resolution: - wont fix status: open - closed ___ Python tracker

[issue4986] Augmented Assignment / Operations Confusion in Documentation

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r68727. IMO, augmented operation was an acceptable term -- the term operator is not strictly limited to operators usable in expressions in Python. However, since it's called augmented assignment everywhere else, it's better here too for

[issue4986] Augmented Assignment / Operations Confusion in Documentation

2009-01-18 Thread andrew cooke
andrew cooke and...@acooke.org added the comment: thanks! ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4986 ___ ___ Python-bugs-list mailing list

[issue3881] IDLE won't start in custom directory.

2009-01-18 Thread Jacob
Jacob jacobe...@gmail.com added the comment: Great idea :) Maybe we're starting to find the problem. I'm using a Danish version of Windows Vista Home Premium SP1, and C:\Programmer is the danish path for C:\Program Files. I'll try that, and leave another message when i'we tried it.

[issue4892] Sending Connection-objects over multiprocessing connections fails

2009-01-18 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- priority: - normal type: behavior - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4892 ___

[issue4989] 'calendar' module is crummy and should be removed

2009-01-18 Thread Michał Pasternak
New submission from Michał Pasternak michal@gmail.com: I was looking for some library to handle calendar events. Something PIM- style, something useful, that could check if, for example, 2 weekly repeated events that start on Monday morning and last until December conflict with each other.

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-18 Thread Sandy Barbour
Sandy Barbour sandybarb...@btinternet.com added the comment: Over 3 years ago I wrote a plugin for the Xplane Flight Simulator. This uses a SDK that Ben Supnik and myself created 6 years ago. Our plugins are DLL's that our plugin manager DLL loads at run time. The plugin embeds python and

[issue3325] use of cPickle in multiprocessing

2009-01-18 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Checked into python-3000 as r68728 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3325 ___

[issue4449] AssertionError in Doc/includes/mp_benchmarks.py

2009-01-18 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- resolution: accepted - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4449 ___ ___

[issue4989] 'calendar' module is crummy and should be removed

2009-01-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: We cannot just remove modules because of backwards compatibility. Feel free to submit patches for improvements you would like to see in the module. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed

[issue4815] idle 3.1a1 utf8

2009-01-18 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Committed as r68732, r68733. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4815 ___

[issue4990] test_codeccallbacks.CodecCallbackTest.test_badhandlerresult is not testing anything

2009-01-18 Thread Maciek Fijalkowski
New submission from Maciek Fijalkowski fi...@genesilico.pl: the reason is that it of course raises TypeError, since number of args is wrong. -- files: out.diff keywords: patch messages: 80121 nosy: fijal severity: normal status: open title:

[issue4301] incorrect and inconsistent logging in multiprocessing

2009-01-18 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: This is a patch to fix the logging module, and remove the crufty code in multiprocessing. -- keywords: +needs review, patch Added file: http://bugs.python.org/file12787/issue4301.patch ___ Python

[issue4301] incorrect and inconsistent logging in multiprocessing

2009-01-18 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: Removed file: http://bugs.python.org/file12787/issue4301.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4301 ___

[issue4301] incorrect and inconsistent logging in multiprocessing

2009-01-18 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: fix copy/paste error, new patch Added file: http://bugs.python.org/file12788/issue4301.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4301 ___

[issue4301] incorrect and inconsistent logging in multiprocessing

2009-01-18 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: Removed file: http://bugs.python.org/file12788/issue4301.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4301 ___

[issue4991] os.fdopen doesn't raise on invalid file descriptors

2009-01-18 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: Since os.fdopen is now implemented with io.open, it doesn't use fdopen and check for invalid file descriptors. This isn't a huge issue since subsequent actions on the file will raise an error. -- components: Library (Lib)

[issue4990] test_codeccallbacks.CodecCallbackTest.test_badhandlerresult is not testing anything

2009-01-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks for noticing! Fixed in r68736. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4990

[issue4301] incorrect and inconsistent logging in multiprocessing

2009-01-18 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: fixed in r68737, merged to py3k in 68740 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4301

[issue4991] os.fdopen doesn't raise on invalid file descriptors

2009-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Perhaps io.open should be fixed, then? (or the _FileIO constructor) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4991 ___

[issue3881] IDLE won't start in custom directory.

2009-01-18 Thread Zlm
Zlm zemari...@gmail.com added the comment: Programas is the portuguese translation to Program Files. I have just installed it to C:\Test\Python and IDLE is working! The problem should be related to the Vista symbolic links. ___ Python tracker

[issue4991] os.fdopen doesn't raise on invalid file descriptors

2009-01-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Here's a patch for _FileIO. -- keywords: +patch Added file: http://bugs.python.org/file12790/raise_on_bad_fd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4991

[issue3881] IDLE won't start in custom directory.

2009-01-18 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The problem should be related to the Vista symbolic links. Unfortunately, it isn't as simple as install into a symbolic link, and it fails. I created c:\temp - c:\tmp, and installed into c:\temp (i.e. into the symlink), and it still worked

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-01-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Looks good to me. I'm not in a position to test with 16-bit wchar_t, but I can't see why anything would go wrong. I think we can take our chances: check this in and watch the buildbots for signs of trouble. Some minor whitespace issues in

[issue4989] 'calendar' module is crummy and should be removed

2009-01-18 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The other option is to propose its removal on python-dev, get support, and then submit patches for the module's deprecation. -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org

[issue4992] yield's documentation not updated

2009-01-18 Thread Petr Viktorin
New submission from Petr Viktorin encu...@gmail.com: In the yield statement documentation (http://docs.python.org/3.0/reference/simple_stmts.html#the-yield-statement), the old way of calling generators is used: The body of the generator function is executed by calling the generator’s next()

[issue4991] os.fdopen doesn't raise on invalid file descriptors

2009-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think EBADF is defined everywhere, so you can drop the defined() conditional. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4991 ___

[issue4991] os.fdopen doesn't raise on invalid file descriptors

2009-01-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Attaching new patch... Added file: http://bugs.python.org/file12791/raise_on_bad_fd2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4991

[issue4991] os.fdopen doesn't raise on invalid file descriptors

2009-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not sure Windows has a valid fstat btw, I'll guess we'll see on the Windows buildbots (in that case, some code can be taken from posixmodule.c to emulate fstat behaviour...). Other than that, the patch looks fine to me.

[issue4991] os.fdopen doesn't raise on invalid file descriptors

2009-01-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Applied in r68755. Will watch Windows. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4991

[issue4993] Typo in importlib

2009-01-18 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: In importlib/_bootstrap.py, line 435 reads: with closing(_fileio_FileIO(source_path, 'r')) as file: which whould probably be: with closing(_fileio._FileIO(source_path, 'r')) as file: -- assignee: brett.cannon

[issue4989] 'calendar' module is crummy and should be removed

2009-01-18 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Look at the oldest checkin comment for a line still in the module: r2166 | guido | 1990-10-13 14:23:40 -0500 (Sat, 13 Oct 1990) | 2 lines Initial revision In short, it's been there for a long, long time. Long before PEPs. Long before

[issue4994] subprocess (Popen) doesn't works properly

2009-01-18 Thread simonbcn
New submission from simonbcn simon...@gmail.com: Python 2.5.2 Ubuntu 8.04.1 64 bits ** -- ATTEMPT 1 -- Python: Popen(['mplayer','/tvixhd2/Pelis para montar/00049.m2ts','-msglevel all=4','-vo null','-ao null','-vf cropdetect','-vid

[issue4065] _multiprocessing doesn't build on macosx 10.3

2009-01-18 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: This issues was fixed on 2008-11-04 by Martin Loewis in r67098 Index: multiprocessing.h === --- multiprocessing.h (revision 67097) +++ multiprocessing.h (revision 67098) @@

[issue4995] sqlite3 module gives SQL logic error only in transactions

2009-01-18 Thread Muayyad Alsadi
New submission from Muayyad Alsadi als...@ojuba.org: when I use transactions I got errors I won't get with sqlite3 cli [als...@pc1 ~]$ python Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) [GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2 Type help, copyright, credits or license for more

[issue4995] sqlite3 module gives SQL logic error only in transactions

2009-01-18 Thread Muayyad Alsadi
Changes by Muayyad Alsadi als...@ojuba.org: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4995 ___ ___ Python-bugs-list

[issue4994] subprocess (Popen) doesn't works properly

2009-01-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Please investigate a bit more before posting. Try the following: Popen(['mplayer','/tvixhd2/Pelis para montar/00049.m2ts','-msglevel', 'all=4','-vo', 'null','-ao', 'null','-vf', 'cropdetect','-vid', '4113','-frames', '500']) -- nosy:

<    1   2   3   >