Re: how can i use lxml with win32com?

2009-10-25 Thread Stefan Behnel
Hi, elca, 25.10.2009 02:35: hello... if anyone know..please help me ! i really want to know...i was searched in google lot of time. but can't found clear soultion. and also because of my lack of python knowledge. i want to use IE.navigate function with beautifulsoup or lxml.. if anyone

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
Hello, im very sorry . first my source is come from website which consist of html mainly. and i want to make web scraper. i was found some script source in internet. following is script source which can beautifulsoup and PAMIE work together. but if i run this script source error was happened.

Re: how can i use lxml with win32com?

2009-10-25 Thread User
On 25 Oct 2009, at 07:45 , elca wrote: i want to make web scraper. if possible i really want to make it work together with beautifulsoup or lxml with PAMIE. Scraping information from webpages falls apart in two tasks: 1. Getting the HTML data 2. Extracting information from the HTML data

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
Hello, yes there is some reason why i nave to insist internet explorere interface. because of javascript im trying to insist use PAMIE. i was tried some other solution urlopen or mechanize and so on. but it hard to use javascript. can you show me some sample for me ? :) such like if i want to

Re: how can i use lxml with win32com?

2009-10-25 Thread User
On 25 Oct 2009, at 08:06 , elca wrote: because of javascript im trying to insist use PAMIE. I see, your problem is not with lxml or BeautifulSoup, but getting the raw data in the first place. i want to extract some text in CNN website with 'CNN Shop' 'Site map' in bottom of CNN website

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
hello, www.cnn.com in main website page. for example ,if you see www.cnn.com's html source, maybe you can find such like line of html source. http://www.turnerstoreonline.com/ CNN Shop and for example if i want to extract 'CNN Shop' text in html source. and i want to add such like function

Re: how can i use lxml with win32com?

2009-10-25 Thread User
On 25 Oct 2009, at 08:33 , elca wrote: www.cnn.com in main website page. for example ,if you see www.cnn.com's html source, maybe you can find such like line of html source. http://www.turnerstoreonline.com/ CNN Shop and for example if i want to extract 'CNN Shop' text in html source. So,

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
hello, im very sorry my english. yes i want to extract this text 'CNN Shop' and linked page 'http://www.turnerstoreonline.com'. thanks a lot! motoom wrote: On 25 Oct 2009, at 08:33 , elca wrote: www.cnn.com in main website page. for example ,if you see www.cnn.com's html source, maybe

Re: how can i use lxml with win32com?

2009-10-25 Thread Michiel Overtoom
elca wrote: yes i want to extract this text 'CNN Shop' and linked page 'http://www.turnerstoreonline.com'. Well then. First, we'll get the page using urrlib2: doc=urllib2.urlopen(http://www.cnn.com;) Then we'll feed it into the HTML parser: soup=BeautifulSoup(doc) Next, we'll look

Re: how can i use lxml with win32com?

2009-10-25 Thread Stefan Behnel
elca, 25.10.2009 08:46: im very sorry my english. It's fairly common in this news-group that people do not have a good level of English, so that's perfectly ok. But you should try to provide more information in your posts. Be explicit about what you tried and what failed (and how!), and provide

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
Hello, thanks for your reply. actually what i want to parse website is some different language site. so i was quote some common english website for easy understand. :) by the way, is it possible to use with PAMIE and beautifulsoup work together? Thanks a lot motoom wrote: elca wrote:

Re: how can i use lxml with win32com?

2009-10-25 Thread Michiel Overtoom
elca wrote: actually what i want to parse website is some different language site. A different website? What website? What text? Please show your actual use case, instead of smokescreens. so i was quote some common english website for easy understand. :) And, did you learn

Re: Socket logic problem

2009-10-25 Thread Gabriel Genellina
En Sat, 24 Oct 2009 06:40:08 -0300, John O'Hagan resea...@johnohagan.com escribió: I have several instances of the same generator function running simultaneously, some within the same process, others in separate processes. I want them to be able to share data (the dictionaries passed to

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
Hello, actually what i want is, if you run my script you can reach this page 'http://news.search.naver.com/search.naver?sm=tab_htywhere=newsquery=korea+timesx=0y=0' that is korea portal site and i was search keyword using 'korea times' and i want to scrap resulted to text name with

