On 12/09/2012 05:02, Jayden wrote:
I installed
(1) pythonxy2.7.2.3 (with python2.7) and
(2) pythonOCC-0.5-all-in-one.win32.py26
Can you safely mix these?
on windows 7 64 bit computer.
I try run pythonOCC examples in its example folder, such as the helloworld.py
and got errors as follows:
On 11/09/2012 17:49, Charles Hottel wrote:
I have a lot of programming experience in many different languages and now
I want to learn Python. Which version do you suggest I download, Python 2.x
or Python 3.x ? Also why should I prefer one over the other?
Right now I am thinkng Python 3.x as
Am 11.09.2012 05:46 schrieb Steven D'Aprano:
Good for you. (Sorry, that comes across as more condescending than it is
intended as.) Monkey-patching often gets used for quick scripts and tiny
pieces of code because it works.
Just beware that if you extend that technique to larger bodies of code,
Am 12.09.2012 04:28 schrieb j.m.dagenh...@gmail.com:
I'm trying to call SetName on an object to prevent me from ever having to call
it explictly again on that object. Best explained by example.
def setname(cls):
'''this is the proposed generator to call SetName on the object'''
try:
Not to jump in with another question(this seems somewhat relevant to the
conversation, maybe not), but is this similar to a private,public, or
protected class similar to the C type langs?
--
Best Regards,
David Hutto
*CEO:* *http://www.hitwebdevelopment.com*
--
http://mail.python.org/mailman/list
On Wednesday, September 12, 2012 6:02:14 AM UTC+2, Jayden wrote:
> I installed
>
> (1) pythonxy2.7.2.3 (with python2.7) and
>
> (2) pythonOCC-0.5-all-in-one.win32.py26
>
> on windows 7 64 bit computer.
>
>
>
> I try run pythonOCC examples in its example folder, such as the helloworld.py
On Sep 12, 12:28 pm, j.m.dagenh...@gmail.com wrote:
> def setname(cls):
> '''this is the proposed generator to call SetName on the object'''
> try:
> cls.SetName(cls.__name__)
> finally:
> yield cls
A generator is (basically) a callable that acts like an iterator.
You'd
I came up with this thread:
http://techblog.ironfroggy.com/2007/01/python-on-windows-and-path.html
But you might want to go to the pywin list for this one.
http://mail.python.org/mailman/listinfo/python-win32
It says win32, but they should be able to help either way.
> --
> Best Regards,
> Dav
On Wed, Sep 12, 2012 at 11:38 AM, Joshua Landau
wrote:
> On 12 September 2012 02:14, Steven D'Aprano
> wrote:
>>
>> And again, Joshua's original post is not available from my provider.
>> Joshua, I suspect that something about your post is being seen as spam
>> and dropped by at least some provid
On Tue, Sep 11, 2012 at 11:58 PM, Jayden wrote:
> I installed
> (1) pythonxy2.7.2.3 (with python2.7) and
> (2) pythonOCC-0.5-all-in-one.win32.py26
> on windows 7 64 bit computer.
>
> I try run pythonOCC examples in its example folder, such as the
> helloworld.py and got errors as follows:
>
>
I installed
(1) pythonxy2.7.2.3 (with python2.7) and
(2) pythonOCC-0.5-all-in-one.win32.py26
on windows 7 64 bit computer.
I try run pythonOCC examples in its example folder, such as the helloworld.py
and got errors as follows:
ImportantError: DLL load failed: The specified module could
I installed
(1) pythonxy2.7.2.3 (with python2.7) and
(2) pythonOCC-0.5-all-in-one.win32.py26
on windows 7 64 bit computer.
I try run pythonOCC examples in its example folder, such as the helloworld.py
and got errors as follows:
ImportantError: DLL load failed: The specified module could no
I try to usually use several versions to know the difference. You never
know when a package might come along, and you want to try it out, and then
version becomes compatibility.
Alternatively, a client might come along and insist that a particular
version be used.
Do a little quick research on th
Hi, Marco,
>
> Thank you so much! This is what I exactly want. But I am a little
> concerned about its steep learning curve. Is it really hard to learn
> pythonOCC? Averagely, how long does it take to begin to program some
> practical code? Do you have any good advice for me to learn it? I deeply
>
On Tuesday, 11 September 2012 02:40:55 UTC+5:30, Jayden wrote:
> Are there any python CAD libraries that can
>
>
>
> (1) build simple 3D primitives solids such as spheres, cylinders and so on
>
> (2) perform bool operations on 3D solids
>
> (3) better if it has some transformations such has s
On Tuesday, 11 September 2012 22:19:08 UTC+5:30, Charles Hottel wrote:
> I have a lot of programming experience in many different languages and now
>
> I want to learn Python. Which version do you suggest I download, Python 2.x
>
> or Python 3.x ? Also why should I prefer one over the other?
On Wednesday, 12 September 2012 07:58:10 UTC+5:30, pyjoshsys wrote:
> I'm trying to call SetName on an object to prevent me from ever having to
> call it explictly again on that object. Best explained by example.
>
[snip]
In your decorator, you are using `yield cls` - it should be `return cls` 99
I'm trying to call SetName on an object to prevent me from ever having to call
it explictly again on that object. Best explained by example.
def setname(cls):
'''this is the proposed generator to call SetName on the object'''
try:
cls.SetName(cls.__name__)
finally:
yi
On Wed, 12 Sep 2012 02:11:22 +, Steven D'Aprano wrote:
> On Tue, 11 Sep 2012 17:17:14 -0700, Peter wrote:
>
>> If your desire is to "learn" Python then I would stick to 2.7
>>
>> My reasoning would be that there are still a significant number of
>> packages that have not been ported to 3.x (
On Tue, 11 Sep 2012 17:17:14 -0700, Peter wrote:
> If your desire is to "learn" Python then I would stick to 2.7
>
> My reasoning would be that there are still a significant number of
> packages that have not been ported to 3.x (and may never be ported).
But if all you want is to learn Python, t
This is an email address linked to my GMail account. If this works better,
tell me and I'll switch. It's still sending through GMail though.
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday, September 11, 2012 9:42:56 AM UTC-4, Marco Nawijn wrote:
> On Monday, September 10, 2012 11:10:55 PM UTC+2, Jayden wrote:
>
> > Are there any python CAD libraries that can
>
> >
>
> >
>
> >
>
> > (1) build simple 3D primitives solids such as spheres, cylinders and so on
>
> >
On 12 September 2012 02:14, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> And again, Joshua's original post is not available from my provider.
> Joshua, I suspect that something about your post is being seen as spam
> and dropped by at least some providers.
>
I am sorry to ask
On 12 September 2012 01:51, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> Sorry for breaking threading, but Joshua's post does not show up on my
> usenet provider.
>
That may explain why I keep getting ignored -.-
I thought it was something I said :P
I'm just using EMail throu
And again, Joshua's original post is not available from my provider.
Joshua, I suspect that something about your post is being seen as spam
and dropped by at least some providers.
On Wed, 12 Sep 2012 08:52:10 +1000, Chris Angelico wrote:
> On Wed, Sep 12, 2012 at 8:48 AM, Joshua Landau
> wrot
On 2012.09.11 19:17, Peter wrote:
> If your desire is to "learn" Python then I would stick to 2.7
>
> My reasoning would be that there are still a significant number of packages
> that have not been ported to 3.x (and may never be ported).
This is true, but the /potential/ for the need for one of
Sorry for breaking threading, but Joshua's post does not show up on my
usenet provider.
On Wed, 12 Sep 2012 08:22:17 +1000, Chris Angelico wrote:
> On Wed, Sep 12, 2012 at 8:09 AM, Joshua Landau
> wrote:
>>
>> If I were to use internal double-underscored names of the form
>> __BS_internalname__
Thanks for the second round of responses. I think this gives me some
focus - concentrate on the API, talk to the framework developers, and
start redrafting the PEP sooner rather than later.
Thanks!
Dustin
--
http://mail.python.org/mailman/listinfo/python-list
If your desire is to "learn" Python then I would stick to 2.7
My reasoning would be that there are still a significant number of packages
that have not been ported to 3.x (and may never be ported).
Not having looked at the changes in 3.x (so don't flame me! :-)), it would seem
that anything yo
"Charles Hottel" writes:
> I have a lot of programming experience in many different languages and now
> I want to learn Python.
Good for you, and welcome!
> Which version do you suggest I download, Python 2.x or Python 3.x ?
> Also why should I prefer one over the other?
This question is a go
On 09/11/2012 03:13 PM, ruck wrote:
>
>
> I'm not sure how I could have known that ntpath was already imported, since
> *I* didn't import it, but that was the key to my confusion.
>
import sys
print sys.modules
--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Sep 12, 2012 at 5:13 AM, ruck wrote:
> I'm not sure how I could have known that ntpath was already imported, since
> *I* didn't import it, but that was the key to my confusion.
One way to find out is to peek at the cache.
>>> import sys
>>> sys.modules
There are quite a few of them in
On Wed, Sep 12, 2012 at 8:48 AM, Joshua Landau
wrote:
> Well, the problem is that a lot of collisions aren't predictable.
> "locals()['foo'] = 2", for example. If it weren't for Python's annoying
> flexibility* I would definitely do something very close to what you suggest.
> Remember that "locals
On 11 September 2012 23:22, Chris Angelico wrote:
> On Wed, Sep 12, 2012 at 8:09 AM, Joshua Landau
> wrote:
> > If I were to use internal double-underscored names of the form
> > __BS_internalname__, would the compiled code be able to assume that
> no-one
> > had overwritten these variables and
On 11/09/2012 22:51, ashish makani wrote:
Hi c.l.p peeps
I am stuck with an issue, so am coming to the Pythonista deltaforce who rescue
me everytime :)
[big snip]
I say old chap, it's simply not cricket to ask a question like this some
32 minutes after asking the same question on the tutor
On Wed, Sep 12, 2012 at 8:09 AM, Joshua Landau
wrote:
> If I were to use internal double-underscored names of the form
> __BS_internalname__, would the compiled code be able to assume that no-one
> had overwritten these variables and never will, even through modification
> of, say, locals(). I ask
Were I to make a language to compile to Python, it is highly likely I would
need to use hidden variable names to work constructs that Python alone does
not have. This is the situation I face.
If I were to use internal double-underscored names of the form __BS_*
internalname*__, would the compiled
On 09/11/2012 01:53 PM, e.doxta...@gmail.com wrote:
On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:
On Tue, Sep 11, 2012 at 12:45 PM, I wrote:
What is the significance of the leading underscore in "self._bongo"? I've seen
this a few times and, after looking through PEP 8, I didn'
Hi c.l.p peeps
I am stuck with an issue, so am coming to the Pythonista deltaforce who rescue
me everytime :)
I am trying to send out email programmatically, from a gmail a/c, using
smtplib, using the following chunk of code (b/w [ & ] below)
[
import smtplib
from email.mime.text import MIMET
On 9/11/2012 4:53 PM, e.doxta...@gmail.com wrote:
What is the significance of the leading underscore in "self._bongo"? I've seen
this a few times and, after looking through PEP 8, I didn't see anything relevant, but I
could have missed it.
Single leading underscore is a convention indicati
On Tue, Sep 11, 2012 at 2:53 PM, wrote:
> On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:
>> Single leading underscore is a convention indicating that the name
>> should be considered private and not used externally. It's a softer
>> version of the double leading underscore that mean
On 2012-09-11, Dhananjay wrote:
> --===0316394162==
> Content-Type: multipart/alternative; boundary=20cf30776bd309ffd004c96557e2
>
> --20cf30776bd309ffd004c96557e2
> Content-Type: text/plain; charset=ISO-8859-1
>
> Dear all,
>
> I have a python script in which I have a list of files to
On Tuesday, September 11, 2012 2:06:45 PM UTC-5, Ian wrote:
> On Tue, Sep 11, 2012 at 12:45 PM, I wrote:
>
> > All
>
> >
>
> > Python noob here. Trying to understand a particular syntax:
>
> >
>
> > class stuff:
>
> > def __init__(self):
>
> > self._bongo = "BongoWorld"
>
> >
On Tuesday, September 11, 2012 12:21:24 AM UTC-7, Tim Golden wrote:
> And so it does, but you'll notice from the MSDN docs that the \\?
> syntax must be supplied as a Unicode string, which os.listdir
> will do if you pass it a Python unicode object and not otherwise:
I was saying os.listdir doesn'
On Tue, Sep 11, 2012 at 12:45 PM, wrote:
> All
>
> Python noob here. Trying to understand a particular syntax:
>
> class stuff:
> def __init__(self):
> self._bongo = "BongoWorld"
>
> ---
>
> What is the significance of the leading underscore in "self._bongo"? I've
> seen t
All
Python noob here. Trying to understand a particular syntax:
class stuff:
def __init__(self):
self._bongo = "BongoWorld"
---
What is the significance of the leading underscore in "self._bongo"? I've seen
this a few times and, after looking through PEP 8, I didn't see
On Mon, Sep 10, 2012 at 11:53 PM, Laszlo Nagy wrote:
> On 2012-09-11 06:16, Dhananjay wrote:
>>
>> Dear all,
>>
>> I have a python script in which I have a list of files to input one by one
>> and for each file I get a number as an output.
>> I used for loop to submit the file to script.
>> My scr
There is parallel python as well http://www.parallelpython.com/
--
http://mail.python.org/mailman/listinfo/python-list
On 9/11/2012 12:03 PM, Ben Finney wrote:
Jayden writes:
Python is under GPL compatible. If I develop a python code
If you write new code, without deriving your work from the code of
Python itself, then the license of the Python code cannot affect what
you many do with what you wrote – becaus
On 11/09/2012 17:49, Charles Hottel wrote:
I have a lot of programming experience in many different languages and now
I want to learn Python. Which version do you suggest I download, Python 2.x
or Python 3.x ? Also why should I prefer one over the other?
Right now I am thinkng Python 3.x as
Having recently looked for the same answer myself, consensus seems to be
that you should work with 3.x unless you know you need something that is
still 2.x specific. For me, that 2.x specific item was OpenStack.
On Tue, Sep 11, 2012 at 12:49 PM, Charles Hottel wrote:
> I have a lot of programmin
I have a lot of programming experience in many different languages and now
I want to learn Python. Which version do you suggest I download, Python 2.x
or Python 3.x ? Also why should I prefer one over the other?
Right now I am thinkng Python 3.x as it has been out since 2008, but I have
some
Roy Smith writes:
> In article ,
> Chris Angelico wrote:
> > What is it that takes up forty pages [for the ISO 8601
> > specification]? RFC 2822 describes a date/time stamp in about two
> > pages. In fact, the whole RFC describes the Internet Message Format
> > in not much more than 40 pages. I
Jayden writes:
> Python is under GPL compatible. If I develop a python code
If you write new code, without deriving your work from the code of
Python itself, then the license of the Python code cannot affect what
you many do with what you wrote – because the copyright on Python does
not affect w
On 9/11/2012 6:40 AM, Oscar Benjamin wrote:
On 11 September 2012 10:51, Duncan Booth mailto:duncan.booth@invalid.invalid>> wrote:
Oscar Benjamin mailto:oscar.j.benja...@gmail.com>> wrote:
>> What interning buys you is that "s == t" is an O(1) pointer compare
>> if they are equal.
On 11 Sep 2012, at 15:31, William R. Wing (Bill Wing) wrote:
> On Sep 11, 2012, at 9:12 AM, Bob Aalsma wrote:
>
>> Hmm, this feels embarrassing but the good news is that, on seeing the
>> errors, I remember using a "sudo" with the make install and only later
>> finding out that I shouldn't ha
Hmm, this feels embarrassing but the good news is that, on seeing the errors, I
remember using a "sudo" with the make install and only later finding out that I
shouldn't have.
Last login: Tue Sep 11 09:46:11 on ttys000
macpro1:~ debaas$ pwd
/Users/debaas
macpro1:~ debaas$ ls
Desktop Docu
Hi, I'm trying to compile Python in Cygwin, with little luck. I've posted
the ugliness in this link. Thoughts?
http://bin.cakephp.org/view/176472400
--
http://mail.python.org/mailman/listinfo/python-list
On Monday, September 10, 2012 11:10:55 PM UTC+2, Jayden wrote:
> Are there any python CAD libraries that can
>
>
>
> (1) build simple 3D primitives solids such as spheres, cylinders and so on
>
> (2) perform bool operations on 3D solids
>
> (3) better if it has some transformations such has sc
On Sep 11, 2012, at 9:12 AM, Bob Aalsma wrote:
> Hmm, this feels embarrassing but the good news is that, on seeing the errors,
> I remember using a "sudo" with the make install and only later finding out
> that I shouldn't have.
>
> Last login: Tue Sep 11 09:46:11 on ttys000
> macpro1:~ debaas
On Sep 11, 2012, at 3:52 AM, Bob Aalsma wrote:
>
> Op 10 Sep 2012, om 22:53 heeft William R. Wing (Bill Wing) het volgende
> geschreven:
>
>> On Sep 10, 2012, at 11:17 AM, Bob Aalsma wrote:
>>
>>> Well, Bill, better late than never - thanks for stepping in.
>>> You are right, my problems are
PyPyODBC - A Pure Python ctypes ODBC module
Features
-Pure Python, compatible with IronPython and PyPy (tested on Win32)
-Almost totally same usage as pyodbc
You can simply try pypyodbc in your existing pyodbc powered script
with the following changes:
#import pyodbc
Mark R Rivet wrote:
> Thomas 'PointedEars' Lahn wrote:
>> Mark R Rivet wrote:
>>> Hello all, I am learning to program in python. I have a need to make a
>>> program that can store, retrieve, add, and delete client data such as
>>> name, address, social, telephone number and similar information. Th
On 11 September 2012 10:51, Duncan Booth wrote:
> Oscar Benjamin wrote:
>
> >> What interning buys you is that "s == t" is an O(1) pointer compare
> >> if they are equal. But if s and t differ in the last character,
> >> __eq__ will still inspect every character. There is no way to tell
> >> Pyth
Oscar Benjamin wrote:
>> What interning buys you is that "s == t" is an O(1) pointer compare
>> if they are equal. But if s and t differ in the last character,
>> __eq__ will still inspect every character. There is no way to tell
>> Python "all strings are interned, if s is not t then s != t as w
Steven D'Aprano wrote:
> But for the record, in principle string comparisons *could* be the
> bottleneck. Example: you have 1 strings, which are each created
> once and stored in a list. Then you iterate over the list, comparing
> every string against every other string. And due to some weir
http://celeryproject.org/
Don't eat it all at once
On Tue, Sep 11, 2012 at 2:16 PM, Dhananjay wrote:
> Dear all,
>
> I have a python script in which I have a list of files to input one by one
> and for each file I get a number as an output.
> I used for loop to submit the file to script.
> My sc
On 09/11/2012 07:53 AM, Laszlo Nagy wrote:
> On 2012-09-11 06:16, Dhananjay wrote:
>> Dear all,
>>
>> I have a python script in which I have a list of files to input one by
>> one and for each file I get a number as an output.
>> I used for loop to submit the file to script.
>> My script uses one f
c.c
Description: Binary data
Op 10 Sep 2012, om 22:53 heeft William R. Wing (Bill Wing) het volgende
geschreven:
> On Sep 10, 2012, at 11:17 AM, Bob Aalsma wrote:
>
>> Well, Bill, better late than never - thanks for stepping in.
>> You are right, my problems are not yet solved ;)
>
> As Han
> Blender is definitely the most popular open-source CAD software; it
>> has even forked its own version of Python to make things run neatly :P
>>
>
> Plus it never hurts to look around at some of the other interfaces,some of
which might have just altered Blender, or something else, just to see whi
On Tue, Sep 11, 2012 at 3:36 AM, Alec Taylor wrote:
> Blender is definitely the most popular open-source CAD software; it
> has even forked its own version of Python to make things run neatly :P
>
I heard that they were going to change a few things a while back with the
Python API(especially the
Blender is definitely the most popular open-source CAD software; it
has even forked its own version of Python to make things run neatly :P
On Tue, Sep 11, 2012 at 5:33 PM, Dwight Hutto wrote:
> And just a little more for you from:
>
> http://wiki.python.org/moin/Applications#A3D_CAD.2FCAM
>
> Thi
And just a little more for you from:
http://wiki.python.org/moin/Applications#A3D_CAD.2FCAM
This looked interesting:
http://free-cad.sourceforge.net/
>
> but I have to get to a few other things, so I hope this helps.
--
Best Regards,
David Hutto
*CEO:* *http://www.hitwebdevelopment.com*
--
Also, and sometimes google does kind of fail you, but straight from your
question, I just type in this section of what you wrote:
'Python code that I would like to compile into a dll'
Yours comes up as well within that search,but so do quite a few others
related to it.
>
>
--
Best Regards,
Da
On 11/09/2012 04:46, Steven D'Aprano wrote:
> On Mon, 10 Sep 2012 15:22:05 -0700, ruck wrote:
>
>> On Monday, September 10, 2012 1:16:13 PM UTC-7, Steven D'Aprano wrote:
> [...]
>>> That's not so much a workaround as the officially supported API for
>>> dealing with the situation you are in. Why d
https://www.google.com/search?q=python+cad+3d+examples&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
First listing looks good, might look later on at it myself:
http://www.pythonocc.org/
--
Best Regards,
David Hutto
*CEO:* *http://www.hitwebdevelopment.com*
--
http://m
Thank you all for your help. I'm going to try Cython.
Regards
Rolf
On 10/09/12 14:15, Rolf Wester wrote:
Hi,
I have Python code that I would like to compile into a dll (I have to
deliver a C/C++ callable dll and I don't want to reimpelement the Python
code in C/C++). It's not for extending Py
77 matches
Mail list logo