Hi
When I does this like hear failre goes:
def pinhtranh(*args , laoc_te):
phnoi_crek(args , laoc_te)
I do "laoc_te" last praemetr name always.
Qinh 3 1261
There is way to few information in this mail, but I guess you meant the
following:
def pinhtranh(*args , laoc_te):
phnoi_crek(*arg s, laoc_te)
Note the *args on the second line.
Regards,
Florian
On Sun, 24 Aug 2003 22:00:01 +0200 (CEST), Nomen Nescio <no****@dizum.c om>
wrote: Hi
When I does this like hear failre goes:
def pinhtranh(*args , laoc_te): phnoi_crek(args , laoc_te)
I do "laoc_te" last praemetr name always.
Qinh
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
In article <51************ *************** ***@dizum.com>, Nomen Nescio wrote: Hi
When I does this like hear failre goes:
def pinhtranh(*args , laoc_te): phnoi_crek(args , laoc_te)
I do "laoc_te" last praemetr name always.
This is not allowed.
*args and **kwargs must come after the regular arguments. http://python.org/doc/current/tut/no...00000000000000
On Sunday 24 August 2003 01:00 pm, Nomen Nescio wrote: Hi
When I does this like hear failre goes:
def pinhtranh(*args , laoc_te): phnoi_crek(args , laoc_te)
I do "laoc_te" last praemetr name always.
Qinh
The syntax of Python does not allow this, but perhaps the following
will do what you want. The two lines in pinhtranh will set "laoc_te"
to the last argument, and "args" to a tuple of all except for the last
argument.
def pinhtranh(*allA rgs):
args = allArgs[:-1]
laoc_te = allArgs[-1]
...
I hope that's what you wanted.
Gary Herron This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David MacQuigg |
last post by:
I am starting a new thread so we can avoid some of the non-productive
argument following my earlier post "What is good about Prothon". At
Mr. Hahn's request, I will avoid using the name "Prothon" in the
subject of any post to this newsgroup. Please ignore the old thread.
I've also updated my webpage http://ece.arizona.edu/~edatools/Python
Anyone with some good ideas for "Python 3" is welcome to contribute.
I hope GvR won't sue me for...
|
by: Lad |
last post by:
Is anyone capable of providing Python advantages over PHP if there are
any?
Cheers,
L.
|
by: mystilleef |
last post by:
Hello,
What is the Pythonic way of implementing getters and setters. I've
heard
people say the use of accessors is not Pythonic. But why? And what is
the alternative? I refrain from using them because they smell
"Javaish."
But now my code base is expanding and I'm beginning to appreciate the
wisdom behind them. I welcome example code and illustrations.
|
by: Kurt B. Kaiser |
last post by:
Patch / Bug Summary
___________________
Patches : 417 open ( -6) / 3565 closed (+12) / 3982 total ( +6)
Bugs : 960 open ( -3) / 6498 closed (+19) / 7458 total (+16)
RFE : 266 open ( +6) / 251 closed ( +1) / 517 total ( +7)
New / Reopened Patches
______________________
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |