Re: Perl / python regex / performance comparison

2009-03-03 Thread Ciprian Dorin, Craciun
On Tue, Mar 3, 2009 at 7:03 PM, Ivan i...@invalid.com wrote: Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I

Re: Get bound method by name

2009-03-03 Thread Steve Holden
Graham Breed wrote: Johannes Bauer wrote: Hello group, I'm looking for a Python function but have forgotten it's name. Essentially what I want is: class Foo(): def bar(self): pass x = Foo() y = x.MAGIC(bar) print(y) bound method Foo.bar of __main__.Foo instance at

Re: Characters aren't displayed correctly

2009-03-03 Thread Steve Holden
Philip Semanchuk wrote: On Mar 2, 2009, at 5:26 PM, John Machin wrote: [...] I (mostly) agree with your rule. But as I said, there's more than one way to solve this problem. Or perhaps I should say that there's more than one way to lead the OP to a solution to this problem. We teach

Re: Pickle Problem

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 16:50:25 -0200, Fab86 fabien.h...@gmail.com escribió: On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 fabien.h...@gmail.com escribió: I am having a bit on an issue getting my program to work. The online

Re: Get bound method by name

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 12:54 PM, Steve Holden st...@holdenweb.com wrote: Graham Breed wrote: Johannes Bauer wrote: Hello group, I'm looking for a Python function but have forgotten it's name. Essentially what I want is: class Foo():     def bar(self):         pass x = Foo() y =

Re: removing duplication from a huge list.

2009-03-03 Thread Adam Olsen
On Feb 27, 9:55 am, Falcolas garri...@gmail.com wrote: If order did matter, and the list itself couldn't be stored in memory, I would personally do some sort of hash of each item (or something as simple as first 5 bytes, last 5 bytes and length), keeping a reference to which item the hash

run Package Query

2009-03-03 Thread Rohan Hole
When I write program (.py) with IDLE , I am able to use run package . - - - - start - - - - if __name__ == '__main__': import sys,os import run run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:]) - - - - end - - - - - above code works simply with the IDLE. But

Re: Perl-python regex-performance comparison

2009-03-03 Thread MRAB
Chris Rebert wrote: On Tue, Mar 3, 2009 at 9:05 AM, Ivan i...@invalid.net wrote: Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting

Re: Perl-python regex-performance comparison

2009-03-03 Thread Steve Holden
Ivan wrote: Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I looked around and found perl and python to be the

Re: siple for in expression

