Re: [Roundup-users] Roundup 2.4.21 -- should be 1.4.21

2012-12-21 Thread Ralf Schlatterbeck
On Fri, Dec 21, 2012 at 03:45:23PM +0100, Ralf Schlatterbeck wrote: I'm proud to release version 1.4.21 of Roundup which has been possible due to the help of several contributors. This release introduces some minor features and, as usual, fixes some bugs: The 1.4.21 version is correct, the

Roundup 2.4.21

2012-12-21 Thread Ralf Schlatterbeck
I'm proud to release version 1.4.21 of Roundup which has been possible due to the help of several contributors. This release introduces some minor features and, as usual, fixes some bugs: Features: - issue2550782: Added a new irker detector to send notifications on IRC when an issue is

Pigeon Computer 0.1 Initial (BETA) release

2012-12-21 Thread Simon Forman
Pigeon Computer 0.1 Initial (BETA) release Summary The Pigeon Computer is a simple but sophisticated system for learning and exploring the fundamentals of computers and programming. It is written to support a course or class (as yet pending) to learn programming from the bit to the

Re: Pass and return

2012-12-21 Thread Steven D'Aprano
On Thu, 20 Dec 2012 21:23:58 -0800, iMath wrote: Pass and return Are these two functions the same ? They are neither functions, nor are they the same. Check if they are functions: - can you pass them arguments? - can you assign their result to a target? No. py pass(23) File stdin, line 1

Re: Brython - Python in the browser

