[ANN] EuroSciPy 2009 - Presentation Schedule Published

2009-06-02 Thread Mike Müller
EuroSciPy 2009 Presentation Schedule Published == The schedule of presentations for the EuroSciPy conference is online: http://www.euroscipy.org/presentations/schedule.html We have 16 talks from a variety of scientific fields. All about using Python

Re: Installing 3.1 questions

2009-06-02 Thread Martin v. Löwis
Seems to work, but I'd like to know where Python installs its items. I'm wanting to test version 3.1 and downloaded the 'Bzipped source tar ball' file (not sure of the difference between it and the 'Gzipped' one). Do I need to run some sort of 'install' command from the Terminal to get

Re: Why date do not construct from date?

2009-06-02 Thread Chris Rebert
On Mon, Jun 1, 2009 at 10:25 PM, Alexandr N Zamaraev to...@promsoft.ru wrote: Simple example: [code] Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 import datetime as dt dt.date(2009, 10, 15) datetime.date(2009, 10, 15) d = dt.date(2009, 10, 15)

Re: Generating all combinations

2009-06-02 Thread pataphor
Mensanator wrote: I couldn't do that if they weren't subsets. Right. Sometimes one just has to assume things are different even if they look the same on the surface. That is because else one wouldn't be able to produce the other generators. I guess it would also work the other way around,

Re: Why date do not construct from date?

2009-06-02 Thread Gabriel Genellina
En Tue, 02 Jun 2009 03:14:22 -0300, Chris Rebert c...@rebertia.com escribió: On Mon, Jun 1, 2009 at 10:25 PM, Alexandr N Zamaraev to...@promsoft.ru wrote: import datetime as dt d = dt.date(2009, 10, 15) dt.date(d) Traceback (most recent call last):  File stdin, line 1, in module

Re: Why date do not construct from date?

2009-06-02 Thread Peter Otten
Gabriel Genellina wrote: If one can say float(3.0), str(hello), etc -- what's so wrong with date(another_date)? You can do x = float(x) when you don't know whether x is a float, int, or str. Not terribly useful, but sometimes convenient because making the float() call idempotent allows you

python 2.6 packages in python 3.0

2009-06-02 Thread ssd
Hi, I usually works with packages like pyserial, numpy, mathplotlib,pyUSB, etc.. When is planned that these packages are supported in Python 3.0? Seen this i would say that is not recommendable to use Python 3.0 at the moment? most of 2.6 packages are not available, not working in python 3.0.

Re: python 2.6 packages in python 3.0

2009-06-02 Thread Chris Rebert
On Tue, Jun 2, 2009 at 12:51 AM, ssd c...@d.com wrote: Hi, I usually works with packages like pyserial, numpy, mathplotlib,pyUSB, etc.. When is planned that these packages are supported in Python 3.0? That would depend on the individual packages and their maintainers. Check their respective

[no subject]

2009-06-02 Thread Kiran Siddiqui
hi have to parse a very complex dumps(whatever it is), i have done the parsing thruogh python.since the parsed data is very huge in amount, i have to feed it in the database (SQL), I have also done this... now the thing is i have to compare the data now present in the sql. in actual i have

what is the biggest number that i can send to Wave_write.writeframes(data)

2009-06-02 Thread '2+
would like to take advantage of the wave module found a good example here: http://www.python-forum.org/pythonforum/viewtopic.php?f=2t=10644 hmm .. i don't get how to write a stereo .. i mean i can set nchannels .. but how do i actually take control of each ch individually? and what's the range(in

Re: TypeError: 'int' object is not callable

2009-06-02 Thread Richard Brodie
Visco Shaun visc...@gmail.com wrote in message news:mailman.966.1243852864.8015.python-l...@python.org... when I was executing the below code I got TypeError: 'int' object is not callable exception. Why is it so? if type(c) == type(ERROR): You've probably assigned to type somewhere in your

Re: Ah, ctypes

