Re: Opportunity missed by Python ?

2011-11-15 Thread Jack Keegan
On Thu, Oct 13, 2011 at 11:07 AM, Chris Angelico ros...@gmail.com wrote: On Thu, Oct 13, 2011 at 8:45 PM, candide candide@free.invalid wrote: Dart is the very new language created by Google to replace Javascript. So Python was not able to do the job? Or may be they don't know about Python

Execute a command on remote machine in python

2011-11-15 Thread Roark
Hi, I am first time trying my hands on python scripting and would need some guidance from the experts on my problem. I want to execute a windows command within python script from a client machine on a remote target server, and would want the output of the command written in a file on client

Re: Execute a command on remote machine in python

2011-11-15 Thread Martin P. Hellwig
On 11/15/11 12:04, Roark wrote: Hi, I am first time trying my hands on python scripting and would need some guidance from the experts on my problem. I want to execute a windows command within python script from a client machine on a remote target server, and would want the output of the

PREFIX directory for pip command

2011-11-15 Thread Makoto Kuwata
Is it possible to specify PREFIX directory for pip command by environment variable? I found that 'pip install --install-option=--prefix=PREFIX' works well, but I don't want to specify '--install-option=--prefix=PREFIX' every time. I prefer to specify it by environment variable such as::

Re: Execute a command on remote machine in python

2011-11-15 Thread Jean-Michel Pichavant
Martin P. Hellwig wrote: On 11/15/11 12:04, Roark wrote: Hi, I am first time trying my hands on python scripting and would need some guidance from the experts on my problem. I want to execute a windows command within python script from a client machine on a remote target server, and would

Re: Execute a command on remote machine in python

2011-11-15 Thread Chris Angelico
On Tue, Nov 15, 2011 at 11:04 PM, Roark suha...@gmail.com wrote: Hi, I want to execute a windows command within python script from a client machine on a remote target server, and would want the output of the command written in a file on client machine. What is the way it could be achieved.

Re: Execute a command on remote machine in python

2011-11-15 Thread Xavier Ho
It sounds like Fabric is what you're after. We use it at work and it's the best thing since ssh. ;] http://docs.fabfile.org/en/1.3.2/index.html (Actually, it uses ssh internally and allows you to do remote shell-like programming in a pythonic fashion.) Cheers, Xav On 15 November 2011 22:04,

Re: Execute a command on remote machine in python

2011-11-15 Thread Roy Smith
In article mailman.2728.1321366254.27778.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Tue, Nov 15, 2011 at 11:04 PM, Roark suha...@gmail.com wrote: Hi, I want to execute a windows command within python script from a client machine on a remote target server, and

Re: else in try/except

2011-11-15 Thread Grant Edwards
On 2011-11-15, Barry W Brown brown...@gmail.com wrote: I thought that the point of the else clause is that it is reached only if there is no exception in the try clause. Not really. If that's all you wanted, then you just put the code at the end of the try block. -- Grant Edwards

Re: PREFIX directory for pip command

2011-11-15 Thread Marc Christiansen
Makoto Kuwata k...@kuwata-lab.com wrote: Is it possible to specify PREFIX directory for pip command by environment variable? I found that 'pip install --install-option=--prefix=PREFIX' works well, but I don't want to specify '--install-option=--prefix=PREFIX' every time. I prefer to specify

Re: else in try/except

2011-11-15 Thread Robert Kern
On 11/15/11 2:31 PM, Grant Edwards wrote: On 2011-11-15, Barry W Brownbrown...@gmail.com wrote: I thought that the point of the else clause is that it is reached only if there is no exception in the try clause. Not really. If that's all you wanted, then you just put the code at the end of

Re: Execute a command on remote machine in python

2011-11-15 Thread Marco Nawijn
On Nov 15, 1:04 pm, Roark suha...@gmail.com wrote: Hi, I am first time trying my hands on python scripting and would need some guidance from the experts on my problem. I want to execute a windows command within python script from a client machine on a remote target server, and would want

