[ANN]Uliweb 0.0.1a7 release!

2011-11-14 Thread limodou
[uliweb] download: http://uliweb.googlecode.com/files/Uliweb-0.0.1a7.zip project: http://code.google.com/p/uliweb https://github.com/limodou/uliweb [plugs] also plugs is a uliweb app collection project, and you can use it download: http://plugs.googlecode.com/files/plugs-0.0.1b2.zip project:

Re: (n00b) Tkinter trouble

2011-11-14 Thread Chris Angelico
On Mon, Nov 14, 2011 at 6:11 PM, Jason Swails jason.swa...@gmail.com wrote: Then, I can reactivate all of the buttons in the destroy() method before calling the destroy() method of Toplevel on self. Small side point that might save you some work: Instead of disabling and enabling all the

Multilevel dicts/arrays v. tuples as keys? [Was: Re: Get keys from a dicionary]

2011-11-14 Thread Matej Cepl
Dne 11.11.2011 14:31, macm napsal(a): def Dicty( dict[k1][k2] ): When looking at this I returned to the question which currently rolls in my mind: What's difference/advantage-disadvantage betweeng doing multi-level dicts/arrays like this and using tuple as a key? I.e., is it more Pythonic

Re: Multilevel dicts/arrays v. tuples as keys? [Was: Re: Get keys from a dicionary]

2011-11-14 Thread Tim Golden
On 14/11/2011 10:05, Matej Cepl wrote: Dne 11.11.2011 14:31, macm napsal(a): def Dicty( dict[k1][k2] ): When looking at this I returned to the question which currently rolls in my mind: What's difference/advantage-disadvantage betweeng doing multi-level dicts/arrays like this and using tuple

my new project, is this the right way?

2011-11-14 Thread Tracubik
Hi all, i'm developing a new program. Mission: learn a bit of database management Idea: create a simple, 1 window program that show me a db of movies i've seen with few (10) fields (actors, name, year etc) technologies i'll use: python + gtk db: that's the question since i'm mostly a new-bye

Re: Multilevel dicts/arrays v. tuples as keys?

2011-11-14 Thread Peter Otten
Matej Cepl wrote: Dne 11.11.2011 14:31, macm napsal(a): def Dicty( dict[k1][k2] ): When looking at this I returned to the question which currently rolls in my mind: What's difference/advantage-disadvantage betweeng doing multi-level dicts/arrays like this and using tuple as a key? I.e.,

Re: my new project, is this the right way?

2011-11-14 Thread Chris Angelico
On Mon, Nov 14, 2011 at 9:41 PM, Tracubik affdfsdfds...@b.com wrote: Hi all, i'm developing a new program. Mission: learn a bit of database management If your goal is to learn about databasing, then I strongly recommend a real database engine. since i'm mostly a new-bye for as regard

Re: Trying to write beautifulsoup result to a file and get error message

2011-11-14 Thread Andreas Perstinger
On 2011-11-13 23:37, goldtech wrote: If I try: ... soup = BeautifulSoup(ft3) f = open(r'c:\NewFolder\clean4.html', w) f.write(soup) f.close() I get error message: Traceback (most recent call last): File C:\Documents and Settings\user01\Desktop\py\tb1a.py, line 203, inmodule

new cars2011,2012,2013

2011-11-14 Thread porxy
Honda Insight (2012) http://newscarsblogspotcom.blogspot.com/#!/2011/11/honda-insight-2012... Audi A2 concept (2011) http://newscarsblogspotcom.blogspot.com/#!/2011/11/audi-a2-concept-20... Infiniti FX designed by Sebastian Vettel (2011)

Re: Uninstalling Py 2.5.2 from Windows 7 (Invalid on Win 32 app)

2011-11-14 Thread John Gordon
In j9q8cs$3al$1...@dont-email.me W. eWatson wolftra...@invalid.com writes: I just pushed aside the python25 folder by renaming it, and installed py 2.5.2. However, when I try to open the simplest of py programs with IDLE, I get an error from Win7. c:\Users\blah\...\junk.py is not a valid

