Re: webapp development in pure python

2011-10-26 Thread Rebelo
Try Pylons. Use html templates which get populated with data from your database and then just render them. If you just want to display data, with simple forms for editing and adding Pylons framework is more then enough. http://pylonsbook.com/en/1.1/ http://www.pylonsproject.org/ --

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Vinay Sajip
Mike C. Fletcher mcfletch at vrplumber.com writes: I actually consider .warning() a nit :) . After all, it's 3 extra characters :) , and *who* actually reads documentation instead of just poking around and finding the shortest-named method in the instance? Readability counts :-) Are you

Forking simplejson

2011-10-26 Thread Amirouche Boubekki
Héllo, I would like to fork simplejson [1] and implement serialization rules based on protocols instead of types [2], plus special cases for protocol free objects, that breaks compatibility. The benefit will be a better API for json serialization of custom classes and in the case of iterable it

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Mike C. Fletcher
On 11-10-26 05:12 AM, Vinay Sajip wrote: Mike C. Fletcher mcfletch at vrplumber.com writes: I actually consider .warning() a nit :) . After all, it's 3 extra characters :) , and *who* actually reads documentation instead of just poking around and finding the shortest-named method in the

Re: webapp development in pure python

2011-10-26 Thread Roy Smith
In article 18902163.1637.1319614150053.JavaMail.geo-discussion-forums@yqp37, Rebelo puntabl...@gmail.com wrote: Try Pylons. Use html templates which get populated with data from your database and then just render them. If you just want to display data, with simple forms for editing and

Parsing using one gramar with contexts

2011-10-26 Thread projetmbc
Hello, I'm seeking for one friendly library to parse one language with taking care of the context. For example, I would like to parse text in one docstring differently than the other code, or to add special keyword for the parsing when I'm in one class... Is there existing python tools for that

services/daemons

2011-10-26 Thread Andrea Crotti
Running pypiserver as a service? I'm writing some scripts which in theory should be able to: - start up a local pypi server as a daemon (or well a service on Windows) - run python setup.py develop on a potentially very big set of eggs, possibly discovering automatically for changes. In

Re: spawnl issues with Win 7 access rights

2011-10-26 Thread Tim Golden
On 26/10/2011 02:11, Terry Reedy wrote: OP reports 2.6 with XP works. Where do you see that, Terry? (Or was there an offlist email?) Did that use VS 2005? Maybe C runtime changed (regressed). That's possible -- and is essentially my main guess (faute de mieux). I've got the same results

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Vinay Sajip
Mike C. Fletcher mcfletch at vrplumber.com writes: More: an undocumented entry point is not deprecated because, after all, it shows up in PyDoc as a regular method. Deprecated methods also show up in PyDoc. Of course, if the deprecation is mentioned in the docstring, users would see this - but

Re: Data acquisition

2011-10-26 Thread spintronic
Dear friends! Thank you for the discussion. It was really helpful. As mentioned, it was necessary to have a longer delay. Previously I have used a delay of 5 and 10 s but it was not long enough. Now it is 25 s and everything works fine. Thank you again! Best, AS --

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Mike C. Fletcher
On 11-10-26 10:51 AM, Vinay Sajip wrote: ... auto-translation via 2to3 (because you generally are calling log.warn() rather than logging.warning, but sometimes you are doing getattr( log, log_level ) and then passing that method around a few times), and it That doesn't sound like a good usage

Review Python site with useful code snippets

2011-10-26 Thread Chris Hall
I am looking to get reviews, comments, code snippet suggestions, and feature requests for my site. I intend to grow out this site with all kinds of real world code examples to learn from and use in everyday coding. The site is: http://www.pythonsnippet.com If you have anything to contribute or

Re: Forking simplejson

2011-10-26 Thread Nathan Rice
Since this happily went off to the wrong recipient the first time... The python json module/simpljson are badly in need of an architecture update. The fact that you can't override the encode method of JSONEncoder and have it work reliably without monkey patching the pure python encoder is a sign

Re: Data acquisition

2011-10-26 Thread Dietmar Schwertberger
Am 26.10.2011 17:58, schrieb spintronic: Thank you for the discussion. It was really helpful. As mentioned, it was necessary to have a longer delay. Previously I have used a delay of 5 and 10 s but it was not long enough. Now it is 25 s and everything works fine. If you use the correct sequence

Re: spawnl issues with Win 7 access rights

2011-10-26 Thread Terry Reedy
On 10/26/2011 10:38 AM, Tim Golden wrote: On 26/10/2011 02:11, Terry Reedy wrote: OP reports 2.6 with XP works. Where do you see that, Terry? (Or was there an offlist email?) The first message of http://bugs.python.org/issue8036 Python 2.6 is however happy and just reports invalid arg. --

