[Python-Dev] Issues about relative& absolute import way for Portingfrom python2.4 to python2.7

2014-03-19 Thread ??????
Dear, I just wrote a sample like this: testPy/ __init__.py client.py SoamFactory.c SoamFactory.so soamapi.py sample/testP.py export PYTHONPATH=$(TEST_LOCATION):$(TEST_LOCATION)/testPy Here's the source codes: __init__.py: import client client.

Re: Balanced trees

2014-03-19 Thread Dan Stromberg
On Wed, Mar 19, 2014 at 7:16 PM, Rhodri James wrote: > 65536 is a suspiciously round number. You might want to double- > check that there's no 16-bit overflow causing something unexpected. It's because I'm using powers of 2. All the numbers in the report are round in hex. -- https://mail.pytho

Re: Balanced trees

2014-03-19 Thread Rhodri James
On Tue, 18 Mar 2014 21:45:52 -, Dan Stromberg wrote: blist.sorteddict was able to do 65536 operations on a dictionary before taking more than 120 seconds to complete - it took 77.3 seconds to do 65536 operations. 65536 is a suspiciously round number. You might want to double- check th

Problem in fetching blob or clob data with python and cx_oracle

2014-03-19 Thread goswami . anjan
It seems that when I attempt to download blob or clob data using fetchmany, it can not keep track of the LOB variable in subsequent fetch. The problem is over if I fetch one row at a time but it is not optimal. Can anyone give me an idea how to efficiently fetch columns with clob or blob data fr

Problem with pickle and restarting a program

2014-03-19 Thread Peace
In my GUI, the user enters two values: cellNumber(Integer) and SerialNumber(String) I have the following piece of code in my view/controller: The following function is called after the user enters the cellnumber and serial number## def ListenForDetails(status):

Re: Kivy contest 2014

2014-03-19 Thread Alexander Taylor
The theme will be announced when the contest officially starts, the 15th April. On Wednesday, 19 March 2014 09:27:14 UTC, audiowerk wrote: > > Hi! > > Is there already a date when the theme will be announced? > > Am Sonntag, 16. März 2014 18:42:16 UTC+1 schrieb qua-non: >> >> Hi folks, >> >> Kivy

Re: 'complex' function with string argument.

2014-03-19 Thread Ian Kelly
On Wed, Mar 19, 2014 at 4:53 AM, Marko Rauhamaa wrote: > Ian Kelly : > >> On Wed, Mar 19, 2014 at 4:09 AM, Marko Rauhamaa wrote: >>> So complex(a, b) is documented to produce a+bj when a and b are integers >>> or floats. What's more natural than saying it produces a+bj when a and b >>> are comple

Re: 'complex' function with string argument.

2014-03-19 Thread Ian Kelly
On Wed, Mar 19, 2014 at 5:04 AM, Skip Montanaro wrote: > On Wed, Mar 19, 2014 at 5:33 AM, Ian Kelly wrote: >> When is it ever useful though? > > About as often as int(0), float(0), or float(0.0) which all work as > expected, though probably don't turn up in a lot of code. The analogous call to t

Re: Balanced trees

2014-03-19 Thread Ethan Furman
On 03/18/2014 06:15 PM, Steven D'Aprano wrote: On Tue, 18 Mar 2014 15:21:28 -0700, Dan Stromberg wrote: On Tue, Mar 18, 2014 at 3:03 PM, Marko Rauhamaa wrote: Dan Stromberg : For a proper comparison, I'd like a fixed, identical dataset and set of operations run against each data structure. H

Re: Kivy contest 2014

2014-03-19 Thread audiowerk
Hi! Is there already a date when the theme will be announced? Am Sonntag, 16. März 2014 18:42:16 UTC+1 schrieb qua-non: > > Hi folks, > > Kivy will be holding it's programming contest for 2014 starting April 15th. > > For details please visit http://kivy.org/#contest > > If you are interested in

Re: Printing characters outside of the ASCII range