Re: lambda forms within a loop

2009-10-25 Thread Duncan Booth
Michal Ostrowski mostr...@gmail.com wrote: def MakeLambdaBad(): a = [] for x in [1,2]: a.append(lambda q: x + q) return a Two things to remember when using lambda: 1. You can always replace lambda with one line function returning the same result. The only difference is that

Re: how can i use lxml with win32com?

2009-10-25 Thread paul
elca schrieb: Hello, Hi, following is script source which can beautifulsoup and PAMIE work together. but if i run this script source error was happened. AttributeError: PAMIE instance has no attribute 'pageText' File C:\test12.py, line 7, in module bs = BeautifulSoup(ie.pageText()) You

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
Hi, thanks a lot. studying alone is tough thing :) how can i improve my skill... paul kölle wrote: elca schrieb: Hello, Hi, following is script source which can beautifulsoup and PAMIE work together. but if i run this script source error was happened. AttributeError: PAMIE

Listing variables

2009-10-25 Thread vsoler
Say that a have: # file test.py a=7 At the prompt: import test dir() I would like to see the variables created in the test namespace. However, variable a does not appear in the list, only test. Since I know that var a is reachable from the prompt by means of test.a, how can I list this sort of

Re: A new way to configure Python logging

2009-10-25 Thread Vinay Sajip
Wolodja Wentland wentland at cl.uni-heidelberg.de writes: Could a HTMLHandler be added to the standard set? Preferably one that leaves the choice of the template engine to the user. I haven't done this precisely because users' requirements will be very different for such a handler. For the

Re: how can i use lxml with win32com?

2009-10-25 Thread paul
elca schrieb: Hi, thanks a lot. studying alone is tough thing :) how can i improve my skill... 1. Stop top-posting. 2. Read documentation 3. Use the interactive prompt cheers Paul paul kölle wrote: elca schrieb: Hello, Hi, following is script source which can beautifulsoup and

Re: Listing variables

2009-10-25 Thread Tim Chase
Say that a have: # file test.py a=7 At the prompt: import test dir() I would like to see the variables created in the test namespace. However, variable a does not appear in the list, only test. Since I know that var a is reachable from the prompt by means of test.a, how can I list this sort

Re: Python 3.1.1 bytes decode with replace bug

2009-10-25 Thread Dave Angel
Joe wrote: For the reason BK explained, the important difference is that I ran in the IDLE shell, which handles screen printing of unicode better ;-) Something still does not seem right here to me. In the example above the bytes were decoded to 'UTF-8' with the *nope* you're

Re: Listing variables

2009-10-25 Thread Ben Finney
vsoler vicente.so...@gmail.com writes: At the prompt: import test dir() I would like to see the variables created in the test namespace. However, variable a does not appear in the list, only test. Since I know that var a is reachable from the prompt by means of test.a, how can I list this

Re: how can i use lxml with win32com?

2009-10-25 Thread elca
paul kölle wrote: elca schrieb: Hi, thanks a lot. studying alone is tough thing :) how can i improve my skill... 1. Stop top-posting. 2. Read documentation 3. Use the interactive prompt cheers Paul paul kölle wrote: elca schrieb: Hello, Hi, following is script

Re: Listing variables

2009-10-25 Thread Dave Angel
vsoler wrote: Say that a have: # file test.py a=7 At the prompt: import test dir() I would like to see the variables created in the test namespace. However, variable a does not appear in the list, only test. Since I know that var a is reachable from the prompt by means of test.a, how can I

Ctypes and Structures

2009-10-25 Thread Martijn Arts
I'm working with ctypes on a bridge (?) from WiiUse; a new and improved PyWiiUse, but I'm having a problem: When connecting to the wiimotes with the init function it gives me back an array with pointers. Every pointer points to a WiiMote structure, this all goes well. Now when trying to poll the

python3 Unicode is slow

2009-10-25 Thread Dale Gerdemann
I've written simple code in 2.6 and 3.0 to read every charcter of a set of files and print out some information for each of these characters. I tested each program on a large Cyrillic/Latin text. The result was that the 2.6 version was about 5x faster. Here are the two programs: #!/usr/bin/env

