insol - advanced API for Solr search engine

2010-03-15 Thread mdomans
insol 0.1.0 released Insol aims to be highly advanced, feature-rich pythonic API for Solr search engine. Code is clean and easy to reuse in your own projects and battle tested more than once. Requires nothing more than python, it runs

rst2pdf 0.13.1 released

2010-03-15 Thread Roberto Alsina
Since I suck at making releases, 0.13 had a bug in its setup.py and was missing a crucial file. So, I just released 0.13.1 with that fixed. On Monday 15 March 2010 08:09:31 Roberto Alsina wrote: I've just uploaded the 0.13 version of rst2pdf, a tool to convert reStructured text to PDF using

ANN: esky 0.5.0

2010-03-15 Thread Ryan Kelly
Hi All, I'm pleased to announce the latest release of esky, an auto-update framework for frozen python apps. Highlights of this release: * preliminary support for freezing with py2app * differential updates based on bsdiff More details below for those who are interested.

Fwd: Some PyCon videos won't play

2010-03-15 Thread Lan Qing
In China these video can not watch at all. I must spent 3 days to download it... On Mon, Mar 15, 2010 at 5:19 AM, Terry Reedy tjre...@udel.edu wrote: On 3/14/2010 2:41 PM, Terry Reedy wrote: On 3/14/2010 11:14 AM, David Boddie wrote: You should still be able to get at the videos

Re: result of os.times() is different with 'time' command Options

2010-03-15 Thread hiral
On Mar 15, 7:14 am, Tim Roberts t...@probo.com wrote: hiralhiralsmaill...@gmail.com wrote: ... Output: real    0.0m0.010002421s user    0.0m0.0s sys     0.0m0.0s Command: $ time ls Output: real    0m0.007s user    0m0.000s sys     0m0.000s Is this the intended behaviour? What

Re: to create variable from dict

2010-03-15 Thread hiral
On Mar 12, 8:02 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Luis M. González wrote: On Mar 12, 10:59 am,hiralhiralsmaill...@gmail.com wrote: Hi, Is there any way to create variables which name matches with dict key? For example: dict1 = {abc:'1, def:2} Now I am looking

Hacker News, Xahlee.Org, and What is Politics?

2010-03-15 Thread Xah Lee
A essay related to the recent discussion of banning, and lisp associated group at ycombinator.com . - Hacker News, Xahlee.Org, and What is Politics? Xah Lee, 2010-03-14 Today, i noticed that someone posted one of my article “Why Emacs is still so

Re: sqlite savepoint problem [solved]

2010-03-15 Thread Laszlo Nagy
No it doesn't. The problem is that using a connection as a context manager doesn't do what you think. It does *not* start a new transaction on __enter__ and commit it on __exit__. As far as I can tell it does nothing on __enter__ and calls con.commit() or con.rollback() on exit. With

Re: sqlite savepoint problem [solved]

2010-03-15 Thread Laszlo Nagy
Annotating your example: # entering this context actually does nothing with conn: # a transaction is magically created before this statement conn.execute(insert into a values (1)) # and is implicitly committed before this statement conn.execute(SAVEPOINT sp1)

Distributed database in Python

2010-03-15 Thread David Tynnhammar
Greetings. I'm looking for a distributed database. (I'm not sure if distributed is the correct terminology though). My problem is this; I have a client application which once in a while needs to sync with a central database. (And of course the client -databases might be updated locally etc). Are

Re: Hacker News, Xahlee.Org, and What is Politics?

2010-03-15 Thread Brian J Mingus
On Mon, Mar 15, 2010 at 1:16 AM, Xah Lee xah...@gmail.com wrote: A essay related to the recent discussion of banning, and lisp associated group at ycombinator.com . Is there some Python related issue I might help you out with? Or perhaps you wish to provide Python assistance to someone on

Re: Is it possible to use re2 from Python?