Re: Forking simplejson

2011-10-26 Thread Terry Reedy
On 10/26/2011 5:14 AM, Amirouche Boubekki wrote: Héllo, I would like to fork simplejson [1] and implement serialization rules based on protocols instead of types [2], plus special cases for protocol free objects, that breaks compatibility. The benefit will be a better API for json serialization

inserting \ in regular expressions

2011-10-26 Thread Ross Boylan
I want to replace every \ and (the two characters for backslash and double quotes) with a \ and the same character, i.e., \ - \\ - \ I have not been able to figure out how to do that. The documentation for re.sub says repl can be a string or a function; if it is a string, any backslash escapes

Re: inserting \ in regular expressions

2011-10-26 Thread Ian Kelly
On Wed, Oct 26, 2011 at 1:48 PM, Ross Boylan r...@biostat.ucsf.edu wrote: Or perhaps I'm confused about what the displayed results mean.  If a string has a literal \, does it get shown as \\? In the repr, yes. If you try printing the string, you'll see that it only contains one \. By the way,

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-26 Thread Michael Ströder
Waldemar Osuch wrote: I did try to build it using my current setup but it failed with some linking errors. Oh well. Waldemar, I really appreciate your Win32 support. Google gods were nicer to me. Here is a couple alternative links. Maybe they will work for you.

Re: inserting \ in regular expressions

2011-10-26 Thread Dave Angel
On 10/26/2011 03:48 PM, Ross Boylan wrote: I want to replace every \ and (the two characters for backslash and double quotes) with a \ and the same character, i.e., \ - \\ - \ I have not been able to figure out how to do that. The documentation for re.sub says repl can be a string or a

RE: webapp development in pure python

2011-10-26 Thread Prasad, Ramit
I am not really an expert web developer, so this is just my two cents. My Python module would connect to a database server and query some data, then display it in a grid. This cannot be compiled into javascript because of the database server connection. You technically can connect to

Re: inserting \ in regular expressions

2011-10-26 Thread MRAB
On 26/10/2011 20:48, Ross Boylan wrote: I want to replace every \ and (the two characters for backslash and double quotes) with a \ and the same character, i.e., \ - \\ - \ I have not been able to figure out how to do that. The documentation for re.sub says repl can be a string or a

Re: No more Python support in NetBeans 7.0

2011-10-26 Thread web
Sorry to comment on an old topic, but I wanted to clarify for others like me who might get the wrong idea. It looks like this is no longer true. Netbeans 7 might be supporting python after all. http://wiki.netbeans.org/Python70Roadmap -- http://mail.python.org/mailman/listinfo/python-list

Re: passing Python data to a javascript function

2011-10-26 Thread Chris Rebert
On Wed, Oct 26, 2011 at 7:25 PM, Bill Allen walle...@gmail.com wrote: Benjamin, I was afraid I was doing that.   I have simplified it quite a bit, still not getting the output I am looking for.   I am down to that I am not passing the value in the onload=showPID() call correctly.  I know

Re: webapp development in pure python

2011-10-26 Thread Chris Angelico
On Thu, Oct 27, 2011 at 8:47 AM, Prasad, Ramit ramit.pra...@jpmorgan.com wrote: You technically can connect to databases from JavaScript. It is a terrible idea, but achievable. Not really sure how it would get compiled into JavaScript, so it is possible that is the stumbling block.

Re: passing Python data to a javascript function

2011-10-26 Thread Chris Angelico
On Thu, Oct 27, 2011 at 2:51 PM, Bill Allen walle...@gmail.com wrote: Chris, Wow, that seems so simple now that I see it.  I was dancing around that all day, but just not landing on it.   Thanks so very much for the assist. --Bill Final code that works perfectly, passes the value from the

Re: webapp development in pure python

2011-10-26 Thread 88888 Dihedral
I am thinking one has to distinguish between programs for database servers of the commercial applications in banks or insurance companies that cant be hacked in low costs, and experiments to chunk out database servers for games and videos all over the world! --

Re: webapp development in pure python

2011-10-26 Thread Chris Angelico
On Thu, Oct 27, 2011 at 4:04 PM, 8 Dihedral dihedral88...@googlemail.com wrote: I am thinking one has to distinguish between programs for database servers of   the commercial applications in banks or insurance companies that cant be hacked in low costs, and experiments to chunk out

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-10-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: It appears the Python 3.2 docs no longer include documentation for URLError Both URLError and HTTPError are documented in 3.2 and 3.3: http://docs.python.org/py3k/library/urllib.error.html#urllib.error.URLError