Re: Uninstalling Py 2.5.2 from Windows 7 (Invalid on Win 32 app)

2011-11-14 Thread W. eWatson
On 11/14/2011 7:24 AM, John Gordon wrote: Inj9q8cs$3al$1...@dont-email.me W. eWatsonwolftra...@invalid.com writes: I just pushed aside the python25 folder by renaming it, and installed py 2.5.2. However, when I try to open the simplest of py programs with IDLE, I get an error from Win7.

Re: my new project, is this the right way?

2011-11-14 Thread Redcat
since i'm mostly a new-bye for as regard databases, my idea is to use sqlite at the beginning. Is that ok? any other db to start with? (pls don't say mysql or similar, they are too complex and i'll use this in a second step) I know it's a lot of work to learn initially, but I would

Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
I am trying to convince Python to open more than 32k files .. this is on FreeBSD. Now I know I have to set appropriate limits .. I did: $ sysctl kern.maxfiles kern.maxfiles: 204800 $ sysctl kern.maxfilesperproc kern.maxfilesperproc: 20 $ sysctl kern.maxvnodes kern.maxvnodes: 20 $ ulimit

Re: Uninstalling Py 2.5.2 from Windows 7 (Invalid on Win 32 app)

2011-11-14 Thread John Gordon
In j9rct4$frh$1...@dont-email.me W. eWatson wolftra...@invalid.com writes: What application is associated with .py files? Application? Simple ones, including the one i put here that you removed to answer my question. Eh? I can't see anywhere that you mentioned your Windows settings as to

Re: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Christian Heimes
Am 14.11.2011 16:57, schrieb Tobias Oberstein: I am trying to convince Python to open more than 32k files .. this is on FreeBSD. Now I know I have to set appropriate limits .. I did: $ sysctl kern.maxfiles kern.maxfiles: 204800 $ sysctl kern.maxfilesperproc kern.maxfilesperproc: 20

Re: my new project, is this the right way?

2011-11-14 Thread Jon Clements
On Nov 14, 10:41 am, Tracubik affdfsdfds...@b.com wrote: Hi all, i'm developing a new program. Mission: learn a bit of database management Idea: create a simple, 1 window program that show me a db of movies i've seen with few (10) fields (actors, name, year etc) technologies i'll use: python

AW: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
I'm not familiar with BSD but Linux has similar Kernel options. The kernel options might be *global* flags to set the total upper limit of open file descriptors for the entire system, not for a single process. Also on Linux ulimit doesn't display the fd limit. You have to use ulimit -n.

Re: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Christian Heimes
Am 14.11.2011 17:36, schrieb Tobias Oberstein: This is a dedicated machine doing nothing else .. I'm monitoring global FD usage sysctl kern.openfiles and it's way beyond the configured limit $ ulimit -n 20 Apparently you did everything right here. Well, it was worth the try. ;)

AW: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
I need 50k sockets + 100 files. Thus, this is even more strange: the Python (a Twisted service) will happily accept 50k sockets, but as soon as you do open() a file, it'll bail out. A limit of 32k smells like a overflow in a signed int. Perhaps your system is able and configured to

Re: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Christian Heimes
Am 14.11.2011 18:03, schrieb Tobias Oberstein: This is unbelievable. I've just tested: the bug (in libc) is still there on FreeBSD 8.2 p3 ... both on i386 _and_ amd64. Now I'm f***d;( A last chance: is it possible to compile Python for not using libc fopen(), but the Posix open()?

Re: Uninstalling Py 2.5.2 from Windows 7 (Invalid on Win 32 app)

2011-11-14 Thread W. eWatson
On 11/14/2011 8:15 AM, John Gordon wrote: Inj9rct4$frh$1...@dont-email.me W. eWatsonwolftra...@invalid.com writes: What application is associated with .py files? Application? Simple ones, including the one i put here that you removed to answer my question. Eh? I can't see anywhere that

Re: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Jon Clements
On Nov 14, 5:03 pm, Tobias Oberstein tobias.oberst...@tavendo.de wrote: I need 50k sockets + 100 files. Thus, this is even more strange: the Python (a Twisted service) will happily accept 50k sockets, but as soon as you do open() a file, it'll bail out. A limit of 32k smells like

AW: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
I need 50k sockets + 100 files. Thus, this is even more strange: the Python (a Twisted service) will happily accept 50k sockets, but as soon as you do open() a file, it'll bail out. A limit of 32k smells like a overflow in a signed int. Perhaps your system is able and

Re: my new project, is this the right way?

2011-11-14 Thread Miki Tebeka
since i'm mostly a new-bye for as regard databases, my idea is to use sqlite at the beginning. Is that ok? I think sqlite3 makes sense since it's already there and has SQL interface. is there any general tutorial of how to start developing a database? i mean a general guide to databases

Re: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Christian Heimes
Am 14.11.2011 18:46, schrieb Tobias Oberstein: I just confirmed that the bug is even there for FreeBSD 9 RC1 ! This is most unfortunate. Seriously. W00t, that sucks! You could migrate to another BSD (NetBSD) or Linux ... :) I am running out of options, since I am willing to make my stuff

Re: Uninstalling Py 2.5.2 from Windows 7 (Invalid on Win 32 app)

2011-11-14 Thread John Gordon
In j9rja5$qcp$1...@dont-email.me W. eWatson wolftra...@invalid.com writes: I would think the install would make the association of py to Python, either IDLE or the interpreter. I would hope so too, however you did mention that you moved the python executable to a different directory and

Re: Uninstalling Py 2.5.2 from Windows 7 (Invalid on Win 32 app)

2011-11-14 Thread W. eWatson
On 11/14/2011 10:00 AM, John Gordon wrote: Inj9rja5$qcp$1...@dont-email.me W. eWatsonwolftra...@invalid.com writes: I would think the install would make the association of py to Python, either IDLE or the interpreter. I would hope so too, however you did mention that you moved the python

AW: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Tobias Oberstein
I just confirmed that the bug is even there for FreeBSD 9 RC1 ! This is most unfortunate. Seriously. W00t, that sucks! You could migrate to another BSD (NetBSD) or Linux ... :) No, thanks;) I am running out of options, since I am willing to make my stuff Python 3 compatible, but

Re: can't decompress data; zlib not available

2011-11-14 Thread Steve Edlefsen
Sorry about that. Ubuntu 11.10. I used Plone-4.1.2-UnifiedInstaller.tar which installed o.k. I'm serving a webpage on my LAN. I did a search on files named python on my machine. There are 23 not including the ones in the Plone buildout-cache in my account. Seems like a lot of applications

Re: Py2.7/FreeBSD: maximum number of open files

2011-11-14 Thread Christian Heimes
Am 14.11.2011 19:28, schrieb Tobias Oberstein: Thanks! This is probably the most practical option I can go. I've just tested: the backported new IO on Python 2.7 will indeed open 32k files on FreeBSD. It also creates the files much faster. The old, non-monkey-patched version was getting

Re: can't decompress data; zlib not available

2011-11-14 Thread Christian Heimes
Am 14.11.2011 20:30, schrieb Steve Edlefsen: Sorry about that. Ubuntu 11.10. I used Plone-4.1.2-UnifiedInstaller.tar which installed o.k. I'm serving a webpage on my LAN. I did a search on files named python on my machine. There are 23 not including the ones in the Plone

Re: can't decompress data; zlib not available

2011-11-14 Thread Tim Wintle
On Mon, 2011-11-14 at 12:30 -0700, Steve Edlefsen wrote: I did a search on files named python on my machine. There are 23 not including the ones in the Plone buildout-cache in my account. Seems like a lot of applications install their own copy of python. There are also

Python Developer needed for Catalina Marketing - St. Petersburg

2011-11-14 Thread Chris Martel
We, at Catalina Marketing, are in need of a Python Developer for 3 - 6 months. You'd be writing highly sophisticated scripting in OO classes (cron) for our coupon campaigns. Also using SQLite, Oracle, and Netezza. Prefer someone who has at least 3-5 years of Python and database experience. The

else in try/except

2011-11-14 Thread Ethan Furman
The code in 'else' in a 'try/except/else[/finally]' block seems pointless to me, as I am not seeing any difference between having the code in the 'else' suite vs having the code in the 'try' suite. Can anybody shed some light on this for me? ~Ethan~ --

Re: else in try/except

2011-11-14 Thread MRAB
On 14/11/2011 21:53, Ethan Furman wrote: The code in 'else' in a 'try/except/else[/finally]' block seems pointless to me, as I am not seeing any difference between having the code in the 'else' suite vs having the code in the 'try' suite. Can anybody shed some light on this for me? The

Re: else in try/except

2011-11-14 Thread Arnaud Delobelle
On 14 November 2011 21:53, Ethan Furman et...@stoneleaf.us wrote: The code in 'else' in a 'try/except/else[/finally]' block seems pointless to me, as I am not seeing any difference between having the code in the 'else' suite vs having the code in the 'try' suite. Can anybody shed some light

Re: else in try/except

2011-11-14 Thread Chris Kaynor
On Mon, Nov 14, 2011 at 2:59 PM, MRAB pyt...@mrabarnett.plus.com wrote: On 14/11/2011 21:53, Ethan Furman wrote: The code in 'else' in a 'try/except/else[/finally]' block seems pointless to me, as I am not seeing any difference between having the code in the 'else' suite vs having the code in

Re: Opportunity missed by Python ?

2011-11-14 Thread DevPlayer
What I don't get is, having seen Python's syntax with indentation instead of open and closing puncuation and other -readability- structures in Python's syntax, is if someone is going to invent any new language, how could they NOT take Python's visual structures (read as readability) and copy it,

Re: Opportunity missed by Python ?

2011-11-14 Thread Chris Angelico
On Tue, Nov 15, 2011 at 10:59 AM, DevPlayer devpla...@gmail.com wrote: What I don't get is, having seen Python's syntax with indentation instead of open and closing puncuation and other -readability- structures in Python's syntax, is if someone is going to invent any new language, how could

Re: else in try/except

2011-11-14 Thread Ethan Furman
Thanks, all! ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator question: prefer class, but only function works

2011-11-14 Thread Russell E. Owen
In article CALwzidk11rqXjaxcwNKy5C2iotaBO_BcDWL_zFC6Rctue=4...@mail.gmail.com, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Nov 10, 2011 at 2:52 PM, Russell E. Owen ro...@uw.edu wrote: I am trying to write a decorator that times an instance method and writes the results to a class member

Re: Opportunity missed by Python ?

2011-11-14 Thread Dominic Binks
I believe Occam had a visual structure and was compiled. In fact it was even more picky than Python in this respect IIRC. On 11/14/2011 4:28 PM, Chris Angelico wrote: On Tue, Nov 15, 2011 at 10:59 AM, DevPlayerdevpla...@gmail.com wrote: What I don't get is, having seen Python's syntax with

Re: Opportunity missed by Python ?

2011-11-14 Thread Steven D'Aprano
On Mon, 14 Nov 2011 15:59:39 -0800, DevPlayer wrote: What I don't get is, having seen Python's syntax with indentation instead of open and closing puncuation and other -readability- structures in Python's syntax, is if someone is going to invent any new language, how could they NOT take

Re: Decorator question: prefer class, but only function works

2011-11-14 Thread Steven D'Aprano
On Mon, 14 Nov 2011 17:00:38 -0800, Russell E. Owen wrote: Oops, I stripped so much out of my example that I stripped the ugly bit. This is closer to the original and demonstrated the issue: def timeMethod(func): name = func.__name__ + Duration def wrapper(self, *args, **keyArgs):

Re: Multilevel dicts/arrays v. tuples as keys?

2011-11-14 Thread alex23
Peter Otten __pete...@web.de wrote: If you need lookup only I'd prefer tuples, but sometimes you may want to retrieve all values with a certain k1 and d[k1] is certainly more efficient than [(k2, v) for (k1, k2), v in d.items() if k1 == wanted] This was the hidden cost of the

Re: else in try/except