2010-03-15 Thread Kev Dwyer
On Sun, 14 Mar 2010 14:40:34 -0700, _wolf wrote: There's a recent thread about this on the python-dev list, pointers? i searched but didn’t find anything. http://mail.python.org/pipermail/python-dev/2010-March/098354.html -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite savepoint problem [solved]

2010-03-15 Thread Ryan Kelly
On Fri, 2010-03-12 at 09:35 +0100, Laszlo Nagy wrote: No it doesn't. The problem is that using a connection as a context manager doesn't do what you think. It does *not* start a new transaction on __enter__ and commit it on __exit__. As far as I can tell it does nothing on __enter__

Re: Distributed database in Python

2010-03-15 Thread Steven D'Aprano
On Mon, 15 Mar 2010 08:49:34 +0100, David Tynnhammar wrote: Greetings. I'm looking for a distributed database. (I'm not sure if distributed is the correct terminology though). My problem is this; I have a client application which once in a while needs to sync with a central database. (And

Re: dll in project?

2010-03-15 Thread Tim Golden
On 15/03/2010 03:43, Alex Hall wrote: I have a dll I am trying to use, but I get a Windows error 126, the specified module could not be found. Here is the code segment: nvdaController=ctypes.windll.LoadLibrary(nvdaControllerClient32.dll) I have the specified dll file in the same

staticmethod and setattr

2010-03-15 Thread Michael.Lausch
Hi, I managed to get confused by Python, which is not such an easy task. The problem i have is rooted in marshalling, JSON and Dojo. I need some static class in function with the name $ref i tried: class Foo(object): @staticmethod def _ref(o): pass setattr(Foo, $ref, Foo._ref)

Re: iterator/generator

2010-03-15 Thread Mark Lawrence
vsoler wrote: I am working on a script that reads data from an excel workbook. The data is located in a named range whose first row contains the headers. It works!!! I find it superb that python is able to do such things!!! Now my questions. a. My ranges can in practice be quite big, and

Re: sqlite savepoint problem [solved]

2010-03-15 Thread Laszlo Nagy
#1. By using isolation_level = None, connection objects (used as a context manager) WON'T automatically commit or rollback transactions. #2. Using any isolation level, connection objects WON'T automatically begin a transaction. #3. Possibly, include your connection manager class code, to show

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-15 Thread Robin Becker
On 12/03/2010 19:29, Martin v. Löwis wrote: Not sure if this is a bug I think it is. It seems that the cross-build support in msvc9compiler has been tested only in a build tree of Python (where there is no Libs directory). This minor patch seems to fix the problem for me (using a PCBuild

Re: Reverse engineering CRC?

2010-03-15 Thread Gregory Ewing
I've solved the problem now. It turned out to be a very standard CRC algorithm, complicated by the presence of a few extra bytes of data being checked that didn't appear explicitly in the file anywhere. In the process I developed some very general techniques for solving this kind of problem,

Re: dll in project?

2010-03-15 Thread Ulrich Eckhardt
Alex Hall wrote: I have a dll I am trying to use, but I get a Windows error 126, the specified module could not be found. Here is the code segment: nvdaController=ctypes.windll.LoadLibrary(nvdaControllerClient32.dll) In addition to Alf's answer, this can also happen when the OS can't find

Re: staticmethod and setattr

2010-03-15 Thread Steven D'Aprano
On Mon, 15 Mar 2010 01:43:02 -0700, Michael.Lausch wrote: Hi, I managed to get confused by Python, which is not such an easy task. The problem i have is rooted in marshalling, JSON and Dojo. I need some static class in function with the name $ref i tried: class Foo(object):

Re: File existence check with partial filename

2010-03-15 Thread Lan Qing
Or use the regular module: import re import os for filename in os.listdir('.'): if re.match(*HV*, filename): # do something with the file On Mon, Mar 15, 2010 at 12:24 PM, Alf P. Steinbach al...@start.no wrote: * Sang-Ho Yun: I learned that I can check the existence of a file

Re: dll in project?

2010-03-15 Thread Alex Hall
On 3/15/10, Ulrich Eckhardt eckha...@satorlaser.com wrote: Alex Hall wrote: I have a dll I am trying to use, but I get a Windows error 126, the specified module could not be found. Here is the code segment: nvdaController=ctypes.windll.LoadLibrary(nvdaControllerClient32.dll) In addition to

Re: dll in project?

2010-03-15 Thread Alf P. Steinbach
* Alex Hall: On 3/15/10, Ulrich Eckhardt eckha...@satorlaser.com wrote: Alex Hall wrote: I have a dll I am trying to use, but I get a Windows error 126, the specified module could not be found. Here is the code segment: nvdaController=ctypes.windll.LoadLibrary(nvdaControllerClient32.dll) In

Re: dll in project?

2010-03-15 Thread Ulrich Eckhardt
Alex Hall wrote: On 3/15/10, Ulrich Eckhardt eckha...@satorlaser.com wrote: Alex Hall wrote: I have a dll I am trying to use, but I get a Windows error 126, the specified module could not be found. Here is the code segment: nvdaController=ctypes.windll.LoadLibrary(nvdaControllerClient32.dll)

Large regular expressions

2010-03-15 Thread Nathan Harmston
Hi, So I m trying to use a very large regular expression, basically I have a list of items I want to find in text, its kind of a conjunction of two regular expressions and a big list..not pretty. However everytime I try to run my code I get this exception: OverflowError: regular expression

Re: staticmethod and setattr

2010-03-15 Thread Michael.Lausch
On Mar 15, 11:40 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Mon, 15 Mar 2010 01:43:02 -0700, Michael.Lausch wrote: Hi, I managed to get confused by Python, which is not such an easy task. The problem i have is rooted in marshalling, JSON and Dojo. I need some

Re: Large regular expressions

2010-03-15 Thread Stefan Behnel
Nathan Harmston, 15.03.2010 13:21: So I m trying to use a very large regular expression, basically I have a list of items I want to find in text, its kind of a conjunction of two regular expressions and a big list..not pretty. However everytime I try to run my code I get this exception:

Re: Large regular expressions

2010-03-15 Thread Alain Ketterlin
Nathan Harmston iwanttobeabad...@googlemail.com writes: [...] Could anyone suggest other methods of these kind of string matching in Python? I m trying to see if my swigged alphabet trie is faster than whats possible in Python! Since you mention using a trie, I guess it's just a big

Re: dll in project?

2010-03-15 Thread Alex Hall
Okay, I got a new copy and all seems well now. The dll is found and loaded. The functions inside the dll are not working, but that is not Python's fault. Thanks to everyone for your help and suggestions! On 3/15/10, Ulrich Eckhardt eckha...@satorlaser.com wrote: Alex Hall wrote: On 3/15/10,

Re: Dreaming of new generation IDE

2010-03-15 Thread catonano
Hello again, people On Feb 11, 6:30 pm, Francis Carr coldtort...@gmail.com wrote: I can't believe the code editing situation today is in a such sorry state. I can't believe an old coder is feeling so sorry for himself. Ok, I'm feeling sorry; still, I think I made a point. Today, I

Re: Understanding the CPython dict implementation

2010-03-15 Thread Alex Willmer
On Mar 15, 4:06 am, John Nagle na...@animats.com wrote:     Is this available as a paper?                                 John Nagle It doesn't wppear to be, slides are here: http://us.pycon.org/2010/conference/schedule/event/12/ Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: staticmethod and setattr

2010-03-15 Thread Bruno Desthuilliers
Michael.Lausch a écrit : (snip) Now I'm trying to understand why this is the case. How is Foo.__dict__['_ref'] different from Foo._ref? Shouldn't it return the same attribute? It's an application of the descriptor protocol: http://wiki.python.org/moin/FromFunctionToMethod --

Re: staticmethod and setattr

2010-03-15 Thread Andreas Löscher
Am Montag, den 15.03.2010, 05:42 -0700 schrieb Michael.Lausch: On Mar 15, 11:40 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Mon, 15 Mar 2010 01:43:02 -0700, Michael.Lausch wrote: Hi, I managed to get confused by Python, which is not such an easy task. The

Re: Python for newbies (Pythno users group in Macedonia)

2010-03-15 Thread Дамјан Георгиевски
If you are all English-speakers then perhaps you could consider showing a PyCon video - see http://pycon.blip.tv That's certainly something I'm considering for the more advanced users Good luck with the group. I hope to see PyCon Macedonia emerging before too long! Thanks :) I guess

Re: Python for newbies (Pythno users group in Macedonia)

2010-03-15 Thread Дамјан Георгиевски
we are starting with bi-monthly Python User Group meetings in Skopje, Macedonia. The meetings are targeted for both beginners and more experienced users. ... http://us.pycon.org/2010/conference/schedule/event/108/ Great resource, exactly what I needed. So, they use this book

Re: File existence check with partial filename

2010-03-15 Thread MRAB
Lan Qing wrote: Or use the regular module: import re import os for filename in os.listdir('.'): if re.match(*HV*, filename): # do something with the file The regular expression should be .*HV.*, although: re.search(HV, filename) would be better and: HV in

EuroPython 2010 - Open for registration and reminder of participation

2010-03-15 Thread Alex Willmer
EuroPython 2010 - 17th to 24th July 2010 EuroPython is a conference for the Python programming language community, including the Django, Zope and Plone communities. It is aimed at everyone in the Python community, of all skill levels, both users and

Re: Large regular expressions

2010-03-15 Thread MRAB
Nathan Harmston wrote: Hi, So I m trying to use a very large regular expression, basically I have a list of items I want to find in text, its kind of a conjunction of two regular expressions and a big list..not pretty. However everytime I try to run my code I get this exception:

to pass self or not to pass self

2010-03-15 Thread lallous
Hello, Learning Python from the help file and online resources can leave one with many gaps. Can someone comment on the following: # - class X: T = 1 def f1(self, arg): print f1, arg=%d % arg def f2(self, arg): print f2, arg=%d % arg def f3(self, arg):

Arguments and a return value of a C function call when using setprofile

2010-03-15 Thread Michal Kwiatkowski
Hi, I'm trying to write code that will trace arguments and return values of all function calls. Using sys.settrace with 'call' and 'return' events works great for Python functions, but now I want to extend that to C functions as well. Using sys.setprofile instead in theory gives me what I need

Re: Python for newbies (Pythno users group in Macedonia)

2010-03-15 Thread Steve Holden
Дамјан Георгиевски wrote: If you are all English-speakers then perhaps you could consider showing a PyCon video - see http://pycon.blip.tv That's certainly something I'm considering for the more advanced users Good luck with the group. I hope to see PyCon Macedonia emerging before too

Re: Fwd: Some PyCon videos won't play

2010-03-15 Thread Steve Holden
Lan Qing wrote: In China these video can not watch at all. I must spent 3 days to download it... That's a great pity. If they would be useful to a large population perhaps we could consider having copies hosted where they would be available with higher bandwidth? Who could we (the Python

extract occurrence of regular expression from elements of XML documents

2010-03-15 Thread Martin Schmidt
Hi, I have just started to use Python a few weeks ago and until last week I had no knowledge of XML. Obviously my programming knowledge is pretty basic. Now I would like to use Python in combination with ca. 2000 XML documents (about 30 kb each) to search for certain regular expression within

Re: File existence check with partial filename

2010-03-15 Thread Steven Howe
What wrong with glob? --- Help on module glob: NAME glob - Filename globbing utility. FILE /usr/lib64/python2.6/glob.py FUNCTIONS glob(pathname) Return a list of paths matching a pathname pattern. The pattern may contain simple shell-style

Re: extract occurrence of regular expression from elements of XML documents

2010-03-15 Thread Steve Holden
Martin Schmidt wrote: Hi, I have just started to use Python a few weeks ago and until last week I had no knowledge of XML. Obviously my programming knowledge is pretty basic. Now I would like to use Python in combination with ca. 2000 XML documents (about 30 kb each) to search for certain

subtraction is giving me a syntax error

2010-03-15 Thread Joel Pendery
So I am trying to write a bit of code and a simple numerical subtraction y_diff = y_diff-H is giving me the error Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no encoding declared. Even though I have deleted some lines before it and this line is no longer line 70, I am still

Re: to pass self or not to pass self

2010-03-15 Thread TomF
On 2010-03-15 09:39:50 -0700, lallous elias.bachaal...@gmail.com said: Hello, Learning Python from the help file and online resources can leave one with many gaps. Can someone comment on the following: # - class X: T = 1 def f1(self, arg): print f1, arg=%d % arg

Re: subtraction is giving me a syntax error

2010-03-15 Thread Richard Brodie
Joel Pendery joel.pend...@gmail.com wrote in message news:56597268-3472-4fd9-a829-6d9cf51cf...@e7g2000yqf.googlegroups.com... y_diff = y_diff-H Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no encoding declared. That's likely an en-dash, not a minus sign. --

Re: subtraction is giving me a syntax error

2010-03-15 Thread Benjamin Kaplan
On Mon, Mar 15, 2010 at 1:37 PM, Joel Pendery joel.pend...@gmail.comwrote: So I am trying to write a bit of code and a simple numerical subtraction y_diff = y_diff-H is giving me the error Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no encoding declared. Even though

Re: subtraction is giving me a syntax error

2010-03-15 Thread Philip Semanchuk
On Mar 15, 2010, at 1:37 PM, Joel Pendery wrote: So I am trying to write a bit of code and a simple numerical subtraction y_diff = y_diff-H is giving me the error Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no encoding declared. Even though I have deleted some lines

Re: to pass self or not to pass self

2010-03-15 Thread Rami Chowdhury
On Monday 15 March 2010 10:42:41 TomF wrote: On 2010-03-15 09:39:50 -0700, lallous elias.bachaal...@gmail.com said: Why in test1() when it uses the class variable func_tbl we still need to pass self, but in test2() we don't ? What is the difference between the reference in 'F' and

Re: subtraction is giving me a syntax error

2010-03-15 Thread MRAB
Joel Pendery wrote: So I am trying to write a bit of code and a simple numerical subtraction y_diff = y_diff-H is giving me the error Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no encoding declared. Even though I have deleted some lines before it and this line is no

Re: subtraction is giving me a syntax error

2010-03-15 Thread Grant Edwards
On 2010-03-15, Philip Semanchuk phi...@semanchuk.com wrote: On Mar 15, 2010, at 1:37 PM, Joel Pendery wrote: So I am trying to write a bit of code and a simple numerical subtraction y_diff = y_diff-H is giving me the error Syntaxerror: Non-ASCII character '\x96' in file on line 70, but

Re: class inheritance

2010-03-15 Thread Jean-Michel Pichavant
JLundell wrote: I've got a subclass of fractions.Fraction called Value; it's a mostly trivial class, except that it overrides __eq__ to mean 'nearly equal'. However, since Fraction's operations result in a Fraction, not a Value, I end up with stuff like this: x = Value(1) + Value(2) where x is

Re: staticmethod and setattr

2010-03-15 Thread Jean-Michel Pichavant
Am Montag, den 15.03.2010, 05:42 -0700 schrieb Michael.Lausch: On Mar 15, 11:40 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Mon, 15 Mar 2010 01:43:02 -0700, Michael.Lausch wrote: Hi, I managed to get confused by Python, which is not such an easy

Re: Breaking the __main__ script

2010-03-15 Thread Jean-Michel Pichavant
Steve Holden wrote: pyt...@bdurham.com wrote: Any reason you prefer PDB over WinPDB? http://winpdb.org/ Yes. I don't have Windows except one one PC :P WinPDB runs on non-Windows platforms :) One might reasonably argue that it has a pretty couter-intuitive name, then.

Re: Breaking the __main__ script

2010-03-15 Thread Jean-Michel Pichavant
vsoler wrote: Hello, I am still learning python, thus developnig small scripts. Some of them consist only of the main module. While testing them (debugging) I sometimes want to stop the script at a certain point, with something likestop, break, end or something similar. What statement

Re: subtraction is giving me a syntax error

2010-03-15 Thread Baptiste Carvello
Joel Pendery a écrit : So I am trying to write a bit of code and a simple numerical subtraction y_diff = y_diff-H is giving me the error Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no encoding declared. Even though I have deleted some lines before it and this line is no

Re: Breaking the __main__ script

2010-03-15 Thread Jean-Michel Pichavant
Jean-Michel Pichavant wrote: vsoler wrote: Hello, I am still learning python, thus developnig small scripts. Some of them consist only of the main module. While testing them (debugging) I sometimes want to stop the script at a certain point, with something likestop, break, end or

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-15 Thread Astley Le Jasper
Hi Robin, It looks like you've been busy. I'm sorry but you are well over my head at the moment! :-) If you need me to test an install then I'd be happy to help. However, I just received an email from Christoph Gohlke saying: ... There are 64 bit versions of Reportlab and PIL for Python 2.6

[ANN] OpenOpt 0.28, FuncDesigner 0.18, DerApproximator 0.18

2010-03-15 Thread dmitrey
Hi all, I'm glad to inform you about new release of our free (BSD-licensed) soft OpenOpt 0.28 (numerical optimization), FuncDesigner 0.18 (CAS with automatic differentiation), DerApproximator 0.18 (finite- differeces derivatives approximation). More details here:

Re: Clustering and automated configuration deployment toolkit with Python

2010-03-15 Thread Philip Semanchuk
On Mar 13, 2010, at 6:21 PM, np map wrote: I'd like to write an open source clustering (for computation and general use) and automation of configuration/deployment in Python. It's main purpose is to be used in academic environments. It would be something like running numpy/simpy code (and

Re: When to lock data items returned by multiprocessing.Manager?

2010-03-15 Thread Aahz
In article 4428d674-7fa7-4095-a93d-75ea31a81...@15g2000yqi.googlegroups.com, Veloz michaelve...@gmail.com wrote: So I'm using a multiprocessing.Manager instance in my main app and asking it to create a dictionary, which I am providing to instances of the application that I'm forking off with

Re: Reverse engineering CRC?

2010-03-15 Thread jkn
Hi Greg Just to say thanks for taking the time to write up your work on this interesting topic. Cheers J^n -- http://mail.python.org/mailman/listinfo/python-list

Re: Reverse engineering CRC?

2010-03-15 Thread geremy condra
On Mon, Mar 15, 2010 at 6:29 AM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: I've solved the problem now. It turned out to be a very standard CRC algorithm, complicated by the presence of a few extra bytes of data being checked that didn't appear explicitly in the file anywhere. In the

Re: subtraction is giving me a syntax error

2010-03-15 Thread Steven D'Aprano
On Mon, 15 Mar 2010 18:09:29 +, Grant Edwards wrote: Delete the character between y_diff and H and replace it with a plain ASCII subtraction sign. I think somebody needs to stop editing his code with MS Word and start using a programming editor. ;) I've had this error myself, and I've

Re: subtraction is giving me a syntax error

2010-03-15 Thread John Machin
On Mar 16, 5:43 am, Baptiste Carvello baptiste...@free.fr wrote: Joel Pendery a écrit : So I am trying to write a bit of code and a simple numerical subtraction y_diff = y_diff-H is giving me the error Syntaxerror: Non-ASCII character '\x96' in file on line 70, but no encoding

Re: subtraction is giving me a syntax error

2010-03-15 Thread Grant Edwards
On 2010-03-15, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Mon, 15 Mar 2010 18:09:29 +, Grant Edwards wrote: Delete the character between y_diff and H and replace it with a plain ASCII subtraction sign. I think somebody needs to stop editing his code with MS Word and

Re: class inheritance

2010-03-15 Thread JLundell
On Mar 13, 1:26 pm, Carl Banks pavlovevide...@gmail.com wrote: It's a tad unfortunately Python doesn't make this easier.  If I had to do it more than once I'd probably write a mixin to do it: class ArithmeticSelfCastMixin(object):     def __add__(self,other):         return

Re: logging: local functions == loss of lineno

2010-03-15 Thread Hellmut Weber
Am 11.03.2010 12:14, schrieb Peter Otten: Hellmut Weber wrote: Logging works very well giving the filename and line number of the point where it is called. As long as I use the loggers directly. BUT when I have to wrap the logger call in some other function, I always get file name and line

Re: class inheritance

2010-03-15 Thread Carl Banks
On Mar 15, 4:34 pm, JLundell jlund...@pobox.com wrote: It's also unfortunate that Python doesn't have an approximately-equal operator; it'd come in handy for floating-point applications while preserving hash. If only there were a ~= or ≈ operator I could overload. And ~ is unary, so no joy.

Binary data transfer issue

2010-03-15 Thread Jordan Apgar
Hi all, I'm trying to transfer a binary file over xmlrpclib. My test file is a .jpeg file. I can transfer all the data over but when I go to open the .jpeg I get Error interpreting JPEG image file (Invalid JPEG file structure: SOS before SOF) here's the code: ===Various Shared

Re: Binary data transfer issue

2010-03-15 Thread MRAB
Jordan Apgar wrote: Hi all, I'm trying to transfer a binary file over xmlrpclib. My test file is a .jpeg file. I can transfer all the data over but when I go to open the .jpeg I get Error interpreting JPEG image file (Invalid JPEG file structure: SOS before SOF) here's the code:

Build Python with XCode

2010-03-15 Thread moerchendiser2k3
Hi, I would like to build Python with Xcode (but without the makefile). Does anyone know a link where I can get a real xcodeproj with the current Py2.x sources? Thanks in advance!! Bye, donnerCobra -- http://mail.python.org/mailman/listinfo/python-list

Re: converting datetime with tzinfo to unix timestamp

2010-03-15 Thread Gabriel Genellina
En Fri, 12 Mar 2010 20:15:55 -0300, Michael Torrie torr...@gmail.com escribió: On Python 2.5 here. I've searched and searched but I can't find any way to convert a datetime object that includes a timezone (tzinfo) to a unix timestamp. Folks on the net say to simply use the timetuple() method

Re: result of os.times() is different with 'time' command Options

2010-03-15 Thread Gabriel Genellina
En Mon, 15 Mar 2010 03:51:28 -0300, hiral hiralsmaill...@gmail.com escribió: On Mar 15, 7:14 am, Tim Roberts t...@probo.com wrote: hiralhiralsmaill...@gmail.com wrote: Output: real0.0m0.010002421s user0.0m0.0s sys 0.0m0.0s Command: $ time ls Output: real0m0.007s user

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-15 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I reviewed the patch: +_hexdig = '0123456789ABCDEFabcdef' +_hextochr = dict((a+b, chr(int(a+b,16))) for a in _hexdig for b in _hexdig) is really a neat way to generate the dict of mixed-case percent escape to use with to unquote. I shall

[issue8145] Documentation about sqlite3 isolation_level

2010-03-15 Thread Laszlo Nagy
New submission from Laszlo Nagy nagy...@gmail.com: Clarify what isolation_level does, and how to use it, and why connections do not commit/rollback in some cases. Details here: http://mail.python.org/pipermail/python-list/2010-March/1239374.html I'll paste code for ctx_manager_2.py here.

[issue6081] str.format_from_mapping()

2010-03-15 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- assignee: - eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6081 ___ ___ Python-bugs-list

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-15 Thread Matt Giuca
Matt Giuca matt.gi...@gmail.com added the comment: Thanks very much. Importantly, note that unquote is currently duplicated between urllib and urlparse. I have a bug on it (#8143) but in the meantime, you will have to commit this fix to both modules. --

[issue8126] Python 3.1.2rc1 doesn't compile using the 10.4 sdk on a 10.6 Mac

2010-03-15 Thread Palluat de Besset
Palluat de Besset marc.palluatdebes...@sophos.com added the comment: Yes, sorry for the confusion. I'm trying to build a universal 32 bit version of Python that will be embedded in our software. we need it to run on 10.4 to 10.6 Mac systems, and would like to build it on a 10.6 machine. I've

[issue8141] test_asynchat test_smtplib failures in 2.6 release branch

2010-03-15 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8141 ___ ___

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-15 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: As per msg100765, Ned confirms this is fixed for 2.6.5. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8089 ___

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2010-03-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: One issue to consider is pre/post-install actions. bdist_wininst loads pythonxy.dll from the target system, which would fail if it is a 32-bit installer process that tries to load a 64-bit python DLL. --

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-15 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Re-opening for 3.1.2: the corresponding fixes have not made it into 3.1.2 yet. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8089

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- versions: +Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8089 ___ ___

[issue8146] Latest version of Python for windows 98

2010-03-15 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: http://www.python.org/download/windows/ This page lacks information about which versions of Python were last supported for Windows 95, Windows 98 and Windows 2000. Which may run even though they are not supported on these platforms

[issue8147] os.system and standard C function system() limitations

2010-03-15 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: http://docs.python.org/library/os.html#os.system ...This is implemented by calling the Standard C function system(), and has the same limitations... Which limitations? BTW, is the Windows 98 comment can be dropped. --

[issue5459] msiexec not creating msvcr90.dll with python -2.6.1.msi

2010-03-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I can't reproduce this. If I run the file with msiexec, then select install just for me, it will copy msvcr90.dll just fine. -- nosy: +loewis resolution: - works for me status: open - closed ___

[issue6949] Support Berkeley DB 4.8

2010-03-15 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: checked in after testing on {arm,i486,x86_64,powerpc,sparc,ia64}-linux with no test failures. fixed in r78974 on the trunk fixed in r78975 on the py3k branch -- resolution: - fixed status: open - closed

[issue6716] Windows install error when choosing to compile .py files

2010-03-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Please don't report multiple issues in a single bug report; when people follow up claiming they saw this, it's then not clear what exactly they saw. I have now fixed problem 1 in r78976, and put an installer incorporating that change on

[issue3621] it would be nice if installers made by bdist_wininst stored an EstimatedSize property in the Windows registry

2010-03-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you provide a patch? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3621 ___

[issue4982] Running python 3 as Non-admin User requests the Runtime to terminate in an unusual way.

2010-03-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Closing because of lack of response -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4982

[issue8142] libffi update to 3.0.9

2010-03-15 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: updated on the trunk and the py3k branch -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8142

[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2010-03-15 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Greg, is this issue still pending?. Can we close it?. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2960 ___

[issue8147] os.system and standard C function system() limitations

2010-03-15 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: That would depend on the implementation of the system() call on your platform. There are already two notes for Unix and Windows right below that paragraph. Going further into lower level specifics of the system() call is outside the scope of that

[issue7339] bsddb crashes when transaction limit occurs

2010-03-15 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I found the very same bug recently, and solve it in pybsddb 4.8.3. My patch is exactly like this :). The problem will be solved in 2.7 when I integrate pybsddb 4.8.3/4.8.4. Not sure about 2.6, though. Will try. changeset: 478:a35a9082ee26

[issue7356] parsing of ldconfig output in ctypes/utils.py depends on the locale

2010-03-15 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: fixed for 2.7, 3.1, 3.2, will fix for 2.6 after the 2.6.5 release. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7356 ___

  1   2   >