Re: Listing variables

2009-10-25 Thread vsoler
On Oct 25, 12:01 pm, Tim Chase python.l...@tim.thechases.com wrote: Say that a have: # file test.py a=7 At the prompt: import test dir() I would like to see the variables created in the test namespace. However, variable a does not appear in the list, only test. Since I know

Re: A new way to configure Python logging

2009-10-25 Thread Wolodja Wentland
On Sun, Oct 25, 2009 at 10:48 +, Vinay Sajip wrote: Wolodja Wentland wentland at cl.uni-heidelberg.de writes: [ HTMLHandler, multiple configuration files ] OK! I agree that these parts are hard to standardise and do not really belong in the *logging* module. Maybe a kind soul implements a

Re: Listing variables

2009-10-25 Thread Tim Chase
If I just input dir(test) I don't get a in my list. import test dir(test) ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__'] I am using python 2.6 Am I doing anything wrong? Are you importing the module you think you are? t...@rubbish:~/tmp$ echo a=42 test.py

Re: python3 Unicode is slow

2009-10-25 Thread John Machin
On Oct 25, 11:12 pm, Dale Gerdemann dale.gerdem...@googlemail.com wrote: I've written simple code in 2.6 and 3.0 to read every charcter of a set of files and print out some information for each of these characters. I tested each program on a large Cyrillic/Latin text. The result was that the

Re: how can i use lxml with win32com?

2009-10-25 Thread Michiel Overtoom
elca wrote: im sorry ,also im not familiar with newsgroup. It's not a newsgroup, but a mailing list. And if you're new to a certain community you're not familiar with, it's best to lurk a few days to see how it is used. so this position is bottom-posting position? It is, but you

Re: A new way to configure Python logging

2009-10-25 Thread Vinay Sajip
Wolodja Wentland wentland at cl.uni-heidelberg.de writes: You are right, unless handlers (and filters, formatters etc.) are given names which can be used to refer to them across multiple configuration calls. This is something I am thinking about and will probably update PEP 391 with my

Re: how can i use lxml with win32com?

2009-10-25 Thread Michiel Overtoom
elca wrote: http://news.search.naver.com/search.naver?sm=tab_htywhere=newsquery=korea+timesx=0y=0 that is korea portal site and i was search keyword using 'korea times' and i want to scrap resulted to text name with 'blogscrap_save.txt' Aha, now we're getting somewhere. Getting and parsing

Re: how can i use lxml with win32com?

2009-10-25 Thread Irmen de Jong
Michiel Overtoom wrote: elca wrote: im sorry ,also im not familiar with newsgroup. It's not a newsgroup, but a mailing list. And if you're new to a certain community you're not familiar with, it's best to lurk a few days to see how it is used. Pot. Kettle. Black. comp.lang.python really

Re: Listing variables

2009-10-25 Thread vsoler
On Oct 25, 1:32 pm, Tim Chase python.l...@tim.thechases.com wrote: If I just input dir(test) I don't get a in my list. import test dir(test) ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__'] I am using python 2.6 Am I doing anything wrong? Are you

Re: quit button

2009-10-25 Thread John Posner
linda.s wrote: When I click quit button, why the following code has problem? from Tkinter import * colors = ['red', 'green', 'yellow', 'orange', 'blue', 'navy'] def gridbox(parent): r = 0 for c in colors: l = Label(parent, text=c, relief=RIDGE, width=25) e =

Re: quit button

2009-10-25 Thread Grant Edwards
On 2009-10-25, linda.s samrobertsm...@gmail.com wrote: When I click quit button, why the following code has problem? It works fine for me (running Gentoo Linux on IA32). -- Grant -- http://mail.python.org/mailman/listinfo/python-list

Re: PySerial

2009-10-25 Thread Ronn Ross
On Sat, Oct 24, 2009 at 4:53 PM, John Nagle na...@animats.com wrote: Gabriel Genellina wrote: En Fri, 23 Oct 2009 20:56:21 -0300, Ronn Ross ronn.r...@gmail.com escribió: I have tried setting the baud rate with no success. Also I'm using port #2 because Im using a usb to serial cable.