2014-03-19 Thread Mark Lawrence
On 19/03/2014 14:43, Zachary Ware wrote: Ironically, on my way down the November 2012 archive page, I noticed a long thread about "Obnoxious postings from Google Groups". Thankfully the number of grotty postings from gg has dropped considerably. Sadly our resident unicode expert quite delibe

Re: 'complex' function with string argument.

2014-03-19 Thread wxjmfauth
Le mercredi 19 mars 2014 12:04:06 UTC+1, Skip Montanaro a écrit : > On Wed, Mar 19, 2014 at 5:33 AM, Ian Kelly wrote: > > > When is it ever useful though? > > > > About as often as int(0), float(0), or float(0.0) which all work as > > expected, though probably don't turn up in a lot of code.

Re: Printing characters outside of the ASCII range

2014-03-19 Thread Zachary Ware
On 19/03/2014 13:11, diccon.tes...@gmail.com wrote: > Your handling Pick Multi value fields aren't you ;) > Just hit the same issue, thanks all here for various solutions. > Interfacing with OpenQM / Scarlet DME here. For future posts, please be sure to quote what you're replying to. Google Groups

Re: Printing characters outside of the ASCII range

2014-03-19 Thread Mark Lawrence
On 19/03/2014 13:11, diccon.tes...@gmail.com wrote: Your handling Pick Multi value fields aren't you ;) Just hit the same issue, thanks all here for various solutions. Interfacing with OpenQM / Scarlet DME here. The context is conspicious by its absence. In future would you please be kind en

Re: Balanced trees

2014-03-19 Thread Roy Smith
In article <53299eac$0$29994$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > If you have a million items, then the odds that those > million items happen to be sorted (the worst-case order) are 1 in a > million factorial. That's a rather small number, small enough that we can >

Re: Balanced trees

2014-03-19 Thread Marko Rauhamaa
Steven D'Aprano : > Please re-read what I wrote. I didn't say "if your data comes to you > fully randomized". I said "if you are in a position to randomize the > data before storing it". In other words, if you actively randomize the > data yourself. Yes, you could implement a "hash table" that wa

Re: Balanced trees

2014-03-19 Thread Steven D'Aprano
On Wed, 19 Mar 2014 10:49:33 +0200, Marko Rauhamaa wrote: > Steven D'Aprano : > >> If you are in a position to randomize the data before storing it in the >> tree, an unbalanced binary tree is a solid contender. > > Applications that can assume randomly distributed data are exceedingly > rare

Re: Printing characters outside of the ASCII range

2014-03-19 Thread diccon . tesson
Your handling Pick Multi value fields aren't you ;) Just hit the same issue, thanks all here for various solutions. Interfacing with OpenQM / Scarlet DME here. -- https://mail.python.org/mailman/listinfo/python-list

[ANN]: distlib 0.1.8 released on PyPI

2014-03-19 Thread Vinay Sajip
I've released version 0.1.8 of distlib on PyPI [1]. For newcomers, distlib is a library of packaging functionality which is intended to be usable as the basis for third-party packaging tools. The main changes in this release are as follows: * Fixed issue #45: Improved thread-safety in SimpleScrap

Re: 'complex' function with string argument.

2014-03-19 Thread Skip Montanaro
On Wed, Mar 19, 2014 at 5:33 AM, Ian Kelly wrote: > When is it ever useful though? About as often as int(0), float(0), or float(0.0) which all work as expected, though probably don't turn up in a lot of code. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: 'complex' function with string argument.

2014-03-19 Thread Marko Rauhamaa
Ian Kelly : > On Wed, Mar 19, 2014 at 4:09 AM, Marko Rauhamaa wrote: >> So complex(a, b) is documented to produce a+bj when a and b are integers >> or floats. What's more natural than saying it produces a+bj when a and b >> are complex numbers? It's a straightforward generalization that in no >>

Re: 'complex' function with string argument.