2009-06-02 Thread Lawrence D'Oliveiro
In message slrnh27r80.l3s.n...@irishsea.home.craig-wood.com, Nick Craig- Wood wrote: As a ctypes user I found this an interesting story - thanks for posting it! By the way, I hate wildcard imports. In the ctypes docs, they recommend you do this from ctypes import * but I prefer this:

Re:

2009-06-02 Thread Teguh Iskanto
how about this : - dump those data with sort enabled - use diff to those two dumps , eg: diff dump_a dump_b if you don't know what diff is , try : man diff HTH On Tue, Jun 2, 2009 at 2:50 AM, Kiran Siddiqui kiran-siddi...@hotmail.comwrote: hi have to parse a very complex dumps(whatever it

Re: how to get the path of a module (myself) ?

2009-06-02 Thread Vlastimil Brom
2009/6/2 Stef Mientki stef.mien...@gmail.com: ... and the files generated by Py2Exe, don't work at all. Through this discussion, I discovered another problem, because __file__ isn't the current file, I can't run 1 module(file) from another module (file) . --

Seach for encrypted socket wrapper

2009-06-02 Thread Hans Müller
Hello experts, I'm looking for secure way to pass messages from a python program to a c-library in both ways. This scenario is given: display client Calculation module in COBOL (yes, big, old but it works well) (python, wxpython) - Network

Re: python 2.6 packages in python 3.0

2009-06-02 Thread Terry Reedy
Chris Rebert wrote: On Tue, Jun 2, 2009 at 12:51 AM, ssd c...@d.com wrote: Hi, I usually works with packages like pyserial, numpy, mathplotlib,pyUSB, etc.. When is planned that these packages are supported in Python 3.0? That would depend on the individual packages and their maintainers.

Re: Challenge supporting custom deepcopy with inheritance

2009-06-02 Thread Lie Ryan
Gabriel Genellina wrote: En Mon, 01 Jun 2009 14:19:19 -0300, Michael H. Goldwasser goldw...@slu.edu escribió: I can examine the inherited slots to see which special methods are there, and to implement my own __deepcopy__ accordingly. But to do so well seems to essentially require

Re: Is there any module for sea tides?

2009-06-02 Thread Roy Smith
In article fca9e25e-1a18-467c-bfec-01feebb62...@t11g2000vbc.googlegroups.com, alex23 wuwe...@gmail.com wrote: alejandro aleksanda...@brisiovonet.hr wrote: I found some in C but could not find in Python The best I could find was a reference to some in-house code used by the US

Re: Why date do not construct from date?

2009-06-02 Thread Lie Ryan
Gabriel Genellina wrote: En Tue, 02 Jun 2009 03:14:22 -0300, Chris Rebert c...@rebertia.com escribió: On Mon, Jun 1, 2009 at 10:25 PM, Alexandr N Zamaraev to...@promsoft.ru wrote: import datetime as dt d = dt.date(2009, 10, 15) dt.date(d) Traceback (most recent call last): File

do replacement evenly

2009-06-02 Thread oyster
I have some strings, and I want to write them into a text files, one string one line but there is a requirement: every line has a max length of a certain number(for example, 10), so I have to replace extra SPACE*3 with SPACE*2, at the same time, I want to make the string looks good, so, for I

Re: Why date do not construct from date?

