On Nov 30, 3:07 pm, "Wang, Harry" <[EMAIL PROTECTED]> wrote:
> $$ TestCase ID : 001
> Step : deleteDvc,206268
> Result Eval type : XmlChk
> Step : deleteDvc,206269
> Result Eval type : XmlChk
> Traceback (most recent call last):
> File "C:\UDR2\UDRxmlGateway.py", line 388, in
> ParseAll()
>
I've recently been looking into different options to package python
code into stand-alone executables, with tools like Py2EXE and
PyInstaller, but I'm left feeling a little lost. Documentation seems
sparse on all of them, the setups a little unusual to me. It feels
like they could be a lot simpler,
On Tue, Feb 28, 2012 at 1:07 PM, Peter Otten <__pete...@web.de> wrote:
> Andrea Crotti wrote:
>
>> On 02/28/2012 04:02 PM, Peter Otten wrote:
>>> Andrea Crotti wrote:
>>>
I have a script that might be used interactively but also has some
arguments that
should not be used by "normal"
On 03/06/2012 01:34 AM, Xah Lee wrote:
while what you said is true, but the problem is that 99.99% of
programers do NOT know this. They do not know Mathematica. They've
never seen a language with such feature. The concept is alien. This is
what i'd like to point out and spread awareness.
I can s
Google search for slidespeech returns with a warning, "This site may
harm your computer."
--
http://mail.python.org/mailman/listinfo/python-list
I'd like to announce a new project, based on straight.plugin, a
command framework that provides a declarative way to define
command-line options, sub-commands, and allows plugins from
third-parties to expand commands.
This is all very early, I'm calling this version 0.1a1 and lots of
things are mi
PyCarolinas 2012 Call For Proposals
PyCarolinas 2012, the first Python conference held in the carolinas,
is now accepting proposals! We’re looking for proposals for talks you
can present to this great and growing Python community.
PyCarolinas will be held in October in Chapel Hill, NC. The exact
CORRECTION
The proposal deadline is July 20, 2012
Not 2011, obviously.
On Mon, May 21, 2012 at 10:51 AM, Calvin Spealman wrote:
> PyCarolinas 2012 Call For Proposals
>
> PyCarolinas 2012, the first Python conference held in the carolinas,
> is now accepting proposals! We’re
Tracerlib is a set of utilities to make tracing Python code easier.
It provides TracerManager, which can allow multiple trace functions to
coexist. It can easily be enabled and disabled, either manually or as
a context manager in a with statement.
Tracer classes make handling the different trace
Just write the function, at the top of the source. Easy peasy.
On Wed, Jun 8, 2011 at 9:58 AM, Andre Majorel wrote:
> Is there a way to keep the definitions of the high-level
> functions at the top of the source ? I don't see a way to
> declare a function in Python.
>
> Thanks in advance.
>
> --
No, but you can define a name in one module and import that into others.
On Thu, Jun 23, 2011 at 9:41 AM, Gnarlodious wrote:
> Is there a way to declare a project-wide variable and use that in all
> downstream modules?
>
> -- Gnarlir
> --
> http://mail.python.org/mailman/listinfo/python-list
>
I am not understanding why paths I'm adding to a virtualenv via
add2virtualenv are not working. I use this in plenty of other situations,
but in this one project (which is on 3.2) I am getting strange behavior.
~/projects/fooproject/# add2virtualenv src/
~/projects/fooproject/# python3 -c "impor
Tell your coworker that what he should be doing is writing good tests,
which he can rerun repeatedly while working towards a solution.
Instead of writing a new function in an interpreter, he can add tests
to confirm how he wants it to behave and then keep working on it unitl
those tests pass.
On F
Sounds like you're just going to end up with more confusing code
having multiple ways to refer to the exact same thing. Why?
On Thu, Mar 31, 2011 at 6:14 PM, Ben Finney wrote:
> Howdy all,
>
> I want to inherit from a class, and define aliases for many of its
> attributes. How can I refer to “the
I have a great solution : stop using reload. It often dangerous and more
often silly.
On Apr 7, 2011 5:44 AM, "harrismh777" wrote:
All right... somebody is sacked (er, fired) !
Who moved reload()?
This kinda stuff is driving me bonkers... there was no need to move reload()
anyplace...
... so
If this is the "non-programming side of python" then maybe some of us have a
lacking definition of what "programming" is. My mechanic stilll has to
check the tire pressure and I need to update the version number in PyPI.
On May 10, 2011 12:46 PM, "rusi" wrote:
Sorry for a silly subject change:
t; > Without followers, evil cannot spread.
> >
> > [Spock, "And The Children Shall Lead", stardate 5029.5]
> > --
> > https://mail.python.org/mailman/listinfo/python-list
> >
>
>
> --
> <https://netanel.ml>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
calvin.speal...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
pens when I install such a package with an entry point via "pip
> install ." when an virtual environment is activated?
>
> Kind
> Christian
>
> [1] --
> <https://codeberg.org/buhtz/hyperorg/src/branch/develop/setup.cfg>
> --
> https://mail.python.org/mailma
ot;:
> break
> else:
>print("Yes we got no bananas")
>
I wonder if for/else could have been less confusing if it was referred to
as for-break-else and if the else clause was only valid syntax if the for
loop actually contained a break statement in the first place.
lish apps, scripts.. made by python. I will like to put python in
> the domain. The domain will be like all-about-python.com but in Spanish(
> todosobrepython.com). Can I use it?
>
> Thanks in advance,
> Sergio
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
> Personally, I do not see any disadvantage of using __privs__ over name
> mangling/double-underscores. While name mangling does not truly guarantee
> conflict resolution, __privs__ does.
>
> Please discuss the idea, let me know what you think about it, whether there
>
On Tue, Aug 31, 2021 at 1:19 PM Mehrzad Saremi
wrote:
> Calvin, even if the language offered truly private members?
>
I'm saying I don't think they're necessary, especially not for the use case
posited here. Private members in other languages are about things internal
to th
0
> > On Tue, 2021-08-31 at 21:25 -0700, ABCCDE921 wrote:
> > > I dont want to import numpy
> > >
> > > argmax(list)
> > > returns index of (left most) max element
> > >
> > > argmin(list)
> > > returns index of (left most) min element
>
higher up than py
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
calvin.speal...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
to where the difference comes for two comparatively similar langs.
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> about <https://compileralchemy.github.io/> | blog
> <https://www.pythonkitchen.com>
> github <https://github.com/Abdur-RahmaanJ>
> Maurit
70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
calvin.speal...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. T
--
> > https://mail.python.org/mailman/listinfo/python-list
> >
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
calvin.speal...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
ND and if I open same folder without python ITEAMS ARE THERE
> so
>kindly help me
>
>
>
>
>
>Sent from [1]Mail for Windows
>
>
>
> References
>
>Visible links
>1. https://go.microsoft.com/fwlink/?LinkId=550986
> --
> https://mail.pytho
is Embedded Zip is not something that user wants to work with that
> directly it's for embedding in a C++ application, so it's not the same as
> options that Java and NodeJS offers
>
> My question is why Python hasn't option for downloading as Compressed
> Archive ?
> --
ssed archive of cpython that we can simply
> unzipped and starting developing an app, not running an app that already
> developed... 😀
> ------
> *From:* Calvin Spealman
> *Sent:* Monday, January 17, 2022 10:19:13 PM
> *To:* Sina Mobasheri
> *Cc:* p
On Thu, Jul 5, 2018 at 12:59 PM, Jim Lee wrote:
>
>
> On 07/05/18 05:14, Marko Rauhamaa wrote:
>
>> Abdur-Rahmaan Janhangeer :
>>
>>> * Create as many functions as you can
>>> performance?
>>>
>> Python?
>>
>> Seriously, though. The principle of expressive encapsulation is one of
>> the basi
On Thu, Jul 5, 2018 at 1:41 PM, Jim Lee wrote:
>
>
> On 07/05/18 10:15, Calvin Spealman wrote:
>
> On Thu, Jul 5, 2018 at 12:59 PM, Jim Lee wrote:
>
>>
>>
>> On 07/05/18 05:14, Marko Rauhamaa wrote:
>>
>>> Abdur-Rahmaan Janhange
You can read cookies from the request via the request.COOKIES dictionary.
See the documentation here:
https://docs.djangoproject.com/en/2.0/ref/request-response/#django.http.HttpRequest.COOKIES
You won't find them in an environment variable, which is shared
process-wide and across all requests, be
This is an unfortunate property of running command line programs on
Windows. If you run the script directly (like by double clicking on it?)
the console window will close when the program is done, so you can't see
the final output.
To get around this you could run them in the IDLE editor, which co
You really can't, and shouldn't. The super() helper relies on information
that exists inside the class definition and which is not available simply
at runtime by virtue of being attached to the class.
Besides, modifying classes externally is generally considered a bad idea.
Maybe you could accompl
Please don't keep spamming this list with the same question, while you have
not responded to any of the advice you've already been given.
If you have specific trouble with any of that advice and need further help,
please give details and ask new questions!
Good luck.
On Wed, Sep 5, 2018 at 4:02
This entire conversation is inappropriate for this mailing list. Please
leave this free for people who need to ask and give help with Python,
regardless of which side of this argument you are on.
On Tue, Sep 25, 2018 at 4:44 AM Robin Becker wrote:
> On 24/09/2018 21:40, Kirill Balunov wrote:
> .
Did you actually confirm the PATH variable contains the right path?
echo $env:Path
And look for a path entry that mentions Python. Then, make sure you can
actually find python.exe in that location.
As long as you keep the PATH option checked with the Python installer it
absolutely should wor
It does not appear that you actually want to use Python.
On Thu, Oct 25, 2018 at 1:15 AM iamybj--- via Python-list <
python-list@python.org> wrote:
> I am an engineer of java and c#, I want to some personal projects in free
> time, and I choose python.
>
> After try python, I hava some suggestion
You really have the pieces you need here. You can print a whole year's
calendar with calendar.formatyear() or a single month with
calendar.monthcalendar(). If you need multiple years, call the first more
than once with each year you need to print. If you need partial years,
print the individual mon
If you want to create your own immutable class, maybe inherit from a
namedtuple?
On Wed, Nov 21, 2018 at 11:45 AM Iwo Herka wrote:
> Hello,
>
> Let's say I want to implement immutability for user-defined class.
> More precisely, a class that can be modified only in its (or its
> super-class') __
Hi, I'm afraid attachments are stripped out of e-mails sent to this list.
Anything you sent was not included, so you'll need to share them in some
other way if you'd like to ask for help.
On Wed, Nov 21, 2018 at 1:18 PM Sourav Banik wrote:
> Hello Python team,
> I'm using python 3.7(32 bit) for
Python and the standard library are all tools, but you still need to *use*
those tools to accomplish something.
On Wed, Nov 21, 2018 at 12:01 PM o1bigtenor wrote:
> On Wed, Nov 21, 2018 at 8:09 AM Calvin Spealman
> wrote:
> >
> > You really have the pieces you need here. You
Sorry, but, that is largely what programming is.
On Wed, Nov 21, 2018 at 4:09 PM o1bigtenor wrote:
> On Wed, Nov 21, 2018 at 2:47 PM Calvin Spealman
> wrote:
> >
> > Python and the standard library are all tools, but you still need to use
> those tools to accomplish somet
This can definitely be a problem, but there are tried and true strategies to
deal with it and the best course of action depends a lot on what works for you.
Pickle deserialization is just an API instantiating your class instances. That
means all the same rules and approaches to API changes apply
on.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
'Άκης Τσιάμης', 0, 4, 'ordinal not in
> range(256)')
> [/output]
>
> Why it cannot encode in latin nad decode in utf8 normally?
> And since 'names' are being fetced from mysql database, which they were
> stored as utf8 strings WHY/HOW the 'names
ust need to specific the correct encoding.
On Thu, Feb 14, 2019 at 12:15 PM wrote:
> Τη Πέμπτη, 14 Φεβρουαρίου 2019 - 6:45:29 μ.μ. UTC+2, ο χρήστης Calvin
> Spealman έγραψε:
> > You can only decode FROM the same encoding you've encoded TO. Any
> decoding
> > must know the i
he documentation of String Library?
> Regards,
> Caridad Díaz
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
ing to instaal python but not working properly.
>
> i have downloaded on exe file ..but it is not starting
>
> please help me..
>
>
>
>
>
> --
> Regards:
>
> Vandna mahendroo
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CA
Can you give any more information than that?
On Wed, Feb 20, 2019 at 8:30 AM prasis poudel wrote:
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
<https://red.ht/sig>
TRIE
around for the same or any
> documentation would be greatly appreciated.
>
> Hoping to hear from you soon.
>
> Thanks,
> Subash
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.21
#x27; as
> a parameter.
>
> BUT from inside my script i do NOT call listall at all, so how can it miss
> an argument?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
pes of
> object can be bound to any given name. This is occasionally a surprise
> when you're being careless, but it really shouldn't break your
> expectations.
>
> --
> Rhodri James *-* Kynesim Ltd
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
why this
> isn't running at all. Is it simply because it isn't all in one file?
> Thanks for any guidance. Really appreciate the help.
>
>
> Thanks.
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
A few notes, Jack:
On Thu, Mar 14, 2019 at 10:32 AM Jack Dangler wrote:
>
> On 3/14/19 10:11 AM, Calvin Spealman wrote:
>
> Where are you seeing something like this? The two lines under `class
> weapon:` are not correct because they are variable names that you've never
>
/14/19 10:39 AM, Calvin Spealman wrote:
>
> A few notes, Jack:
>
> On Thu, Mar 14, 2019 at 10:32 AM Jack Dangler wrote:
>
>>
>> On 3/14/19 10:11 AM, Calvin Spealman wrote:
>>
>> Where are you seeing something like this? The two lines under `class
>> weapo
x27;, 'abc'])
> .last_letter at 0x1051e0730>
> ['abc', 'def', 'ghi']
> >>> sort_by_last_letter(['ghi', 'def', 'abc'])
> .last_letter at 0x1051e0730>
> ['abc', 'def', 'ghi']
> >>> sort_by_last_letter(['ghi', 'def', 'abckl'])
> .last_letter at 0x1051e0730>
> ['def', 'ghi', 'abckl']
> >>>
>
>
> Thanks,
>
> Arup Rakshit
> a...@zeit.io
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
ers//Ayla//Documents//Uni/vMaster_Umweltingenieurwesen//Study_Project//kerschbaum_input')
>
> and each of these with [r'C:..'], " instead of ', and \\?\c instead of C.
> I also added the path (in advanced system settings) of the folder.
>
> Best regards
>
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
m_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#m_-8209034248381601832_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
csp
10
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
ed "dictionary".
>
> dictionary = {1: 'value1', 2: 'value3'}
>
> What if I wanted to add a value2 in the middle of value1 and value3?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea
t; buttons
>
> I know just a reference issue but it's been **bugging** me.
>
> Thanks All
>
> --
> Abdur-Rahmaan Janhangeer
> Mauritius
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
installer about the support team, please tell me a solution for
> my issue
>
> thank you,
> Joshua kay
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig
ishes,
>
> Nicholas
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
t; Sid
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
```
> opposite = not regular
> ```
>
> 2. as a sort of ".is_falsy()" checker; when used with an if statement.
>
> like the first example.
>
>
> This PEP would make the difference between the two usecases explicit.
>
> Thoughts?
>
> Best Intentions,
>
l.com ] Free as in Freedom :.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
ks? Why make
> the copy of the elements? This seems
> to be equivalent:
>
>
> def cycle(iterable):
> while iterable:
> for thing in iterable:
> yield thing
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
lass (which would obviously be an object as well as
> a class)?
>
> Christian
>
> --
> "People think that I must be a very strange person. This is not correct. I
> have the heart of a small boy. It is in a glass jar on my desk." -- Stephen
> King
> --
> https:/
Cristian Cocos wrote:
> Thank you! What would be the names of the *class *class, and of the
> *function
> *class please?
>
> On Tue, Aug 27, 2019 at 1:39 PM Calvin Spealman
> wrote:
>
> > Yes, it is called `object` and `object` is the base class of ALL other
> &g
except:
> print("No devices added yet")
> readFile("list_of_devices.txt")
>
> mqtt.py
>
> import logging
> from datetime import timedelta
> import time
> from thespian.actors import *
> from transitions import Machine
> import paho.mqtt
:
>
>
> Sent from Mail for Windows 10
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https:/
-
> https://mail.python.org/mailman/listinfo/python-list
>
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
How
> to resolve that issue. please help me
>Thanking You
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
--
CALVIN SPEALMAN
SENIOR QUALITY ENGINEER
cspea...@redhat.com M: +1.336.210.5107
[image: https://red.ht/si
plication as a single .py (or .pyw) file. Problem
> solved.
>
This is in no way a solution or a reasonable way to distribute software to
end-users. Please don't give non-answers.
ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
--
CALVIN SPEALMAN
S
,*self
> *.*insurance*)*
>
> *def* claim*(*self*,* discount*):*
>
> X *=* self*.*insurance *+* discount
>
> *return* X
>
>
> And hence I am not sure about the behavior of the first code in this email.
> --
> Regards,
> Joseph Pareti - Ar
rementioned cause crusaders think, they are not
> unassailable, nor are they the only- or dominant voice in these matters.
> Open this door and you get an absolute sewer of commentary
> (from many sides of these issues). Social media is full of many trenchant
> such examples. Best to leav
quot;:
> n = int(input(print("Please enter distance in miles: ")))
> answer = (1.6*n)
> print("%.2f" % answer, "miles")
>
> else:
> n = float(input(print("Please enter distance in kilometers: ")))
> answer = (n/1.
Twisted [1] includes lots of support for asyncronous concurrency,
using deferreds. There is also the possiblity of PEP 342's [2]
concurrency through enhanced generators, and being able to pass data
to the generator every iteration. There are ways to simulate this, as
well. I've written a recipe [3]
The choice is GUI toolkits is largely seperate from Python. Consider
that they are just bindings to libraries that are developed completely
seperate of the language. GUI is should be seperate from the language,
and thus not bound to same expectations and desires as elements of the
language itself.
On 7/29/05, Dark Cowherd <[EMAIL PROTECTED]> wrote:
> I am new to Python. I tried it out and think it is fantastic.
Congrats and have fun learning all there is to learn.
> I really loved this from import this statements:
>
> There should be one-- and preferably only one --obvious way to do it.
>
You might want to look at kexi. It is KOffice's answer to MS Access,
and long a awaited contender it is. It has python scripting support
and works with databases natively.
On 29 Jul 2005 08:21:48 GMT, Wolfgang Keller
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm looking for a spreadsheet applicatio
did you try to put the filename in quotes?
On 30 Jul 2005 03:33:14 -0700, Lad <[EMAIL PROTECTED]> wrote:
> Hello,
> I am running Python on XP and have a problem with
> a program if its name consists '-' for example:
> my-program.py
> When I try to run a program with such name
> I get the error :
On 28 Jul 2005 10:41:54 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Asynchrony is not concurrency. If you have to turn your code "inside
> out," (that is, if you have to write your code such that the library
> calls your code, rather than vice versa) it's very much *not*
> concurrency: i
On 1 Aug 2005 05:12:47 -, Gurpreet Sachdeva
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there any provision in python which allows me to make my own operators?
>
> My problem is that I need to combine two dictonaries with their keys and I
> don't want to use any of the existing operators lik
On 7/31/05, James Dennett <[EMAIL PROTECTED]> wrote:
> Peter Hansen wrote:
>
> > Steven D'Aprano wrote:
> >
> > Given that ZODB and PySQLite are simply Python extension modules, which
> > get bundled by your builder tool and are therefore installed
> > transparently along with your app by your ins
On 8/10/05, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2005-08-10, John Machin <[EMAIL PROTECTED]> wrote:
>
> Perhaps the one bit is an exponent -- some kind of floating point
> based format? That matches the doubling of all digits.
> >>>
> >>>That would just be sick. I can't imagine
I'm trying to find the best way to use PyUnit and organize my test scripts.
What I really want is to separate all my tests into 'test' directories
within each module of my project. I want all the files there to define a
'suite' callable and to then all all those suites from all those test
directori
I don't think you have anything to worry about. Consider that this is
exactly what ZODB was designed for. It is, after all, the database back-end
for Zope itself, which is just another (very good, some say) CMS.
Almad wrote:
> Hello,
>
> I'm going to write a custom CMS. I'd like to use some odbm
Each module is only 'aware' of the built-ins and the modules it itself
imports. So, all you need to do is add this line to my_imported_mod:
from my_main_mod import myfun
This is a fully intentional feature. Modules stand on their own.
James Stroud wrote:
> Say I have a module, we'll call it "my
I've been working on a small test runner script, to accumulate my test
scripts (all python files in the 'test' sub-directories of my source tree).
Things were going well, but I'm still having trouble loading the modules,
once I have a path to the python source file. This is the error I am
getting:
Of course, remember that there are benefits to this, as well. Redefining the
built-ins can be useful in some interesting cases.
Klaus Neuner wrote:
> Hello,
>
> Python has one feature that I really hate: There are certain special
> names like 'file' and 'dict' with a predefined meaning. Yet, it
On Tue, Oct 4, 2011 at 9:50 AM, Valiev Sergey wrote:
> Hi,
> you may found this idea stupid, but nevertheless...
> - `[]` - used for list comprehension,
> - `()` - used for generators,
> - `[start:stop]` / `[start:stop:step]` - used for slices.
> The idea is to use `(start:stop)` / `(start:stop:s
I am biased, but you could use a plugin loader like straight.plugin at
https://github.com/ironfroggy/straight.plugin
On Fri, Oct 21, 2011 at 10:05 AM, Shane wrote:
> Need to refine a question I asked earlier. If I have a module,
>
> |-- foo
> |---|
> |---|---bar
> |---|---|
> |--
On Fri, Nov 25, 2011 at 6:24 AM, user wrote:
> In a Makefile (or sometimes inside python) I need the path to the root of
> the Python standard lib folder used by "env python".
>
> e.g. /usr/lib/python2.6/ or C:\Python27\Lib\
>
> what is the best/canonical way to get that?
This should get yo
On Dec 20, 2011 11:41 PM, "Emeka" wrote:
>
>
> Hello All,
>
> v = []
>
> def add_to_list(plist):
> u = plist.append(90)
> return u
>
> add_to_list(v) # This function call returns nothing
> Could someone explain why this function call will return nothing?
>
> v = [90] # Object values are p
On 10/9/06, Edward Waugh <[EMAIL PROTECTED]> wrote:
> Consider the following (working) Python code:
>
> import sys
>
> def sum(list):
> # total = 0 does not work for non-numeric types
> total = list[0].__class__()
> for v in list:
> total += v
> return total
>
> l = [1, 2, 3
This is something I have been wanting to find for a while, but i
haven't figured out. I really would love to know if there is some way
I can report extra information while running unittests, and have that
information appear along with the tracebacks, so its near the relevent
test's results.
--
htt
1 - 100 of 200 matches
Mail list logo