2012-12-21 Thread Rouslan Korneychuk
On 12/20/2012 04:37 AM, Pierre Quentel wrote: To create an element, for instance an HTML anchor : doc = A('Python',href=http://www.python.org;) To me, that is a awful choice and I urge you to change it. '=' is not just an operator, it is a comparison operator. It normally return False or

Python USB control on Windows 7?

2012-12-21 Thread Duncan Booth
In this year's Christmas Raffle at work I won a 'party-in-a-box' including USB fairy lights. They sit boringly on all the time, so does anyone know if I can toggle the power easily from a script? My work PC is running Win7. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pass and return

2012-12-21 Thread Duncan Booth
Mitya Sirenef msire...@lightbird.net wrote: On 12/21/2012 12:23 AM, iMath wrote: Pass and return Are these two functions the same ? def test(): return def test(): pass From the point of style, of course, the latter is much better because that's the idiomatic way to

Re: Brython - Python in the browser

2012-12-21 Thread Terry Reedy
On 12/21/2012 3:31 AM, Rouslan Korneychuk wrote: Although I'm not really in favor of using an operator for this sort of thing either way, I can't help but notice the discussion seems to be limited to Python's operators. If you're implementing Python yourself, can't you define a new operator

Oracle E-Business Suite Techno Functional Consultant Required for UAE

2012-12-21 Thread VAM SYSTEMS
VAM SYSTEMS is a Business Consulting, IT Solutions and Services company with operations in UAE, Qatar, Bahrain, USA, Australia, Singapore India. VAM SYSTEMS is currently looking for Oracle E-Business Suite Techno Functional Consultant for our UAE operations with the following skill set and terms

Re: Brython - Python in the browser

2012-12-21 Thread Stefan Behnel
Pierre Quentel, 20.12.2012 10:42: Le jeudi 20 décembre 2012 01:54:44 UTC+1, Ian a écrit : On Wed, Dec 19, 2012 at 5:07 PM, Terry Reedy wrote: To create an element, for instance an HTML anchor : doc = A('Python',href=http://www.python.org;) To me, that is a awful choice and I urge you to

Re: compile python 3.3 with bz2 support on RedHat 5.5

2012-12-21 Thread Ramchandra Apte
On Friday, 21 December 2012 12:05:57 UTC+5:30, Isml wrote: hi, everyone:     I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to do that. Here is how I do it:     1、download bzip2 and compile it(make、make -f Makefile_libbz2_so、make install)     2、chang to python 3.3

Re: how to detect the encoding used for a specific text data ?

2012-12-21 Thread Oscar Benjamin
On 20 December 2012 11:57, iMath redstone-c...@163.com wrote: how to detect the encoding used for a specific text data ? Normally encoding is given in some way by the context of the data. Otherwise no general solution is possible. On a related note: how to answer question with no context on

Re: Brython - Python in the browser

2012-12-21 Thread Pierre Quentel
If that's your intention, then instead of coming up with something totally new, unpythonic and ugly, why not take the normal Python route and implement a subset of the ElementTree API? Stefan Because the tree implementation in ElementTree or other tree modules in Python require a lot of

Re: Brython - Python in the browser

2012-12-21 Thread Chris Angelico
On Fri, Dec 21, 2012 at 11:38 PM, Pierre Quentel pierre.quen...@gmail.com wrote: With the tree syntax proposed in Brython it would just be doc = DIV('hello '+B('world')) If pythonic means concise and readable, which one is more pythonic ? Pythonic also means: If the implementation is hard to

Re: Brython - Python in the browser

2012-12-21 Thread Duncan Booth
Pierre Quentel pierre.quen...@gmail.com wrote: If that's your intention, then instead of coming up with something totally new, unpythonic and ugly, why not take the normal Python route and implement a subset of the ElementTree API? Stefan Because the tree implementation in ElementTree or

Re: Brython - Python in the browser

2012-12-21 Thread Stefan Behnel
Duncan Booth, 21.12.2012 14:14: Pierre Quentel wrote: If that's your intention, then instead of coming up with something totally new, unpythonic and ugly, why not take the normal Python route and implement a subset of the ElementTree API? Because the tree implementation in ElementTree or

Re: redirect standard output problem

2012-12-21 Thread Hans Mulder
On 21/12/12 06:23:18, iMath wrote: redirect standard output problem why the result only print A but leave out 888 ? import sys class RedirectStdoutTo: def __init__(self, out_new): self.out_new = out_new def __enter__(self): sys.stdout = self.out_new def

Re: compile python 3.3 with bz2 support on RedHat 5.5

2012-12-21 Thread Chris Angelico
On Fri, Dec 21, 2012 at 5:35 PM, Isml 76069...@qq.com wrote: By the way, RedHat 5.5 has a built-in python 2.4.3. Would it be a problem? You may want to consider using 'make altinstall' rather than 'make install'. That way, you don't stomp all over the system Python (so system scripts that expect

Re: how to detect the encoding used for a specific text data ?

2012-12-21 Thread Dave Angel
On 12/21/2012 07:38 AM, Oscar Benjamin wrote: snip On a related note: how to answer question with no context on mailing list? Depends on how you're reading/responding. I'll assume you're using an email client like Thunderbird, and that you do NOT subscribe in digest form. Most general way

Re: redirect standard output problem

2012-12-21 Thread Dave Angel
On 12/21/2012 12:23 AM, iMath wrote: redirect standard output problem why the result only print A but leave out 888 ? import sys class RedirectStdoutTo: def __init__(self, out_new): self.out_new = out_new def __enter__(self): sys.stdout = self.out_new def

Re: Build and runtime dependencies

2012-12-21 Thread Chen Qi
? 2012?12?21? 06:11, Jack Silver ??: I have two Linux From Scratch machine. On the first one (the server), I want to build install python 3.3.0 in a shared filesystem and access it from the second one (the client). These machines are fairly minimal in term of the number of software

HTML - WEB FORM running PYTHON SCRIPT

2012-12-21 Thread Dimitrios Xenakis
Hi there, i would like to ask.. i need to create an html webpage and bring that live on the internet via my host service, and i would also like a conversion calculator being showed on this website. Concersion tool such as Cels. to Kelvin. I have the calculation formula and i would like to

Re: HTML - WEB FORM running PYTHON SCRIPT

2012-12-21 Thread Chris Angelico
On Sat, Dec 22, 2012 at 2:00 AM, Dimitrios Xenakis gouzouna...@hotmail.com wrote: Hi there, i would like to ask.. i need to create an html webpage and bring that live on the internet via my host service, and i would also like a conversion calculator being showed on this website. Concersion

Re: Brython - Python in the browser

2012-12-21 Thread Pierre Quentel
Pythonic also means: If the implementation is hard to explain, it's a bad idea. What, exactly, does the sum of a string and a bolded string produce? Can you explain that easily and clearly? Yes : a+b returns the string a+str(b) It is exactly what you get in CPython with class B: ...

Re: Brython - Python in the browser

2012-12-21 Thread Chris Angelico
On Sat, Dec 22, 2012 at 2:36 AM, Pierre Quentel pierre.quen...@gmail.com wrote: doc.add(Tag('DIV').add('hello ').add(Tag('B').add('world'))) No, with this syntax, the result of Tag('B').add('world') is below 'hello' in the tree structure, not at the same level (just below Tag('DIV')) as it

Re: Strange effect with import

2012-12-21 Thread Jens Thoms Toerring
Hans Mulder han...@xs4all.nl wrote: Maybe something like this: class ReqHandler(SocketServer.BaseRequestHandler): def __init__(self, request, client_address, server, ham, spam) super(SocketServer, self).__init__( self, request, client_address, server)

Second try: non-blocking subprocess pipe and Tkinter in 2.7

2012-12-21 Thread Kevin Walzer
Yesterday I posted a question about keeping a Tkinter GUI during a long-running process, i.e. reading data from a pipe via the subprocess module. I think that question did not quite get at the heart of the issue because it assumed that Python, like Tcl which underlies Tkinter, supports

Re: Build and runtime dependencies

2012-12-21 Thread Chris Angelico
On Fri, Dec 21, 2012 at 9:11 AM, Jack Silver jacksilver...@gmail.com wrote: On the first one (the server), I want to build install python 3.3.0 in a shared filesystem and access it from the second one (the client). Correct me if I'm wrong, but my understanding of your description is this:

Re: Brython - Python in the browser

2012-12-21 Thread Pierre Quentel
= is a comparison expression operator, which is completely different. It is just wrong for this usage. I am 99.9% sure you will come to regret it eventually. Better to make the change now than in Brython2 or Brython3. I am 99.99% sure of the contrary, having used this syntax for more than 3

Re: Second try: non-blocking subprocess pipe and Tkinter in 2.7

2012-12-21 Thread Peter Otten
Kevin Walzer wrote: Yesterday I posted a question about keeping a Tkinter GUI during a long-running process, i.e. reading data from a pipe via the subprocess module. I think that question did not quite get at the heart of the issue because it assumed that Python, like Tcl which underlies

Re: Brython - Python in the browser

2012-12-21 Thread Pierre Quentel
Hmm. So when that gets added into a DIV, it has to get parsed for tags? How does this work? This seems very odd. I would have expected it to remain as DOM objects. In DIV(child) : - if child is a string, integer or float, a text node is added (addChild) to the DIV element, with the string

Re: Brython - Python in the browser

2012-12-21 Thread Stefan Behnel
Pierre Quentel, 21.12.2012 17:16: So when you see a line like doc = DIV('hello') it should be obvious that you are not *comparing* doc and DIV('hello'), because if it was the case, the line would do nothing Yep, that's one of the main concerns - it looks like useless code, which is

Re: Pass and return

2012-12-21 Thread Mitya Sirenef
On 12/21/2012 03:52 AM, Duncan Booth wrote: Mitya Sirenef msire...@lightbird.net wrote: On 12/21/2012 12:23 AM, iMath wrote: Pass and return Are these two functions the same ? def test(): return def test(): pass From the point of style, of course, the latter is much

Re: help with making my code more efficient

2012-12-21 Thread larry.mart...@gmail.com
On Thursday, December 20, 2012 8:31:18 PM UTC-7, Dave Angel wrote: On 12/20/2012 08:46 PM, larry.mart...@gmail.com wrote: On Thursday, December 20, 2012 6:17:04 PM UTC-7, Dave Angel wrote: snip Of course it's a fragment - it's part of a large program and I was just showing the

Re: Brython - Python in the browser

2012-12-21 Thread Ian Kelly
On Fri, Dec 21, 2012 at 9:16 AM, Pierre Quentel pierre.quen...@gmail.com wrote: = is a comparison expression operator, which is completely different. It is just wrong for this usage. I am 99.9% sure you will come to regret it eventually. Better to make the change now than in Brython2 or

RE: Question regarding mod_python and a script for web.

2012-12-21 Thread John Pennington
Hi Ion thanks a bunch, for responding. The problem we seem to be running into is that When we change the forms to a post instead of a get I cannot pick up the post values using cgi: page_info = cgi.FieldStorage() is this a limitation of mod_python? Thanks. john Date: Thu, 20 Dec 2012

Re: help with making my code more efficient

2012-12-21 Thread larry.mart...@gmail.com
On Friday, December 21, 2012 10:57:19 AM UTC-7, larry@gmail.com wrote: On Thursday, December 20, 2012 8:31:18 PM UTC-7, Dave Angel wrote: On 12/20/2012 08:46 PM, larry.mart...@gmail.com wrote: On Thursday, December 20, 2012 6:17:04 PM UTC-7, Dave Angel wrote: snip Of course

Re: Brython - Python in the browser

2012-12-21 Thread Pierre Quentel
The interpreter, though, will be more than happy to treat that as a comparison if the LHS is not the type that you think it is. For example, maybe you've added it to a string at some point, and now it's a string instead of an element. I guess that since doc is made a keyword, that probably

Re: Brython - Python in the browser

2012-12-21 Thread Ian Kelly
On Fri, Dec 21, 2012 at 1:59 PM, Pierre Quentel pierre.quen...@gmail.com wrote: By the way, what is Brython actually doing when you append a child to the document itself like that? Usually I would expect a div to be appended to the body or to another div. The above looks like it would attach

Scrapy/XPath help

2012-12-21 Thread Always Learning
Hello all. I'm new to Python, but have been playing around with it for a few weeks now, following tutorials, etc. I've spun off on my own and am trying to do some basic web scraping. I've used Firebug/View XPath in Firefox for some help with the XPaths, however, I still am receiving errors when

Re: Scrapy/XPath help

2012-12-21 Thread Grant Rettke
You might have better luck if you share the python make, version, os, error message, and some unit tests demonstrating what you expect. On Fri, Dec 21, 2012 at 3:21 PM, Always Learning cbrown...@ou.edu wrote: Hello all. I'm new to Python, but have been playing around with it for a few weeks

Re: Scrapy/XPath help

2012-12-21 Thread Always Learning
Sorry about that. I'm using Python 2.7.3, 32 bit one Windows 7. The errors I get are File C:\python27\lib\site-packages\scrapy-0.16.3-py2.7.egg\scrapy\selector\lxmlsel.py, line 47, in select raise ValueError(Invalid XPath: %s % xpath) exceptions.ValueError: Invalid XPath:

Re: Brython - Python in the browser

2012-12-21 Thread Chris Angelico
On Sat, Dec 22, 2012 at 3:36 AM, Pierre Quentel pierre.quen...@gmail.com wrote: Hmm. So when that gets added into a DIV, it has to get parsed for tags? How does this work? This seems very odd. I would have expected it to remain as DOM objects. In DIV(child) : - if child is a string, integer

Re: Brython - Python in the browser

2012-12-21 Thread Ian Kelly
On Fri, Dec 21, 2012 at 3:52 PM, Chris Angelico ros...@gmail.com wrote: On Sat, Dec 22, 2012 at 3:36 AM, Pierre Quentel pierre.quen...@gmail.com wrote: Hmm. So when that gets added into a DIV, it has to get parsed for tags? How does this work? This seems very odd. I would have expected it to

Re: Brython - Python in the browser

2012-12-21 Thread Amirouche Boubekki
Héllo, doc = 'blah blah xy: '+B('True!') I will surely backlog latter or some crytologist from the futur will do and he will surely agree about the fact something strange happened around december 2012. Sorry for that, that's me trying to be funny. Last time I checked DOM manipulation is not

Re: Brython - Python in the browser

2012-12-21 Thread Ian Kelly
On Fri, Dec 21, 2012 at 4:45 PM, Ian Kelly ian.g.ke...@gmail.com wrote: In Brython, the str builtin does not return strings? Oh, and repr is just a synonym of str, which makes it useless. -- http://mail.python.org/mailman/listinfo/python-list

Re: Brython - Python in the browser

2012-12-21 Thread Ian Kelly
On Fri, Dec 21, 2012 at 4:45 PM, Ian Kelly ian.g.ke...@gmail.com wrote: In my playing around with it just now, the addition doesn't seem to actually return a string. From the code, it appears that adding two nodes together *actually* returns a $AbstractTag object, which seems to be just a

Re: Pigeon Computer 0.1 Initial (BETA) release

2012-12-21 Thread Amirouche Boubekki
Héllo, 2012/12/22 Simon Forman forman.si...@gmail.com Pigeon Computer 0.1 Initial (BETA) release Summary The Pigeon Computer is a simple but sophisticated system for learning and exploring the fundamentals of computers and programming. It is written to support a course or

Re: Brython - Python in the browser

2012-12-21 Thread Chris Angelico
On Sat, Dec 22, 2012 at 10:57 AM, Ian Kelly ian.g.ke...@gmail.com wrote: From the code, it appears that adding two nodes together *actually* returns a $AbstractTag object, which seems to be just a container for a list of child nodes with no parent, that automagically gets removed from the

Re: Brython - Python in the browser

2012-12-21 Thread Chris Angelico
On Sat, Dec 22, 2012 at 10:50 AM, Amirouche Boubekki amirouche.boube...@gmail.com wrote: Last time I checked DOM manipulation is not the primary way for js devs to do DOM manipulation anymore, or is it ? Javascript template engines do DOM manipulation but this is almost invisible for the

Re: Brython - Python in the browser

2012-12-21 Thread Steven D'Aprano
On Fri, 21 Dec 2012 12:25:01 +0100, Stefan Behnel wrote: If that's your intention, then instead of coming up with something totally new, unpythonic and ugly, why not take the normal Python route and implement a subset of the ElementTree API? Yo mean something old, unpythonic and ugly? :-P

Re: Second try: non-blocking subprocess pipe and Tkinter in 2.7

2012-12-21 Thread Terry Reedy
On 12/21/2012 10:52 AM, Kevin Walzer wrote: Yesterday I posted a question about keeping a Tkinter GUI during a long-running process, i.e. reading data from a pipe via the subprocess module. I think that question did not quite get at the heart of the issue because it assumed that Python, like Tcl

Re: Scrapy/XPath help

2012-12-21 Thread Dave Angel
On 12/21/2012 04:58 PM, Always Learning wrote: Sorry about that. I'm using Python 2.7.3, 32 bit one Windows 7. The errors I get are File C:\python27\lib\site-packages\scrapy-0.16.3-py2.7.egg\scrapy\selector\lxmlsel.py, line 47, in select raise ValueError(Invalid XPath: %s % xpath)

Re: help with making my code more efficient

2012-12-21 Thread Dave Angel
On 12/21/2012 03:36 PM, larry.mart...@gmail.com wrote: On Friday, December 21, 2012 10:57:19 AM UTC-7, larry@gmail.com wrote: snip Didn't know about bisect. Thanks. I thought it would be my savior for sure. But unfortunaly when I added that, it blows up with out of memory. The out of

Re: help with making my code more efficient

2012-12-21 Thread larry.mart...@gmail.com
On Friday, December 21, 2012 8:19:37 PM UTC-7, Dave Angel wrote: On 12/21/2012 03:36 PM, larry.mart...@gmail.com wrote: On Friday, December 21, 2012 10:57:19 AM UTC-7, larry@gmail.com wrote: snip Didn't know about bisect. Thanks. I thought it would be my savior for sure. But

Re: help with making my code more efficient

2012-12-21 Thread Dave Angel
On 12/21/2012 11:47 PM, larry.mart...@gmail.com wrote: On Friday, December 21, 2012 8:19:37 PM UTC-7, Dave Angel wrote: On 12/21/2012 03:36 PM, larry.mart...@gmail.com wrote: snip I think you're misunderstanding what I need to do. I have a set of rows from the database with tool, time, and

[issue14373] C implementation of functools.lru_cache

2012-12-21 Thread Alexey Kachayev
Alexey Kachayev added the comment: Serhiy, thank you for review. Working further on fixes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: Many algorithms that require a sequence only need __len__ and __getitem__. The term sequence is used to distinguish such containers from mere iterables that only provide __iter__ (and may be consumed by iteration). The glossary entry covers this use of the

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: As Amaury notes, implicit ducktyping is not feasible for sequences or mappings, as the method names overlap - you have to add explicit semantic information to say which kind of container you're implementing. -- ___

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread INADA Naoki
INADA Naoki added the comment: Thanks, Nick. I see that the sequence doesn't have strict definition. Though, I think collections.abc module's document should describe this manner. For example: But checking type with these abc may be too strict for most case. For example, some user defined

[issue16694] Add pure Python operator module

2012-12-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: About length_hint(): I were mean something like (even explicit getattr() not needed): try: hint = type(obj).__length_hint__ except AttributeError: return default try: val = hint(obj) except TypeError: return default ... This is a little

[issue16735] zipfile.is_zipfile wrongly recognizes non-zip as zip

2012-12-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: zipinfo detects /usr/bin/zip as a zip archive too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16735 ___

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: No, that runs counter to the purpose of ABCs. If you have a type that is good enough for your purposes, then you can just register it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16728

[issue16742] PyOS_Readline drops GIL and calls PyOS_StdioReadline, which isn't thread safe

2012-12-21 Thread Trent Nelson
New submission from Trent Nelson: Relevant thread: http://mail.python.org/pipermail/python-dev/2012-December/123225.html PyOS_StdioReadline features numerous calls that require the GIL to be held. Ideally, the GIL drop-take should be moved closer to the actual underlying read system call.

[issue16480] pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin, lib} to virtualenv/{bin, lib}

2012-12-21 Thread Matthias Klose
Matthias Klose added the comment: fixed in experimental, pyvenv's are now handled the same way as python-virtualenvs. closing the issue here. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue16365] IDLE for Windows 8

2012-12-21 Thread amundell
amundell added the comment: I had a similar issue in Win8, but occured after installing another program. My issue was related to the TCL_Library environment variable. If it is related to this error it can be confirmed by opening the command prompt, changing dir to cd c:\python33\ and typing

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread INADA Naoki
INADA Naoki added the comment: So, I feel the 2nd meaning of sequence should be collections.abc.(Mutable)Sequence. sequence types in stdlib have richer API then the ABC. (e.g. comparison, +, *, etc...) They are APIs that sequence may have but not APIs makes the type sequence. --

[issue16728] Missing cross-reference in sequence glossary entry

2012-12-21 Thread INADA Naoki
INADA Naoki added the comment: And nice symmetry with mapping entry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16728 ___ ___

[issue16743] mmap accepts files 1 GB, but processes only 1 GB

2012-12-21 Thread Marc Schlaich
New submission from Marc Schlaich: Platform: Windows 7 64 bit Interpreter: Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit Intel)] on win32 Here are the steps to reproduce: 1. Create a big file (5 GB): with open('big', 'wb') as fobj: for _ in xrange(1024 * 1024 * 5):

