Sphinx 1.0 beta 1 and 0.6.6 released

2010-05-25 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm proud to announce the release of Sphinx 1.0 beta 1, a preview of the new and shiny 1.0, and Sphinx 0.6.6, a bugfix-only release in the 0.6 series. What is it? === Sphinx is a tool that makes it easy to create intelligent and

Re: Question on Python Function

2010-05-25 Thread Kushal Kumaran
On Tue, May 25, 2010 at 3:38 AM, joy99 subhakolkata1...@gmail.com wrote: snip Dear Vlastimir, As pointed out by Alister, I can print the values of function1 and function2 with the help of another function3, but my target is to call the add value of function1 and mult value of function2 in a

Re: Generator expressions vs. comprehensions

2010-05-25 Thread Peter Otten
Michele Simionato wrote: On May 25, 12:47 am, Carl Banks pavlovevide...@gmail.com wrote: The situation here is known. It can't be corrected, even in Python 3, without modifying iterator protocol to tie StopIteration to a specific iterator. This is possible and might be worth it to avoid

Re: Question on Python Function

2010-05-25 Thread Peter Otten
Kushal Kumaran wrote: On Tue, May 25, 2010 at 3:38 AM, joy99 subhakolkata1...@gmail.com wrote: snip Dear Vlastimir, As pointed out by Alister, I can print the values of function1 and function2 with the help of another function3, but my target is to call the add value of function1 and mult

Re: Generator expressions vs. comprehensions

2010-05-25 Thread Michele Simionato
On May 25, 9:08 am, Peter Otten __pete...@web.de wrote: But the list comprehension is already non-equivalent to the for loop as the loop variable isn't leaked anymore. We do have three similar constructs with subtle differences. I think not turning the list-comp into syntactic sugar for

Re: function that counts...

2010-05-25 Thread Jean-Michel Pichavant
superpollo wrote: Jean-Michel Pichavant ha scritto: Jerry Hill wrote: On Wed, May 19, 2010 at 3:58 PM, superpollo ute...@esempio.net wrote: ... how many positive integers less than n have digits that sum up to m: ... any suggestion for pythonizin' it? This is how I would do

asyncore loop and cmdloop problem

2010-05-25 Thread kak...@gmail.com
Hi to all, i'm creating a command line application using asyncore and cmd. At if __name__ == '__main__': import socket args = sys.argv[1:] if not args: print Usage: %s querystring % sys.argv[0] sys.exit(0) address = ('localhost', 0) # let the kernel give us a

Help regarding XML file manipulation

2010-05-25 Thread Salil GK
Hello I need to make a quick prototype to process some xml file. I found xml.dom.minidom much handy and I can get information from the xml file. But I need to update a filed in the xml file and save the file. I couldn't find a way to do that. Could some one please help me on this. Basically

how to run brill tagger on urdu corpus?

2010-05-25 Thread fari
I like to run brill demo function with urdu pos tagged i have urdu corpus reader and a POS tagged file can you help me. 1) how and where i need to define templates for urdu . Is template dat are given with nltk(brill) are compatible to run with urdu. 2) If i want to run brill demo function on

Re: asyncore loop and cmdloop problem

2010-05-25 Thread Michele Simionato
On May 25, 10:42 am, kak...@gmail.com kak...@gmail.com wrote: Hi to all, i'm creating a command line application using asyncore and cmd. At if __name__ == '__main__':     import socket     args = sys.argv[1:]     if not args:         print Usage: %s querystring % sys.argv[0]        

Re: Reading data from a Microsoft Access 2003 database

2010-05-25 Thread Jimoid
This is perfect if the python ODBC driver can read the .mdb without the need for it to be running elsewhere. Thanks all for your help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help regarding XML file manipulation