Re: PREFIX directory for pip command

2011-11-15 Thread Makoto Kuwata
On Tue, Nov 15, 2011 at 11:33 PM, Marc Christiansen use...@solar-empire.de wrote: I'd try  export PIP_INSTALL_OPTION=--prefix=$PWD/local It works very well. Thank you. -- regards, makoto using a config file is also possible. See http://www.pip-installer.org/en/latest/configuration.html

Re: Execute a command on remote machine in python

2011-11-15 Thread Rodrick Brown
You could easily script this with popen calling secure shell to execute a command and capture the output. Sent from my iPhone On Nov 15, 2011, at 7:04 AM, Roark suha...@gmail.com wrote: Hi, I am first time trying my hands on python scripting and would need some guidance from the experts

Re: all() is slow?

2011-11-15 Thread BOOK-AZ
On Nov 7, 1:00 pm, OKB (not okblacke) brennospamb...@nobrenspambarn.net wrote:         I noticed this (Python 2.6.5 on Windows XP): http://book-az.com import random, timeit def myAll(x): ...     for a in x: ...         if a not in (True, False): ...             return False ...    

RE: Extracting elements over multiple lists?

2011-11-15 Thread Prasad, Ramit
for x in a, b, c: del x[0] for arr in [a,b,c]: arr.pop(0) (Peter's del solution is quite close, but I find the 'del' statement tricky in python and will mislead many python newcomers) Can you expand on why 'del' is tricky/misleading? Ramit Ramit Prasad | JPMorgan Chase Investment Bank

suppressing import errors

2011-11-15 Thread Andreea Babiuc
Hi, Is there a way to suppress all the errors when importing a module in python? By that I mean.. If I have other imports in the module I'm trying to import that fail, I still want my module to be imported that way.. Many thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: suppressing import errors

2011-11-15 Thread Chris Kaynor
As with any Python code, you can wrap the import into a try: except block. try: import badModule except: pass # Or otherwise handle the exception - possibly importing an alternative module. As with any except statement, specific exceptions may be caught (rather than the blank, catch

RE: overview on dao

2011-11-15 Thread Prasad, Ramit
Perhaps you should call it LaoZiDao. I just prefer shorter name. DAO as Data Access Objects is a common acronym in several languages (i.e. Java), so you will continually have this naming conflict. Just be aware that this conflict will happen frequently in the minds of many programmers. Ramit

Re: suppressing import errors

2011-11-15 Thread Andreea Babiuc
On 15 November 2011 17:24, Chris Kaynor ckay...@zindagigames.com wrote: As with any Python code, you can wrap the import into a try: except block. try: import badModule except: pass # Or otherwise handle the exception - possibly importing an alternative module. Hmm, I know this

Re: suppressing import errors

2011-11-15 Thread David Riley
On Nov 15, 2011, at 12:35 PM, Andreea Babiuc wrote: On 15 November 2011 17:24, Chris Kaynor ckay...@zindagigames.com wrote: As with any Python code, you can wrap the import into a try: except block. try: import badModule except: pass # Or otherwise handle the exception -

Re: Extracting elements over multiple lists?

2011-11-15 Thread Dave Angel
On 11/15/2011 12:01 PM, Prasad, Ramit wrote: SNIP (Peter's del solution is quite close, but I find the 'del' statement tricky in python and will mislead many python newcomers) Can you expand on why 'del' is tricky/misleading? Ramit a = someexpression... b = a del a Does not

Re: overview on dao

2011-11-15 Thread MRAB
On 15/11/2011 17:26, Prasad, Ramit wrote: Perhaps you should call it LaoZiDao. I just prefer shorter name. DAO as Data Access Objects is a common acronym in several languages (i.e. Java), so you will continually have this naming conflict. Just be aware that this conflict will happen

Re: suppressing import errors

2011-11-15 Thread Jean-Michel Pichavant
David Riley wrote: On Nov 15, 2011, at 12:35 PM, Andreea Babiuc wrote: On 15 November 2011 17:24, Chris Kaynor ckay...@zindagigames.com wrote: As with any Python code, you can wrap the import into a try: except block. try: import badModule except: pass # Or otherwise handle the

Gossip Protocol in Python

2011-11-15 Thread alisha alisha
Hi All, I am new to Python. I have to implement a overlay network of around 500 nodes which are arranged as a random graph. To generate theoverlay network I will be using networkx. My query is, is there a way to implement Gossip protocol in my overlay network using Python. Like one node

Wing IDE 4.1.1 released

2011-11-15 Thread Wingware
Hi, Wingware has released version 4.1.1 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

Re: suppressing import errors

2011-11-15 Thread David Riley
On Nov 15, 2011, at 1:58 PM, Jean-Michel Pichavant wrote: PS : @Dave there is a way to avoiding adding symbols to your global namespace, assign None to the module's name on import errors. Then before using it, just test the module bool value : if serial: serial.whateverMethod() True, and

Re: Extracting elements over multiple lists?

2011-11-15 Thread Chris Angelico
On Wed, Nov 16, 2011 at 5:17 AM, Dave Angel d...@davea.name wrote: a = someexpression... b = a del a Does not (necessarily) delete the object that a refers to.  It merely deletes the symbol a. I'd have to classify that as part of the change of thinking necessary for a refcounted

Re: suppressing import errors

2011-11-15 Thread Chris Angelico
On Wed, Nov 16, 2011 at 6:39 AM, David Riley fraveyd...@gmail.com wrote: True, and that does avoid polluting namespace.  However, you shouldn't be testing for None as a bool; you should instead do an if module is None: (or, of course, is not None). Why not? Is there some other way for the

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Chris Angelico
On Wed, Nov 16, 2011 at 7:37 AM, Passiday passi...@gmail.com wrote: The app would have basic IDE for writing and debugging the python code, but the interpretation, of course, would be done in JavaScript. I'd like to avoid any client-server transactions, so all the interpretation should take

(don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Passiday
Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python code, but the interpretation, of course, would be done in JavaScript.

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Ian Kelly
On Tue, Nov 15, 2011 at 1:37 PM, Passiday passi...@gmail.com wrote: Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Stef Mientki
On 15-11-2011 21:37, Passiday wrote: Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python code, but the interpretation, of

Re: suppressing import errors

2011-11-15 Thread David Riley
On Nov 15, 2011, at 3:01 PM, Chris Angelico wrote: On Wed, Nov 16, 2011 at 6:39 AM, David Riley fraveyd...@gmail.com wrote: True, and that does avoid polluting namespace. However, you shouldn't be testing for None as a bool; you should instead do an if module is None: (or, of course, is

Re: suppressing import errors

2011-11-15 Thread Chris Angelico
On Wed, Nov 16, 2011 at 8:20 AM, David Riley fraveyd...@gmail.com wrote:    Comparisons to singletons like None should always be done with      'is' or 'is not', never the equality operators.      Also, beware of writing if x when you really mean if x is not None      -- e.g. when testing

Re: suppressing import errors

2011-11-15 Thread Arnaud Delobelle
On 15 November 2011 21:34, Chris Angelico ros...@gmail.com wrote: On Wed, Nov 16, 2011 at 8:20 AM, David Riley fraveyd...@gmail.com wrote:      Comparisons to singletons like None should always be done with      'is' or 'is not', never the equality operators.      Also, beware of writing if x

Re: suppressing import errors

2011-11-15 Thread Ian Kelly
On Tue, Nov 15, 2011 at 2:42 PM, Arnaud Delobelle arno...@gmail.com wrote: It's idiomatic to write x is None when you want to know whether x is None. It's also idiomatic to just write if x: when you want to know whether x is something or nothing, and that's what I would probably do here. Either

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Terry Reedy
On 11/15/2011 3:52 PM, Ian Kelly wrote: On Tue, Nov 15, 2011 at 1:37 PM, Passidaypassi...@gmail.com wrote: Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic

Re: suppressing import errors

2011-11-15 Thread Chris Kaynor
On Tue, Nov 15, 2011 at 1:34 PM, Chris Angelico ros...@gmail.com wrote: On Wed, Nov 16, 2011 at 8:20 AM, David Riley fraveyd...@gmail.com wrote:      Comparisons to singletons like None should always be done with      'is' or 'is not', never the equality operators.      Also, beware of

Re: Extracting elements over multiple lists?

2011-11-15 Thread Steven D'Aprano
On Tue, 15 Nov 2011 17:01:23 +, Prasad, Ramit wrote: Can you expand on why 'del' is tricky/misleading? People often imagine that the del statement sends a message to the object please delete yourself, which then calls the __del__ method. That is incorrect. del x is an unbinding

Re: Extracting elements over multiple lists?

2011-11-15 Thread Steven D'Aprano
On Wed, 16 Nov 2011 06:53:26 +1100, Chris Angelico wrote: On Wed, Nov 16, 2011 at 5:17 AM, Dave Angel d...@davea.name wrote: a = someexpression... b = a del a Does not (necessarily) delete the object that a refers to.  It merely deletes the symbol a. I'd have to classify that as

Re: suppressing import errors

2011-11-15 Thread Steven D'Aprano
On Tue, 15 Nov 2011 14:22:21 -0800, Chris Kaynor wrote: The tests (the code is shown later - its about 53 lines, with lots of copy+paste...): Holy unnecessarily complicated code Batman! This is much simpler: [steve@ando ~]$ python -m timeit -s x = None if x is None: pass 1000 loops, best

Re: Extracting elements over multiple lists?

2011-11-15 Thread Chris Angelico
On Wed, Nov 16, 2011 at 9:25 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Languages aren't refcounted. Or at least, *Python* isn't a refcounted language. CPython is a refcounted implementation. IronPython and Jython are not. del behaves exactly the same in IronPython and

Re: suppressing import errors

2011-11-15 Thread Alan Meyer
On 11/15/2011 4:20 PM, David Riley wrote: ... None was set to some other value. The other value might have a type (such as a container) that could be false in a boolean context! Obviously, that last bit doesn't apply to modules; they're not going to evaluate as False in general.

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Alan Meyer
On 11/15/2011 3:37 PM, Passiday wrote: Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python code, but the interpretation,

Re: suppressing import errors

2011-11-15 Thread David Riley
On Nov 15, 2011, at 5:59 PM, Alan Meyer wrote: On 11/15/2011 4:20 PM, David Riley wrote: ... None was set to some other value. The other value might have a type (such as a container) that could be false in a boolean context! Obviously, that last bit doesn't apply to modules;

redis beginner question

2011-11-15 Thread Jabba Laci
Hi, I'm reading the redis documentation and there is one thing that bothers me. For redis, you need to start a server on localhost. Is there an easy way that my Python script starts this server automatically? Before using my script, I don't want to start redis-server each time. When my program

Re: (n00b) Tkinter trouble

2011-11-15 Thread Jason Swails
On Tue, Nov 15, 2011 at 12:32 AM, Chris Angelico ros...@gmail.com wrote: As a general rule, if any parent is invisible, you won't see the child, and if any parent is disabled, you can't access the child. Yea, I'm becoming more familiar and comfortable with the GUI hierarchy as I play around.

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Carl Banks
On Tuesday, November 15, 2011 12:37:03 PM UTC-8, Passiday wrote: Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python

Re: redis beginner question

2011-11-15 Thread Roy Smith
In article mailman.2758.1321410156.27778.python-l...@python.org, Jabba Laci jabba.l...@gmail.com wrote: Hi, I'm reading the redis documentation and there is one thing that bothers me. For redis, you need to start a server on localhost. Is there an easy way that my Python script starts this

python shell that saves history of typed in commands that will persist between reboots

2011-11-15 Thread goldtech
Hi, Using Windows. Is there a python shell that has a history of typed in commands? I don't need output of commands just what I typed it. I need it to save between sessions - something that no shell seems to do. If I reboot there will still be a command history somewhere. Like bash history in

Re: (n00b) Tkinter trouble

2011-11-15 Thread Chris Angelico
On Wed, Nov 16, 2011 at 2:02 PM, Jason Swails jason.swa...@gmail.com wrote: Apparently I could not do what I was wanting to (state=DISABLED is not a valid option to Toplevel).  What I wanted to do was something similar to what the dialogs were doing from tkMessageBox. Yes, that would be what

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-15 Thread sword
Maybe you're looking for ipython? History, tab-complete, sort of things in it. goldtech wrote: Hi, Using Windows. Is there a python shell that has a history of typed in commands? I don't need output of commands just what I typed it. I need it to save between sessions - something that no

Stucked with python logging module

2011-11-15 Thread sword
I just scaned through the beginer's guide of logging module, but I can't get anything from console. The demo just like this: import logging logging.debug(This is a demo) Maybe I should do sth to put the log to stdout in basicConfig first? Thanks in advance --

Re: Stucked with python logging module

2011-11-15 Thread Kushal Kumaran
On Wed, Nov 16, 2011 at 8:58 AM, sword john...@gmail.com wrote: I just scaned through the beginer's guide of logging module, but I can't get anything from console. The demo just like this: import logging logging.debug(This is a demo) Maybe I should do sth to put the log to stdout in

Got some problems when using logging Filter

2011-11-15 Thread sword
The logging cookbook gives an Filter example, explainning how to add contextural info to log. I can't figure out how to filter log from it. Suppose I have 3 file, a.py, b.py and main.py #file: a.py import logging logger=logging.getLogger(__name__) def print_log(): logger.debug(I'm module a)

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Passiday
Thanks Carl, this looks like a good base to start from. -- http://mail.python.org/mailman/listinfo/python-list

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-15 Thread Passiday
Of course, I am aware of this. But the file system can be emulated, and certain networking can be mediated via the server, too. But for starts, I don't plan to go beyond the basic file operations, if at all. -- http://mail.python.org/mailman/listinfo/python-list

[issue13390] Hunt memory allocations in addition to reference leaks

2011-11-15 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Together with -R, it can help chase those memory leaks which aren't reference leaks (see c6dafa2e2594). Valgrind does a much better job at this: it will also show you where the leaked blocks were allocated. OTOH, Valgrind is

[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy

2011-11-15 Thread xhantu
xhantu pwo...@rz-online.de added the comment: Confirmed for Python 2.7.1 on Ubuntu. Problematic are the __reduce__ methods of multiprocessing.process.AuthenticationString and multiprocessing.managers.BaseProxy. Pickling of an authkey in BaseProxy is only done and allowed when

[issue7503] multiprocessing AuthenticationError digest sent was rejected when pickling proxy

2011-11-15 Thread xhantu
xhantu pwo...@rz-online.de added the comment: forgot to set version in classification -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7503 ___

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yeah, I just haven't found time to do the revert yet (my first naive attempt using hg commands failed and I haven't found time to figure it out or do the reverse-patch method). -- ___ Python

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti nosy: +benjamin.peterson, georg.brandl priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4147

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-15 Thread Maciej Bliziński
Maciej Bliziński maciej.blizin...@gmail.com added the comment: I haven't tried building with GCC, Python has always been built with Sun Studio at OpenCSW. I've got very similar build files for Python 2.6, 2.7, 3.0, and 3.1 -- none of them have this problem, so this is a regression in 3.2.

[issue13390] Hunt memory allocations in addition to reference leaks

2011-11-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: This will likely be a decent you have a problem indicator, but you may still need tools like Valgrind to actually track down the *cause* of that problem. -- ___ Python tracker rep...@bugs.python.org

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Peter Funk
Changes by Peter Funk p...@users.sourceforge.net: -- nosy: +pefu ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4147 ___ ___ Python-bugs-list

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here is a new patch based on Dan's last patch. Correct me if I'm wrong, but it seems to me that it's not possible for a node to have only text-nodes as children and yet have more than one child; i.e. you can't have two or more adjacent

[issue13407] tarfile.getmembers misses members again

2011-11-15 Thread sengels
New submission from sengels ps...@gmx.de: This bug seems to be related to http://bugs.python.org/issue13158 When I try to run the following code: import tarfile tf = tarfile.open(kdelibs-4.7.3.tar.bz2, r) print(len(tf.getnames())) against this tarball:

[issue13407] tarfile.getnames misses members again

2011-11-15 Thread sengels
Changes by sengels ps...@gmx.de: -- title: tarfile.getmembers misses members again - tarfile.getnames misses members again ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13407 ___

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-15 Thread sbt
sbt shibt...@gmail.com added the comment: Here is an updated patch which uses the real errno. It also gets rid of the restore_pos argument of _bufferedwriter_flush_unlocked() which is always set to false -- I guess buffered_flush_and_rewind_unlocked() is used instead. -- Added file:

[issue13408] Rename packaging.resources back to datafiles

2011-11-15 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: The code dealing with the new resources subsystem used to be called datafiles (module distutils2.datafiles, file dist-info/DATAFILES, etc.). I believe it is a better name and we should use it again: - it would make clear that it’s an

[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2011-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Currently different environment variables are treated differently. For example, mistakes in PYTHONHOME and PYTHONIOENCODING cause fatal error while an error in PYTHONSTARTUP is reported but does not terminate python: If PYTHONSTARTUP is

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Baptiste Carvello
Baptiste Carvello de...@baptiste-carvello.net added the comment: Le 14/11/2011 20:51, Eric Snow a écrit : So would it be worth the effort to identify each such place in the built-ins/stdlib and eventually change them all? I've seen support for doing so in other tracker issues and think

[issue13405] Add DTrace probes

2011-11-15 Thread lasizoillo
Changes by lasizoillo lasizoi...@gmail.com: -- nosy: +lasizoillo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: C functions that have optional arguments but don't accept keyword arguments are a bit unusual, and IIUC in most of the cases that's an implementation detail that could be removed. So would it be worth the effort to identify each such place

[issue12659] Add tests for packaging.tests.support

2011-11-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 659bf2a679d2 by Éric Araujo in branch 'default': Add tests for tests.support (#12659), thanks to Francisco Martín Brugué http://hg.python.org/distutils2/rev/659bf2a679d2 --

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Me too. (Can you give the #ids of these other issues?) See for example #13012. I think we should fix C functions to accept kwargs for the sake of Python programmers, not merely to ease documentation (that would just be a nice

[issue13386] Document documentation conventions for optional args

2011-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think we should fix C functions to accept kwargs for the sake of Python programmers And also for compatibility for other implementations like PyPy. Good point. I'm still not sure that is a good idea to do a mass conversion of all the

[issue12344] Add **kwargs to reinitialize_command

2011-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve noticed that setuptools’ Command class also allows keyword arguments in its constructor. I’m not sure if it would be useful, but I’ve not looked in depth at the packaging codebase to see if there is code that could use that. --

[issue13390] Hunt memory allocations in addition to reference leaks

2011-11-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Valgrind does a much better job at this: it will also show you where the leaked blocks were allocated. OTOH, Valgrind is Linux-only and slow, but since I haven't used the '-R' option much, I don't know how usable this will be in practice

[issue12659] Add tests for packaging.tests.support

2011-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I've added runTest to Tester It turns out this was the only change needed. Tarek’s repo on bitbucket is not up-to-date, I should have given you the hg.python.org link. (You can edit .hg/hgrc in your repo and run “hg pull -u” to get missing

[issue13407] tarfile.getnames misses members again

2011-11-15 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Some testing reveals that the bz2 module 3.3 cannot fully decompress the file in question. Only the first 900k are decompressed. Thus, this issue is not related to issue13158 or the tarfile module. -- nosy: +lars.gustaebel

[issue13407] tarfile.getnames misses members again

2011-11-15 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Isn't this a duplicate of issue #1625? -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13407 ___

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-11-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1625 ___ ___

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-15 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Can you add the missing library path in CFLAGS and LDFLAGS environment variables?. Something like: (from a fresh source code) ./configure OPTIONS CFLAGS=-Ipath LDFLAGS=-Ipath If that works, we can explore why the path is not detected

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-15 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: BTW, is only curses building failing?. Is the rest of the code built correctly?. That would be a good hint. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13398

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This module also fails to build on my Debian. I had the libcursesw headers installed and one day it was not enough; installing libcurses headers fixes it. I don’t know if it’s the same problem or something related to Debian multiarch.

[issue13391] string.strip Does Not Remove Zero-Width-Space (ZWSP)

2011-11-15 Thread Dave Mankoff
Dave Mankoff man...@gmail.com added the comment: Use regular expressions for more advanced stripping than what the .strip method provides. So I guess this brings me back to my original issue. I'm not looking for particularly advanced stripping. I just want to remove all whitespace and other

[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

2011-11-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c10946a17420 by Éric Araujo in branch 'default': Clean up byte-compilation code in packaging (#11254 followup). http://hg.python.org/cpython/rev/c10946a17420 -- ___

[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks again. Just a nit: the tests should be in MiscIOTest, since they don't directly instantiate the individual classes. Also, perhaps it would be nice to check that the exception's errno attribute is EAGAIN. -- stage: needs patch -

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2011-11-15 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: ping! perhaps I forgot to write that I uploaded the cleaned patch also on 2010-08-23. I really think this simple patch is necessary. Just seen the same problem again - as I forgot the patch in one of my recent Python update

[issue13391] string.strip Does Not Remove Zero-Width-Space (ZWSP)

2011-11-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: So I guess this brings me back to my original issue. I'm not looking for particularly advanced stripping. I just want to remove all whitespace and other non-printing characters. .strip only strips whitespace. Stripping non-printing

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Dan Kenigsberg
Dan Kenigsberg dan...@redhat.com added the comment: Technically, adjacent Text nodes are not illegal, but preserving this oddity in pretty-print is impossible. It is perfectly fine to pretty-print only the simple case of len()==1. -- ___ Python

[issue13238] Add shell command helpers to subprocess module

2011-11-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file23694/b267e72c8c10.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238 ___

[issue13238] Add shell command helpers to subprocess module

2011-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: def __init__(self, command, *, **callkwds): Is the '*' marker needed? self.callkwds = callkwds These aren’t used in the module-level functions. What is the use case? If you forgive me for the nitpick, the docstrings have too

[issue10772] Several actions for argparse arguments missing from docs

2011-11-15 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: The patch has been submitted, now we just need to apply it and update the online docs accordingly. -- status: open - pending versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue10772] Several actions for argparse arguments missing from docs

2011-11-15 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- status: pending - open versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10772 ___

[issue10772] Several actions for argparse arguments missing from docs

2011-11-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10772 ___ ___

[issue10772] Several actions for argparse arguments missing from docs

2011-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Ezio made further comments, follow the “review” link. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10772 ___

[issue2775] Implement PEP 3108

2011-11-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Answers to Eric's questions: yes and yes, but I probably won't bother until I do a final update to the PEP. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2775

  1   2   >