[issue16731] xxlimited/xxmodule docstrings ambiguous

2012-12-21 Thread Daniel Shahaf
Daniel Shahaf added the comment: Re the review, yes there is a typo in the comment: the comment in xxlimited.c should say xxmodule.c rather than xxlimited.c. (Got a traceback from the review app) -- ___ Python tracker rep...@bugs.python.org

[issue16744] sys.path.append causes wrong behaviour

2012-12-21 Thread rappy
New submission from rappy: In bug.py print gives ['C:\\Users\\Glenn\\Desktop', 'C:\\Windows\\system32\\python27.zip', C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages',

[issue16744] sys.path.append causes wrong behaviour

2012-12-21 Thread Christian Heimes
Christian Heimes added the comment: You have to either quote the backslashes or use raw strings: \a '\x07' \\a '\\a' r\a '\\a' -- nosy: +christian.heimes resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue16745] Hide symbols in _decimal.so

2012-12-21 Thread Stefan Krah
New submission from Stefan Krah: This issue is for the _decimal specific parts from #4555. The patch depends on _Pragma (C99) and gcc = 4.0 for the contents of the pragma. I think it will work for clang, too. Should the libmpdec API symbols (i.e. the ones starting with mpd_*) be hidden for

[issue16737] Different behaviours in script run directly and via runpy.run_module