2010-05-25 Thread Shashank Singh
On Tue, May 25, 2010 at 2:24 PM, Salil GK sali...@gmail.com wrote: Hello I need to make a quick prototype to process some xml file. I found xml.dom.minidom much handy and I can get information from the xml file. But I need to update a filed in the xml file and save the file. I couldn't

Re: asyncore loop and cmdloop problem

2010-05-25 Thread kak...@gmail.com
On May 25, 4:55 am, Michele Simionato michele.simion...@gmail.com wrote: On May 25, 10:42 am, kak...@gmail.com kak...@gmail.com wrote: Hi to all, i'm creating a command line application using asyncore and cmd. At if __name__ == '__main__':     import socket     args = sys.argv[1:]

Re: asyncore loop and cmdloop problem

2010-05-25 Thread Giampaolo Rodolà
2010/5/25 Michele Simionato michele.simion...@gmail.com: On May 25, 10:42 am, kak...@gmail.com kak...@gmail.com wrote: Hi to all, i'm creating a command line application using asyncore and cmd. At if __name__ == '__main__':     import socket     args = sys.argv[1:]     if not args:      

Re: asyncore loop and cmdloop problem

2010-05-25 Thread Michele Simionato
On May 25, 12:03 pm, Giampaolo Rodolà g.rod...@gmail.com wrote: Too bad cmdloop() doesn't provide an argument to return immediately. Why don't you submit this patch on the bug tracker? --- Giampaolohttp://code.google.com/p/pyftpdlibhttp://code.google.com/p/psutil Because it is not a bug, cmd

Re: asyncore loop and cmdloop problem

2010-05-25 Thread Giampaolo Rodolà
2010/5/25 Michele Simionato michele.simion...@gmail.com: On May 25, 12:03 pm, Giampaolo Rodolà g.rod...@gmail.com wrote: Too bad cmdloop() doesn't provide an argument to return immediately. Why don't you submit this patch on the bug tracker? ---

Re: [wxPython-users] wxPython 2.8.11.0 release

2010-05-25 Thread Tom Browder
On Mon, May 24, 2010 at 18:38, Robin Dunn ro...@alldunn.com wrote: ... The 2.8.11.0 release of wxPython is now available for download at http://wxpython.org/download.php. This release adds Python 2.7 builds, PySlices, new pubsub implementation, lots of updates to AGW, and lots of bugs fixed.  

Re: function that counts...

2010-05-25 Thread superpollo
Jean-Michel Pichavant ha scritto: superpollo wrote: Jean-Michel Pichavant ha scritto: Jerry Hill wrote: On Wed, May 19, 2010 at 3:58 PM, superpollo ute...@esempio.net wrote: ... how many positive integers less than n have digits that sum up to m: ... any suggestion for pythonizin'

Re: asyncore loop and cmdloop problem

2010-05-25 Thread kak...@gmail.com
On May 25, 6:48 am, Giampaolo Rodolà g.rod...@gmail.com wrote: 2010/5/25 Michele Simionato michele.simion...@gmail.com: On May 25, 12:03 pm, Giampaolo Rodolà g.rod...@gmail.com wrote: Too bad cmdloop() doesn't provide an argument to return immediately. Why don't you submit this patch on

Re: A Quick MySQL Question

2010-05-25 Thread Victor Subervi
On Tue, May 25, 2010 at 3:50 AM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote: On Mon, 24 May 2010 13:37:58 -0400, Victor Subervi victorsube...@gmail.com declaimed the following in Parameterized queries process the parameters to ensure that they are safe for use in the SQL statement.

to prevent reveres engineering for Python

2010-05-25 Thread Sandy Ydnas
Agree, reveres engineering is crucial issuer for programming language but every executable file can be cracked, for example by using disassembler!!! For each weapon there is antiweapon, so is it possible to prevent reveres engineering when customer have access to executable made from

Re: asyncore loop and cmdloop problem

2010-05-25 Thread Michele Simionato
On May 25, 2:56 pm, kak...@gmail.com kak...@gmail.com wrote: Could you please provide me with a simple example how to do this with threads. I don't know where to put the cmdloop(). Please help, i' m so confused! Thank you What are you trying to do? Do you really need to use the standard

Re: asyncore loop and cmdloop problem

2010-05-25 Thread kak...@gmail.com
On May 25, 5:23 pm, Michele Simionato michele.simion...@gmail.com wrote: On May 25, 2:56 pm, kak...@gmail.com kak...@gmail.com wrote: Could you please provide me with a simple example how to do this with threads. I don't know where to put the cmdloop(). Please help, i' m so confused!

Re: to prevent reveres engineering for Python

2010-05-25 Thread Adam Tauno Williams
On Tue, 2010-05-25 at 18:49 +0500, Sandy Ydnas wrote: Agree, reveres engineering is crucial issuer for programming language but every executable file can be cracked, for example by using disassembler!!! For each weapon there is antiweapon, so is it possible to prevent reveres engineering

Re: asyncore loop and cmdloop problem

2010-05-25 Thread kak...@gmail.com
On May 25, 5:47 pm, kak...@gmail.com kak...@gmail.com wrote: On May 25, 5:23 pm, Michele Simionato michele.simion...@gmail.com wrote: On May 25, 2:56 pm, kak...@gmail.com kak...@gmail.com wrote: Could you please provide me with a simple example how to do this with threads. I don't

Re: Generator expressions vs. comprehensions

2010-05-25 Thread Terry Reedy
On 5/25/2010 3:08 AM, Peter Otten wrote: Michele Simionato wrote: I think not turning the list-comp into syntactic sugar for list(genexp) in py3 is a missed opportunity. Implementing it that way was tried but was much slower than the current implementation. If one uses StopIteration as it

Re: to prevent reveres engineering for Python

2010-05-25 Thread Terry Reedy
On 5/25/2010 9:49 AM, Sandy Ydnas wrote: is it possible to prevent reveres engineering when customer have access to executable made from Python code??? If there is, it is a trade secrets that you will not be able to reverse engineer ;-). --

Re: Generator expressions vs. comprehensions

2010-05-25 Thread Terry Reedy
On 5/25/2010 1:09 PM, Terry Reedy wrote: On 5/25/2010 3:08 AM, Peter Otten wrote: Michele Simionato wrote: I think not turning the list-comp into syntactic sugar for list(genexp) in py3 is a missed opportunity. Implementing it that way was tried but was much slower than the current

Troubles with python internationalization

2010-05-25 Thread Pascal Chambon
Hello I'm studying the migration of my website (mixed english and french languages...) to a properly localized architecture. From what I've read so far, using translation tags (or quick phrases) in the code, and translating them to every target language (including english) sounds a better

Another Little MySQL Problem

2010-05-25 Thread Victor Subervi
Hi; I have this code: clientCursor.execute('select ID from %s' % (personalDataTable)) upds = [itm[0] for itm in clientCursor] print input type='hidden' name='upds' value='%s' / % upds The problem is that the values passed are 1L, 2L When I retrieve them on the other end and try

Legal Point Dhaka bangladesh

2010-05-25 Thread Minhaz Rahman
http://www.advocatemizan.com -- http://mail.python.org/mailman/listinfo/python-list

speed up a numpy code with huge array