2011-11-14 Thread Barry W Brown
I thought that the point of the else clause is that it is reached only if there is no exception in the try clause. -- http://mail.python.org/mailman/listinfo/python-list

Re: (n00b) Tkinter trouble

2011-11-14 Thread Jason Swails
On Mon, Nov 14, 2011 at 3:49 AM, Chris Angelico ros...@gmail.com wrote: On Mon, Nov 14, 2011 at 6:11 PM, Jason Swails jason.swa...@gmail.com wrote: Then, I can reactivate all of the buttons in the destroy() method before calling the destroy() method of Toplevel on self. Small side point

Re: (n00b) Tkinter trouble

2011-11-14 Thread Chris Angelico
On Tue, Nov 15, 2011 at 4:18 PM, Jason Swails jason.swa...@gmail.com wrote: Of course!  Windows are widgets just like everything else is, and so can be configured to be in the DISABLED state just like a button can.  I'm not used to this hierarchy in which the root window presides over all, yet

Re: simple import hook

2011-11-14 Thread DevPlayer
An alternative approach: http://pastebin.com/z6pNqFYE or: # devpla...@gmail.com # 2011-Nov-15 # recordimports.py # my Import Hook Hack in response to: # http://groups.google.com/group/comp.lang.python/browse_thread/thread/5a5d5c724f142eb5?hl=en # as an initial learning exercise # This code

[issue13386] Document documentation conventions for optional args

2011-11-14 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13386 ___ ___ Python-bugs-list

[issue13386] Document documentation conventions for optional args

2011-11-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13386 ___ ___ Python-bugs-list

[issue13386] Document documentation conventions for optional args

2011-11-14 Thread Baptiste Carvello
Baptiste Carvello de...@baptiste-carvello.net added the comment: Hi all, here is a relevant user story. I'm afraid it won't help you much, but it highlights the importance of consistent conventions in doc. My girlfriend is learning Python with no prior programing experience. She quite

[issue13386] Document documentation conventions for optional args

2011-11-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the feedback! 1) she naturally understood the meaning of the [opt] notation I guess this depends on her background, I've seen people trying to use [] in function calls because they saw them in the doc or confusing them for

[issue6397] Implementing Solaris /dev/poll in the select module

2011-11-14 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23684/11f08326afd0.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue12681] unittest expectedFailure could take a message argument like skip does

2011-11-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Maybe we could add an expected_issue(id) decorator to test.support. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12681