Re: Listing variables

2009-10-25 Thread Tim Chase
t...@rubbish:~/tmp$ rm test.py test.pyc t...@rubbish:~/tmp$ python2.5 import test dir(test) ['__builtins__', '__doc__', '__file__', '__name__', '__path__'] test.__file__ '/usr/lib/python2.5/test/__init__.pyc' because there's apparently a module named test in the standard distribution that

Solving System of Linear Equation (SLE) - FuncDesigner example

2009-10-25 Thread dmitrey
Hi all, I would like to introduce a couple examples of easy convenient modelling and solving System of Linear Equation (SLE) by FuncDesigner (a python-written tool, BSD license). It doesn't require to construct matrices A and b (Ax = b) by user, they are created automatically. See here for

Python-URL! - weekly Python news and links (Oct 25)

2009-10-25 Thread Cameron Laird
QOTW: It was intended to be understood, not copied. - Dave Angel comments on a characteristic of didactic examples http://groups.google.com/group/comp.lang.python/msg/61e2d60d08f1c630 Altering the default character encoding (sys.setdefaultencoding) is never a good idea:

Python-URL! - weekly Python news and links (Oct 25)

2009-10-25 Thread Gabriel Genellina
QOTW: It was intended to be understood, not copied. - Dave Angel comments on a characteristic of didactic examples http://groups.google.com/group/comp.lang.python/msg/61e2d60d08f1c630 Altering the default character encoding (sys.setdefaultencoding) is never a good idea:

Re: Listing variables

2009-10-25 Thread vsoler
On Oct 25, 5:07 pm, Tim Chase python.l...@tim.thechases.com wrote: t...@rubbish:~/tmp$ rm test.py test.pyc t...@rubbish:~/tmp$ python2.5   import test   dir(test) ['__builtins__', '__doc__', '__file__', '__name__', '__path__']   test.__file__ '/usr/lib/python2.5/test/__init__.pyc'

OT Virtual Server Host

2009-10-25 Thread Victor Subervi
Hi; Completely OT, but my back's up against the wall. I'm convinced that the reason my codes keep breaking--and even stable installations of s/w from SourceForge such as SimpleMail--on the hosts I've been using is because their hardware should have conservatively been trashed 5 years ago. It's

Extracting text using Beautifulsoup

2009-10-25 Thread TC
Greetings all. Working with data from 'http://www.finviz.com/quote.ashx?t=SRS', I was able to get the info using re, however I thought using Beautifulsoup a more elegant approach. Having a bit of a problem though... Trying to extract text: SMA20 -1.77% SMA50 -9.73% utilizing attribute

virtualenv under Win7: easy_install fails in virtual environments

2009-10-25 Thread Guillermo
Hi, I've installed setuptools for my default python installation and it works perfectly without even asking for admin credentials to install packages. After that I've installed virtualenv. If I do: virtualenv x ... a new virtual environment is created, but whenever I try to run easy_install

Re: lambda forms within a loop

2009-10-25 Thread Scott David Daniels
Michal Ostrowski wrote: ... [a,b] = MakeLambdawhatever() print a(10) print b(10) Here is yet another way to solve the problem: import functools def AddPair(x, q): return x + q a, b = [functools.partial(AddPair, x) for x in [1, 2]] print a(10) print b(10) Or even,

Re: lambda forms within a loop

2009-10-25 Thread Paul Rubin
Michal Ostrowski mostr...@gmail.com writes: def MakeLambdaBad(): a = [] for x in [1,2]: a.append(lambda q: x + q) return a The problem here is that x is a free variable in the lambdas that you put in a. When you actually evaluate those lambdas, they use whatever the value of x

python web service or Apache?

2009-10-25 Thread Peng Yu
Although, python can be used to provide web service. The following webpage also mentioned, Apache the best and most widely used web server on the Internet today, check it out. If you want to run your own web server this is the one to get, you can get binaries for both Windows and Unix. You can

Re: Is __mul__ sufficient for operator '*'?