[issue13263] Group some os functions in submodules

2011-10-26 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I would prefer to keep the shared prefix even if we move functions to a new module. Python refers usually to the C documentation for the details of a function. If we rename a function, it becomes more difficult to get the manual

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com added the comment: I use python a lot with Hebrew and many websites have internationalization which may involve unicode paths. I agree that saying unicode paths are rare is inaccurate. If the current situation isn't fixed though - you just can't use the

[issue13263] Group some os functions in submodules

2011-10-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: It would be fine for me to rename os.sched_get_priority_max() to os.sched.get_priority_max(). os.sched.sched_get_priority_max() is a bit redundant, and I think it's not to difficult to figure out that os.sched.get_priority_max()

[issue13266] Support for unwrapping __wrapped__ functions in 'inspect' module

2011-10-26 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: I just got bitten by the singularly unhelpful results of doing inspect.getsource(generator_context_manager). Now that @functools.wraps adds the __wrapped__ attribute, perhaps inspect.getsource(f) should follow the wrapper chain by default?

[issue13266] Support for unwrapping __wrapped__ functions in 'inspect' module

2011-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13266 ___

[issue13266] Add inspect.unwrap(f) to easily unravel __wrapped__ chains

2011-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: After a little thought, I think the explicit unwrap function is the only viable approach. Doing the unwrapping implicitly just has too many nasty corner cases to track down to ensure we aren't losing existing functionality. I'd also suggest

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com added the comment: Another option btw is to use utf-16, which will work but it's a bit ugly as well: os.listdir(os.path.abspath(u'.').encode('utf-16')) [] os.path.abspath(u'.') u'C:\\Users\\alon\\Desktop\\\u05e9\u05dc\u05d5\u05dd'

[issue13267] Add an option to disable importing orphaned bytecode files

2011-10-26 Thread Petri Lehtinen
New submission from Petri Lehtinen pe...@digip.org: This has been discussed in python-ideas approx. two years ago: http://mail.python.org/pipermail/python-ideas/2009-December/006635.html It seems to me that having an opt-in command-line option, environment variable and sys variable to disable

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org added the comment: On Wed, Oct 26, 2011 at 3:36 PM, Yuval Greenfield rep...@bugs.python.org wrote: If the current situation isn't fixed though - you just can't use the resulting path for almost anything. Do you have a use case Ishimoto? I don't have use

[issue13267] Add an option to disable importing orphaned bytecode files

2011-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: This feature is unnecessary now that PEP 3147 has been adopted. The way it works in 3.2+ is that orphaned bytecode files inside __pycache__ are always ignored, while bytecode files that live directly in the source directories are always

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-10-26 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I scanned through the libs for Python 2.7, 3.2, and 3.3 and there is no construction of HTTPError that does not pass a string for msg. I believe it would be reasonable to alias reason to msg. I'll put together the changesets. --

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Yuval Greenfield
Yuval Greenfield ubershme...@gmail.com added the comment: It won't break existing code. Ignoring this problem here only moves the exception to whenever the data returned is first used. Any code this fix breaks is already broken. -- ___ Python

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Yuval Greenfield ubershme...@gmail.com added the comment: Another option btw is to use utf-16 UTF-8, UTF-16 or any encoding different than the ANSI code page are not an option. The Windows bytes API expect filenames encoded to

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0b4df6701c4d by Nick Coghlan in branch '2.7': Issue #13237: further updates to subprocess documentation http://hg.python.org/cpython/rev/0b4df6701c4d -- ___ Python

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f445c125aca3 by Nick Coghlan in branch '2.7': Issue #13237: remove some details that only apply to the 3.x version of this module and cross reference the relocated warning about the dangers of invoking the shell

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1+ on Mac OS 10.7)