2014-03-19 Thread Ian Kelly
On Wed, Mar 19, 2014 at 4:09 AM, Marko Rauhamaa wrote: > wxjmfa...@gmail.com: > >> Le mercredi 19 mars 2014 09:51:20 UTC+1, Marko Rauhamaa a écrit : >>> wxjmfa...@gmail.com: >>> complex(2, 1+1j) >>> > (1+1j) >>> >>> I find it neat, actually. >> > # tricky: yes, neat: no > complex(1+1j

PNYIKOS DOWN AND UNDER!

2014-03-19 Thread THRINAXODON JM
=== >BREAKING NEWS === > RICHARD LEAKEY JUST DIED DUE TO HEART FAILURE! > THE REASONS DESCRIBED BY THE MEDICAL TEAM IS THAT HIS WORK WAS DISPROVEN, BY NONE OTHER THAN YOUR OWN BASTARD, THRINAXODON. > THIS CAUSED LEAKEY'S HEART TO EXPLODE! > THRINAXOD

Re: 'complex' function with string argument.

2014-03-19 Thread Marko Rauhamaa
wxjmfa...@gmail.com: > Le mercredi 19 mars 2014 09:51:20 UTC+1, Marko Rauhamaa a écrit : >> wxjmfa...@gmail.com: >> complex(2, 1+1j) >> > (1+1j) >> >> I find it neat, actually. > # tricky: yes, neat: no complex(1+1j, 2) > (1+3j) So complex(a, b) is documented to produce a+bj when

Re: 'complex' function with string argument.

2014-03-19 Thread wxjmfauth
Le mercredi 19 mars 2014 09:51:20 UTC+1, Marko Rauhamaa a écrit : > wxjmfa...@gmail.com: > > > > > This is, in my mind, more questionable: > > > > > complex(2, 1+1j) > > > (1+1j) > > > > I find it neat, actually. > > > > > > Marko >>> # tricky: yes, neat: no >>> complex(1+1j, 2)

Re: unable to import rlcompleter readline

2014-03-19 Thread Tim Golden
On 19/03/2014 08:55, muru kessan wrote: > hi guys, > i want the python interactive shell to be auto complete and i found that > by adding the following lines in PYTHONSTARTUP file it is possible > > import rlcompleter, readline > readline.parse_and_bind('tab: complete') > > but i get the followin

unable to import rlcompleter readline

2014-03-19 Thread muru kessan
hi guys, i want the python interactive shell to be auto complete and i found that by adding the following lines in PYTHONSTARTUP file it is possible import rlcompleter, readline readline.parse_and_bind('tab: complete') but i get the following error in git bash shell Note: i run windows8 as Operat

Re: 'complex' function with string argument.

2014-03-19 Thread Marko Rauhamaa
wxjmfa...@gmail.com: > This is, in my mind, more questionable: > complex(2, 1+1j) > (1+1j) I find it neat, actually. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Balanced trees

2014-03-19 Thread Marko Rauhamaa
Steven D'Aprano : > If you are in a position to randomize the data before storing it in > the tree, an unbalanced binary tree is a solid contender. Applications that can assume randomly distributed data are exceedingly rare and even then, you can't easily discount the possibility of worst-case or

Re: 'complex' function with string argument.

2014-03-19 Thread wxjmfauth
z = a + b*i with a, b, elements of R z = r*exp(i*phi)with r, phi, elements of R z = [[a, -b], [b, a]] with a, b, elements of R This is, in my mind, more questionable: >>> complex(2, 1+1j) (1+1j) >>> >>> print(complex.__doc__) complex(real[, imag]) -> complex number Create a complex n

Re: Question about Source Control

2014-03-19 Thread Chris Angelico
On Wed, Mar 19, 2014 at 5:41 PM, Frank Millman wrote: > I have decided to stick with Mercurial, simply because that is what I used > in my previous attempt and I felt comfortable with it. That's the best reason for choosing, really. https://github.com/Rosuav/Gypsum/commit/0f973 > Also I believe t