2010-05-25 Thread Alexzive
Hello Pythonguys! is there a way to improve the performance of the attached code ? it takes about 5 h on a dual-core (using only one core) when len(V) ~1MIL. V is an array which is supposed to store all the volumes of tetrahedral elements of a grid whose coord. are stored in NN (accessed trough

UnicodeDecodeError having fetch web page

2010-05-25 Thread Barry
Hi, The code below is giving me the error: Traceback (most recent call last): File C:\Users\Administratör\Desktop\test.py, line 4, in module UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: unexpected code byte What am i doing wrong? Thanks, Barry request =

Re: speed up a numpy code with huge array

2010-05-25 Thread Vincent Davis
It makes me think you are filling you available memory and using the disk as cache. If this happens things will get real slow. You might take a look at your system resources when this is running. I don't have much else to offer and could be completely wrong. Vincent On Tue, May 25, 2010 at 1:05

Re: UnicodeDecodeError having fetch web page

2010-05-25 Thread Philip Semanchuk
On May 25, 2010, at 3:13 PM, Barry wrote: Hi, The code below is giving me the error: Traceback (most recent call last): File C:\Users\Administratör\Desktop\test.py, line 4, in module UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: unexpected code byte What am i

Re: to prevent reveres engineering for Python

2010-05-25 Thread Lie Ryan
On 05/26/10 01:09, Adam Tauno Williams wrote: On Tue, 2010-05-25 at 18:49 +0500, Sandy Ydnas wrote: Agree, reveres engineering is crucial issuer for programming language but every executable file can be cracked, for example by using disassembler!!! For each weapon there is antiweapon, so

Re: to prevent reveres engineering for Python

2010-05-25 Thread D'Arcy J.M. Cain
On Wed, 26 May 2010 05:40:43 +1000 Lie Ryan lie.1...@gmail.com wrote: That merely gives a false sense of security. If the program is decrypted in memory, you can easily make a memory dump to get the unencrypted program. If I am a competitor that can make economic advantage by cracking your

Re: Python-list Digest, Vol 80, Issue 223

2010-05-25 Thread Ian Kelly
On Tue, May 25, 2010 at 1:10 PM, python-list-requ...@python.org wrote: -- Forwarded message -- From: Terry Reedy tjre...@udel.edu To: python-l...@python.org Date: Tue, 25 May 2010 13:09:23 -0400 Subject: Re: Generator expressions vs. comprehensions On 5/25/2010 3:08 AM,

Re: UnicodeDecodeError having fetch web page

2010-05-25 Thread Barry
On 25 Maj, 21:39, Philip Semanchuk phi...@semanchuk.com wrote: On May 25, 2010, at 3:13 PM, Barry wrote: Hi, The code below is giving me the error: Traceback (most recent call last):  File C:\Users\Administratör\Desktop\test.py, line 4, in module UnicodeDecodeError: 'utf8' codec

Re: to prevent reveres engineering for Python

2010-05-25 Thread Grant Edwards
On 2010-05-25, D'Arcy J.M. Cain da...@druid.net wrote: On Wed, 26 May 2010 05:40:43 +1000 Lie Ryan lie.1...@gmail.com wrote: That merely gives a false sense of security. If the program is decrypted in memory, you can easily make a memory dump to get the unencrypted program. If I am a

Re: Python-list Digest, Vol 80, Issue 223

2010-05-25 Thread Chris Rebert
On Tue, May 25, 2010 at 1:01 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, May 25, 2010 at 1:10 PM,  python-list-requ...@python.org wrote: -- Forwarded message -- From: Terry Reedy tjre...@udel.edu To: python-l...@python.org Date: Tue, 25 May 2010 13:09:23 -0400 Subject: 

Re: UnicodeDecodeError having fetch web page

2010-05-25 Thread Peter Otten
Barry wrote: On 25 Maj, 21:39, Philip Semanchuk phi...@semanchuk.com wrote: On May 25, 2010, at 3:13 PM, Barry wrote: Hi, The code below is giving me the error: Traceback (most recent call last): File C:\Users\Administratör\Desktop\test.py, line 4, in module UnicodeDecodeError:

Re: UnicodeDecodeError having fetch web page

2010-05-25 Thread Rob Williscroft
Barry wrote in news:83dc485a-5a20-403b-99ee-c8c627bdbab3 @m21g2000vbr.googlegroups.com in gmane.comp.python.general: Hi, The code below is giving me the error: Traceback (most recent call last): File C:\Users\Administratör\Desktop\test.py, line 4, in module UnicodeDecodeError: 'utf8'

Re: UnicodeDecodeError having fetch web page

2010-05-25 Thread Philip Semanchuk
On May 25, 2010, at 4:00 PM, Barry wrote: On 25 Maj, 21:39, Philip Semanchuk phi...@semanchuk.com wrote: On May 25, 2010, at 3:13 PM, Barry wrote: Hi, The code below is giving me the error: Traceback (most recent call last): File C:\Users\Administratör\Desktop\test.py, line 4, in

Re: to prevent reveres engineering for Python

2010-05-25 Thread Adam Tauno Williams
On Wed, 2010-05-26 at 05:40 +1000, Lie Ryan wrote: On 05/26/10 01:09, Adam Tauno Williams wrote: On Tue, 2010-05-25 at 18:49 +0500, Sandy Ydnas wrote: Agree, reveres engineering is crucial issuer for programming language but every executable file can be cracked, for example by using

Re: to prevent reveres engineering for Python

2010-05-25 Thread Daniel Fetchinson
is it possible to prevent reveres engineering when customer have access to executable made from Python code??? The only secure way of protecting your code is if you expose it as a web service or some such. (Yes, people can still crack your web server, but that's nitpicking :)) Cheers, Daniel

Re: to prevent reveres engineering for Python

2010-05-25 Thread Ben Finney
Terry Reedy tjre...@udel.edu writes: On 5/25/2010 9:49 AM, Sandy Ydnas wrote: is it possible to prevent reveres engineering when customer have access to executable made from Python code??? If there is, it is a trade secrets that you will not be able to reverse engineer ;-). +1 QOTW --

Re: asyncore loop and cmdloop problem

2010-05-25 Thread exarkun
On 04:31 pm, kak...@gmail.com wrote: On May 25, 5:47�pm, kak...@gmail.com kak...@gmail.com wrote: On May 25, 5:23�pm, Michele Simionato michele.simion...@gmail.com wrote: On May 25, 2:56�pm, kak...@gmail.com kak...@gmail.com wrote: Could you please provide me with a simple example how to

Re: function that counts...

2010-05-25 Thread Bryan
Raymond Hettinger wrote: If speed is important, the global lookups can be localized: def prttn(m, n, map=itertools.imap, int=int, str=str, range=range):     return sum(m == sum(map(int, str(x))) for x in range(n)) That's just silly. If speed is important, we abandon the naive algorithm. --

Re: function that counts...

2010-05-25 Thread Bryan
Jean-Michel Pichavant wrote: I still don't see how many positive integers less than n have digits that sum up to m makes it a partition though if that what prttn means. Surely because I miss the context. A partition of a positive integer m is an unordered collection of positive integers that

Need some Python 3 help

2010-05-25 Thread Paul McGuire
I was teetering on the brink of releasing Pyparsing 1.5.3 (with some nice new examples and goodies), when I saw that I had recently introduced a bug in the Python 3 compatible version. Here is the stacktrace as reported on SF: Traceback (most recent call last): File testcase.py, line 11, in

Re: Need some Python 3 help

2010-05-25 Thread Benjamin Peterson
Paul McGuire ptmcg at austin.rr.com writes: In this section of code, instring is a string, loc is an int, and wt is a string. Any clues why instring[loc] would be evaluating as int? (I am unfortunately dependent on the kindness of strangers when it comes to testing my Python 3 code, as I

Re: Need some Python 3 help

2010-05-25 Thread Bryan
Paul McGuire pt...@austin.rr.com wrote: [...] while loc instrlen and instring[loc] in wt: TypeError: 'in string' requires string as left operand, not int In this section of code, instring is a string, loc is an int, In Python 3, lots of things that used to return str now return bytes, and

Re: Need some Python 3 help

2010-05-25 Thread Paul McGuire
On May 25, 8:58 pm, Benjamin Peterson benja...@python.org wrote: Paul McGuire ptmcg at austin.rr.com writes: In this section of code, instring is a string, loc is an int, and wt is a string.  Any clues why instring[loc] would be evaluating as int? (I am unfortunately dependent on the

Re: Need some Python 3 help

2010-05-25 Thread Bryan
Paul McGuire wrote: Hrmm, I had a sneaking hunch this might be the issue.  But then I don't know how this code *ever* worked in Python 3, as it is chock full of indexed references into the string being parsed.  And yet, I've had other folks test and confirm that pyparsing_py3 *does* work on

Re: [wxPython-users] wxPython 2.8.11.0 release

2010-05-25 Thread Godson Gera
On Tue, May 25, 2010 at 5:08 AM, Robin Dunn ro...@alldunn.com wrote: Announcing -- The 2.8.11.0 release of wxPython is now available for download at http://wxpython.org/download.php. This release adds Python 2.7 builds, PySlices, new pubsub implementation, lots of updates to AGW,

Re: PEP 3119 ABC - And how I learned to love the Abstract Bomb

2010-05-25 Thread Pykler
On May 13, 9:30 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: You’re looking at it wrong. If you want to force people to do things in a certain way, use Java. Python is about enabling things, not forcing them. LoL :-) Don’t use subclassing. Instead, let the caller pass you

Re: speed up a numpy code with huge array

2010-05-25 Thread draco parvus
On May 26, 7:05 am, Alexzive zasaconsult...@gmail.com wrote: Hello Pythonguys! is there a way to improve the performance of the attached code ? it takes about 5 h on a dual-core (using only one core) when len(V) ~1MIL. V is an array which is supposed to store all the volumes of tetrahedral

[issue8787] warnings inside PyRun_SimpleString() display argv[1]

2010-05-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Yes, the warnings module tries to display the file name. Inside PyRun_SimpleString(), globals()['__name__'] == '__main__', and the warnings module supposes that argv[1] is the name of the script. I wonder whether __file__ would be

[issue8816] Add test cases for builtins

2010-05-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for these; I'll commit them later. Aren't the extra range tests that you added already in trunk? -- assignee: - mark.dickinson nosy: +mark.dickinson ___ Python tracker

[issue8787] warnings inside PyRun_SimpleString() display argv[1]

2010-05-25 Thread Sebastian
Sebastian python.10.webmas...@spamgourmet.com added the comment: Oh, damn. I really forgot the argv filename thing. Nevermind :) But back to topic. __file__ might be not the best solution for that. What does Python when embedded, and __file__ is not set? That can happen when the source of

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-05-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Remarks with the patch: - we need to keep the find_vcvarsall() backward compatible. e.g. define a default value for arch. - Next, since this fix is specific to 64bt and since *any value* in arch will be used as not 64 bits, I think the

[issue1289118] timedelta multiply and divide by floating point

2010-05-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: By the way, does your patch do the right thing for timedelta(microseconds=1) / -4.0 ? Because my Python code doesn't. :) [If n is negative, then the 2*r n condition in div_nearest should be 2*r n instead.] --

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Note that I am not suggesting passing anything to utcnow(). I would either leave it unchanged or make it always return aware datetime instances. The latter would break compatibility, though (especially given how comparison between naive and

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: added in r81513 Thanks all ! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8770 ___ ___

[issue8770] Make 'python -m sysconfig' print something useful

2010-05-25 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8770 ___

[issue1170] shlex have problems with parsing unicode

2010-05-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: shlex in 3.x works with Unicode strings. Is it still time to try to fix this bug for 2.7? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-05-25 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: I'm the author of the pyliblzma module, and if desired, I'd be happy to help out adapting pyliblzma for inclusion with python. Most of it's code is based on bz2module.c, so it shouldn't be very far away from being good 'nuff. What I

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-05-25 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: ps: pylzma uses the LZMA SDK, which is not what you want. pyliblzma (not the same module;) OTOH uses liblzma, which is the library used by xz/lzma utils You'll find it available at http://launchpad.net/pyliblzma --

[issue6715] xz compressor support

2010-05-25 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: Ooops, I kinda should've commented on this issue here in stead, rather than in issue5689, so I'll just copy-paste it here as well: I'm the author of the pyliblzma module, and if desired, I'd be happy to help out adapting pyliblzma

[issue8765] Tests unwillingly writing unicocde to raw streams

2010-05-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The 3.1 version does it correctly since issue7785, but this was not backported to 2.x. Python 3.x uses the y* format code to accept bytes and not unicode; this code does not exist in 2.x, and was replaced with s*, which accepts

[issue8616] Changes to content of Demo/turtle

2010-05-25 Thread Gregor Lingl
Gregor Lingl gregorli...@users.sourceforge.net added the comment: Yes, tdemo_raund_dance.py and tdemo_scribble.py definitely do not work with turtle.py from Python 2.7 :-( I submitted them expecting, that my backport of turtle.py from Python 3.1 to Python 2.7 would be accepted. But, alas, I was

[issue6715] xz compressor support

2010-05-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I will happily review any implementation, and I can help with inclusion into python trunk. ...the LGPL liblzma... Can you check which licences cover the different parts of the module? I think that you will have to contribute your

[issue8817] Expose round-to-nearest division algorithm in Objects/longobject.c

2010-05-25 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: The implementation of 'round' for Python integers uses a round-to-nearest form of divmod: a, b - q, r, where q is the nearest integer to a / b and r = a - b*q. This form of divmod would be useful elsewhere. In particular, it's currently

[issue1289118] timedelta multiply and divide by floating point

2010-05-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: There's a patch in issue 8817 that exposes a round-to-nearest form of divmod in a function called _PyLong_Divmod_Near; this would save on duplication of code. -- ___ Python tracker

[issue6715] xz compressor support

2010-05-25 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: ah, you're right, I forgot that the license for the library had changed as well (motivated by attempt of pleasing BSD people IIRC;), in the past the library was LGPL while only the 'xz' util was public domain.. For my code, feel

[issue6715] xz compressor support

2010-05-25 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list

[issue6641] strptime doesn't support %z format ?

2010-05-25 Thread dudologist
dudologist dudolog...@yahoo.co.nz added the comment: If %z works only in certain circumstances that behaviour should be documented wherever %z is referred to. -- nosy: +dudologist ___ Python tracker rep...@bugs.python.org

[issue1289118] timedelta multiply and divide by floating point

2010-05-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: By the way, does your patch do the right thing for timedelta(microseconds=1) / -4.0 No. timedelta(microseconds=1) / -4.0 datetime.timedelta(-1, 86399, 99) (I just copied your python algorithm ...) I will merge

[issue8653] urlparse.urlparse/urlsplit doc missing

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: Maybe he's referring to the fact that 'default_scheme' is referenced in the docs but in fact the parameter name is 'scheme'? -- nosy: +adamnelson ___ Python tracker rep...@bugs.python.org

[issue8143] urlparse has a duplicate of urllib.unquote

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: I would vote to close this and focus any code cleanliness work on 3.x. The deep import is more trouble than it's worth. -- nosy: +adamnelson ___ Python tracker rep...@bugs.python.org

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
New submission from AdamN a...@varud.com: urlsplit and urlparse place the host into the path when using a default scheme: (Pdb) urlsplit('regionalhelpwanted.com/browseads/?sn=2',scheme='http') SplitResult(scheme='http', netloc='', path='regionalhelpwanted.com/browseads/', query='sn=2',

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
Changes by AdamN a...@varud.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8818 ___ ___ Python-bugs-list mailing list

[issue1289118] timedelta multiply and divide by floating point

2010-05-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Attaching a combined issue1289118 + issue8817 patch. Datetime code now uses issue8817's _PyLong_Divmod_Near. -- Added file: http://bugs.python.org/file17460/issue1289118+issue8817-nodoc.diff

[issue8143] urlparse has a duplicate of urllib.unquote

2010-05-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I synced the two versions in r81518 and added a comment to both about updating the other. -- resolution: - wont fix stage: patch review - committed/rejected status: open - closed ___ Python

[issue6715] xz compressor support

2010-05-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hello, I'm the author of the pyliblzma module, and if desired, I'd be happy to help out adapting pyliblzma for inclusion with python. Most of it's code is based on bz2module.c, so it shouldn't be very far away from being good 'nuff. Well, I

[issue8787] warnings inside PyRun_SimpleString() display argv[1]

2010-05-25 Thread Sebastian
Sebastian python.10.webmas...@spamgourmet.com added the comment: attached a patch for this issue now. Now it first uses the name of the script, instead of __file__. -- keywords: +patch Added file: http://bugs.python.org/file17461/_warnings.c.patch

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The keyword in the code is 'scheme'. I've updated the docs accordingly in r81521 and r81522. -- assignee: - d...@python components: +Documentation -Library (Lib) nosy: +d...@python, r.david.murray resolution: - fixed stage: -

[issue8817] Expose round-to-nearest division algorithm in Objects/longobject.c

2010-05-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Just a few nitpicks on the patch (in increasing pickiness): 1. Any reason to prefer PyTuple_SetItem to PyTuple_SET_ITEM at the end of _PyLong_Divmod_Near? You are filling a brand new tuple, so PyTuple_SET_ITEM seems to

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, May 25, 2010 at 5:45 AM, Antoine Pitrou rep...@bugs.python.org wrote: .. I also agree with Brett that a singleton looks rather unnecessary (it also look quite C++/Java-esque to me). I still don't understand your

[issue8777] Add threading.Barrier

2010-05-25 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I'll provide a new version shortly, targeted for the py3k branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8777 ___

[issue8819] variable resolution within exec() incorrect

2010-05-25 Thread Colin Hawkett
New submission from Colin Hawkett hawk...@gmail.com: A discussion on stack overflow - http://stackoverflow.com/questions/2904274/globals-and-locals-in-python-exec - has led to the conclusion that the variable lookup behaviour within code run using exec() is not behaving as expected. Variable

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: Great, thanks. However urlsplit and urlparse still take what one would expect to be recognized as the netloc and assigns it to the 'path' key. If that is by design perhaps we should at least warn people? -- status: closed - open

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___ Python-bugs-list mailing

[issue8653] urlparse.urlparse/urlsplit doc missing

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: The default_scheme issue I brought up has been fixed in #8818 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8653 ___

[issue8819] variable resolution within exec() incorrect

2010-05-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This looks like a duplicate of issue 991196. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8819 ___

[issue6641] strptime doesn't support %z format ?

2010-05-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6641 ___ ___ Python-bugs-list

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I've added Senthil as nosy to double check me, but my understanding is that the scheme is just the part up to the colon. If you want to have a netloc in the URL, you have to precede it with a '//'. Otherwise there's no netloc.

[issue8818] urlsplit and urlparse add extra slash when using scheme

2010-05-25 Thread AdamN
AdamN a...@varud.com added the comment: Ok, you're right: urlsplit('cnn.com') SplitResult(scheme='', netloc='', path='cnn.com', query='', fragment='') urlsplit('//cnn.com') SplitResult(scheme='', netloc='cnn.com', path='', query='', fragment='') Although I see that nowhere in the

[issue8335] distutils test_build_ext's test_get_outputs fails in bootstrap environment

2010-05-25 Thread jan matejek
jan matejek jmate...@suse.cz added the comment: yes, reverting r72637 fixes this problem for me it reintroduces the original bug (there is some temporary file left behind), but i don't care about that -- ___ Python tracker rep...@bugs.python.org

  1   2   >