2012-12-21 Thread Éric Araujo
Éric Araujo added the comment: FTR, distutils only recommends and supports running “python setup.py”, i.e. relative path in the script’s directory. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16737

[issue16713] tel URIs should support params

2012-12-21 Thread Éric Araujo
Éric Araujo added the comment: It’s easy sure, but I think it’s still a bug :) -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16713 ___

[issue16731] xxlimited/xxmodule docstrings ambiguous

2012-12-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16731 ___ ___

[issue16745] Hide symbols in _decimal.so

2012-12-21 Thread Stefan Krah
Stefan Krah added the comment: Adding everyone from issue #4555, in case you can think of a different (portable) solution for hiding symbols (with minimal effort). -- nosy: +christian.heimes, dmalcolm, doko, lemburg, loewis, pitrou ___ Python tracker

[issue16694] Add pure Python operator module

2012-12-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16694 ___ ___ Python-bugs-list

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-21 Thread Éric Araujo
Éric Araujo added the comment: Oops, sorry I slipped :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16651 ___ ___ Python-bugs-list mailing

[issue16745] Hide symbols in _decimal.so

2012-12-21 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16745 ___ ___ Python-bugs-list

[issue16737] Different behaviours in script run directly and via runpy.run_module

2012-12-21 Thread Vinay Sajip
Vinay Sajip added the comment: FTR, distutils only recommends and supports running “python setup.py”, i.e. relative path in the script’s directory. Right, but this behaviour is seen even when the script is in the current directory. -- ___ Python