2009-10-25 Thread Mick Krippendorf
Muhammad Alkarouri schrieb: I was having a go at a simple implementation of Maybe in Python when I stumbled on a case where x.__mul__(y) is defined while x*y is not. class Maybe(object): def __init__(self, obj): self.o = obj def __repr__(self): return 'Maybe(%s)' %

Web development with Python 3.1

2009-10-25 Thread Alan Harris-Reid
I am very much new to Python, and one of my first projects is a simple data-based website. I am starting with Python 3.1 (I can hear many of you shouting don't - start with 2.6), but as far as I can see, none of the popular python-to-web frameworks (Django, CherryPy, web.py, etc.) are Python3

Python GUI

2009-10-25 Thread Ronn Ross
I need to create a gui for python. I'm looking for something that is easy to learn and cross platform. Any suggestions? If you have any good tutorials please send along. Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: Web development with Python 3.1

2009-10-25 Thread Paul Rubin
Alan Harris-Reid a...@baselinedata.co.uk writes: I am very much new to Python, and one of my first projects is a simple data-based website. I am starting with Python 3.1 (I can hear many of you shouting don't - start with 2.6), but as far as I can see, none of the popular python-to-web

Re: Web development with Python 3.1

2009-10-25 Thread exarkun
On 25 Oct, 11:52 pm, a...@baselinedata.co.uk wrote: I am very much new to Python, and one of my first projects is a simple data-based website. I am starting with Python 3.1 (I can hear many of you shouting don't - start with 2.6), but as far as I can see, none of the popular python-to-web

Re: Web development with Python 3.1

2009-10-25 Thread Brendon Wickham
Anyway, for simple web programming, frameworks are not worth the hassle. Just use the cgi module. I can vouch for what Paul says. I started in Python 3 years ago, and I did so with a web application (still working on it!). I'm using the cgi approach, and it certainly teaches you the

Re: Python GUI

2009-10-25 Thread Philip Semanchuk
On Oct 25, 2009, at 8:39 PM, Ronn Ross wrote: I need to create a gui for python. I'm looking for something that is easy to learn and cross platform. Any suggestions? If you have any good tutorials please send along. Thanks in advance. wxPython (which wraps wxWidgets) is popular and IMO

Re: Python GUI

2009-10-25 Thread Ronn Ross
Philip, PySide looks nice and you are right it is still very young. I'm still going to give it a try. Thanks for your help. On Sun, Oct 25, 2009 at 9:41 PM, Philip Semanchuk phi...@semanchuk.comwrote: On Oct 25, 2009, at 8:39 PM, Ronn Ross wrote: I need to create a gui for python. I'm

Re: Python GUI

2009-10-25 Thread geremy condra
On Sun, Oct 25, 2009 at 10:03 PM, Ronn Ross ronn.r...@gmail.com wrote: Philip, PySide looks nice and you are right it is still very young. I'm still going to give it a try. Thanks for your help. On Sun, Oct 25, 2009 at 9:41 PM, Philip Semanchuk phi...@semanchuk.com wrote: On Oct 25, 2009,

Re: Python GUI

2009-10-25 Thread Grant Edwards
On 2009-10-26, Philip Semanchuk phi...@semanchuk.com wrote: On Oct 25, 2009, at 8:39 PM, Ronn Ross wrote: I need to create a gui for python. I'm looking for something that is easy to learn and cross platform. Any suggestions? If you have any good tutorials please send along. Thanks in

Re: Python 2.6 Deprecation Warnings with __new__ — Can someone explain why?

2009-10-25 Thread rh0dium
Carl, First off - Thanks your post was exactly the kind of informative example driven learnings that help — Thanks!! On Oct 22, 9:05 pm, Carl Banks pavlovevide...@gmail.com wrote: Before we get into object semantics, I'm not sure why you'd need to override __new__ for Borg pattern, unless

Re: python web service or Apache?

2009-10-25 Thread Simon Forman
On Sun, Oct 25, 2009 at 4:47 PM, Peng Yu pengyu...@gmail.com wrote: Although, python can be used to provide web service. The following webpage also mentioned, Apache the best and most widely used web server on the Internet today, check it out. If you want to run your own web server this is the

Re: Python 3.1.1 bytes decode with replace bug

2009-10-25 Thread Mark Tolonen
Dave Angel da...@ieee.org wrote in message news:4ae43150.9010...@ieee.org... Joe wrote: For the reason BK explained, the important difference is that I ran in the IDLE shell, which handles screen printing of unicode better ;-) Something still does not seem right here to me. In the example

Re: How to modify local variables from internal functions?

2009-10-25 Thread Steven D'Aprano
On Sat, 24 Oct 2009 00:19:12 +, kj wrote: I like Python a lot, and in fact I'm doing most of my scripting in Python these days, but one thing that I absolutely *DETEST* about Python is that it does allow an internal function to modify variables in the enclosing local scope. You

Re: How to modify local variables from internal functions?

2009-10-25 Thread Steven D'Aprano
On Sat, 24 Oct 2009 00:19:12 +, kj wrote: I like Python a lot, and in fact I'm doing most of my scripting in Python these days, but one thing that I absolutely *DETEST* about Python is that it does allow an internal function to modify variables in the enclosing local scope. You

[issue7201] double Endian problem and more on arm

2009-10-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The 4th failure (test_endian_double) probably has nothing to do with ctypes. See also issue #1762561. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org

[issue7150] datetime operations spanning MINYEAR give bad results

2009-10-25 Thread Anand B Pillai
Anand B Pillai abpil...@gmail.com added the comment: The problem seems to be in the normalize_date function in datetimemodule.c. It is checking for a valid year range, but not checking for a valid month or day range. I have a patch which fixes this problem. It checks for month range (1=m=12)

[issue7201] double Endian problem and more on arm

2009-10-25 Thread Mancausoft
Mancausoft b...@mancausoft.org added the comment: Mark Dickinson rep...@bugs.python.org scrisse: The 4th failure (test_endian_double) probably has nothing to do with ctypes. See also issue #1762561. I try to use the patch arm-float2.diff, but test result is the same:

[issue6729] Add support for ssize_t

2009-10-25 Thread Galen Clark Haynes
Changes by Galen Clark Haynes gchay...@gmail.com: -- nosy: +robotify ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6729 ___ ___ Python-bugs-list

[issue1087418] long int bitwise ops speedup (patch included)

2009-10-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think Greg's patch looks fine, modulo updating it to apply cleanly to py3k. I couldn't resist tinkering a bit, though: factoring out the complement operations (for a, b and z) into a separate function gives (IMO) cleaner and more direct

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-25 Thread Domen
Domen ielect...@gmail.com added the comment: What about AUTH SSL? Or is it too-deprecated? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2054 ___

[issue7202] python setup.py MYCOMMAND --verbose does not yield an unrecognized option error but also does not set the verbosity

2009-10-25 Thread Zooko O'Whielacronx
New submission from Zooko O'Whielacronx zo...@zooko.com: This command: python setup.py --verbose darcsver works as expected -- the presence of '--verbose' increases the verbosity of logging. This command: python setup.py darcsver --verbose does not increase the verbosity, nor does it tell

[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-10-25 Thread Derk Drukker
Derk Drukker derk.druk...@gmail.com added the comment: More elegant than using quotes in the cmdline string is, IMO, passing a sequence to subprocess.Popen instead. I've put a new patch up for review: http://codereview.appspot.com/141050 I've also unified the Unix and Windows portions in

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-25 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: Currently, ``map(None, a)`` is recognized and converted to ``list(a)`` which is correct but quite useless. ``map(None, a, b, ...)`` is not treated specially. An approximate translation would be ``map(lambda *xs: xs, a, b, ...)`` which however

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-25 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: -- nosy: +segfaulthunter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7203 ___ ___ Python-bugs-list

[issue7203] fixer for map(None, ...) needs to consider multi-argument case

2009-10-25 Thread Florian Mayer
Florian Mayer florma...@aim.com added the comment: A full fix would be list(map(fun, *zip(*itertools.zip_longest(a, b, ... and if fun is None list(map(lambda *xs: xs, *zip(*itertools.zip_longest(a, b, ... -- ___ Python tracker

[issue1087418] long int bitwise ops speedup (patch included)

2009-10-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Mark, if you want to get reviews, it might be useful to upload the patch to Rietveld (as the diff is difficult to read). However, I would trust you to get it right, anyway, so feel free to go ahead and apply it. --

[issue7204] Strange shebang line in test_pep263

2009-10-25 Thread Thomas Klausner
New submission from Thomas Klausner t...@giga.or.at: In Python-2.6.3, test_pep263.py starts with the following line: #! -*- coding: koi8-r -*- When this is executed by a shell, it looks for the interpreter -*-. I guess the '!' is superfluous there, or it should be something like #! /usr/bin/env

[issue7204] Strange shebang line in test_pep263

2009-10-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This has already been fixed in r69619. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7204

[issue7201] double Endian problem and more on arm

2009-10-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. Okay, I take it back then. :) Sorry for the noise. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7201 ___

[issue1087418] long int bitwise ops speedup (patch included)

2009-10-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied in r75697 (trunk) and r75698 (py3k). -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1087418

[issue7205] bz2file deadlock

2009-10-25 Thread Robert Collins
New submission from Robert Collins robe...@robertcollins.net: There is a systemic bug in BZ2File where the GIL is released to perform compression work, and any other thread calling into BZ2File will deadlock. We noticed in the write method, but inspection of the code makes it clear that its

[issue7205] bz2file deadlock

2009-10-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks, nice catch. -- nosy: +pitrou priority: - high stage: - needs patch versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue7205] bz2file deadlock

2009-10-25 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: On Sun, 2009-10-25 at 22:00 +, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Thanks, nice catch. Yeah :). versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 Python 2.5 is also affected - its

[issue7205] bz2file deadlock

2009-10-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Python 2.5 is also affected - its what we're running on the server that broke :) Yes, but it doesn't receive any bug fixes anymore -- only security fixes. -- ___ Python tracker

[issue7205] bz2file deadlock

2009-10-25 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: On Sun, 2009-10-25 at 22:27 +, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Python 2.5 is also affected - its what we're running on the server that broke :) Yes, but it doesn't receive any bug

[issue7206] 64 bit python fails on Windows 7

2009-10-25 Thread Rich Healey
New submission from Rich Healey ri...@psych0tik.net: 64 bit pythons fail on 64 bit Windows 7. The crash happens with python 2.6 and 3.1 in 64 bit mode. 3.1 was a clean install after the issue presented itself. I'm not 100% sure how best to help with the problem, I've attached the dump from

[issue7206] 64 bit python fails on Windows 7

2009-10-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What is LuaPriv in that log? Something you installed? (sorry, not a Windows specialist) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7206

[issue7206] 64 bit python fails on Windows 7

2009-10-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Build, Windows priority: - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7206 ___

[issue7165] xmlrpc.server assumes sys.stdout will have a buffer attribute

2009-10-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think Antoine's suggestion is reasonable, and that we should apply the patch to stop the buildbots from failing, but leave this issue open until someone with more xmlrpc knowledge can respond to Nick and Antoine's questions. --

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-25 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This new version of the patch provides a workaround for the issue1686475 regression. It simply falls back to the traditional (symlink-naive) stat behavior when a handle cannot be obtained for the specified filename. My intention is that we

[issue7206] 64 bit python fails on Windows 7

2009-10-25 Thread Rich Healey
Rich Healey ri...@psych0tik.net added the comment: I'm not 100% sure. I have a x64 machine running Windows 2008. I will check if it's in the log now. I will also check if it's in the debug trace for x86 python (which works). RESULTS: I get the LuaPriv initialised line on x86 python on my

[issue7206] 64 bit python fails on Windows 7

2009-10-25 Thread Rich Healey
Rich Healey ri...@psych0tik.net added the comment: I think that dump may be incorrect because it does not have all the symbols. I will checkout source for latest 3.x trunk and attempt to build 64 bit binaries. -- ___ Python tracker

[issue7206] 64 bit python fails on Windows 7

2009-10-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What kind of action has triggered that crash? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7206 ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-25 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file14009/windows symlink draft 1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-25 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file14039/windows symlink draft 2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-25 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file14050/windows symlink draft 3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-25 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file14130/windows symlink draft 4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-25 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file14195/windows symlink draft 5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-10-25 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file14206/windows symlink draft 6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

  1   2   >