2009-03-03 Thread Mark Wooding
Matko ivastipan...@inet.hr writes: Can someone help me to understand the following code: uv_face_mapping = [[0,0,0,0] for f in faces] It constructs a fresh list, with the same number of elements as are in the iterable object referred to by `faces', and where each element is a distinct list of

Re: Perl-python regex-performance comparison

2009-03-03 Thread Vlastimil Brom
2009/3/3 MRAB wrote: Python 2.7's regex will include possessive quantifiers, atomic groups, variable-length lookbehinds, and Unicode properties (at least the common ones), amongst other things. -- http://mail.python.org/mailman/listinfo/python-list Wow, that's excellent news! Many thanks

Re: Indentifying types?

2009-03-03 Thread Terry Reedy
Oltmans wrote: I'm reading from a file that contains text like 5 google_company apple_fruit pencil_object 4 test_one tst_two When I read the integer 5 I want to make sure it's an integer. Likewise, for strings, I want to make sure if something is indeed a string. So how do I check

Re: Python Launcher.app on OS X

2009-03-03 Thread kp8
Looks like the instructions found on http://wiki.python.org/moin/MacPython/Leopard have been updated. Who ever did that: Thanks! -kevin -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl / python regex / performance comparison

2009-03-03 Thread Terry Reedy
Ivan wrote: Hello everyone, I know this is not a direct python question, forgive me for that, but maybe some of you will still be able to help me. I've been told that for my application it would be best to learn a scripting language, so I looked around and found perl and python to be the nice.

Re: best way to parse a function-call-like string?

2009-03-03 Thread mh
Paul McGuire pt...@austin.rr.com wrote: Pyparsing will easily carve up these function declarations, and will I didn't know about this module, it looks like what I was looking for... Thanks!!! -- Mark Harrison Pixar Animation Studios -- http://mail.python.org/mailman/listinfo/python-list

Re: Opening for Python Programmer at Newport Beach

2009-03-03 Thread Mike Driscoll
On Mar 3, 2:17 pm, Cool Dude mittal.aniket...@gmail.com wrote: Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial

Re: Python 2.6.1 urllib error on Mac os x PPC

2009-03-03 Thread Ned Deily
In article 1236111699.4546.4.ca...@localhost, ati atiw...@gmx.net wrote: I recompiled Python-2.6.1 with MACOSX_DEPLOYMENT_TARGET=10.3, but no change.. I updated developertools to xcode312_2621, no change.. Btw.. Python-2.5.4 compiled from scratch works fine. I forgot to mention the ppc

Re: Perl-python regex-performance comparison

2009-03-03 Thread python
Python 2.7's regex will include possessive quantifiers, atomic groups, variable-length lookbehinds, and Unicode properties (at least the common ones), amongst other things. Wow, that's excellent news! Many thanks for all your efforts to enhance the re capabilities in Python! +1 !!

geospatial python and how to convert multilinestrings to kml

2009-03-03 Thread Danny Shevitz
Howdy, I need to do some geospatial work and am a complete newbie at this. I have access to a PostGIS database and there are lots of MultiLineString objects. I want to run a python algorithm that determines a group of these MultiLineString objects and creates a KML file of the results. Is

pexpect on solaris 10

2009-03-03 Thread Chris Pella
Has anybody had success getting pexpect to work well on solaris 10 (x86)? I am trying to do some test automation which involves controlling some other processes. Soon after I spawn the process I am trying to control a message comes up on stdout telling me that a tty has been closed. If there is

Re: Opening for Python Programmer at Newport Beach

2009-03-03 Thread Diez B. Roggisch
Is your email program broken or what? Why are you sending the same exact message 5 times!? Not to mention that the name Cool Dude isn't exactly convincing me that I should apply for a job there... Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Shared library Python on Mac OS X 64-bit

2009-03-03 Thread Graham Dumpleton
On Mar 4, 2:29 am, Uberman bhoo...@hotmail.com wrote: Graham Dumpleton wrote: Why don't you want to use MacOS X Framework libraries? It is the better installation method. Because I'm not installing Python, I'm building it.  If I were just interested in installing Python, I wouldn't care

Re: RichCompare and RichCompareBool

2009-03-03 Thread Aaron Brady
On Mar 3, 6:01 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 04:42:02 -0200, Aaron Brady castiro...@gmail.com   escribió: Also, did not receive Gabriel's post. That's because I replied a month ago - and probably you had no idea what I   was talking about by that

Re: geospatial python and how to convert multilinestrings to kml

2009-03-03 Thread Terry Reedy
Danny Shevitz wrote: Howdy, I need to do some geospatial work and am a complete newbie at this. I have access to a PostGIS database and there are lots of MultiLineString objects. I want to run a python algorithm that determines a group of these MultiLineString objects and creates a KML file of

Re: Pickle Problem

2009-03-03 Thread Fab86
On Mar 3, 8:59 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 16:50:25 -0200, Fab86 fabien.h...@gmail.com escribió: On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 fabien.h...@gmail.com   escribió:

Re: qt, gtk, wx for py3 ?

2009-03-03 Thread Peter Billam
Peter Billam wrote: I've been trying (newbie warning still on) tkinter with python3.0, and I'm getting to that stage where I'm beginning to think there must be a better a way to do this...  But I'm unsure if the big names Qt, Gtk and Wx are available for Py3 yet - e.g.

Re: Multiple conditional expression

2009-03-03 Thread Mel
bearophileh...@lycos.com wrote: Chris Rebert: That seems to just be an overly complicated way of writing: spaces = bool(form.has_key('spaces') and form.getvalue('spaces') == 1) Better: spaces = bool(('spaces' in form) and form.getvalue('spaces') == 1) Is it still necessary to convert the

Re: Pickle Problem

2009-03-03 Thread Tim Wintle
On Tue, 2009-03-03 at 15:33 -0800, Fab86 wrote: I have been trying except SearchError: however I get the error: Traceback (most recent call last): File C:\Downloads\MoS\yws-2.12\Python\pYsearch-3.1\timeDelay.py, line 19, in module except SearchError: NameError: name 'SearchError' is

Re: Python AppStore / Marketplace

2009-03-03 Thread Steve Holden
Marcel Luethi wrote: Hi Steve [I've probably replied to this once already, but here's another try] I really appreciate your feedback! Certainly I'm no expert for the many differences in package formats and install requirements between the different platforms. But let me explain a bit

Re: Pickle Problem

2009-03-03 Thread MRAB
Fab86 wrote: On Mar 3, 8:59 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 16:50:25 -0200, Fab86 fabien.h...@gmail.com escribió: On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 16:39:43 -0200, Fab86 fabien.h...@gmail.com

Re: Chandler, Python, speed

2009-03-03 Thread Alan G Isaac
On Mar 2, 1:11 am, Paul Rubin wrote: Mitch Kapor (of Lotus 1-2-3 fame) spent a lot of money hiring very sharp Python programmers to write an email client called Chandler, but from what I understand, progress so far has been disappointing, at least in part for performance reasons. Paul

Re: Python 2.6.1 urllib error on Mac os x PPC

2009-03-03 Thread ati
On Tue, 2009-03-03 at 14:10 -0800, Ned Deily wrote: Ah, OS X Server and 2.5.4 works fine! For 2.6, I see that the getproxies code in urllib was re-written to eliminate use of the deprecated python mac Carbon interfaces and instead use ctypes to call the SystemConfiguration framework

Re: Multiple conditional expression

2009-03-03 Thread John Machin
On Mar 4, 10:53 am, Mel mwil...@the-wire.com wrote: bearophileh...@lycos.com wrote: Chris Rebert: That seems to just be an overly complicated way of writing: spaces = bool(form.has_key('spaces') and form.getvalue('spaces') == 1) Better: spaces = bool(('spaces' in form) and

Re: Python AppStore / Marketplace

2009-03-03 Thread David Lyon
Hi all, I only just noticed this thread... :-( At the moment, I am working on a Python Package Manager project on Sourceforge. http://sourceforge.net/projects/pythonpkgmgr/ Firstly, I would welcome any developers who are willing to assist. Secondly, I think there is much work to be done with

Re: Python parser

2009-03-03 Thread Alan G Isaac
This reminds me: the SimpleParse developers ran into some troubles porting to Python 2.6. It would be great if someone could give them a hand. Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle Problem

2009-03-03 Thread Fab86
On Mar 4, 12:00 am, MRAB goo...@mrabarnett.plus.com wrote: Fab86 wrote: On Mar 3, 8:59 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue, 03 Mar 2009 16:50:25 -0200, Fab86 fabien.h...@gmail.com escribió: On Mar 3, 6:48 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Tue,

Re: Python parser

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 22:39:19 -0200, Alan G Isaac ais...@american.edu escribió: This reminds me: the SimpleParse developers ran into some troubles porting to Python 2.6. It would be great if someone could give them a hand. Do you mean the simpleparser project in Sourceforge? Latest alpha

Re: Pickle Problem

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 23:11:30 -0200, Fab86 fabien.h...@gmail.com escribió: On Mar 4, 12:00 am, MRAB goo...@mrabarnett.plus.com wrote: Fab86 wrote: On Mar 3, 8:59 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: How to spell exactly the exception name should appear in the  

Re: Opening for Python Programmer at Newport Beach

2009-03-03 Thread Craig Allen
On Mar 3, 10:17 am, Cool Dude mittal.aniket...@gmail.com wrote: Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial

looking for template package

2009-03-03 Thread Neal Becker
I'm looking for something to do template processing. That is, transform text making various substitutions. I'd like to be able to do substitutions that include python expressions, to do arithmetic computations within substitutions. I know there are lots of template packages, but most seem

What does self.grid() do?

2009-03-03 Thread chuck
I am learning python right now. In the lesson on tkinter I see this piece of code from Tkinter import * class MyFrame(Frame): def __init__(self): Frame.__init__(self) self.grid() My question is what does self.grid() do? I understand that the grid method registers widgets with

Re: looking for template package

2009-03-03 Thread David Lyon
I know there are lots of template packages, but most seem aimed at web use. This is just text processing, not part of any web stuff. Any suggestions? It doesn't matter if it is web or not. it's worth using a template package. You might very much like Cheatah... only takes a day to

Re: Looking for a General Method to Configure Tkinter Widgets

2009-03-03 Thread Rhodri James
On Tue, 03 Mar 2009 18:58:47 -, W. eWatson notval...@sbcglobal.net wrote: I'm probably confused too. Let's try this. In s=dialog.stopVar.get() I'd like to eliminate the statement and replace it with something like: s=dialog. + stopV.get() )and execute

Re: looking for template package

2009-03-03 Thread Philip Semanchuk
On Mar 3, 2009, at 9:06 PM, Neal Becker wrote: I'm looking for something to do template processing. That is, transform text making various substitutions. I'd like to be able to do substitutions that include python expressions, to do arithmetic computations within substitutions. I know

Re: Looking for a General Method to Configure Tkinter Widgets

2009-03-03 Thread W. eWatson
W. eWatson wrote: odeits wrote: On Mar 2, 7:14 am, W. eWatson notval...@sbcglobal.net wrote: I'm modifying a Tkinter Python program that uses hard coded initial values for several widgets. For example, latitude = 40. My plan is to put the names and values for configuration purposes into a

Re: siple for in expression

2009-03-03 Thread alex23
On Mar 4, 2:05 am, Matko ivastipan...@inet.hr wrote: Can someone help me to understand the following code: uv_face_mapping = [[0,0,0,0] for f in faces] As others have mentioned, this is a list comprehension, which is a simpler way of writing the following: uv_face_mapping = [] for f in

Re: Newbie - pass variable to cscript

2009-03-03 Thread Rhodri James
On Tue, 03 Mar 2009 15:22:20 -, plsulliv...@gmail.com wrote: It's not firing off the vbs script. Have I got the syntax correct? Thanks. My latest attempt: vBS = C:\\Program Files\\nasa\\nmail.vbs os.system('cscript /from:wrk-...@pittcountync.gov / to:plsulli...@pittcountync.gov /sub:TEST

random module gives same results across all configurations?

2009-03-03 Thread Amir Michail
Hi, Is it the case that the random module will always give the same results if given the same seed across all configurations (e.g., architectures, compilers, etc.)? Amir -- http://mail.python.org/mailman/listinfo/python-list

Re: random module gives same results across all configurations?

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote: Hi, Is it the case that the random module will always give the same results if given the same seed across all configurations (e.g., architectures, compilers, etc.)? Your question is vague. Define what you mean by same

Re: random module gives same results across all configurations?

2009-03-03 Thread Amir Michail
On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote: Hi, Is it the case that the random module will always give the same results if given the same seed across all configurations (e.g., architectures, compilers,

Re: random module gives same results across all configurations?

2009-03-03 Thread Chris Rebert
On Tue, Mar 3, 2009 at 7:11 PM, Amir Michail amich...@gmail.com wrote: On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote: Hi, Is it the case that the random module will always give the same results if given the

Re: What does self.grid() do?

2009-03-03 Thread Marc 'BlackJack' Rintsch
On Tue, 03 Mar 2009 18:06:56 -0800, chuck wrote: I am learning python right now. In the lesson on tkinter I see this piece of code from Tkinter import * class MyFrame(Frame): def __init__(self): Frame.__init__(self) self.grid() My question is what does self.grid()

Re: Python parser

2009-03-03 Thread Kay Schluehr
On 2 Mrz., 23:14, Clarendon jine...@hotmail.com wrote: Thank you, Lie and Andrew for your help. I have studied NLTK quite closely but its parsers seem to be only for demo. It has a very limited grammar set, and even a parser that is supposed to be large does not have enough grammar to cover

Re: A Simple Menu , Stretching the Window Width--Tkinter

2009-03-03 Thread W. eWatson
John Posner wrote: I'd like to create a simple Menu bar with one item in it, say, called My Menu, and have a few submenu items on it like Change Data and Exit. I can do that but I'd like the title I put on the enclosing window to be completely visible. The title is, for

Configuration Files and Tkinter--Possible?

2009-03-03 Thread W. eWatson
I'm converting a Tkinter program (Win XP) that uses widgets that allows the user to change default values of various parameters like start and stop time in hh:mm:ss, time of exposure in seconds, and whether certain options should be on or off. The initial values are set in the code. I can

Re: Python alternatives to Text::SimpleTable?

2009-03-03 Thread Ethan Furman
Ray Van Dolson wrote: So I'm looking for an easy (read: lazy) way to generate output in nice ASCII tables like the Text::SimpleTable[1] module in perl. I've come across two so far in the Python world that look promising[2][3] but I'm wondering if anyone else out there has some recommendations

Re: easy_install with MySQL-python

2009-03-03 Thread Ske
Mike Driscoll wrote: On Mar 3, 7:44 am, Ske calypso-b...@hotmail.com wrote: Let me apologise in advance if I’m missing something obvious, I’m still very new to this! I’m attempting to install MySQL-python in Python2.6 on Windows. On running easy_install MySQL-python I get a The system

Packaging modules with Bundlebuilder

2009-03-03 Thread DLitgo
Hello everyone, I'm curious about creating .app files for the mac using bundlebuilder (or py2app or even py2exe). I'm just about done creating a GUI for a little set of scripts which basically perform batch image editing. If I send this app to friends and family will they be able to use it? Or

Re: random module gives same results across all configurations?

2009-03-03 Thread Carl Banks
On Mar 3, 6:59 pm, Amir Michail amich...@gmail.com wrote: Hi, Is it the case that the random module will always give the same results if given the same seed across all configurations (e.g., architectures, compilers, etc.)? If you need a repeatable sequence, such as for unit testing, you

Re: Opening for Python Programmer at Newport Beach

2009-03-03 Thread Hendrik van Rooyen
Diez B. Roggisch de...@nospam.web.dewrote: Is your email program broken or what? Why are you sending the same exact message 5 times!? Not to mention that the name Cool Dude isn't exactly convincing me that I should apply for a job there... Quite so. The only name that could

String Identity Test

2009-03-03 Thread Avetis KAZARIAN
After reading the discussion about the same subject ( From: Thomas Moore jsfrank.c...@msa.hinet.net Date: Tue, 1 Nov 2005 21:45:56 +0800 ), I tried myself some tests with some confusing results (I'm a beginner with Python, I'm coming from PHP) # 1. Short alpha-numeric String without space a =

Re: random module gives same results across all configurations?

2009-03-03 Thread Diez B. Roggisch
Amir Michail schrieb: On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote: Hi, Is it the case that the random module will always give the same results if given the same seed across all configurations (e.g.,

Re: Packaging modules with Bundlebuilder

2009-03-03 Thread Diez B. Roggisch
DLitgo schrieb: Hello everyone, I'm curious about creating .app files for the mac using bundlebuilder (or py2app or even py2exe). I'm just about done creating a GUI for a little set of scripts which basically perform batch image editing. If I send this app to friends and family will they be

Re: random module gives same results across all configurations?

2009-03-03 Thread Amir Michail
On Mar 4, 2:26 am, Diez B. Roggisch de...@nospam.web.de wrote: Amir Michail schrieb: On Mar 3, 10:05 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Mar 3, 2009 at 6:59 PM, Amir Michail amich...@gmail.com wrote: Hi, Is it the case that the random module will always give the same

Re: String Identity Test

2009-03-03 Thread Gary Herron
Avetis KAZARIAN wrote: After reading the discussion about the same subject ( From: Thomas Moore jsfrank.c...@msa.hinet.net Date: Tue, 1 Nov 2005 21:45:56 +0800 ), I tried myself some tests with some confusing results (I'm a beginner with Python, I'm coming from PHP) # 1. Short alpha-numeric

[issue5404] Cross-compiling Python

2009-03-03 Thread Joshua Kinard
Joshua Kinard ku...@gentoo.org added the comment: Making progress! Adapted the cross-2.5.1.patch from Issue #1597850, integrated the %zd printf fixup patch, and added another cross-compiler check for the libffi configure bits in setup.py (it'd pass libffi's configure no --host options, so

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-03-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Should this be backported? It's the r70113 (not the 70112). I see that pitrou backported the fix to 3.0.x. I think that it's enough, 2.x doesn't require the fix. ___ Python tracker

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-03-03 Thread Retro
Retro vinet...@gmail.com added the comment: In my Windows Vista registry I only have the second two keys present 1) HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9cc89170-000b-457d-91f1-53691f85b223} 2)

[issue5404] Cross-compiling Python

2009-03-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5404 ___ ___ Python-bugs-list mailing list

[issue5396] os.read not handling O_DIRECT flag

2009-03-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: - normal type: behavior - feature request versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5396

[issue5410] msvcrt bytes cleanup

2009-03-03 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: I came from issue5391. Here is quote of Victor's message. * msvcrt.putch(char), msvcrt.ungetch(char): msvcrt has also: - msvcrt.getch()-byte string of 1 byte - msvcrt.getwch()-unicode string of 1 character -

[issue5411] add xz compression support to distutils

2009-03-03 Thread Per Øyvind Karlsen
New submission from Per Øyvind Karlsen peroyv...@mandriva.org: Here's a patch that adds support for xz compression: http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python/current/SOURCES/Python-2.6.1-distutils-xz-support.patch?view=log -- assignee: tarek components: Distutils

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2009-03-03 Thread andrej
andrej andrej.filip...@ijs.si added the comment: Is there a reason why this patch has not been implemented in the official release (2.5.4)? I am having plenty of troubles using it in a similar program. -- nosy: +andrej ___ Python tracker

[issue4459] bdist_rpm should enable --fix-python by default

2009-03-03 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- title: bdist_rpm assumes python - bdist_rpm should enable --fix-python by default ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4459 ___

[issue5404] Cross-compiling Python

2009-03-03 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Joshua, may be you need patch from Issue4010 to pass LDFLAGS to distutils. Another issue4305 - it is for mipsel. About cross compilation - yes it is Python flaw. For past ten years the progress is near to zero. About you problem -

[issue5409] ConfigParser getint/float/boolean methods broken

2009-03-03 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda draghu...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5409 ___

[issue5412] extend configparser to support [] syntax

2009-03-03 Thread Jeff Kaufman
New submission from Jeff Kaufman jkauf...@bbn.com: This is a patch against the configparser in the cvs version of 3.1 to support [] notation: import configparser_patched config = configparser_patched.SafeConfigParser() config.add_section(spam) config[spam, eggs] = yummy config[spam, eggs]

[issue1294959] Problems with /usr/lib64 builds.

2009-03-03 Thread jan matejek
Changes by jan matejek jmate...@suse.cz: -- nosy: +matejcik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___ ___ Python-bugs-list mailing

[issue858809] Use directories from configure rather than hardcoded

2009-03-03 Thread jan matejek
Changes by jan matejek jmate...@suse.cz: -- nosy: +matejcik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue858809 ___ ___ Python-bugs-list mailing

[issue858809] Use directories from configure rather than hardcoded

2009-03-03 Thread jan matejek
jan matejek jmate...@suse.cz added the comment: well, seeing as redesign of distutils probably won't happen anytime soon... why don't we fix the obvious bug (broken configure) now and redesign distutils later? ___ Python tracker rep...@bugs.python.org

[issue858809] Use directories from configure rather than hardcoded

2009-03-03 Thread jan matejek
jan matejek jmate...@suse.cz added the comment: ...the patch is absolutely trivial, doesn't have any deep consequences and applies cleanly to head and all branches i know of. ...i wonder if the patch-fasttracking offer still applies... ___ Python tracker

[issue1978] Python(2.5.1) will be crashed when i use _ssl module in multi-threads environment in linux.

2009-03-03 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Yes, the reason is that the supplied patch doesn't provide enough test cases. This is a big patch; 2.5.x is a bug-fix release; a newer version of the SSL code is available from PyPI as a work-around; I don't have time right now to write

[issue4471] IMAP4 missing support for starttls

2009-03-03 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: I brought this up on pydotorg, and Barry suggests that someone put together a Twisted environment which could be downloaded and run locally on the test machine. It would provide IMAP and POP servers, perhaps NNTP and others as well. Now,

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Giampaolo, I'm concerned that your patch uses a global 'tasks' list which cannot be overriden. Shouldn't loop() accept an optional task list argument, as it already does with the socket map? That would keep with the

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: The idea is to be able (whether you see a use case or not) to use different tasks lists simultaneously. Messing with globals is the worst possible API for that. All you need is to add a tasks=None argument to the loop() signature, rename the

[issue1641] asyncore delayed calls feature

2009-03-03 Thread Josiah Carlson
Josiah Carlson josiahcarl...@users.sourceforge.net added the comment: Forest: To answer your question, yes, that blog post discusses a better variant of sched.py , but no, there isn't a bug. I should probably post it some time soon for 2.7/3.1 inclusion.

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Forest Wilkinson
Forest Wilkinson for...@users.sourceforge.net added the comment: I was just reading the PEP, and caught this bit: Does OrderedDict.popitem() return a particular key/value pair? Yes. It pops-off the most recently inserted new key and its corresponding value. Okay, but I'd also like a convenient

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I wonder if, instead of all kinds of new APIs, the _keys list could just be made public (under a different name of course). Of course, that makes further optimization or a rewrite in C harder. ___ Python

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The internal data structure *must* remain private so that we can build a C replacement or switch to one of the other possible algorithms. ___ Python tracker rep...@bugs.python.org

[issue2459] speedup for / while / if with better bytecode

2009-03-03 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Hold off on reviewing this. There's one bug around the peepholer not turning itself off when line numbers skip by more than 127, and another around the traceback generator still assuming line numbers are unsigned. I'll post another patch when

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The internal data structure *must* remain private so that we can build a C replacement or switch to one of the other possible algorithms. Even then the keys list could be offered as a property. ___ Python

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Forest, I've taken another look at what's involved and am inclined to accept the idea. It can be done without mucking-up the regular dict API and without precluding any of the other possible underlying algorithms. I like

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Forest, for your use case I recommend copying the code to a new class and replacing the _keys list with a deque so that you can efficiently pop from the other end. ___ Python tracker

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Forest Wilkinson
Forest Wilkinson for...@users.sourceforge.net added the comment: Shouldn't popitem() allow the caller to choose which end from which to pop? Thinking it through a bit more, and LRU cache would actually need to access the oldest item without necessarily removing it. Besides, popitem() should

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file13221/od4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397 ___

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file13228/od5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397 ___

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file13229/od6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397 ___

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Armin Ronacher
Armin Ronacher armin.ronac...@active-4.com added the comment: Please no. We just decided to *not* extend the API. The PEP originally had a well designed list of dict API extensions that already provided exactly that. If we really want to provide access to that, we can roll back to where we

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Armin Ronacher
Armin Ronacher armin.ronac...@active-4.com added the comment: Please no. We just decided to *not* extend the API. The PEP originally had a well designed list of dict API extensions that already provided exactly that. If we really want to provide access to that, we can roll back to where we

[issue5397] PEP 372: OrderedDict

2009-03-03 Thread Armin Ronacher
Changes by Armin Ronacher armin.ronac...@active-4.com: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5397 ___ ___ Python-bugs-list mailing list

<    1   2   3   >