[issue14373] C implementation of functools.lru_cache

2012-12-21 Thread Alexey Kachayev
Alexey Kachayev added the comment: Fixed my previous patch according to all comments from review, except removing keyword arguments from lru_cache_new function. -- Added file: http://bugs.python.org/file28386/14373.v3.diff ___ Python tracker

[issue16745] Hide symbols in _decimal.so

2012-12-21 Thread Meador Inge
Meador Inge added the comment: Personally I prefer using attributes instead of pragmas. The GCC manual recommends such as well. There are also other sources in Modules/* that use '__attribute__ ((visibility (hidden)))'. Namely ctypes and zlib. I can understand that it is more work, but I

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-21 Thread Meador Inge
Meador Inge added the comment: I noticed functools in the list. issue14373 was opened somewhat recently to reimplement functools.lru_cache in C. This issue seems to be promoting have more things implemented in pure Python. Someone involved in this issue might want to weigh in on issue14373

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-21 Thread Philip Jenvey
Philip Jenvey added the comment: The guidelines for this are in PEP 399. Basically, adding 'accelerated' implementations when necessary isn't a bad thing as long as there are pure Python equivalents (unless it's a special case) and both are tested. issue14373's latest patch seems to be

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-21 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops. int.from_bytes doesn't exist in Python 2.7. -- Added file: http://bugs.python.org/file28387/pyc_mtime4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863

[issue16745] Hide symbols in _decimal.so

2012-12-21 Thread Stefan Krah
Stefan Krah added the comment: Meador Inge rep...@bugs.python.org wrote: Personally I prefer using attributes instead of pragmas. The GCC manual recommends such as well. I followed www.akkadia.org/drepper/dsohowto.pdf . Drepper seems to be fine with the use of pragmas in internal headers.

[issue16694] Add pure Python operator module

2012-12-21 Thread Zachary Ware
Zachary Ware added the comment: Here's another new version. Changes include: - Address Serhiy's Rietveld comments - Fix length_hint() the way it was meant to be fixed last time. - Remove __getitem__ check on 'b' in concat and iconcat. More notes on this below. - Fix methodcaller as Serhiy

[issue16745] Hide symbols in _decimal.so

2012-12-21 Thread Meador Inge
Meador Inge added the comment: Ah, I missed how big of a line range these pragmas are covering when I scanned the patch before. In that case, I agree with the current patch. -- ___ Python tracker rep...@bugs.python.org

[issue16746] clarify what should be sent to peps@

2012-12-21 Thread Chris Jerdonek
New submission from Chris Jerdonek: Currently, PEP 1 can be read to mean that p...@python.org should be CC'ed on all e-mails related to PEPs. However, this isn't the intent because, for example, it is okay to have discussions about PEPs on python-dev or python-ideas without involving

[issue16746] clarify what should be sent to peps@

2012-12-21 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file28389/issue-16746-1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16746

[issue16743] mmap accepts files 1 GB, but processes only 1 GB

2012-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib), Windows -None nosy: +brian.curtin, tim.golden versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16743

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm involved in both issues and I think it's good to have so much simple Python implementations as possible and to have C accelerators for any performance critical code. -- ___ Python tracker

[issue16694] Add pure Python operator module

2012-12-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good work, Zachary. I have no more nitpicks for you. ;) LGTM. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16694

[issue16496] Simplify and optimize random_seed()

2012-12-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset db75553ff333 by Mark Dickinson in branch 'default': Simplify random_seed to use _PyLong_AsByteArray. Closes issue #16496. http://hg.python.org/cpython/rev/db75553ff333 -- nosy: +python-dev ___ Python

[issue16496] Simplify and optimize random_seed()

2012-12-21 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16496 ___

[issue16694] Add pure Python operator module

2012-12-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: One comment to a committer. Don't forget to run `hg rename Modules/operator.c Modules/_operator.c` before applying the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16694

[issue16694] Add pure Python operator module

2012-12-21 Thread Zachary Ware
Zachary Ware added the comment: Nits are no fun; thank you for picking them, Serhiy ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16694 ___

[issue14373] C implementation of functools.lru_cache

2012-12-21 Thread Alexey Kachayev
Alexey Kachayev added the comment: Added additional Py_DECREF(s) for key and value. -- Added file: http://bugs.python.org/file28390/14373.v4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

[issue16745] Hide symbols in _decimal.so

2012-12-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 24f6c6f3b7bf by Stefan Krah in branch '3.3': Issue #16745: Hide a couple of symbols by making them local. http://hg.python.org/cpython/rev/24f6c6f3b7bf -- nosy: +python-dev ___ Python tracker

  1   2   >