[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names

2011-11-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3932 ___ ___

[issue13357] HTMLParser parses attributes incorrectly.

2011-11-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13357 ___ ___

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-11-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12629 ___ ___

[issue755670] improve HTMLParser attribute processing regexps

2011-11-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue755670 ___ ___

[issue1745761] Bad attributes/data handling in SGMLib

2011-11-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745761 ___ ___

[issue6397] Implementing Solaris /dev/poll in the select module

2011-11-14 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: New changeset. The only change is: diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -685,8 +685,16 @@ return -1; } if (n size) { -

[issue13396] new method random.getrandbytes()

2011-11-14 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13396 ___ ___ Python-bugs-list mailing list

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

2011-11-14 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Maciej, could you possibly provide a diff file to apply?. I care about Solaris support, but I don't have a Solaris 9 around for testing. Only Solaris 10 and OpenIndiana. Try to provide a minimal patch, please. -- nosy: +jcea stage: -

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

2011-11-14 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: BTW, have you tried to compile with GCC? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13398 ___

[issue13239] Remove operator from Grammar/Grammar

2011-11-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +# isn't actually a valid comparison operator in Python. It's here for the +# sake of a __future__ import described in PEP 401 If we wanted to be exact, the operator isn’t here for a __future__ import but for a feature enabled by a __future__

[issue13264] Monkeypatching using metaclass

2011-11-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Artem, if you have further information to make us reconsider this issue, please add a new message. -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker

[issue13386] Document documentation conventions for optional args

2011-11-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do we need an introductory page aimed to the readers that explains the conventions used in the doc? Explaining notational conventions at the start of a technical reference sounds like a best practice to me. --

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3dda26cfc1d7 by Éric Araujo in branch 'default': Increase test coverage for manifest (#11751). http://hg.python.org/distutils2/rev/3dda26cfc1d7 -- ___ Python tracker

[issue13170] distutils2 test failures

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5b096fc6e65d by Éric Araujo in branch 'default': Fix import in install_data (#13170). Thanks to David Barnett. http://hg.python.org/distutils2/rev/5b096fc6e65d New changeset 2d469ccfe30e by Éric Araujo in branch

[issue12915] Add inspect.locate and inspect.resolve

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5df1065ddb8b by Éric Araujo in branch 'default': Expand tests and fix bugs in util.resolve_name. http://hg.python.org/distutils2/rev/5df1065ddb8b -- ___ Python tracker

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cb49bc384957 by Éric Araujo in branch 'default': Fix writing of the RESOURCES file (#12386). http://hg.python.org/distutils2/rev/cb49bc384957 New changeset 2d469ccfe30e by Éric Araujo in branch 'python3': Merge

[issue13399] Don't print traceback for recognized options in packaging

2011-11-14 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: $ python3.3 setup.py build --some-option usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

[issue13399] Don't print traceback for unrecognized options in packaging

2011-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: Don't print traceback for recognized options in packaging - Don't print traceback for unrecognized options in packaging ___ Python tracker rep...@bugs.python.org

[issue13400] packaging: build command should accept --compile, --no-compile and --optimize options

2011-11-14 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: build command of packaging should accept --compile, --no-compile and --optimize options and pass them to build_py command. -- assignee: tarek components: Distutils2 keywords: easy messages: 147600 nosy:

[issue13399] Don't print traceback for unrecognized actions, commands and options in packaging

2011-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: $ pysetup3.3 unknown_action Unrecognized action unknown_action Traceback (most recent call last): File /usr/lib64/python3.3/packaging/run.py, line 650, in main dispatcher = Dispatcher(args) File

[issue13401] test_argparse fails with root permissions

2011-11-14 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: $ python3.3 -B -m test.test_argparse ... == FAIL: test_failures_many_groups_listargs (__main__.TestFileTypeW)

[issue13401] test_argparse fails with root permissions

2011-11-14 Thread Jesus Rivero
Changes by Jesus Rivero neurog...@gentoo.org: -- nosy: +Neurogeek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13401 ___ ___ Python-bugs-list

[issue13401] test_argparse fails with root permissions

2011-11-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file23685/python-test_argparse.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13401

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

2011-11-14 Thread Dave Mankoff
Dave Mankoff man...@gmail.com added the comment: I appreciated the quick turnaround on this. Perhaps I am misunderstanding the resolution. I understand that strip uses _PyUnicode_IsWhitespace, and that _PyUnicode_IsWhitespace Returns 1 for Unicode characters having the bidirectional type

[issue13386] Document documentation conventions for optional args

2011-11-14 Thread Baptiste Carvello
Baptiste Carvello de...@baptiste-carvello.net added the comment: Le 14/11/2011 13:40, Ezio Melotti a écrit : 1) she naturally understood the meaning of the [opt] notation I guess this depends on her background, I've seen people trying to use [] in function calls because they saw them in

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

2011-11-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I think those shouldn't be considered whitespace, so they shouldn't be stripped either. Even if _PyUnicode_IsWhitespace doesn't match exactly the Unicode definition of White_Space, they both agree that ZWSP and ZWNBSP are not whitespace.

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

2011-11-14 Thread Dave Mankoff
Dave Mankoff man...@gmail.com added the comment: But why are they not a space? I mean, they literally have the word space in their name and are used as separators between words. I can't really see any reason why you wouldn't want this behavior - there's not time when I would be thankful that

[issue5819] Add PYTHONPREFIXES environment variable

2011-11-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See also #1298835 and PEP 405. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5819 ___ ___

[issue1298835] Add a vendor-packages directory for system-supplied modules

2011-11-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: not all OSes have vendors I realized that because French is my native language, I interpret “vendor” as “seller” (the meaning of “vendeur”), but I think that in English it just means “distributor” and has no relation with selling.

[issue13402] Document absoluteness of sys.executable

2011-11-14 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I wanted to know if sys.executable was always an absolute path but the doc does not talk about that. (My use case is that I’d like to reload a process and I wonder if I can call os.execve or if I need to use os.execvpe.) -- assignee:

[issue13388] document hg commit hooks in the devguide

2011-11-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 to most of the patch, except one piece of wording: “commit message hooks”. This does not occur in the Mercurial documentation or help, and is misleading (commits happen on your maching, the hooks run on the server). I’d just use “hooks” or

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3c3009f63700 by Ezio Melotti in branch '2.7': #1745761, #755670, #13357, #12629, #1200313: improve attribute handling in HTMLParser. http://hg.python.org/cpython/rev/3c3009f63700 New changeset 16ed15ff0d7c by Ezio

[issue755670] improve HTMLParser attribute processing regexps

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3c3009f63700 by Ezio Melotti in branch '2.7': #1745761, #755670, #13357, #12629, #1200313: improve attribute handling in HTMLParser. http://hg.python.org/cpython/rev/3c3009f63700 New changeset 16ed15ff0d7c by Ezio

[issue1200313] HTMLParser fails to handle charref in attribute value

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3c3009f63700 by Ezio Melotti in branch '2.7': #1745761, #755670, #13357, #12629, #1200313: improve attribute handling in HTMLParser. http://hg.python.org/cpython/rev/3c3009f63700 New changeset 16ed15ff0d7c by Ezio

[issue13357] HTMLParser parses attributes incorrectly.

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3c3009f63700 by Ezio Melotti in branch '2.7': #1745761, #755670, #13357, #12629, #1200313: improve attribute handling in HTMLParser. http://hg.python.org/cpython/rev/3c3009f63700 New changeset 16ed15ff0d7c by Ezio

[issue1745761] Bad attributes/data handling in SGMLib

2011-11-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3c3009f63700 by Ezio Melotti in branch '2.7': #1745761, #755670, #13357, #12629, #1200313: improve attribute handling in HTMLParser. http://hg.python.org/cpython/rev/3c3009f63700 New changeset 16ed15ff0d7c by Ezio

[issue13249] argparse.ArgumentParser() lists arguments in the wrong order

2011-11-14 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I would not use a note directive. Notes and warnings distract and sometimes scare readers. For a simple coding recommendation like this, I think a regular paragraph would suffice. To make sure it’s not lost after pages of options

[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-11-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, the sentinels argument, right now, is meant to be used internally. I don't think it's a good thing to document it, since I don't think it's a very clean API (I know, I introduced it :-)) - it's just so that concurrent.futures can detect

[issue1745761] Bad attributes/data handling in SGMLib

2011-11-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue755670] improve HTMLParser attribute processing regexps

2011-11-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report! -- dependencies: -allow HTMLParser to continue after a parse error resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 2.7

[issue12629] HTMLParser silently stops parsing with malformed attributes

2011-11-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report! Apparently the correct way to parse y z=o / is: starttag y attribute z with value attribute o with no value So this is what HTMLParser does now. -- resolution: - fixed stage: needs patch -

[issue1200313] HTMLParser fails to handle charref in attribute value

2011-11-14 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: There was actually a bug with entities in unquoted attribute values. I fixed it and added tests for all the cases (quoted and unquoted). -- versions: +Python 2.7, Python 3.3 ___ Python tracker

[issue13403] Option for XMLPRC Server to support HTTPS

2011-11-14 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: The xmlrpc.client module supports secure transport using https; however, the xmlrpc.server does not have an https option. Adding this support isn't difficult. Here's an example of how to it could be implemented:

[issue13404] Add support for system.methodSignature() to XMLRPC Server

2011-11-14 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: Currently, the server has a stub method that returns: 'signatures not supported'. Using the inspect module, it shouldn't be difficult to provide function/method signatures for over-the-wire introspection. --

[issue13396] new method random.getrandbytes()

2011-11-14 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13396 ___ ___

  1   2   >