On 10/23/2013 09:54 PM, Steven D'Aprano wrote:
I'm looking for advice on best practices for doing so. Any suggestions
for managing bug fixes and enhancements to two separate code-bases
without them diverging too much?
Confining your code to the intersection of 2.7 and 3.x is probably going to
On Wed, 23 Oct 2013 22:12:57 -0700, Peter Cacioppi wrote:
> I said
>
> "Even Bill F*ng Gates was reluctant to break back compatibility,"
Don't be fooled though, Python is *extremely* reluctant to break
backwards compatibility too. That's why Python has the "__future__"
directive, and why some
Antoine Pitrou, 22.10.2013 10:55:
> Philip Herron writes:
>> Its interesting a few things come up what about:
>> exec and eval. I didn't really have a good answer for this at my talk at
>> PYCon IE 2013 but i am going to say no. I am
>> not going to implement these. Partly because eval and exec at
On Thu, Oct 24, 2013 at 3:57 PM, Peter Cacioppi
wrote:
> Moreover, you get a lot of the good stuff with 2.7. Along with more library
> support. So the smart decision is to code your project 2.7, even though the
> best thing for Pythonistan would be for us all to voluntarily migrate to 3.x.
I wo
On Thursday, October 24, 2013 12:09:55 AM UTC-5, Ben Finney wrote:
> A useful library for this purpose is ‘six’ (as in “3 × 2”)
> http://pythonhosted.org/six/>. You can use its features to do
> things that are useful or better in Python 3, but which need special
> implementation to work on Python 2
On Monday, October 21, 2013 9:29:34 PM UTC-5, Steven D'Aprano wrote:
> On Mon, 21 Oct 2013 01:43:52 -0700, Peter Cacioppi wrote:
>
> Challenge: give some examples of things which you can do in Python, but
> cannot do *at all* in C, C++, C#, Java?
Ummm... hmmm let me try here...
string = 'Py
Steven D'Aprano writes:
> As some of you are aware, I have a module accepted into the standard
> library:
> http://docs.python.org/3.4/library/statistics.html
Wow, neat, I had seen something about the module and thought it looked
great, but I didn't realize you were the author. Awesome!
> Any
I seem to have misunderstood something about the way Crypto.Cipher is supposed
to work, because I'm getting unexpected results, here is my code..
import hashlib
from Crypto.Cipher import AES
from Crypto import Random
h = hashlib.new('sha256')
h.update('my key')
key = h.digest()
iv = Random.new(
I said
"Even Bill F*ng Gates was reluctant to break back compatibility,"
Reluctant to do so with his own stuff. Obviously he "embraced and extended"
other peoples work. Don't get me started, Gates is Bizarro Guido. Good work
with vaccines though.
--
https://mail.python.org/mailman/listinfo/py
Steven D'Aprano writes:
> I'm now at the point where I wish to backport this module to support
> versions of Python back to 3.1 at least and possibly 2.7, and put it
> up on PyPI.
>
> I'm looking for advice on best practices for doing so. Any suggestions
> for managing bug fixes and enhancements
It's an interesting issue. Back compatibility was broken with 3.x, which is
always a risky move. Even Bill F*ng Gates was reluctant to break back
compatibility, and he basically ruled the world (for about 20 minutes or so,
but still).
Moreover, you get a lot of the good stuff with 2.7. Along w
As some of you are aware, I have a module accepted into the standard
library:
http://docs.python.org/3.4/library/statistics.html
I'm now at the point where I wish to backport this module to support
versions of Python back to 3.1 at least and possibly 2.7, and put it up
on PyPI.
I'm looking fo
Tim Daneliuk writes:
> On 10/23/2013 10:53 PM, Ben Finney wrote:
> > Right. Congratulations for learning more about the design of the OS and
> > making a program that fits in well:-)
>
> It's only possible because, after some 30 years of doing this, I feel
> very abelist ...
You may be unaware,
On 2013.10.23 22:23, Victor Hooi wrote:
> For example:
>
> def run_all(self):
> self.logger.debug('Running loading job for %s' % self.friendly_name)
> try:
> self.export_to_csv()
> self.gzip_csv_file()
> self.upload_to_foo()
> sel
On 10/23/2013 10:53 PM, Ben Finney wrote:
Congratulations for learning more about the design of the OS and
making a program that fits in well
It's only because of some 30 years of doing this that I now
feel quite abelist ...
--
--
On 10/23/2013 10:53 PM, Ben Finney wrote:
Right. Congratulations for learning more about the design of the OS and
making a program that fits in well:-)
It's only possible because, after some 30 years of doing this, I feel
very abelist ...
--
On Wed, 23 Oct 2013 20:23:21 -0700, Victor Hooi wrote:
> Hi,
>
> I have a Python class that represents a loading job.
>
> Each job has a run_all() method that calls a number of other class
> methods.
>
> I'm calling run_all() on a bunch of jobs.
>
> Some of methods called by run_all() can rais
Well, I'm not going to post my whole module as I get little testing on mac, but
I will let you in on a little secret:
Use a GUI, such as wxPython or QT or other, then create a basic fullscreen
frame that is invisible and copy its DC to the clipboard. Not exactly a
hack(might be edgy), but it wo
Tim Daneliuk writes:
> 'Easy there Rainman
I'll thank you not to use mental deficiency as some kind of insult.
Calling someone “Rainman” is to use autistic people as the punchline of
a joke. We're a community that doesn't welcome such ableist slurs.
> The goal of the exercise was:
>
> - Read a
On 10/22/2013 11:22 PM, Chandru Rajendran wrote:
> CAUTION - Disclaimer *
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
> for the use of the addressee(s). If you are not the intended recipient,
> please
> notify the sender by e-ma
Hi,
I have a Python class that represents a loading job.
Each job has a run_all() method that calls a number of other class methods.
I'm calling run_all() on a bunch of jobs.
Some of methods called by run_all() can raise exceptions (e.g. missing files,
DB connection failures) which I'm catchin
On Wednesday 23 October 2013 19:53:20 Dennis Lee Bieber did opine:
> On 23 Oct 2013 12:36:09 GMT, Neil Cerutti declaimed
> the
>
> following:
> >On 2013-10-23, David wrote:
> >> On 23 October 2013 22:57, wrote:
> >>> a LARGE number of Python programmers has not even bothered learning
> >>> ve
On Wed, 23 Oct 2013 14:27:29 +0100, Mark Lawrence wrote:
> I confess I don't understand how *nix people endure having to compile
> code instead of having a binary install.
Because it's trivially easy under Unix? Three commands:
./configure
make
make install
will generally do the job. Unless it
On Wed, 23 Oct 2013 04:57:25 -0700, dufriz wrote:
> I am starting to have doubts as to whether Python 3.x will ever be
> actually adopted by the Python community at large as their standard.
Of course it will. Python 2.7 is the last of the 2 series. It will be
given extended support, but eventual
On 10/23/2013 05:20 PM, Ben Finney wrote:
random...@fastmail.us writes:
On Wed, Oct 23, 2013, at 16:52, Chris Angelico wrote:
There are times when this is correct behaviour - like asking for
passwords (SSH and sudo work like this).
Less (or pagers generally, or an interactive text editor tha
On Thu, Oct 24, 2013 at 9:20 AM, Ben Finney wrote:
> random...@fastmail.us writes:
>
>> On Wed, Oct 23, 2013, at 16:52, Chris Angelico wrote:
>> > There are times when this is correct behaviour - like asking for
>> > passwords (SSH and sudo work like this).
>>
>> Less (or pagers generally, or an i
random...@fastmail.us writes:
> On Wed, Oct 23, 2013, at 16:52, Chris Angelico wrote:
> > There are times when this is correct behaviour - like asking for
> > passwords (SSH and sudo work like this).
>
> Less (or pagers generally, or an interactive text editor that allows
> creating a file from st
On 10/23/2013 12:00 PM, Skip Montanaro wrote:
>
--> LOCAL_TZ.localize(dt1).utcoffset()
datetime.timedelta(-1, 68400)
--> LOCAL_TZ.localize(dt2).utcoffset()
datetime.timedelta(-1, 64800)
Why is the UTC offset the same for both datetime objects despite the
presence/absence of Daylight Savings?
On Wed, Oct 23, 2013, at 16:52, Chris Angelico wrote:
> There are times when this is correct behaviour - like asking for
> passwords (SSH and sudo work like this).
Less (or pagers generally, or an interactive text editor that allows
creating a file from standard input) would be another example of
On 10/23/2013 12:25 AM, Philip Herron wrote:
> On Wednesday, 23 October 2013 07:48:41 UTC+1, John Nagle wrote:
>> On 10/20/2013 3:10 PM, victorgarcia...@gmail.com wrote:
>>
>>> On Sunday, October 20, 2013 3:56:46 PM UTC-2, Philip Herron
>>> wrote:
> Nagle replies:
>>
Documentation can be fo
On Thu, Oct 24, 2013 at 7:46 AM, Ben Finney wrote:
> Can you speak more about how you intend your program to be used? The
> above request is incoherent, and I suspect you've made a design mistake.
There are times when this is correct behaviour - like asking for
passwords (SSH and sudo work like t
Tim Daneliuk writes:
> I have a program that runs like this:
>
> foo.py I want to reconnect stdin to the tty as usual after 'inputfile'
> has been read so that things like raw_input and getpass
> will work as expected.
Why? That's at odds with how the user has already chosen to run the
progra
On 23/10/2013 21:24, Cesar Campana wrote:
Hi!
Im installing the python library for the version 2.7 but Im getting the
error unable to find vcvarsall.bat
I was looking on line but it says is related to Visual Studio...?
Can you guys please help me to fix this...
Cesar
That error occurs whe
On Thu, Oct 24, 2013 at 4:25 AM, Tim Daneliuk wrote:
> I have a program that runs like this:
>
> foo.py
> I want to reconnect stdin to the tty as usual after 'inputfile'
> has been read so that things like raw_input and getpass
> will work as expected.
>
> So, after I do = sys.stdin.readli
On Thu, Oct 24, 2013 at 7:24 AM, Cesar Campana wrote:
> Hi!
>
> Im installing the python library for the version 2.7 but Im getting the
> error unable to find vcvarsall.bat
>
> I was looking on line but it says is related to Visual Studio...?
>
> Can you guys please help me to fix this...
Based o
Hi!
Im installing the python library for the version 2.7 but Im getting the
error unable to find vcvarsall.bat
I was looking on line but it says is related to Visual Studio...?
Can you guys please help me to fix this...
Cesar
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Oct 23, 2013 at 4:57 AM, wrote:
> I am starting to have doubts as to whether Python 3.x will ever be
> actually adopted by the Python community at large as their standard. Years
> have passed, and a LARGE number of Python programmers has not even bothered
> learning version 3.x. Why am I
LOCAL_TZ.localize(dt1).utcoffset()
> datetime.timedelta(-1, 68400)
LOCAL_TZ.localize(dt2).utcoffset()
> datetime.timedelta(-1, 64800)
>
> Why is the UTC offset the same for both datetime objects despite the
> presence/absence of Daylight Savings?
Brain freeze! A quick glance told me they
Another Note: class of caller and myfunc to being differed.
On Wed, 2013-10-23 at 21:56 +0330, Mohsen Pahlevanzadeh wrote:
> Oh , i changed my code to:
>
> partial(self.myinstance.myfunc,[arg1,arg2,arg3,arg4,arg5],self.myinstance)
>
> But i got the following traceback:
> TypeError: myfunc() takes
Oh , i changed my code to:
partial(self.myinstance.myfunc,[arg1,arg2,arg3,arg4,arg5],self.myinstance)
But i got the following traceback:
TypeError: myfunc() takes at least 5 arguments (4 given)
##3
myfunc() prototype is:
#
def myfunc(self,widget
On 23/10/2013 17:48, Mohsen Pahlevanzadeh wrote:
Dear all,
I have the following code in each steps of loop:
obj = partial(self.myinstance.myfunc)
obj.func = self.myinstance.myfunc
obj.arg = ["TWCH",self,k
Dear all,
I have the following code in each steps of loop:
obj = partial(self.myinstance.myfunc)
obj.func = self.myinstance.myfunc
obj.arg = ["TWCH",self,key,val.checkState(),val]
obj.keywords = se
I have a program that runs like this:
foo.py https://mail.python.org/mailman/listinfo/python-list
This isn't really a Python issue, though my problem solution will be
implemented in Python. If I have a naive datetime object for some time
in the past, it's not clear to me how the offset gets set correctly.
Consider this sequence:
>>> import datetime, pytz
>>> LOCAL_TZ = pytz.timezone(os.environ
Gregory Ewing writes:
> Steven D'Aprano wrote:
>> On Tue, 22 Oct 2013 09:38:16 +0200, Lele Gaifax wrote:
>>
>>>The actual syntax would be
>>>
>>> [object method: arg1 withSomething: arg2 withSomethingElse: arg3]
>>
>> I don't get how to map that to Python's syntax.
>
> It's roughly morally equiv
On 2013-10-23, Mark Lawrence wrote:
> On 23/10/2013 14:13, Tim Golden wrote:
>> On 23/10/2013 14:05, Colin J. Williams wrote:
>>> It would be good if more of the packages were available, for Python 3.3,
>>> in binary for the Windows user.
>>>
>>> I am currently wrestling with Pandas, lxml etc
On 10/23/13 7:57 AM, duf...@gmail.com wrote:
Years have passed, and a LARGE number of Python programmers has not even
bothered learning version 3.x.
That's true for me. My own projects run just fine with 2.7.
I have no specific issue with 3.x, nor phobia of it, but my time as a
developer is
On 23/10/2013 15:34, Skip Montanaro wrote:
> Tim:
>
>> Disregarding Mark's tongue-in-cheek rhetoric for now... perhaps you
>> didn't realise that, on Windows, you can't pip install a binary
>
> Mark:
>
>> Which on Windows often ends up telling you that it can't find vcvarsall.bat
>
> I am well
Tim:
> Disregarding Mark's tongue-in-cheek rhetoric for now... perhaps you
> didn't realise that, on Windows, you can't pip install a binary
Mark:
> Which on Windows often ends up telling you that it can't find vcvarsall.bat
I am well aware that Windows users rarely have compilers available.
Pe
On 23/10/2013 15:01, Tim Golden wrote:
On 23/10/2013 14:52, Skip Montanaro wrote:
Thankfully I am. I confess I don't understand how *nix people endure having
to compile code instead of having a binary install. To me it's like going
to the garage to buy a new car, being shown the parts and the
On 2013-10-23, Ned Batchelder wrote:
> On 10/23/13 4:16 AM, Steven D'Aprano wrote:
>> On Tue, 22 Oct 2013 09:38:16 +0200, Lele Gaifax wrote:
>>
>>> Roy Smith writes:
>>>
You missed the ever-so-special Objective C syntax:
>> [...]
>>> The actual syntax would be
>>>
>>>[object method: arg1
On 23/10/2013 14:52, Skip Montanaro wrote:
Thankfully I am. I confess I don't understand how *nix people endure having
to compile code instead of having a binary install. To me it's like going
to the garage to buy a new car, being shown the parts and the tool kit and
being told to get on with i
> Thankfully I am. I confess I don't understand how *nix people endure having
> to compile code instead of having a binary install. To me it's like going
> to the garage to buy a new car, being shown the parts and the tool kit and
> being told to get on with it. Perhaps it's a case of second cla
On 23/10/2013 14:52, Skip Montanaro wrote:
>> Thankfully I am. I confess I don't understand how *nix people endure having
>> to compile code instead of having a binary install. To me it's like going
>> to the garage to buy a new car, being shown the parts and the tool kit and
>> being told to get
On 23/10/2013 14:13, Tim Golden wrote:
On 23/10/2013 14:05, Colin J. Williams wrote:
It would be good if more of the packages were available, for Python 3.3,
in binary for the Windows user.
I am currently wrestling with Pandas, lxml etc.
Can I assume you're aware of the industrious Christop
Skybuck Flying schrieb:
This hereby indicates problems with the while loop: it makes little sense to
put the exiting
conditions at the top.
Why?
...
dec rcx
jbe 1f
0:some
code
to
perform
...
jmp 0b
p2align 5,,31
1:continue
On 23/10/2013 14:05, Colin J. Williams wrote:
> On 23/10/2013 8:35 AM, Mark Lawrence wrote:
>> On 23/10/2013 12:57, duf...@gmail.com wrote:
>>> Years have passed, and a LARGE number of Python programmers has not
>>> even bothered learning version 3.x.
>>
>> The changes aren't large enough to worry
On 23/10/2013 8:35 AM, Mark Lawrence wrote:
On 23/10/2013 12:57, duf...@gmail.com wrote:
Years have passed, and a LARGE number of Python programmers has not
even bothered learning version 3.x.
The changes aren't large enough to worry a Python programmer so
effectively there's nothing to learn,
In article <6e0bbc6b-9435-4a4b-8840-8a46cc4e0...@googlegroups.com>,
duf...@gmail.com wrote:
> I am starting to have doubts as to whether Python 3.x will ever be actually
> adopted by the Python community at large as their standard. Years have
> passed, and a LARGE number of Python programmers h
On 23/10/2013 13:16, David wrote:
On 23 October 2013 22:57, wrote:
a LARGE number of Python programmers has not even bothered learning version 3.x.
OMG. Please provide their names. We'll send Doug & Dinsdale.
Please ensure that they're accompanied by the chief constable carrying
the tac
On Wed, Oct 23, 2013 at 11:16 PM, David wrote:
> On 23 October 2013 22:57, wrote:
>>
>> a LARGE number of Python programmers has not even bothered learning version
>> 3.x.
>
> OMG. Please provide their names. We'll send Doug & Dinsdale.
Who and who?
Re the subject line: As far as I'm concerne
On 2013-10-23, David wrote:
> On 23 October 2013 22:57, wrote:
>>
>> a LARGE number of Python programmers has not even bothered learning version
>> 3.x.
>
> OMG. Please provide their names. We'll send Doug & Dinsdale.
I can send Mr. Wendt and Mr. Kidd. Or are those guys dead?
--
Neil Cerutti
On 23/10/2013 12:57, duf...@gmail.com wrote:
Years have passed, and a LARGE number of Python programmers has not even
bothered learning version 3.x.
The changes aren't large enough to worry a Python programmer so
effectively there's nothing to learn, other than how to run 2to3.
...there is
On 23 October 2013 22:57, wrote:
>
> a LARGE number of Python programmers has not even bothered learning version
> 3.x.
OMG. Please provide their names. We'll send Doug & Dinsdale.
--
https://mail.python.org/mailman/listinfo/python-list
dic...@his.com writes:
> On Friday, October 18, 2013 12:46:19 PM UTC-4, Steven D'Aprano wrote:
>
>> xterms used to have a feature where they would write the title back to
>> standard input. Unfortunately, it has been disabled for security reasons,
>> so I haven't been able to get this to work (n
I am starting to have doubts as to whether Python 3.x will ever be actually
adopted by the Python community at large as their standard. Years have passed,
and a LARGE number of Python programmers has not even bothered learning version
3.x. Why am I bothered by this? Because of lot of good librar
Steven D'Aprano wrote:
On Tue, 22 Oct 2013 09:38:16 +0200, Lele Gaifax wrote:
The actual syntax would be
[object method: arg1 withSomething: arg2 withSomethingElse: arg3]
I don't get how to map that to Python's syntax.
It's roughly morally equivalent to
object.method(arg1, withSomethi
On 10/23/13 4:16 AM, Steven D'Aprano wrote:
On Tue, 22 Oct 2013 09:38:16 +0200, Lele Gaifax wrote:
Roy Smith writes:
You missed the ever-so-special Objective C syntax:
[...]
The actual syntax would be
[object method: arg1 withSomething: arg2 withSomethingElse: arg3]
I don't get how to
On 23/10/2013 08:25, Philip Herron wrote:
Personally I have no interest in your project but do wish you the best
of luck with your endeavours.
However I do have a personnal interest in my eyesite, which gets
strained by reading posts such as yours. In order to assist me in
looking after my
On Tue, 22 Oct 2013 09:38:16 +0200, Lele Gaifax wrote:
> Roy Smith writes:
>
>> You missed the ever-so-special Objective C syntax:
[...]
> The actual syntax would be
>
> [object method: arg1 withSomething: arg2 withSomethingElse: arg3]
I don't get how to map that to Python's syntax.
object.
On Wednesday, 23 October 2013 07:48:41 UTC+1, John Nagle wrote:
> On 10/20/2013 3:10 PM, victorgarcia...@gmail.com wrote:
>
> > On Sunday, October 20, 2013 3:56:46 PM UTC-2, Philip Herron wrote:
>
> >> I've been working on GCCPY since roughly november 2009 at least in its
>
> >> concept. It was
71 matches
Mail list logo