2011-10-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X - llvm-gcc-4.2 miscompiles Python (XCode 4.1+ on Mac OS 10.7) ___ Python tracker

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Absent any further feedback, I think I'm done with the changes to the 2.7 subprocess docs. I'll let them sit for a few days, then do the forward port to 3.2 and default. There are a couple of additional changes I'll add to the 3.x versions: -

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5dfe6d7f7c61 by Nick Coghlan in branch '2.7': Issue #13237: fix typo http://hg.python.org/cpython/rev/5dfe6d7f7c61 -- ___ Python tracker rep...@bugs.python.org

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I asked for more information about llvm-gcc on IRC (#llvm). Extracts: - llvm-gcc is not maintained. (Clang and DragonEgg are.) Apple is the maintainer of Apple's version of llvm-gcc and clang. - Apple ships a [llvm-gcc] branch at

[issue13266] Add inspect.unwrap(f) to easily unravel __wrapped__ chains

2011-10-26 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13266 ___ ___ Python-bugs-list

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- hgrepos: +86 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___ ___ Python-bugs-list mailing list

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- keywords: +patch Added file: http://bugs.python.org/file23524/d014fd90a487.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23524/d014fd90a487.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue13268] assert

2011-10-26 Thread Alexander Myodov
New submission from Alexander Myodov amyo...@gmail.com: The extended version of assert statement has a strange violation of documented behaviour. According to the http://docs.python.org/reference/simple_stmts.html#the-assert-statement, assert expression1, expression2 should be equivalent to

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Jesús Cea Avión
New submission from Jesús Cea Avión j...@jcea.es: Remote hg repo accepts remote branches, but the devguide says that the patch must be in default branch. Update the docs. I take care of this. -- assignee: jcea keywords: easy messages: 146435 nosy: jcea priority: normal severity:

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Distutils nosy: +eric.araujo, ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13269 ___

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I take care of this. Okay, as long as you don’t use Git terminology like “remote” :) -- components: +Devguide -Distutils ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13269

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7fbd2fe8c13c by Jesus Cea in branch 'default': Close #13269: Document that Remote hg repo accepts remote branches http://hg.python.org/devguide/rev/7fbd2fe8c13c -- nosy: +python-dev resolution: - fixed

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Eric, the original text says: The Create Patch button will then compute a diff for the head revision of the remote branch, and attach the diff to the issue. ^^ :-) -- ___ Python tracker

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Eric, the original text says: The Create Patch button will then compute a diff for the head revision of the **remote** branch, and attach the diff to the issue. :-) -- ___ Python tracker

[issue13269] Document that Remote hg repo accepts remote branches

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- Removed message: http://bugs.python.org/msg146438 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13269 ___

[issue1011113] Make “install” find the build_base directory

2011-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Actually I think this bug can be fixed in distutils. -- components: +Distutils keywords: +easy resolution: remind - stage: - needs patch type: feature request - behavior versions: +Python 2.7, Python 3.2, Python 3.3

[issue13268] assert statement violates the documentation

2011-10-26 Thread Alexander Myodov
Changes by Alexander Myodov amyo...@gmail.com: -- title: assert - assert statement violates the documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13268 ___

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: anikom15, can you give me a URI to download the OS you used? I don’t know when I’ll be able to download Windows, but surely a linux-using OS will take less space and time to download and install in a VM. --

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I want to review the doc, but lack time right now. For example, one function signature in your patch uses keyword-only arguments but 2.7 doesn’t support them. -- ___ Python tracker

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I've been able to consistently reproduce the test_resources failure on Ubuntu 11.10 64-bit, FWIW. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13193

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Haypo, the OP has a workaround. IMO, we should not be making any recommendations about which Apple compiler to use on OS X 10.7 until we have completed test cycles of each. There are too many variables at the moment. I am doing that and should have

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23525/6ea157b9d110.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-10-26 Thread Amirouche Boubekki
Changes by Amirouche Boubekki amirouche.boube...@gmail.com: -- nosy: +abki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12657 ___ ___

[issue13266] Add inspect.unwrap(f) to easily unravel __wrapped__ chains

2011-10-26 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13266 ___ ___ Python-bugs-list

[issue4945] json checks True/False by identity, not boolean value

2011-10-26 Thread Amirouche Boubekki
Changes by Amirouche Boubekki amirouche.boube...@gmail.com: -- nosy: +abki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___ ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23525/6ea157b9d110.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23526/0ee4386d8f51.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: First version of the patch. Review 0ee4386d8f51.diff http://bugs.python.org/file23526/0ee4386d8f51.diff Details: 1. Current code aliases devpoll in platforms with /dev/poll (Solaris and derivatives). Considering all the other points, I think

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- keywords: +needs review stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue13236] unittest needs more flush calls

2011-10-26 Thread Peter Eisentraut
Peter Eisentraut pete...@gmx.net added the comment: Attached is a test file. The key here is that I'm running the unittest suite inside of a long-running server process, so there is no predictable point of exit and cleanup. Therefore, the steps I show at the end of the file should be run in

[issue13268] assert statement violates the documentation

2011-10-26 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- components: +Interpreter Core nosy: +petri.lehtinen versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13268 ___

[issue4945] json checks True/False by identity, not boolean value