2009-06-02 Thread Lie Ryan
Lie Ryan wrote: Gabriel Genellina wrote: En Tue, 02 Jun 2009 03:14:22 -0300, Chris Rebert c...@rebertia.com escribió: On Mon, Jun 1, 2009 at 10:25 PM, Alexandr N Zamaraev to...@promsoft.ru wrote: import datetime as dt d = dt.date(2009, 10, 15) dt.date(d) Traceback (most recent call

Re: do replacement evenly

2009-06-02 Thread Iain King
On Jun 2, 12:10 pm, oyster lepto.pyt...@gmail.com wrote: I have some strings, and I want to write them into a text files, one string one line but there is a requirement: every line has a max length of a certain number(for example, 10), so I have to replace extra SPACE*3 with SPACE*2, at the

Re: What text editor is everyone using for Python

2009-06-02 Thread Christopher
On May 25, 1:35 pm, LittleGrasshopper seattleha...@yahoo.com wrote: With so many choices, I was wondering what editor is the one you prefer when coding Python, and why. I normally use vi, and just got into Python, so I am looking for suitable syntax files for it, and extra utilities. I dabbled

Re: Problem building 64-bit python 2.6.2 on Solaris 10

2009-06-02 Thread John Center
Hi Martin, I was able to compile ctypes with gcc4sparc without many changes to the CFLAGS, etc. I had another weird error, but upgrading to the latest gcc4sparc fixed it. One thing I'm not clear about is how extensions are built. I noticed that my CFLAGS are not being passed to gcc when

Re: do replacement evenly

2009-06-02 Thread Mike Kazantsev
On Tue, 2 Jun 2009 19:10:18 +0800 oyster lepto.pyt...@gmail.com wrote: I have some strings, and I want to write them into a text files, one string one line but there is a requirement: every line has a max length of a certain number(for example, 10), so I have to replace extra SPACE*3 with

Re: do replacement evenly

2009-06-02 Thread oyster
here is what I get [code] import re reSplitObj=re.compile('([ \t]*)|([^ \t]*)') def evenReplace(aStr, length): aStr=aStr.rstrip() tmp=reSplitObj.split(aStr) tmp=[i for i in tmp if i not in ['', None]] lenStr=[[0, len(i)][i.strip()!=''] for i in tmp] lenSpc=[[0,

Re: Challenge supporting custom deepcopy with inheritance

2009-06-02 Thread Scott David Daniels
Michael H. Goldwasser wrote: On Monday June 1, 2009, Scott David Daniels wrote: Michael H. Goldwasser wrote: I'll accept the small price for flexibility that you note, if necessary. However, I still desire a cleaner solution. You seem to think that deepcopy is a

pyPgSql there is already a transaction in progres

2009-06-02 Thread someone
Hi, I'm using pyPgSQL for accessing Postgres and do some update and select queries. and getting WARNING: there is already a transaction in progress if I run runUpdate more than once. So, what happens is following: 1. SELECT address FROM address WHERE LOWER(address) = LOWER(%s); -- __existRecord

Re: Seach for encrypted socket wrapper

2009-06-02 Thread garabik-news-2005-05
Hans Müller heint...@web.de wrote: Hello experts, I'm looking for secure way to pass messages from a python program to a c-library in both ways. This scenario is given: display client Calculation module in COBOL (yes, big, old but it works

Re: do replacement evenly

2009-06-02 Thread Scott David Daniels
oyster wrote: I have some strings, and I want to write them into a text files, one string one line but there is a requirement: every line has a max length of a certain number ... description of re-padding a line If you are doing this to fill and justify text, I seem to remember a research

Re: pyPgSql there is already a transaction in progres

2009-06-02 Thread Paul Boddie
On 2 Jun, 15:32, someone petshm...@googlemail.com wrote: Hi, I'm using pyPgSQL for accessing Postgres and do some update and select queries. and getting WARNING:  there is already a transaction in progress if I run runUpdate more than once. I think this is because you're using explicit

Re: what I would like python.el to do (and maybe it does)

2009-06-02 Thread rustom
But since i like to do it The Right Way, I would like to let the python-mode worry about this... Sorry if this is just a bunch of obvious thoughts to most of you. Regards, Giovanni I dont see whats the problem. Heres my attempt to show you my emacs windows using python-mode (python.el

Re: do replacement evenly

2009-06-02 Thread python
Here's how we normalize whitespace in multiline blocks of text. Perhaps you can adapt this routine to your needs? Watch for line wrap. # clean up duplicate whitespace, leading/trailing whitespace, triple CRLF's def fixwhitespace( text ): output = [] lastLine = ''

Re: pyPgSql there is already a transaction in progres

2009-06-02 Thread Tep
On Jun 2, 3:58 pm, Paul Boddie p...@boddie.org.uk wrote: On 2 Jun, 15:32, someone petshm...@googlemail.com wrote: Hi, I'm using pyPgSQL for accessing Postgres and do some update and select queries. and getting WARNING:  there is already a transaction in progress if I run runUpdate more

Re: Seach for encrypted socket wrapper

2009-06-02 Thread bobicanprogram
On Jun 2, 5:28 am, Hans Müller heint...@web.de wrote: Hello experts, I'm looking for secure way to pass messages from a python program to a c-library in both ways. This scenario is given: display client Calculation module in COBOL (yes, big, old

Re: how to get the path of a module (myself) ?

2009-06-02 Thread Stef Mientki
The same rule applies for your modules. As a general rule, NEVER say: execfile('mymodule.py') instead do: import mymodule mymodule.some_function() mymodule.another_function() (There are exceptions, but if you need to ask what they are, you're not ready to learn them! *wink*) hi

Safe to import __builtin__ ?

2009-06-02 Thread mrstevegross
Is it generally safe to explicitly import __builtin__ in python? That is, my code reads like this: === foo.py === import __builtin__ ... print __builtin__.type('a') === EOF === It seems like it should be a safe import, but I just want to make sure. Thanks, --Steve --

Re: how to get the path of a module (myself) ?

2009-06-02 Thread Robert Kern
On 2009-06-02 14:24, Stef Mientki wrote: The same rule applies for your modules. As a general rule, NEVER say: execfile('mymodule.py') instead do: import mymodule mymodule.some_function() mymodule.another_function() (There are exceptions, but if you need to ask what they are, you're not

Re: Safe to import __builtin__ ?

2009-06-02 Thread MRAB
mrstevegross wrote: Is it generally safe to explicitly import __builtin__ in python? That is, my code reads like this: === foo.py === import __builtin__ ... print __builtin__.type('a') === EOF === It seems like it should be a safe import, but I just want to make sure. Why do you want to

Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Joseph Garvin
So I was curious whether it's possible to use the ctypes module with C++ and if so how difficult it is. I figure in principal it's possible if ctypes knows about each compiler's name mangling scheme. So I searched for ctypes c++ on Google. The third link will be Using ctypes to Wrap C++

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Diez B. Roggisch
Joseph Garvin schrieb: So I was curious whether it's possible to use the ctypes module with C++ and if so how difficult it is. I figure in principal it's possible if ctypes knows about each compiler's name mangling scheme. So I searched for ctypes c++ on Google. The third link will be Using

Re: Challenge supporting custom deepcopy with inheritance

2009-06-02 Thread Gabriel Genellina
En Tue, 02 Jun 2009 07:34:43 -0300, Lie Ryan lie.1...@gmail.com escribió: Gabriel Genellina wrote: En Mon, 01 Jun 2009 14:19:19 -0300, Michael H. Goldwasser goldw...@slu.edu escribió: I can examine the inherited slots to see which special methods are there, and to implement my own

Creating Mac OS X app

2009-06-02 Thread sh00le
Hi, This is my first post here, hope this is the right group, and sorry for my broken English. So, let's start. I have created small PyQt application Simple Task Timer (http://code.google.com/p/simpletasktimer/). Also I created windows binary distro with py2exe, and Linux packages (.rpm and

Copying objects and multiple inheritance

2009-06-02 Thread Brian Allen Vanderburg II
What is the best way to copy an object that has multiple inheritance with the copy module. Particularly, some of the instances in the hierarchy use the __copy__ method to create a copy (because even for shallow copies they need some information updated a little differently), so how can I

Re: what is the biggest number that i can send to Wave_write.writeframes(data)

2009-06-02 Thread Rob Williscroft
'2+ wrote in news:mailman.1017.1243932401.8015.python-l...@python.org in comp.lang.python: would like to take advantage of the wave module found a good example here: http://www.python-forum.org/pythonforum/viewtopic.php?f=2t=10644 hmm .. i don't get how to write a stereo .. i mean i can

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Nick Craig-Wood
Diez B. Roggisch de...@nospam.web.de wrote: Joseph Garvin schrieb: So I was curious whether it's possible to use the ctypes module with C++ and if so how difficult it is. I figure in principal it's possible if ctypes knows about each compiler's name mangling scheme. So I searched for

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread A. Cavallo
Mmmm, not really a conspiracy but it is not that trivial In wrapping c++ you might find useful the commands nm with c++filt although they work under linux there is the same pair for every platform (under windows I remember there is objdump): they should only you need to wrap a c++ library.

Re: how to get the path of a module (myself) ?

2009-06-02 Thread Stef Mientki
Robert Kern wrote: On 2009-06-02 14:24, Stef Mientki wrote: The same rule applies for your modules. As a general rule, NEVER say: execfile('mymodule.py') instead do: import mymodule mymodule.some_function() mymodule.another_function() (There are exceptions, but if you need to ask what

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Sebastian Wiesner
Nick Craig-Wood – Mittwoch, 3. Juni 2009 00:29 Diez B. Roggisch de...@nospam.web.de wrote: Joseph Garvin schrieb: So I was curious whether it's possible to use the ctypes module with C++ and if so how difficult it is. I figure in principal it's possible if ctypes knows about each

Re: how to get the path of a module (myself) ?

2009-06-02 Thread Robert Kern
On 2009-06-02 18:00, Stef Mientki wrote: Robert Kern wrote: On 2009-06-02 14:24, Stef Mientki wrote: The same rule applies for your modules. As a general rule, NEVER say: execfile('mymodule.py') instead do: import mymodule mymodule.some_function() mymodule.another_function() (There are

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Dave Angel
Joseph Garvin wrote: So I was curious whether it's possible to use the ctypes module with C++ and if so how difficult it is. I figure in principal it's possible if ctypes knows about each compiler's name mangling scheme. So I searched for ctypes c++ on Google. The third link will be Using

Re: Exploding (**myvariable) a dict with unicode keys

2009-06-02 Thread Samuel Wan
I started using python last week and ran into exceptions thrown when unicode dictionary keys are exploded into function arguments. In my case, decoded json dictionaries did not work as function arguments. There was a thread from Oct 2008 (http://www.gossamer-threads.com/lists/python/python/684379)

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Roy Smith
In article 78lit5f1mvib...@mid.uni-berlin.de, Diez B. Roggisch de...@nospam.web.de wrote: More seriously -- how difficult is it to use ctypes instead of saying, boost::python, and why isn't this in a FAQ somewhere? ;) Because it's much more needed than name-mangling. Name mangling is

is anyone using text to speech to read python documentation

2009-06-02 Thread eric_dex...@msn.com
I wrote a small pre-processor for python documentation and I am looking for advice on how to get the most natural sounding reading. I uploaded an example of a reading of lxml documentation as a podcast1 http://dexrow.blogspot.com/2009/06/python-voice-preprocessor.html. --

Missing codecs in Python 3.0

2009-06-02 Thread samwyse
I have a Python 2.6 program (a code generator, actually) that tries several methods of compressing a string and chooses the most compact. It then writes out something like this: { encoding='bz2_codec', data = '...'} I'm having two problems converting this to Py3. First is the absence of the

Re: Safe to import __builtin__ ?

2009-06-02 Thread Ben Finney
mrstevegross mrstevegr...@gmail.com writes: Is it generally safe to explicitly import __builtin__ in python? That is, my code reads like this: === foo.py === import __builtin__ ... print __builtin__.type('a') === EOF === It seems like it should be a safe import, but I just want to

Re: how to find the last decorator of a chain

2009-06-02 Thread Aahz
In article mailman.939.1243725387.8015.python-l...@python.org, Gabriel gabr...@opensuse.org wrote: I have something like this: @render(format=a) @render(format=b) @ def view(format, data): return data Each render will do something with 'data' if format match, and nothing if not. But if

Re: Missing codecs in Python 3.0

2009-06-02 Thread Chris Rebert
On Tue, Jun 2, 2009 at 7:15 PM, samwyse samw...@gmail.com wrote: I have a Python 2.6 program (a code generator, actually) that tries several methods of compressing a string and chooses the most compact. It then writes out something like this:  { encoding='bz2_codec', data = '...'} I'm having

Re: Challenge supporting custom deepcopy with inheritance

2009-06-02 Thread Aahz
In article mailman.942.1243748839.8015.python-l...@python.org, Michael H. Goldwasser goldw...@slu.edu wrote: Assume that class B inherits from class A, and that class A has legitimately customized its deepcopy semantics (but in a way that is not known to class B). If we want a deepcopy of B to

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Lawrence D'Oliveiro
In message h04bjd$n9...@hoshi.visyn.net, Sebastian Wiesner wrote: Nick Craig-Wood – Mittwoch, 3. Juni 2009 00:29 That said I've used C++ with ctypes loads of times, but I always wrap the exported stuff in extern C { } blocks. No wonder, you have never actually used C++ with C types. An

Re: Seach for encrypted socket wrapper

2009-06-02 Thread Lawrence D'Oliveiro
In message 4a24f0cc$0$3278$8e6e7...@newsreader.ewetel.de, Hans Müller wrote: display clientCalculation module in COBOL (yes, big, old but it works well) (python, wxpython)- Network connection -C-Lib beeing called from COBOL to

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-02 Thread Kay Schluehr
On 3 Jun., 05:51, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message h04bjd$n9...@hoshi.visyn.net, Sebastian Wiesner wrote: Nick Craig-Wood – Mittwoch, 3. Juni 2009 00:29 That said I've used C++ with ctypes loads of times, but I always wrap the exported stuff in

problem with sockets and transferring binary files

2009-06-02 Thread thebiggestbangtheory
Dear all, I am a python newbie. I am now progressing to writing a network app in python to learn more about it. I have a client and a server in python. The client sends a msg to the server asking it to tar a binary .dbxml file and then send it over to it. The steps are: from the 1.

Re: Missing codecs in Python 3.0

2009-06-02 Thread Martin v. Löwis
samwyse wrote: I have a Python 2.6 program (a code generator, actually) that tries several methods of compressing a string and chooses the most compact. It then writes out something like this: { encoding='bz2_codec', data = '...'} I'm having two problems converting this to Py3. First is

Re: problem with sockets and transferring binary files

2009-06-02 Thread Gabriel Genellina
En Wed, 03 Jun 2009 01:54:02 -0300, thebiggestbangthe...@gmail.com escribió: I am a python newbie. I am now progressing to writing a network app in python to learn more about it. [...] Surprisingly, the sha1 hash of the encrypted data before it is sent from server is different

Re: how to get the path of a module (myself) ?

2009-06-02 Thread Gabriel Genellina
En Tue, 02 Jun 2009 06:11:30 -0300, Vlastimil Brom vlastimil.b...@gmail.com escribió: [...] just in case the main problem would be the use of __file__ ... It seems, that the exe files generated from py2exe don't recognise this variable; sometimes I used code like try: __file__ except

Re: Why date do not construct from date?

2009-06-02 Thread Gabriel Genellina
En Tue, 02 Jun 2009 08:07:32 -0300, Lie Ryan lie.1...@gmail.com escribió: Gabriel Genellina wrote: En Tue, 02 Jun 2009 03:14:22 -0300, Chris Rebert c...@rebertia.com escribió: On Mon, Jun 1, 2009 at 10:25 PM, Alexandr N Zamaraev to...@promsoft.ru wrote: import datetime as dt d =

Re: problem with sockets and transferring binary files

2009-06-02 Thread thebiggestbangtheory
On Jun 2, 10:29 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 03 Jun 2009 01:54:02 -0300, thebiggestbangthe...@gmail.com   escribió:            I am a python newbie. I am now progressing to writing a network app in python to learn more about it. [...] Surprisingly, the sha1

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-02 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Consider applications that need to validate addresses (or networks, but not both) supplied as user input: address = ipaddr.IP(input) if isinstance(address, ipaddr.IPv4):    if address.prefixlen != 32:        raise TypeError(Expecting IP

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'd like to see the issues fixed upstream, and the library removed from Python until it is satisfactory to the developers who will actually use it. To my knowledge, every developer (outside of Google) who has commented on the issue has

[issue6173] Minor typo in socket.py

2009-06-02 Thread Pablo Torres Navarrete
Changes by Pablo Torres Navarrete tn.pa...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6173 ___ ___

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-02 Thread Clay McClure
Clay McClure c...@daemons.net added the comment: On Tue, Jun 2, 2009 at 2:18 AM, Martin v. Löwis rep...@bugs.python.org wrote: I'd like to see the issues fixed upstream, and the library removed from Python until it is satisfactory to the developers who will actually use it. To my knowledge,

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-02 Thread pmoody
pmoody pyt...@hda3.com added the comment: I should think you would seek the opinion of those developers who actually do have plans to use an IP address library. That's what this has been doing for the last 8 1/2 months. As far as I can tell, every developer in that category, outside of

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The URL you provide for the log doesn't seem to be accessible externally so it is difficult to guess exactly what was being done. However, there were changes between 3.1b2 and 3.1rc1 to the top-level Makefile (Makefile.pre.in) and to the

[issue6172] 'make framework...' fails on Mac ([...]/bin/pythonw3.1: No such file or directory)

2009-06-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: See also Issue6170. -- nosy: +nad, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6172 ___

[issue6173] Minor typo in socket.py

2009-06-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks! Fixed in r73138, r71739, r71740, r71741. -- nosy: +marketdickinson resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior versions: +Python 3.0, Python 3.1

[issue6173] Minor typo in socket.py

2009-06-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Sorry. Those revision numbers should be: r73138, r73139, r73140, r73141. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6173 ___

[issue6175] inet_aton documentation kind of lies

2009-06-02 Thread Daniel Svensson
New submission from Daniel Svensson dsvens...@gmail.com: The documentation for inet_aton specifically says that it's used to Convert an IPv4 address from dotted-quad string format. This however is not really true, it does accept dotted-quad, but not dotted-quad alone, but also these forms from

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-02 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Sorry I can't reproduce it, can you tell me how you run configure precisely ? eg the whole set of commands after a fresh checkout -- ___ Python tracker rep...@bugs.python.org

[issue6172] 'make framework...' fails on Mac ([...]/bin/pythonw3.1: No such file or directory)

2009-06-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I cannot reproduce this with the py3k branch, I'm currently building r31rc1 to check if I can reproduce the issue with that. -- ___ Python tracker rep...@bugs.python.org

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I also cannot reproduce this, using both the py3k branch and the r31rc1 tag. My build procedure: * cd r31rc1 * mkdir build * cd build * ../configure --enable-framework --enable-universalsdk * make * make install DESTDIR=$PWD/image

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Now I'm really confused, I tried to install a second time and this time I do get an error. Time to start hunting down an issue... -- ___ Python tracker rep...@bugs.python.org

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-02 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Ronald, did you try Sridar precise sequence after Pyhon was built ? make frameworkinstallframework DESTDIR=image make frameworkinstallapps DESTDIR=image make frameworkinstall frameworkinstallextras DESTDIR=image --

[issue6172] 'make framework...' fails on Mac ([...]/bin/pythonw3.1: No such file or directory)

2009-06-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The build was quicker than expected. I also cannot reproduce using r31rc1. Or rather, I can reproduce this using make frameworkinstallframework, but not using make install. The latter is the correct way to install the framework, the

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Manually running make frameworkinstallframework (and the other ones) is not supported, those are internal makefile targets that are are used to implement make install. make framworkinstall is supported as an alias for make install

[issue6153] email parsing - Rare Failure

2009-06-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is a duplicate of issue170. -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - email parser incorrectly breaks headers with a CRLF at 8192 ___

[issue4829] confusing error for file(foo, w++)

2009-06-02 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com added the comment: Good catch, it just took me a while to actually figure out myself where the bug is. Try the following instead: import io io.FileIO('foo.text', 'w++') This will yield ValueError: Must have exactly one of read/write/append mode with

[issue6176] Reference to a wrong version of flock's documentation

2009-06-02 Thread Pascal Chambon
New submission from Pascal Chambon chambon.pas...@gmail.com: It seems that the flock wrapped by the fcntl module is the one descriebd in flock(2), not flock(3) (just in case this might confuse people...) Quote : fcntl.flock(fd, op) Perform the lock operation op on file descriptor fd (file

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I found the issue. In r72899 antoine.pitrou checked in a change that adds these two lines to the bininstall target in Makefile.pre.in: -rm -f $(DESTDIR)$(LIBPC)/python3.pc (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc

[issue6170] Mac 'make frameworkinstall' error: [...]/Python.framework/Versions/3.1/bin/2to3: Too many levels of symbolic links

2009-06-02 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This should be fixed in r73142, please test. -- resolution: - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6170

[issue6136] Make logging configuration files easier to use

2009-06-02 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Re. point (a): The configuration logic assumes that if you put things in the configuration file, you want them included - that means instantiating handlers, which will generally open their output files (uness the delay parameter is set) and

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-02 Thread Lucas Prado Melo
Lucas Prado Melo lukepada...@gmail.com added the comment: Take a look at the output: $ python pydoc.py test.pydoc_badimport2 problem in test.pydoc_badimport2 - type 'exceptions.ImportError': No module named i_dont_exist.neither_do_i This is different from what you expected. How do we change

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm sorry, I mistyped. That is the error message I was expecting (it's derived from the one 'import' gives in that case). If the test were like this: elif exc is ImportError and str(value).endswith(path.split('.')[-1]): then I

[issue6117] Fix O(n**2) performance problem in socket._fileobject

2009-06-02 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Checked into trunk as r73145 -- assignee: - georg.brandl components: +Documentation nosy: +georg.brandl resolution: - accepted ___ Python tracker rep...@bugs.python.org

[issue6117] Fix O(n**2) performance problem in socket._fileobject

2009-06-02 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6117 ___

[issue3959] Add Google's ipaddr.py to the stdlib

2009-06-02 Thread Clay McClure
Clay McClure c...@daemons.net added the comment: On Tue, Jun 2, 2009 at 2:52 AM, pmoody rep...@bugs.python.org wrote: As far as I can tell, every developer in that category, outside of Google, that has commented on this issue here or in python-dev has advocated a different API. Is there

[issue6142] Distutils doesn't remove .pyc files

2009-06-02 Thread James
James purplei...@gmail.com added the comment: Currently, I have (had) a make file with a clean target that would remove these files. Would you recommend keeping this file and it's associated functionality, or is the idea to be able to integrate this into distutils and be able to do away with

[issue1943] improved allocation of PyUnicode objects

2009-06-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Jim Jewett wrote: Jim Jewett jimjjew...@users.sourceforge.net added the comment: There were a number of patches to support sharing of data between unicode objects. (By Larry Hastings?) They were rejected because (a) they were

[issue1943] improved allocation of PyUnicode objects

2009-06-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: There were a number of patches to support sharing of data between unicode objects. (By Larry Hastings?) They were rejected because (a) they were complicated,

[issue1943] improved allocation of PyUnicode objects

2009-06-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch breaks C API + binary compatibility for an essential Python type - that's not something you can easily undo. I don't see how it breaks C API compatibility. No officially documented function has changed, and the accessor macros still

  1   2   >