2011-10-26 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___

[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: It seems this cannot be achieved the same way in 2.7 as the traceback is not directly associated with the exception. However, if we're currently in an exception handler and sys.exc_info() corresponds to the exception passed to

[issue13265] IDLE crashes when printing some unprintable characters.

2011-10-26 Thread Ned Deily
Ned Deily n...@acm.org added the comment: With a current 3.3 build (i.e. wide build) on OS X, I can reproduce this. It causes an exception on the execution of that command in the IDLE shell but it doesn't crash IDLE. Not surprisingly, it doesn't seem to be reproducible with 3.2 narrow

[issue10860] Handle empty port after port delimiter in httplib

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e0499b2b28aa by Petri Lehtinen in branch '2.7': Issue #10860: Skip the new test if HTTPS is not available http://hg.python.org/cpython/rev/e0499b2b28aa New changeset a3939c2f6727 by Petri Lehtinen in branch '3.2':

[issue13207] os.path.expanduser breaks when using unicode character in the username

2011-10-26 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Unicode environment vars work properly in Python 3.x on Windows, too, because the convertenviron() function in posixmodule.c uses extern _wenviron PyUnicode_FromWideChar() in Python 3.x. In Python 2.7, convertenviron() uses extern

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Yuval, you are assuming that *no one* who uses the os byte APIs on Windows is either checking for '?' in returned paths or catching later exceptions. With Google code search, I did find one instance where someone tests paths for '?' after

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-26 Thread Xavier de Gaye
Xavier de Gaye xdeg...@gmail.com added the comment: I am not marking 'test needed' since the problem is 'hardly reproducible'. The attached script named 'asyncore_epipe.py' may be used to reproduce systematically the EPIPE error on linux with Python 3.2: * the Reader closes the socket

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-10-26 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: added some tests (not sure if in appropriate place). -- Added file: http://bugs.python.org/file23529/issue_8036_1.patch ___ Python tracker rep...@bugs.python.org

[issue13237] subprocess docs should emphasise convenience functions

2011-10-26 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: That's deliberate, as I'm only showing a selected subset of the full signature at that point and using the subprocess API's with positional arguments would lead to almost incomprehensible code. I'm not in any great hurry to forward port though,

[issue13270] all classes are new style

2011-10-26 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: these last references to old/new classes should be dropped. See patch. -- assignee: docs@python components: Documentation files: all_classes_belong_to_new_style.diff keywords: patch messages: 146455 nosy: docs@python, flox

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: http://www.archlinux.org/download/ It's a minimalist distribution but if you read through the install guide or beginner's guide you'll be fine. -- ___ Python tracker rep...@bugs.python.org

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I have decided to segregate select.devpoll to a separate object, like select.epoll. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-26 Thread Joshua Chia
New submission from Joshua Chia joshc...@gmail.com: What steps will reproduce the problem? 1. Make a script containing this code: parser = argparse.ArgumentParser() parser.add_argument('-i', '--input-base-directory', type=argparse.FileType('r'),

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Solved points 1, 3 and 4. 2 will be solved with the documentation. 5 and 6 still pending. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23526/0ee4386d8f51.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23531/6becc4e3eece.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue13207] os.path.expanduser breaks when using unicode character in the username

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Python 2 uses byte strings. If characters are not encodable to the ANSI code page, Windows replaces them by question marks. See the issue #13247 for another example (in Python 3 when using explicitly the bytes API). To be able to

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Removed file: http://bugs.python.org/file23531/6becc4e3eece.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: Added file: http://bugs.python.org/file23532/0b701eb5e9e3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

[issue6397] Implementing Solaris poll in the select module

2011-10-26 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Documentation added. That solves 2 and 5. I still have to solve 6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397 ___

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

2011-10-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- title: Implementing Solaris poll in the select module - Implementing Solaris /dev/poll in the select module ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6397

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2cad20e2e588 by Victor Stinner in branch 'default': Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8) http://hg.python.org/cpython/rev/2cad20e2e588 -- nosy: +python-dev resolution: - fixed stage:

[issue13216] Add cp65001 codec

2011-10-26 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0eac706d82d1 by Victor Stinner in branch 'default': Fix the issue number of my cp65001 commit: 13247 = issue #13216 http://hg.python.org/cpython/rev/0eac706d82d1 -- nosy: +python-dev

[issue13216] Add cp65001 codec

2011-10-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New changeset 2cad20e2e588 by Victor Stinner in branch 'default': Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8) http://hg.python.org/cpython/rev/2cad20e2e588 -- resolution: - fixed status: open - closed

  1   2   >